@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:wght@100..800&family=Red+Hat+Mono:ital,wght@0,300..700;1,300..700&family=Saira:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
    background: var(--bg);
    color: var(--text);
    margin: 0 auto; 
}

.grid {
    display: grid;
}



/** STYLE FOR THE TITLE **/
.title-container > h1 {
    color: #00aeff;
    font-family: "Saira", sans-serif;
    
}

/** STYLE FOR THE LINKBAR - MOBILE **/
#linkbar-mobile {
    display: grid;
    gap: .25rem;
    padding: .25rem .5rem;
    /* animation state (closed) */
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    overflow: hidden;
    pointer-events: none; 
    grid-area: 2 / span 4; 
}

#linkbar-mobile.open {
    opacity: 1;
    transform: translateY(0);
    max-height: 40vh;;
    pointer-events: auto;
    grid-area: 2 / span 4; 
}

/*** GENERAL WRITTEN CONTENT STYLES ***/
.content-container {
    padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom, 10px));
}




.content-container > p {
    color: var(--text);
    font-family: "Saira", sans-serif;
    font-size: 1em; 
}

.content-container > h1 {
    color: var(--text);
    font-family: "Saira", sans-serif;
    font-size: 2em; 
}


/*** GENERAL LINKBAR STYLES **/ 
.links-container > a {
    margin: 1em; 
    color: var(--text);
    font-size: 1.25em; 
    font-family: "Saira", sans-serif;
}


/*** STYLE FOR THE FOOTER CONTAINER ***/
.footer-container {
    background: var(--bg);
    position: sticky;
    padding: 2em; 
    bottom: 0; 
    left: 0; 
    right: 0; 


    
    /*
    position: fixed;
    height: var(--footer-h); 
    z-index: 1000; 
    padding: 2em;
    bottom: 0;
    left: 0;
    right: 0;
    */ 
}

.footer-container > p {
    font-size: 1em; 
    font-family: "Saira", sans-serif;
    color:var(--text);
}


@media (prefers-reduced-motion: no-preference) {
   body {
        transition: background-color .25s, color .25s, border-color .25s; 
   }
   #linkbar-mobile {
        transition:
            opacity .25s ease,
            transform .25s ease,
            max-height .3s ease; 
    }
}

/*** LIGHT-DARK MODE TOGGLER QUERIES ***/
:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #6b7280;
    --card: #f6f7f9;
    --border: #e5e7eb;
    --footer-h: 128px;
}

html[data-theme="dark"] {
    --bg: #0b1020;
    --text: #f4f6fb;
    --muted: #9aa3b2;
    --card: #121833;
    --border: #2a3350;
    color-scheme: dark; /* improves form controls in dark mode */
}


.theme-toggle {
    display: inline-flex;
    align-items: center; 
    gap: .5rem;
    padding: .55rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}

.theme-toggle:focus-visible {
    outline: 2px solid #6aa7ff;
    outline-offset: 2px;
}

.theme-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: inline-block;
    vertical-align: middle;
}



/** RESPONSIVE MEDIA QUERIES FOR DIFFERENT DEVICES **/
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
   
    .title-container { 
        text-align: left;
        grid-area: 1 / span 2;   
        padding: 2em; 
    }

    .title-container > h1 {
        font-size: 5em; 
    }

    .toggle-container {
        grid-area: 1 / span 2; 
        align-content: center;
        justify-content: center;
    }

    .toggler-button {
        background: none; 
        color: #00aeff;
        font-size: 5em;
        border: none; 
        width: 100%; 
        height: 100%;
        cursor: pointer;  
    }

    #linkbar-desktop {
        display: none; 
    }

    #linkbar-mobile {
        text-align: center;
    }


    /*** GENERAL WRITTEN CONTENT STYLES ***/
    .content-container {
        display: grid;
        grid-area: 3 / span 4; 
        padding: 2em;
    }



    .footer-container {
        text-align: left;
        grid-area: 4 / span 4; 
        bottom: 0; 
    }
}


/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .title-container {
        text-align: left; 
        grid-area: 1 / span 2; 
        padding: 2em;
     }


    .title-container > h1 {
        font-size: 6em; 
    }

    .toggle-container {
        grid-area: 1 / span 2; 
        align-content: center;
        justify-content: center;
    }

    .toggler-button {
        background: none; 
        color: #00aeff;
        font-size: 5em;
        border: none; 
        width: 100%; 
        height: 100%;
        cursor: pointer;  
    }

    #linkbar-desktop {
        display: none; 
    }


    #linkbar-mobile {
        text-align: center;
    }

        /*** GENERAL WRITTEN CONTENT STYLES ***/
    .content-container {
        display: grid;
        grid-area: 3 / span 4; 
        padding: 2em;
    }

    .footer-container {
        text-align: left;
        grid-area: 4 / span 4; 
        bottom: 0; 
    }
}


/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .title-container {
        text-align: left; 
        grid-area: 1 / span 2; 
        padding: 2em; 
     }

    .title-container > h1 {
        font-size: 6em; 
    }

    .toggle-container {
        grid-area: 1 / span 2; 
        align-content: center;
        justify-content: center;
    }

    .toggler-button {
        background: none; 
        color: #00aeff;
        font-size:5em;
        border: none; 
        width: 100%; 
        height: 100%;
        cursor: pointer;  
    }

    #linkbar-desktop {
        display: none; 
    }

    #linkbar-mobile {
        text-align: center;
    }


        /*** GENERAL WRITTEN CONTENT STYLES ***/
    .content-container {
        display: grid;
        grid-area: 3 / span 4; 
        padding: 2em;
    }


    .footer-container {
        text-align: left;
        grid-area: 4 / span 4; 
        bottom: 0; 
    }

}


/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .title-container {
        text-align: left; 
        grid-area: 1 / span 2; 
        padding: 2em;
     }

    .title-container > h1 {
        font-size: 6em; 
    }

    .toggle-container {
        display: none; 
    }

    .toggler-button {
        display: none; 
    }

    #linkbar-mobile {
        display: none; 
    }

    .links-container {
        display: grid;
        grid-area: 1 / span 2; 
        align-items: center; 
        align-content: end; 
        justify-content: end ;
    }



    #linkbar-desktop {
        display: inline-flex; 
    }


        /*** GENERAL WRITTEN CONTENT STYLES ***/
    .content-container {
        display: grid;
        grid-area: 3 / span 4; 
        padding: 2em;
    }

    .footer-container {
        text-align: left;
        grid-area: 4 / span 4; 
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .title-container {
        text-align: left; 
        grid-area: 1 / span 2; 
        padding: 2em;
    }
    

    .toggle-container {
        display: none; 
    }

    .toggler-button {
        display: none; 
    }

    #linkbar-mobile {
        display: none; 
    }

    .links-container {
        display: grid;
        grid-area: 1 / span 2; 
        align-items: center; 
        align-content: end; 
        justify-content: end ;
    }


    #linkbar-desktop {
        display: inline-flex; 
    }


    .footer-container {
        text-align: left;
        grid-area: 4 / span 4; 
    }
}



