/* ===================
 CSS VARIABLES
======================= */
:root {
    --black: #131313;
    --white: #FFFFFF;
    --bg-light: #EBF6F2;
    --bg-navbar: #79B2C3;
    --bg-dark: #167973;
    --bg-activity-display: hsla(170, 100%, 95%, 0.9);
    --bg-completed: hsla(170, 36%, 88%, 1);
    --bg-notcompleted: hsla(170, 91%, 65%, 0.21);
    --bg-cell-hover: hsla(170, 100%, 96%, 0.7);
    --bg-cell-hover-dark: hsla(170, 100%, 93%, 0.7);
    --completed-color: hsla(170, 69%, 28%, 1);
    --notcompleted-color: hsla(170, 54%, 53%, 1);
    --content-bg-light: #D7ECE5;
    --attendance-bg:#FBE6CC;
    --link-color: #6354F7;
    --link-hover-color: #79B2C3;
    --highlight-color: #6354F7;
    --btn-bright: #6354F7;
    --btn-bright-hover: #79B2C3;
    --btn-activity-display: hsla(170, 91%, 65%, 1);
    --btn-activity-display-hover: hsla(170, 91%, 55%, 1);
    --btn-bg-color-light: #d8eded;
    --btn-edit: hsla(33, 85%, 89%, 1);
    --btn-details: hsla(220, 78%, 89%, 1);
    --btn-delete: hsla(3, 56%, 49%, 0.3);
    --btn-edit-hover: hsla(33, 85%, 79%, 1);
    --btn-details-hover: hsla(100, 78%, 79%, 1);
    --btn-delete-hover: hsla(3, 66%, 42%, 0.4);
    --alert-color: rgba(170, 61, 55, 0.3);
    --header-icon-hover-color: #79B2C3;
    --border-light: #dee2e6;
    --border-dark: #167973;
}

*, *:before, *:after {
    box-sizing: border-box;
}

p {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: #131313;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

/* ====================
 TYPOGRAPHY
======================= */
a {
    text-decoration:none;
    color: var(--link-color);
    cursor: pointer;
}

a:hover, a:focus {
    color: #FFF;
    text-decoration: none;
}


h1, h2, h3, h4 {
    font-family: "Lexend Deca", serif;
}

.heading {
    font-size: 3.3rem;
}

.heading-sans-serif {
    font-family: 'Lexend Deca', sans-serif;
}

/* ====================
 MESSAGE STYLES
======================= */
.flask-flash {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5em;
}

.flask-flash--no-nav {
    margin-bottom: 0;
}

.flash-message {
    margin-right: 0.8em;
}

.info {
    color:  hsla(160, 36%, 28%, 1);
    background: hsla(160, 36%, 88%, 1);
    position: relative;
    padding: .75rem 1.25rem;
}

.error, .message {
    color:  hsla(3, 56%, 39%, 1);
    background: hsla(3, 56%, 49%, 0.3);
    position: relative;
    padding: .75rem 1.25rem;
}

/* ====================
 BUTTON & LINK STYLES
======================= */
.btn {
    border: unset;
    cursor: pointer;
}

.btn-form {
    border: none;
    width: 100%;
    background: var(--black);
}

.btn-form:hover, .btn-form:focus {
    background: var(--bg-dark);
    color: #FFF;
}

.btn-edit {
    background-color: var(--btn-edit);
    color: var(--black);
}

.btn-edit:hover, .btn-edit:focus {
    background-color: var(--btn-edit-hover);
}

.btn-details {
    background-color: var(--btn-details);
    color: var(--black); 
}

.btn-details:hover, .btn-details:focus {
    background-color: var(--btn-details-hover);
}

.btn-delete {
    background-color: var(--btn-delete);
    color: var(--black);
}

.btn-delete:hover, .btn-delete:focus {
    background-color: var(--btn-delete-hover);
}

.btn--dark {
    background: var(--black);
    color: #FFF;
    border: 2px solid var(--black);
    font-weight: 700;
}

.btn--dark:hover, .btn--dark:focus {
    background: #FFF;
    color: var(--black);
}

.btn--bright {
    background: var(--btn-bright);
    color: #FFF;
    font-weight: 700;
}

.btn--bright:hover, .btn--bright:focus {
    background: var(--btn-bright-hover);
    color: #FFF;
}

.btn-back {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.controls-icon {
    margin-right: 0.5em;
}

/* ====================
 CHARTING STYLE
======================= */

.chart {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.chart__bar {
    width: 8%;
    background-color: rgba(75, 192, 192, 0.2);
    border: 1px solid rgba(75, 192, 192, 1);
    text-align: center;
    font-size: 14px;
}

.chart__bar-label {
    margin-bottom: 0.5rem;
}

/* ====================
 CUSTOM CHECKBOX STYLING
======================= */

.checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 1em 0 1.5em 0;
}

.checkbox__input {
    display: none;
}

.checkbox__box {
    width: 1.25em;
    height: 1.25em;
    border: 2px solid #ced4da;
    border-radius: 3px;
    display: flex;
    align-items: center;
    margin-right: 0.8em;
    justify-content: center;
    flex-shrink: 0;
    transition: background 150ms, border-color 150ms;
}

.checkbox__box::after {
    content: '\2714';
    color: #FFF;
    transform: scale(0); /* initially at 0% scale */
    transition: transform 150ms;
} 

.checkbox__input:checked + .checkbox__box {
    background: var(--highlight-color);
    border-color: var(--highlight-color);
    transition: background 150ms, border-color 150ms;
}

.checkbox__input:checked + .checkbox__box::after {
    transform: scale(1);
    transition: transform 150ms;
}

/* ====================
 HEADER & NAV 
======================= */
.header-main {
    /* border: 1px solid green; */
    position: relative;
}

/* custom navbar styles */
.navbar-custom {
    padding: 2.7em 1.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    text-align: center;
    line-height: 0.8em;
}

.navbar-logo-text {
    font-family: 'Zilla Slab', serif;
    font-size: 2.2rem;
    color: #131313;
}

.navbar-logo-text:hover, .navbar-logo:focus {
    color: #b4e0de;
}

.navbar-icon {
    background: #131313;
    color: #131313;
    border: unset;
    background: unset;
    font-size: 2.3rem;
}

.navbar-icon:hover, .navbar-icon:focus {
    color: var(--header-icon-hover-color);
}

.navbar-panel {
    position: fixed;
    z-index: 1;
    background: var(--bg-navbar);
    top: 0;
    left: 0;
    height: 100vh;
    padding: 1.2em 0.6em;
    box-shadow: 0 3px 3px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform .3s ease-in-out;
}

.navbar-icon--close {
    font-size: 2em;
    padding: 0;
    margin-left: 0.6em;
}

.navbar-panel-logo {
    margin-top: 1em;
}

.navbar-panel-logo__text {
    display: block;
    font-family: 'Zilla Slab', serif;
    font-size: 2rem;
    color: var(--black);
    margin-left: 0.8em;
}

.navbar-panel-logo__text:hover {
    color: var(--black);
}

.navbar-list {
    margin-top: 2.2em;
    padding: 0;
    list-style-type: none;
}

.nav-item {
    margin-bottom: 0.3em;
}

.nav-item--link {
    display: block;
    width: 100%;
    padding: .6em 1.3em;
    color: var(--black);
    font-weight: 600;
    font-size: 1.125rem;
}

.nav-item--link:hover, .nav-item--link:focus {
    background: #b4e0de;
    color: var(--black);
    border-radius: 0.4em;
}

.menu-icon {
    font-size: 1.4em;
    margin-right: 1.125em;
}

.nav-link--sign {
    margin: 2em auto;
    text-align: center;
    background: var(--black);
    color: #FFF;
    border-radius: 0.4em;   
    border: 2px solid var(--black);
    width: 70%;
}

.nav-link--sign:hover, .nav-link--sign:focus {
    border: 2px solid var(--black);
    background: none;
}

.navbar__footer {
    text-align: center;
    margin-top: 5em;
    display: none;
}

.navbar__footer-link {
    color: var(--black);
}

@media screen and (min-width: 968px) {
    .container-main {
        display: grid;
        grid-gap: 1.4rem;
        grid-template-columns: minmax(auto, 240px) 1fr;
    }
    
    .navbar-panel {
        transform: translateX(0) !important;
        position: unset;
        position: fixed;
    }

    .navbar-logo {
        display: none;
    }

    .navbar-panel-logo {
        margin-top: 1.8em;
        padding-right: 0.8em;
    }

    .navbar-icon {
        display: none;
    }

    .navbar__footer {
        display: block;
    }
}

/* ====================
 GENERAL LAYOUT
======================= */
html, body {
    height: 100%; 
}

body {
    display: flex;
    flex-direction: column;
}
.container-main {
    flex: 1 0 auto;
}

.container {
    width: 100%;  
    max-width: 1000px;
    margin: 0 auto;
    padding: 2em 1.5em;
}

.container-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-form {
    display: none;
}

.header-title {
    font-family: 'Zilla Slab', serif;
}

.header-title, .header-description {
    color: #FFF;
}

.form {
    max-width: 600px;
}

.form-field {
    margin-bottom: 1.2em;
}

input, select {
    background-color: #FFF;
}

.input-field:last-child {
    margin-bottom: 0;
}

.form-select--light {
    display: block;
    border: unset;
    padding: 0.8em 1.2em;
    border: 1px solid var(--border-light);
    border-radius: 0.5em;   
}

.user-alert__note {
    margin-bottom: 1em;
}

@media screen and (min-width: 968px) {

    .wrapper-form {
        background: var(--bg-light);
        display: flex;
        justify-content: center;
        height: 100vh;
        align-items: center;
    }
    
    .container-form {
        height: unset;
        flex-direction: row;
        align-items: stretch;
        padding: 0;
        box-shadow: 0 3px 20px rgba(0,0,0,0.2);
        border-radius: 25px;
        max-width: 1000px;
        margin: 3em 2.5em;
    }

    .header-form {
        display: block;
        background: var(--bg-dark);
        border-radius: 25px 0 0 25px;
        padding: 0 3.5em;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: var(--off-white);
        flex: 1 1 auto;
        width: 40%;
    }

    .header-title {
        font-size: 3rem;
    }

    .header-description {
        font-size: 1.4rem;
        font-weight: 200;
        margin-top: 1.3em;
    }

    .content-form {
        background: #FFF;
        border-radius: 0 25px 25px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2em 3.8em;
        flex: 2 0 auto;
    }

    .form {
        max-width: 500px;
        margin-top: 0em;
    }

    .form-footer {
        margin-top: 0.5em;
    }
}

/* ====================
 SIGN IN PAGE - login.html 
======================= */
.content-form__header, .guest-login {
    text-align: center;
}
.content-form__subheading {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1em;
}

.content-form__info {
    font-size: 1.5rem;
}

.guest-login {
    margin-top: 1.2em;
    margin-bottom: 1.2em;
    font-size: 1.2rem;
    font-weight: 700;
}

.guest-login__info {
    margin-bottom: 1em;
}

.form--sign-in {
    margin: 0 auto;
}

.input-field:focus { 
    outline: 1px solid var(--highlight-color);
}

.form-footer {
    margin-top: 1.5em;
}

@media screen and (min-width: 968px) {
  .content-form__info {
      display: none;
  }

  .guest-login {
      margin-top: 0;
  }
}

/* ====================
 SIGN UP PAGE - register.html 
======================= */
.heading-sign-up {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 1em;
}

.heading-text-logo {
    font-family: 'Zilla Slab', serif;
    font-size: 2.5rem;
}

.content-form__subheading {
    font-weight: 700;
    text-align: center;
}

.btn-form {
    margin-top: 1.4em;
}

.form-alert {
    padding: 1em;
    border-radius: 0.5em;
    margin-bottom: 1em;
    background: var(--alert-color);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1.2em;
}

@media screen and (min-width: 968px) {
    .form__user-info {
        display: flex;
    }

    .form__user-info-field {
        width: 100%;
        margin-right: 0.5em;
    }

    .form__user-info-field:last-child {
        margin-right: 0;
    }
}

/* ====================
 HOME PAGE - index.html 
======================= */
.add-user-info__form {
    max-width: 400px;
}

.add-user-info__form-group {
    margin-bottom: 3.5em;
}

.add-user-info__form-group:last-of-type {
    margin-bottom: 2em;
}

/* MAIN HOME PAGE */

/* email list signup */
.email-signup {
    background: var(--bg-navbar);
    padding: 1.2em;
    margin-bottom: 2em;
}

.email-signup-prompt__action {
    display: flex;
    align-items: center;
}

.email-signup-prompt__btn {
    margin-left: 0.3em;
    border: unset;
    background: unset;
    font-size: 1.5rem;
}

.email-signup-prompt__btn:hover, .email-signup-prompt__btn:focus {
    color: var(--link-hover-color);
    transform: translateY(2px);
    transition: transform 200ms;
}

.email-signup-form {
    margin-top: 1.5em;
}

.email-signup-form__input {
    width: 100%;
    max-width: 400px;
    margin-bottom: 0.5em;
}

.email-signup-form__options {
    margin-top: 0.7em;
    display: flex;
    align-items: center;
}

.email-signup-form__options-label {
    margin-left: 0.5em;
}

.hide {
    display: none;
}

.rotate {
    transform: rotate(180deg);
}

/* main homepage content */

.date-wrapper {
    text-align: center;
    padding: 0.625em 0.5em;
}

.date__title {
    display: inline-block;
    font-size: 1.5rem;
    text-transform: uppercase;
    border-bottom: 5px solid var(--link-hover-color);
    margin-bottom: 0.5em;
}

.date__info {
    font-size: 1.4rem;
    text-align: center; 
}

.date-info-data {
    font-weight: 700;
}

.activities {
    border-radius: 1.1em;
    margin-top: 5em;
}

.activities__wrapper {
    margin-top: 2em;
}

.activities__title {
    font-family: 'Zilla Slab', serif;
    text-align: center;
    text-transform: uppercase;
}

.activities__form {
    display: flex;
    flex-direction: column;
    margin: 2em auto 0 auto;
    max-width: 450px;
    background: var(--bg-navbar);
    padding: 2em 1.5em;
    border-radius: 1.1em;
    
}

.activities__field-wrapper {
    display: flex;
    flex-direction: column;
}

.activities__field {
    width: 100%;
    margin-bottom: 1.2em;
}

.activities__field:last-child {
    margin-bottom: 0;
}

.activities__input {
    position: relative;
}

.activities__field-input {
    padding-right: 2em;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    width: 100%;
}

.activities__input-dropdown {
    display: block;
    background: transparent;
    height: 100%;
    width: 2rem;
    position: absolute;
    top: 1.3em;
    right: 0.5em;
    pointer-events: none
}

.activities__input-dropdown:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 0.7em solid transparent;
    border-right: 0.7em solid transparent;
    border-top: 0.7em solid #131313;
}

.activities__btn {
    margin-top: 1.2em;
    flex-basis: auto;
    background: var(--link-hover-color);
    color: #FFF;
    text-transform: uppercase;
    font-weight: 700;
    padding-top: 0.85em;
    padding-bottom: 0.85em;
    width: auto;
    /* align-self: center; */
}

.activities__btn:hover, .activities__btn:focus {
    background: var(--link-color);
    color: #FFF;
}

/* Display Scheduled Activities */

.activity-display {
    margin-top: 5em;
}

.activity-display__add {
    display: flex;
    justify-content: flex-end;
}

.activity__add-btn {
    border: 2px solid var(--black);
    font-weight: 700;
}

.activity__add-btn:hover, .activity__add-btn:focus {
    background: var(--black);
    color: #FFF;
}

.activity__add-btn-icon {
    margin-right: 0.6em;
}

.activity-display__cards {
    margin-top: 2em;

}

.activity__card {
    background: #FFF;
    padding: 1.5em 2em;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -1px;
    border-radius: 1.3em;
    margin: 0 auto 1.2em auto;
    max-width: 450px;
}

.activity__card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.activity__card-status {
    padding: 0.2em 0.5em;
    font-weight: 700;
}

.activity__card-status-completed {
    background: var(--bg-completed);
    color: var(--completed-color);
}

.activity__card-status-notcompleted {
    background: var(--bg-notcompleted);
    color: var(--notcompleted-color);
}

.activity__card-content {
    margin-bottom: 1em;
}

.activity__card-data {
    margin-bottom: 0.5em;
}

.activity__card-data:last-child {
    margin-bottom: 0;
}

.activity__card-date,
.activity__card-status,
.activity__card-activity-data {
    font-weight: 700;
}

.activity__card-controls {
    display: flex;
    justify-content: center;
}

.activity__card-controls-btn {
    margin-right: 0.6em;
    flex-grow: 1;
    border-radius: 0.8em;
}

.activity__card-controls-btn:last-child {
    margin-right: 0;
}

.activity__card-controls-icon-text {
    display: none;
}

@media screen and (min-width: 768px) {
    .activities__form {
        max-width: 80%;
    }
    
    .activities__field-wrapper {
        flex-direction: row;
    }

    .activities__field {
        margin-right: 1.5em;
    }

    .activities__field:last-of-type {
        margin-right: 0;
    }
    .activity-display__cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 1em;
    }

    .activity__card {
        margin: unset;
    }
}

@media screen and (min-width: 1050px) {
    .activity__card-controls-icon-text {
        display: inline;
    }

    .activity__card-controls-icon {
        margin-right: 0.5em;
    }
}

/* ====================
 EDIT ACTIVITY, ADD ACTIVITY & ACTIVITY DETAILS - update.html, add.html, details.html
======================= */
.activity__btn-back {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 3em;
}

.activity__title {
    margin-bottom: 0.6em;
}

.activity__field-input {
    position: relative;
}

.activity__field-select {
    padding-right: 2em;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.select-custom-dropdown {
    display: block;
    background: transparent;
    height: 100%;
    width: 2rem;
    position: absolute;
    top: 35%;
    right: 0.5em;
    pointer-events: none
}

.select-custom-dropdown:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 0.7em solid transparent;
    border-right: 0.7em solid transparent;
    border-top: 0.7em solid #131313;
}

.btn--activity {
    background: var(--btn-bright);
    color: #FFF;
}

.btn--activity:hover, .btn--activity:focus {
    background: var(--btn-bright-hover);
    color: #FFF;
}

/* details.html */

.activity__content {
    margin-top: 2em;
}

.activity__content-group {
    margin-bottom: 1.2em;
}

.activity__content-label {
    font-size: 1.4rem;
}

.activity__content-data {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

@media screen and (min-width: 650px) {
    .activity {
        max-width: 650px;
        margin: 0 auto;
    }

    .activity__form-float {
        display: flex;
    }

    .activity__float-field {
        margin-right: 1.5em;
        width: 100%;
    }

    .activity__float-field:last-child {
        margin-right: 0;
    }
}

/* ====================
 ACTIVITY LOG - log.html
======================= */
.activity--log {
    max-width: 1000px;

}

.activity-log__header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.activity-log__table-wrapper {
    width: 100%;
    margin-top: 2em;
}

.activity-log__table-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.activity-log__table-header-wrapper {
    display: none;
}

.activity-log__table-header {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 2fr;
    gap: 1em;
}


.activity-log__table-heading {
    font-size: 1.1rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

.activity-log__entry {
    font-size: 1.1rem;
    width: 100%;
    padding: 1em 0.5em;
    border-bottom: 2px solid var(--border-light);
    max-width: 400px;
    
}

.activity-log__entry:hover, .activity-log__entry:focus {
    background: var(--bg-cell-hover);
}

.activity-log__entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-log__entry-data {
    font-weight: 700;
    margin-bottom: 0.5em;
}

.activity-log__entry-label {
    font-weight: 400;
}

.activity__entry-status-completed {
    background: var(--bg-completed);
}

.activity__entry-status-notcompleted {
    background: var(--bg-notcompleted);
}

.activity-log__entry-controls {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 1em;
}

.activity-log__controls-btn {
    margin-right: 0.6em;
    width: 100%;
    flex-grow: 1;
    border-radius: 0.8em;
}

.activity-log__controls-btn:last-child {
    margin-right: 0;
}

.activity-log__controls-btn-text {
    display: none;
}

@media screen and (min-width: 768px) {
    .activity-log__controls-icon {
        margin-right: 0.5em;
    }

    .activity-log__controls-btn-text {
        display: inline;
    }
}

@media screen and (min-width: 968px) {
    .activity-log__table-header-wrapper {
        display: block;
    }

    .activity-log__header {    
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .activity-log__entry {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 2fr;
        gap: 1em;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 0;
        max-width: 100%;
    }

    .activity-log__entry-data {
        font-weight: 400;
        margin-bottom: 0;
    }

    .activity-log__entry-label {
        display: none;
    }

    .activity-log__entry-controls {
        margin-top: 0;
    }

    .activity-log__controls-icon {
        margin: unset;
    }
    
    .activity-log__controls-btn-text {
        display: none;
    }
}

/* ====================
 Profile - profile.html 
======================= */
.profile__title {
    text-align: center;
}

.profile__header {
    margin-top: 2.1em;
}

.profile__heading {
    font-size: 1.25rem;
    margin-bottom: 0.5em;
}

.profile__heading:last-child {
    margin-bottom: 0;
}

.profile__heading-data {
    font-weight: 700;
}

.profile__data-wrapper {
    margin-top: 3em;
}

.profile__data-group {
    margin-bottom: 2em;
}

.profile__data-group:last-child {
    margin-bottom: 0;
}

.profile__data-heading {
    margin-bottom: 1.2em;
}

.profile__data-heading-title {
    font-family: 'Zilla Slab', serif;
    font-size: 2.1rem;
    padding-bottom: 0.1em;
    border-bottom: 4px solid var(--border-dark);
}

.profile__data {
    margin-bottom: 0.3em;
    font-size: 1.2rem;
}

/* ====================
 FOOTER
======================= */
footer {
    text-align:center;
    padding: 1.3em 1em;
    background: var(--black);
    color: #FFF;
    flex-shrink: 0;
}

.footer__link {
    color: #FFF;   
}

@media screen and (min-width: 968px) {
    footer {
        display: none;
    }
}
