/* ==== global ==== */

:root {
    overscroll-behavior: none;
    --min-supported-screen-width: 320px;
    --clamped-vw: max(100vw, var(--min-supported-screen-width));
    --content-width: min(85%, 1632px); /* 1632px is 85% of a 1920px screen */
    --app-teal: #006072;
    --app-background: #FAFAFA;
    --app-gray: #D1D1D1;
    --navbar-height: 175px;
    --navbar-height-shrink: 125px;
    --navbar-height-mobile: 100px;
    --h1:   700 36px Lato, sans-serif;
    --h2:   400 32px Lato, sans-serif;
    --h3:   700 18px Inter, sans-serif;
    --h4:   400 18px Lato, sans-serif;
    --h5:   400 12px Lato, sans-serif;
    --body: 400 20px Lato, sans-serif;
    --h1-phone: 600 24px Quicksand, sans-serif;
    --h3-phone: 700 16px Inter, sans-serif;
    --body-phone: 400 16px Lato, sans-serif;
}
@media(max-width: 1024px) {
    :root {
        --content-width: 90%;
    }
}
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
    user-select: none;  		/* Standard syntax */
    -webkit-user-select: none;	/* Safari */
    -ms-user-select: none;		/* IE 10 and IE 11 */
}
html, body {
    min-width: 320px;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}
body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
main {
    width: var(--content-width);
    margin-top: var(--navbar-height);
    flex: 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
h1 { font: var(--h1) }
h2 { font: var(--h2) }
h3 { font: var(--h3) }
h4 { font: var(--h4) }
h5 { font: var(--h5) }
a {
    text-decoration: none;
    color: black;
}
button {
    width: fit-content;
    height: fit-content;
    border: none;
    outline: none;
    background-color: transparent;
    font-family: inherit;
    font-size: 100%;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
p, li { font: var(--body) }
input, select, textarea {
    width: 100%;
    padding: 9px;
    border: 1px solid #eeeeee;
    font: var(--h5);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--app-teal);
}
input::placeholder {
    color: #bbbbbb;
}
/* prevent Chrome from making form input field background gray when autofilled by the browser */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
@media(max-width: 1024px) {
    p, li { font: var(--body-phone); }
}

/* ==== custom elements ==== */

.app-dark-round-button,
.app-light-round-button,
.app-dark-square-button,
.app-light-square-button {
    position: relative;
    /* z-index: -1; */
    padding: 5px 30px;
    font: var(--h3);
    outline: 2px solid var(--app-teal);
    outline-offset: -2px;
}
.app-dark-round-button,
.app-dark-square-button {
    background-color: var(--app-teal);
    color: white;
}
.app-light-round-button,
.app-light-square-button {
    background-color: white;
    color: var(--app-teal);
}
.app-dark-round-button,
.app-light-round-button {
    border-radius: 999em;
}
.app-dark-round-button:hover,
.app-light-round-button:hover,
.app-dark-square-button:hover,
.app-light-square-button:hover {
    outline-offset: -1px;
}
.app-dark-round-button:active,
.app-light-round-button:active,
.app-dark-square-button:active,
.app-light-square-button:active {
    outline-offset: -2px;
}
.app-loading span {
    visibility: hidden;
    opacity: 0;
}
.app-loading::after {
    content: '';
    position: absolute;
    height: 70%;
    aspect-ratio: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    stroke-linecap: round;
    animation: loading-spinner 1s ease infinite;
}
@keyframes loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}
.epta-spinner {
    width: 40px;
    height: 40px;
    margin: auto;
    margin-top: 40px;
    border: 4px solid var(--app-teal);
    border-top-color: transparent;
    border-radius: 50%;
    stroke-linecap: round;
    animation: loading-spinner 0.8s cubic-bezier(0.3, 0, 0.8, 1.0) infinite;
}

/* ==== navbar ==== */

.navbar {
    width: 100%;
    height: var(--navbar-height);
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
    transition: 0.5s;
}
.navbar.shrink {
    height: var(--navbar-height-shrink);
}
.navbar__container {
    width: var(--content-width);
    height: 100%;
    margin: auto;
    position: relative;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: start;
    transition: 0.4s;
}
.navbar__nav-logo {
    height: 120px;
    margin-top: 33px;
    transition: 0.5s;
}
.navbar.shrink .navbar__nav-logo {
    height: 80px;
}
.epta-logo {
    height: 100%;
}
.navbar__items--container {
    display: flex;
    gap: 20px;
}
.navbar__items {
    margin-top: 68px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.navbar__items a {
    font: var(--h3)
}
.navbar__item--signin,
.mobile-signin {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999em;
    background-color: #006072;
    border: none;
    cursor: pointer;
}
.navbar__item--signedin {
    margin-top: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 45px;
    height: 32px;
    background-color: #006072;
    border: none;
    border-radius: 999em;
    padding: 4px;cursor: pointer;
}
.navbar__item--signedin-inner-div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: white;
    color: #006072;
    font-family: Lato, sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
}
.navbar__item--signedin-chevron {
    width: 5px;
    height: 5px;
    border-left: 1px white solid;
    border-bottom: 1px white solid;
    transform: rotate(-45deg);
    margin-right: 3px;
}
.navbar__hamburger-icon {
    display: none;
}
@media (max-width: 1024px) {
    .navbar,
    .navbar.shrink {
        height: var(--navbar-height-mobile);
    }
    .navbar__nav-logo,
    .navbar.shrink .navbar__nav-logo {
        height: 56px;
        margin-top: 22px;
    }    
    .navbar__items--container {
        gap: 8px;
    }
    .navbar__items {
        display: none;
    }
    .navbar__item--signedin {
        margin-top: 34px;
    }
    .navbar__hamburger-icon {
        display: flex;
    }
    main {
        margin-top: var(--navbar-height-mobile);
    }    
}
@media (max-width: 640px) {
    .navbar__nav {
        padding: 16px 16px;
    }
}

/* ==== navbar-mobile ==== */

:root {
    --bar-width: 25px;
    --bar-height: 2px;
    --hamburger-gap: 5px;
    --hamburger-timing: 0.7s ease-in-out;
    --hamburger-height: calc(var(--bar-height) * 3 + var(--hamburger-gap) * 2);
    --x-width: calc(var(--hamburger-height) * 1.41421356237);
}
.navbar__hamburger-icon {
    flex-direction: column;
    gap: var(--hamburger-gap);
    cursor: pointer;
    margin-top: 32px; /* 42px in design minus 10px from padding below */
    padding: 10px; /* for bigger tap bounding box */
}
.navbar__hamburger-icon::before,
.navbar__hamburger-icon::after,
.navbar__hamburger-icon-content {
    content: "";
    width: var(--bar-width);
    height: var(--bar-height);
    background-color: black;
    border-radius: 999px;
    transform-origin: left center;
    transition: var(--hamburger-timing);
}
/* JS toggled */
.cross > .navbar__hamburger-icon-content
{
    opacity: 0;
}
/* JS toggled */
.cross.navbar__hamburger-icon::before
{
    rotate: 45deg;
    width: var(--x-width);
    translate: 0 calc(var(--bar-height) / -2);
}
/* JS toggled */
.cross.navbar__hamburger-icon::after
{
    rotate: -45deg;
    width: var(--x-width);
    translate: 0 calc(var(--bar-height) / 2);
}
.mobile-nav-wrap {
    display: none;
    position: fixed;
    top: -500px;
    right: 0;
    z-index: 8;
    transition: var(--hamburger-timing);
    filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.5));
}
/* JS toggled */
.mobile-nav-wrap.show-mobile-nav {
    top: 0;
    transition: var(--hamburger-timing);
}
.mobile-nav {
    display: flex;
    width: 320px;
    flex-direction: column;
    align-items: center;
    /* gap: 30px; */
    background-color: white;
    padding-top: 150px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 50% 100%, 0 calc(100% - 40px));
}
.mobile-nav_scroll-container {
    max-height: calc(100dvh - 220px);
    overflow-y: auto;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.hamburger__arrow {
    background-color: var(--app-teal);
    width: 100%;
    height: 60px;
    clip-path: polygon(0 0, 50% 40px, 100% 0, 100% 100%, 0 100%);
}
.mobile-nav_scroll-container > a {
    text-decoration: none;
    color: black;
    font: 700 18px Inter, sans-serif;
}
.navbar__items a:hover,
.navbar__items a:active,
.navbar__items a.active,
.mobile-nav a:hover,
.mobile-nav a:active,
.mobile-nav a.active {
    color: #006072;
}
.mobile-nav__signedin-button:hover,
.mobile-nav__signedin-button:active,
.mobile-nav__signedin-button.active {
    color: #006072;
    background-color: white;
    outline: 3px #006072 solid;
    outline-offset: -3px;
}
@media (max-width: 1024px) {
    .navbar__hamburger-icon {
        display: flex;
    }
    .mobile-nav-wrap {
        display: block;
    }
    .mobile-nav {
        display: flex;
    }
}
@media (max-width: 360px) {
    .mobile-nav-wrap {
        left: 0;
    }
    .mobile-nav {
        width: var(--clamped-vw);
    }
}

/* ==== sign-in ==== */

.sign-in {
    display: none;
    position: absolute;
    z-index: 9;
    right: 0;
    top: 95%;
    background-color: white;
    width: 345px;
    padding: 20px;
    border-radius: 5px;
    border: 1px rgba(0, 0, 0, .25) solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}
/* JS */
.show-signin {
    display: block;
}
.sign-in__create-account {
    color: #006072;
    text-decoration: none;
}
.sign-in__create-account:hover {
    text-decoration: underline;
}
.sign-in__form {
    display: flex;
    flex-direction: column;
}
.sign-in__email, .sign-in__password {
    width: 100%;
    padding: 9px 32px;
    border: 1px var(--app-gray) solid;
    font-family: Lato, sans-serif;
    font-weight: 400;
    font-size: 12px;
}
.sign-in__email:focus, .sign-in__password:focus {
    outline-style: none;
    box-shadow: none;
    border-color: #006072;
}
.red-border {
    border-color: red;
}
.sign-in__email-container, .sign-in__password-container {
    position: relative;
}
.sign-in__form svg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.sign-in__email-container {
    margin-top: 26px;
    margin-bottom: 10px;
}
.sign-in__password-container {
    margin-bottom: 2px;
}
.envelope-icon {
    left: 10px;
}
.padlock-icon {
    left: 11px;
}
.signin-eye-icon {
    right: 11px;
    cursor: pointer;
}
.sign-in__forgot-password {
    align-self: flex-end;
    margin-bottom: 7px;
    color: #006072;
    font: 400 12px Lato, sans-serif;
    cursor: pointer;
}
.sign-in__forgot-password:hover {
    text-decoration: underline;
}
.sign-in__error-message {
    padding-bottom: 13px;
    color: red;
    font: 400 12px Lato, sans-serif;
}
.sign-in__sign-in-button {
    position: relative;
    align-self: end;
    width: auto;
    padding: 5px 15px;
    background-color: #006072;
    border-radius: 999em;
    border: none;
    outline: none;
    cursor: pointer;
}
.sign-in__sign-in-button span {
    color: white;
    font: 700 18px Inter, sans-serif;
    transition: all 0.2s;
}
@media (max-width: 380px) {
    .sign-in {
        width: 100%;
    }
}

/* ==== signed-in ==== */

.signed-in {
    display: none;
    position: absolute;
    width: 345px;
    max-height: calc(100dvh - 95% - 15px);
    overflow-y: auto;
    z-index: 9;
    right: 0;
    top: 95%;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    border: 1px rgba(0, 0, 0, .25) solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}
/* JS */
.show-signedin {
    display: block;
}
.signed-in__top {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid var(--app-gray);
    padding-bottom: 29px;
}
.signed-in__top--icon {
    width: 80px;
    height: 80px;
    background-color: #006072;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font: 400 32px Lato, sans-serif;
    text-transform: uppercase;
}
.signed-in__top--info {
    display: flex;
    flex-direction: column;
    justify-content: end;
}
.signed-in__top--name {
    text-transform: capitalize;
    font-family: Lato, sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 3px;
}
.signed-in__top--email {
    text-transform: lowercase;
    font-family: Lato, sans-serif;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 12px;
}
.signed-in__top--manage-account {
    color: black;
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: 400;
}
.signed-in__top--manage-account:hover {
    text-decoration: underline;
}
.signed-in__middle {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--app-gray);
}
.signed-in__middle--subscription {
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}
.signed-in__middle--due-date {
    font-family: Lato, sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 16px;
}
.signed-in__middle--renew-now {
    align-self: flex-end;
    padding: 5px 15px;
}
.signed-in__bottom {
    padding-top: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--app-gray);
}
.signed-in__bottom--my-piano-journal {
    font: 700 18px Inter, sans-serif;
    margin-bottom: 2px;
}
.signed-in__bottom--view {
    color: black;
    font: 400 14px Lato, sans-serif;
}
.signed-in__bottom--view:hover {
    text-decoration: underline;
}
.signed-in__admin-portal {
    padding-top: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--app-gray);
    font: 400 18px Lato, sans-serif;
}
.signed-in__admin-portal--header {
    font: 700 18px Inter, sans-serif;
    margin-bottom: 2px;
}
.signed-in__admin-portal--view {
    color: black;
    font: 400 14px Lato, sans-serif;
}
.signed-in__sign-out button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    margin-top: 20px;
    font: 400 18px Lato, sans-serif;
}
.signed-in__sign-out button:hover {
    text-decoration: underline;
}
@media(max-width: 1024px) {
    .signed-in {
        right: 54px;
    }
}
@media(max-width: 500px) {
    .signed-in {
        right: 0;
        width: 100%;
    }
}
@media (max-width: 380px) {
    .signed-in {
        width: 100%;
        /* right: 50%;
        transform: translateX(50%); */
        /* width: 70vw; */
    }
}

/* ==== hero ==== */
.hero {
    position: relative;
    width: 100%;
    height: 200px;
}
.hero__image {
    width: calc(100% - 478px);
    height: 100%;
    background-position: bottom;
    background-size: cover;
    clip-path: polygon(0 0, calc(100% - 250px) 0, 100% 100%, 0 100%);
}
.hero__right {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    top: 0;
    right: 0;
    width: 720px;
    height: 100%;
    padding: 35px 30px 21px 0;
    background-color: #006072;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 250px 100%);
    color: white;
    text-align: right;
}
.hero__title {
    font: 700 36px 'Lato', sans-serif;
}
.hero__contact-us-button {
    outline-color: white;
}
@media(max-width: 1024px) {
    .hero {
        width: 100vw;
        height: 135px;
    }
    .hero__image {
        width: calc(100% - 198px);
        clip-path: polygon(0 0, calc(100% - 180px) 0, 100% 100%, 0 100%);
    }
    .hero__right {
        width: 370px;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 180px 100%);
        padding: 17px 16px 25px 0;
    }
    .hero__title {
        font-size: 18px;
    }
}

/* ==== footer ==== */

.footer {
    width: 100%;
    padding: 36px 0;
    background: black;
}
.footer__container {
    width: var(--content-width);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer_logo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.footer__logo .epta-logo {
    height: 114px;
    width: 154px;
}
.footer__logo path {
    fill: white;
}
.footer__logo .epta-logo-e-fill {
    fill: black;
}
.footer__charity {
    color: white;
    font: 400 12px Lato, sans-serif;
    margin-top: 10px;
}
.footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.footer a {
    color: white;
    text-decoration: none;
    font: 400 18px Lato, sans-serif;
}
.footer__logo {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
@media (max-width: 1024px) {
    .footer {
        padding: 10px 0;
    }
    .footer__logo .epta-logo {
        width: 68px;
        height: 50px;
    }
    .footer__charity {
        font-size: 6px;
    }
    .footer__links {
        gap: 16px;
    }
    .footer a {
        font-size: 8px;
    }
}