@import url('global.css');

/* ======================================================================= */
/* 🔵🔵🔵 Web fonts 🔵🔵🔵 */
/* ======================================================================= */

/* ======================================================================= */
/* BRO >> Medium */
/* ======================================================================= */

@font-face {
	font-family: 'bro-medium';
	src: url('/static/fonts/bro-medium.woff2') format('woff2'),
	     url('/static/fonts/bro-medium.woff') format('woff');
	font-weight: normal !important;
	font-style: normal !important;
    line-gap-override: 0 !important;
}

/* ======================================================================= */
/* PLC >> Light */
/* ======================================================================= */

@font-face {
	font-family: 'plc-light';
	src: url('/static/fonts/plc-light.woff2') format('woff2'),
	     url('/static/fonts/plc-light.woff') format('woff');
	font-weight: normal !important;
	font-style: normal !important;
    line-gap-override: 0 !important;
}

/* ======================================================================= */
/* PLC >> Regular */
/* ======================================================================= */

@font-face {
	font-family: 'plc-regular';
	src: url('/static/fonts/plc-regular.woff2') format('woff2'),
	     url('/static/fonts/plc-regular.woff') format('woff');
	font-weight: normal !important;
	font-style: normal !important;
    line-gap-override: 0 !important;
}

/* ======================================================================= */
/* PLC >> Medium */
/* ======================================================================= */

@font-face {
	font-family: 'plc-medium';
	src: url('/static/fonts/plc-medium.woff2') format('woff2'),
	     url('/static/fonts/plc-medium.woff') format('woff');
	font-weight: normal !important;
	font-style: normal !important;
    line-gap-override: 0 !important;
}

/* ============================================== */
/* ============================================== */
/* 🔮🔮 HTML + BODY STYLES 🔮🔮 */
/* ============================================== */
/* ============================================== */

/* 🔮🔮 HTML 🔮🔮 */

.page {
    background-color: white;
}

/* 🔮🔮 BODY 🔮🔮 */

#page-div {
    background-color: white;
    font-family: 'plc-regular', sans-serif;
    color: #011933;
    font-size: 18px;
    height: 100%;
    min-height: 100vh;
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
    display: block;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 100px;
}

/* H1, H2 */
h1, h2 {
    font-family: 'bro-medium', sans-serif;
    font-size: 28px;
    line-height: 1.2;
    color: #011933;
    margin-bottom: 30px;
}

@media only screen and (min-width: 700px) {
    h1, h2 {
        font-size: 34px;
    }
}

#text-div {
    margin-top: 55px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

@media only screen and (min-width: 700px) {
    #text-div {
        padding-left: 45px;
        margin-top: 100px;
    }
}

#text-div p {
    font-family: 'plc-light', sans-serif;
    font-size: 19px;
    color: #4d6076;
    line-height: 1.5;
    margin-top: 16px;
    margin-bottom: 10px;
}

@media only screen and (min-width: 700px) {
    #text-div p {
        padding-right: 30px;
    }
}

#footer-color-block {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    background-color: #050F1A;
    height: 10px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;   
}

#footer-color-block-inner-1 {
    background-color: #050F1A;
    height: 100%;
    width: 52%;
}

@media only screen and (min-width: 700px) {
    #footer-color-block-inner-1 {
        width: 70%;
    }
}

#footer-color-block-inner-4 {
    background-color: #3EFFE1;
    height: 100%;
    width: 16%;
}

@media only screen and (min-width: 700px) {
    #footer-color-block-inner-4 {
        width: 10%;
    }
}

#footer-color-block-inner-3 {
    background-color: #e4dbcf;
    height: 100%;
    width: 16%;
}

@media only screen and (min-width: 700px) {
    #footer-color-block-inner-3 {
        width: 10%;
    }
}

#footer-color-block-inner-2 {
    background-color: #f6d6dc;
    height: 100%;
    width: 16%;
}

@media only screen and (min-width: 700px) {
    #footer-color-block-inner-2 {
        width: 10%;
    }
}

#email-div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@media only screen and (min-width: 700px) {
    #email-div {
        flex-direction: row;
        width: 430px;
        transform: translateX(-20px);
    }
}

/* Text input */
#email-div input[type="email"],
#email-div input[type="password"],
#email-div input[type="number"],
#email-div input[type="date"],
#email-div input[type="time"] {
    display: block;
    width: 100%;
    max-width: 340px;
    height: 44px;
    padding: 4px 10px;
    font-family: 'plc-regular', sans-serif;
    font-size: 18px;
    line-height: 2.4;
    color: #011933;
    background-color: #ebecf1;
    border: none;
    border-radius: 7px;
    caret-color: #011933;
    outline: none;
    transition: background-color 0.2s ease-in, border-color 0.2s ease-in;
}

@media only screen and (min-width: 700px) {
    #email-div input[type="email"],
    #email-div input[type="password"],
    #email-div input[type="number"],
    #email-div input[type="date"],
    #email-div input[type="time"] {
        max-width: 300px;
        height: 36px;
    }
}

/* Text input (🌪️ HOVER) */
#email-div input[type="email"]:hover,
#email-div input[type="password"]:hover,
#email-div input[type="number"]:hover,
#email-div input[type="date"]:hover,
#email-div input[type="time"]:hover {
    background-color: #dfdfe6;
}

/* Text input (⚡️ FOCUS) */
#email-div input[type="email"]:focus,
#email-div input[type="password"]:focus,
#email-div input[type="number"]:focus,
#email-div input[type="date"]:focus,
#email-div input[type="time"]:focus {
    border: solid;
    outline: none;
    border-width: 2px;
    border-color: #affff3;
    background-color: white;
    transition: background-color 0.2s ease-in;
}

#email-div input::placeholder {
    color: #011933;
    font-family: 'plc-regular', sans-serif;
    font-size: 18px;
    opacity: 0.3;
}

#email-div button {
    background-color: #affff3;
    color: #011933;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 7px;
    height: 44px;
    width: 100%;
    max-width: 340px;
    border: none;
    cursor: pointer;
    transition: background-color 0.4s ease-in-out;
    font-size: 18px;
    font-family: 'plc-regular', sans-serif;
}

@media only screen and (min-width: 700px) {
    #email-div button {
        max-width: 130px;
        height: 36px;
    }
}

#email-div button:hover {
    background-color: #3EFFE1;
}

#email-div button:active {
    background-color: #3EFFE1;
}

#email-div button:focus {
    outline: none;
}

/* ============================================== */
/* ============================================== */
/* 🔮🔮 HEADER AND MENU / NAV 🔮🔮 */
/* ============================================== */
/* ============================================== */

/* 🔮🔮 HEADER DIV 🔮🔮 */

#header-div {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center; 
    min-height: 50px;
    padding-top: 10px;
}

/* 🔮🔮 HEADER LOGO 🔮🔮 */

a.website-logo {
    display: block;
    margin-right: auto;
}

#website-logo {
    height: 30px;
    transform: translateY(-1px);
}

@media only screen and (min-width: 700px) {
    #website-logo {
        height: 26px;
        transform: translateY(-2px);
    }
}

/* 🔮🔮 NAV DIV 🔮🔮 */

#nav-div {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

/* 🔮🔮 MENU (MOBILE) 🔮🔮 */

/* MENU DIV HIDDEN (MOBILE) */
.menu-div {
    display: none;
}

/* MENU DIV OPEN (MOBILE) */
.menu-div-mobile-open {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/* MENU LINKS (MOBILE) */
.menu-div-mobile-open > .menu-link {
    font-family: 'plc-regular', sans-serif;
    color: white;
    display: block;
    padding-left: 0px;
    margin-left: 0px;
    padding-right: 0px;
    padding-bottom: 30px;
    text-align: center;
    font-size: 32px;
}

/* LOGIN MENU ITEM (MOBILE) */
.menu-div-mobile-open > #login-button {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    font-family: 'plc-regular', sans-serif;
    color: white;
    display: block;
    padding-left: 0px;
    padding-right: 0px;
    text-align: center;
    font-size: 32px;
}

.menu-div-mobile-open > #login-button:hover {
    background-color: #050F1A;
    color: white;
}

/* MENU DIV MARGIN TOP (MOBILE OPEN) */
.menu-div-mobile-open > a:first-child {
    margin-top: 30%;
}

/* NO SCROLL WHEN MENU OPEN (MOBILE) */
.no-scroll {
    overflow: hidden;
}

/* OVERRIDE ::after STYLES WHEN MENU IS OPEN (MOBILE) */
.menu-div-mobile-open > .menu-link::after {
    content: none;
}

/* 🔮🔮 MENU (DESKTOP) 🔮🔮 */

/* MENU LINKS (DESKTOP) */
.menu-link {
    font-family: 'plc-regular', sans-serif;
    font-size: 20px;
    text-decoration: none;
    color: #011933;
    z-index: 12;
    padding-top: 8px;
    margin-left: 30px;
    position: relative;
}

@media only screen and (min-width: 700px) {
    .menu-link {
        font-size: 18px;
        padding-top: 3px;
    }
}

/* LOGIN MENU ITEM (DESKTOP) */
#login-button {
    background-color: #050F1A;
    transition: background-color 0.4s ease-in-out;
    font-family: 'plc-light', sans-serif;
    font-size: 20px;
    color: white;
    margin-left: 30px;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 5px;
    padding-bottom: 7px;
    border-radius: 7px;
    text-decoration: none;
    line-height: 1;
}

@media only screen and (min-width: 700px) {
    #login-button {
        font-size: 16px;
        background-color: #011933;
    }
}

@media only screen and (min-width: 700px) {
    #login-button:hover {
        background-color: #06294e;
    }
}

/* MENU LINKS HOVER ANIMATION (DESKTOP) */
.menu-link:after {
    content: '';
    width: 0px;
    height: 3px;
    background: #3EFFE1;
    position: absolute;
    left: 0;
    bottom: -3px;
    transition: 0.4s;
}

.menu-link:hover::after {
    width: 100%;
}

/* 🔮🔮 MOBILE MENU 🔮🔮 */

/* MENU ANIMATION (OPEN) */
.menu-div.menu-div-mobile-open {
    animation: bg-color-change-open .3s ease-out;
    animation-fill-mode: forwards;
}

/* MENU ANIMATION (CLOSED) */
html.menu-div-mobile-closed {
    animation: bg-color-change-close .4s ease-out;
    animation-fill-mode: forwards;
}

/* SWITCH FROM MOBILE TO DESKTOP (SHOW NAV MENU ITEMS, HIDE BURGER) */
@media only screen and (min-width: 700px) {
    .menu-div {display: flex;}
    #burger-div {display: none;}
}

/* 🔮🔮 BURGER ELEMENT (FOR MOBILE MENU) 🔮🔮 */

/* BURGER DIV */
#burger-div {
    height: 22px;
    width: 32px;
    z-index: 11;
}

/* BURGER TOP (BAR) */
#burger-top {
    width: 32px;
    height: 3px;
    background-color: #011933;
    border-radius: 28px;
}

/* BURGER BOTTOM (BAR) */
#burger-bottom {
    width: 32px;
    height: 3px;
    background-color: #011933;
    border-radius: 28px;
    margin-top: 16px;
}

/* BURGER ANIMATION */
#burger-div.clicked > #burger-top {
    animation: top-open-move .3s, top-open-rotate .3s .3s;
    animation-fill-mode: forwards;
    background-color: white;
}

#burger-div.clicked > #burger-bottom {
    animation: bottom-open-move .3s, bottom-open-rotate .3s .3s;
    animation-fill-mode: forwards;
    background-color: white;
}

/* CHANGED: Replaced the two separate animations with a single sequence */
#burger-div.unclicked > #burger-top {
    translate: 0px 8px;
    animation: top-closed-sequence .6s linear;
    animation-fill-mode: forwards;
}

/* CHANGED: Replaced the two separate animations with a single sequence */
#burger-div.unclicked > #burger-bottom {
    translate: 0px -11px;
    animation: bottom-closed-sequence .6s linear;
    animation-fill-mode: forwards;
}

/* OPEN */
@keyframes top-open-rotate {
    100% {rotate: 45deg}
}

@keyframes top-open-move {
    100% {translate: 0px 8px}
}

@keyframes bottom-open-move {
    100% {translate: 0px -11px}
}

@keyframes bottom-open-rotate {
    100% {rotate: -45deg}
}

/* CLOSE - REPLACED these four keyframes... */
/* @keyframes top-closed-rotate {
    0% {rotate: 45deg}
}
@keyframes top-closed-move {
    100% {translate: 0px 0px}
}
@keyframes bottom-closed-move {
    100% {translate: 0px 0px}
}
@keyframes bottom-closed-rotate {
    0% {rotate: -45deg}
} */

/* Adjust the keyframe timing to match the open animation sequence */
@keyframes top-closed-sequence {
    0%, 33% { 
        translate: 0px 8px;
        rotate: 45deg;
    }
    33%, 66% { 
        translate: 0px 8px;
        rotate: 0deg;
    }
    100% {
        translate: 0px 0px;
        rotate: 0deg;
    }
}

@keyframes bottom-closed-sequence {
    0%, 33% { 
        translate: 0px -11px;
        rotate: -45deg;
    }
    33%, 66% { 
        translate: 0px -11px;
        rotate: 0deg;
    }
    100% {
        translate: 0px 0px;
        rotate: 0deg;
    }
}

@keyframes bg-color-change-open {
    to {background-color: #050F1A;}
}

@keyframes bg-color-change-close {
    from {background-color: #050F1A;}
    to {background-color: white;}
}