:root {
    --dark-background: #033f74;
    --title: #b7b7b7;
    --background: #e6faff;
    --header: #123aa8;
    --body: #242323;
    --icons: #02123e;
    --logo-font: #3263eb;
}

@font-face {
    font-family: CathyCodes;
    src: url(assets/CathyCodes-1-Regular.otf);
}

body {
    font-family: Calibri, sans-serif;
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--background);
    font-weight: normal;
    font-family: CathyCodes, Calibri, sans-serif;
    font-size: 2rem;
}

.container {
    width: clamp(300px, 85vw, 1000px);
    margin: 0 auto;
    padding: 1rem;
}

h1 {
    margin: auto;
    color: var(--logo-font);
    font-size: 4rem;
    text-align: center;
    font-weight: normal;
    font-family: CathyCodes, Calibri, sans-serif;
}

h2 {
    color: var(--header);
    border-bottom: 2px solid var(--header);
    font-size: 2.5rem;
    text-align: left;
    font-weight: 600;
    font-family: CathyCodes, Calibri, sans-serif;
}

h3 {
    font-size: 1.4rem;
    margin: .1rem 0;
}

.btn {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    background-color: var(--logo-font);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 22pt;
    font-family: CathyCodes, Calibri, sans-serif;
}


/* ------------------ */
/* FOOTER STYLES      */
/* ------------------ */

.footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--icons);
    font-size: 0.9rem;
}

.footer img {
    height: 40px;
    width: auto;
}

.footer a {
    text-decoration: none;
}

/* ---------------------- */
/* NAVIGATION BAR STYLES  */
/* ---------------------- */

.nav-container {
    width: clamp(300px, 95vw, 1100px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.nav-links a:hover {
    text-decoration: underline;
}

.logo {
    width: clamp(100px, 25vw, 250px);
    padding: .5rem;
}

/* ------------------------- */
/* DESKTOP SPECIFIC BEHAVIOR */
/* ------------------------- */

@media (min-width: 701px) {
    .nav-links {
        display: flex;
        gap: 1.5rem;
    }

    .nav-links a {
        color: white;
        background-color: var(--dark-background);
        padding: 0.5rem 0.9rem;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 500;
    }

    /* Don't display hamburger bar on desktop */
    .hamburger {
        display: none;
    }
}

/* ------------------------ */
/* MOBILE SPECIFIC BEHAVIOR */
/* ------------------------ */

@media (max-width: 700px) {

    .hamburger {
        flex-direction: column;
        gap: 4px;
        display: flex;
        background-color: var(--dark-background);
        padding: 1rem;
        border-radius: 6px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: var(--dark-background);
        padding: 1rem;
        border-radius: 6px;
        margin: 1rem;
    }

    .nav-links a {
        padding: 0.5rem 0;
        text-decoration: none;
        color: white;
    }

    /* When menu is open (JS adds .nav-open) */
    .nav-links.nav-open {
        display: flex;
    }

    .bar1, .bar2, .bar3 {
        display: block;
        width: 28px;
        height: 4px;
        background: white;
        border-radius: 2px;
    }

    /* Change to X on click */
    .change .bar1 {
        transform: translate(0, 8px) rotate(-45deg);
    }

    .change .bar2 {
        opacity: 0;
    }

    .change .bar3 {
        transform: translate(0, -8px) rotate(45deg);
    }
    
}