/* Tablet and Desktops */
@media screen and (min-width: 769px) {
    :root {
    color-scheme: light dark;
    /* Define color variables for light and dark modes */
    /* NOTE: if resorting to fallback, force light mode */
    --main-bg-color: light-dark(#f7f2eb, #080d14);
    --home-graphic-color: light-dark(#0f3b67, #f0c498);
    --main-text-color: light-dark(#161616, #f0f0f0);
    --main-border-color: light-dark(#204a8c, #dfb573);
    --main-header-color: light-dark(#f7f2eb, #080d14);
    --link-highlight-color: light-dark(#7e1fea, #cce221);

    /*Define text size variables*/
    --header-font-size: 2rem;
    --subheader-font-size: 1.5rem;
    --graphic-font-size: 7rem;
    --paragraph-font-size: 1.5rem;
    --caption-font-size: 1rem;
    --nav-font-size: 1rem;
    --text-padding: 1rem;

    /* Define animation times */
    --fade-in-animation-time: 3s;
    --from-left-animation-time: 1s;

    /* Define margins and paddings variable */
    --media-padding: 0;

    /* Define media sizes */
    --media-width: 80vw;
    --media-height: auto;

    /* Define base font size for responsive scaling */
    font-size: 1dvw;
    }
}

/* Mobile Devices (Portrait): bigger link and font sizes for accessibility */
@media screen and (max-width: 768px) and (orientation: portrait) {
    :root {
    color-scheme: light dark;
    /* Define color variables for light and dark modes */
    /* NOTE: if resorting to fallback, force light mode */
    --main-bg-color: light-dark(#f7f2eb, #080d14);
    --home-graphic-color: light-dark(#0f3b67, #f0c498);
    --main-text-color: light-dark(#161616, #f0f0f0);
    --main-border-color: light-dark(#204a8c, #dfb573);
    --main-header-color: light-dark(#f7f2eb, #080d14);
    --link-highlight-color: light-dark(#7e1fea, #cce221);

    /*Define text size variables*/
    --header-font-size: 3rem;
    --subheader-font-size: 2rem;
    --graphic-font-size: 8rem;
    --paragraph-font-size: 2rem;
    --caption-font-size: 1rem;
    --nav-font-size: 2rem;
    --text-padding: 1rem;

    /* Define animation times */
    --fade-in-animation-time: 3s;
    --from-left-animation-time: 1s;

    /* Define margins and paddings variable */
    --media-padding: 0;

    /* Define media sizes */
    --media-width: 80vw;
    --media-height: auto;
    
    /* Define base font size for responsive scaling */
    font-size: 2dvw;
    }
}

/* Mobile Devices (Landscape): tone down sizes for consistent display */
@media screen and (max-width: 768px) and (orientation: landscape) {
    :root {
    color-scheme: light dark;
    /* Define color variables for light and dark modes */
    /* NOTE: if resorting to fallback, force light mode */
    --main-bg-color: light-dark(#f7f2eb, #080d14);
    --home-graphic-color: light-dark(#0f3b67, #f0c498);
    --main-text-color: light-dark(#161616, #f0f0f0);
    --main-border-color: light-dark(#204a8c, #dfb573);
    --main-header-color: light-dark(#f7f2eb, #080d14);
    --link-highlight-color: light-dark(#7e1fea, #cce221);

    /*Define text size variables*/
    --header-font-size: 2rem;
    --subheader-font-size: 1.5rem;
    --graphic-font-size: 6rem;
    --paragraph-font-size: 1.2rem;
    --caption-font-size: 1rem;
    --nav-font-size: 1.2rem;
    --text-padding: 1rem;

    /* Define animation times */
    --fade-in-animation-time: 3s;
    --from-left-animation-time: 1s;

    /* Define margins and paddings variable */
    --media-padding: 0;

    /* Define media sizes */
    --media-width: 80vw;
    --media-height: auto;
    
    /* Define base font size for responsive scaling */
    font-size: 2dvw;
    }
}


/* Custom Fonts */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Animations */
@keyframes fadeIn {
    0% { color: var(--main-bg-color, white); }
    100% { color: var(--home-graphic-color, darkblue); }
}
@keyframes fromLeft {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}


/* CSS reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Content */
body {
    font-family: 'Montserrat','Open Sans',sans-serif;
    background-color: var(--main-bg-color, white);
    display: flex;
    flex-direction: column;

    /* Ensure the body takes full viewport height so footer appears at the bottom*/
    min-height: 100vh;

    /* Prevent horizontal overflow */
    overflow-x: hidden;
    

    header {
        h1 {
            font-size: var(--header-font-size, 2rem);
            color: var(--main-header-color, white);
            border: 1rem solid var(--main-border-color, darkblue);
            background-color: var(--main-border-color, darkblue);
            min-width: 100vw;
        }
    }
    main {
        flex-grow : 1;
        /* Text Styles */
        h2 {
            margin: var(--subheader-font-size, 1rem);
        }
        .graphic {
            color: var(--home-graphic-color, darkblue);
            margin: 1rem;
            font-size: var(--graphic-font-size, 7rem);
            font-weight: bold;
            animation: fadeIn var(--fade-in-animation-time, 3s) forwards
        }

        p{
            color: var(--main-text-color, black);
            font-size: var(--paragraph-font-size, 1.5rem);
            padding: var(--text-padding, 1rem);
            /*Animation*/
            animation: fromLeft var(--from-left-animation-time, 0.5s) forwards;
        }
        p.wait{
            color: var(--main-text-color, black);
            font-size: var(--paragraph-font-size, 1.5rem);
            padding: var(--text-padding, 1rem);
            /*Animation*/
            opacity: 0;
            animation: fromLeft var(--from-left-animation-time, 0.5s) forwards;
            animation-delay: var(--from-left-animation-time, 0.5s);
        }
        p.wait2{
            color: var(--main-text-color, black);
            font-size: var(--paragraph-font-size, 1.5rem);
            padding: var(--text-padding, 1rem);
            /*Animation*/
            opacity: 0;
            animation: fromLeft var(--from-left-animation-time, 0.5s) forwards;
            animation-delay: calc(2 * var(--from-left-animation-time, 0.5s));
        }
        address {
            color: var(--main-text-color, black);
            font-size: var(--paragraph-font-size, 1.5rem);
            padding: var(--text-padding, 1rem);
            /*Animation*/
            opacity: 0;
            animation: fromLeft var(--from-left-animation-time, 0.5s) forwards;
        }
        form fieldset{
            border: 0px;
            font-size: var(--paragraph-font-size, 1.5rem);
            padding: var(--text-padding, 1rem);
            /*Animation*/
            opacity: 0;
            animation: fromLeft var(--from-left-animation-time, 0.5s) forwards;
            animation-delay: var(--from-left-animation-time, 0.5s);
        }

        /* Media Styles */
        figure {
            margin: 1rem;
            animation: fromLeft var(--from-left-animation-time, 0.5s) forwards;
            picture img {
                border: 0.5rem solid var(--main-border-color, darkblue);
                padding: var(--media-padding, 0);
                width: var(--media-width, 80vw);
                height: var(--media-height, auto);
            }
            video {
                border: 0.5rem solid var(--main-border-color, darkblue);
                padding: var(--media-padding, 0);
                width: var(--media-width, 80vw);
                height: var(--media-height, auto);
            }
            figcaption {
                color: var(--main-text-color, black);
                font-size: var(--caption-font-size, 1rem);
                text-align: left;
            }
        }

        figure.wait {
            opacity: 0;
            animation: fromLeft var(--from-left-animation-time, 0.5s) forwards;
            animation-delay: var(--from-left-animation-time, 0.5s);
            picture img {
                border: 0.5rem solid var(--main-border-color, darkblue);
                padding: var(--media-padding, 0);
                width: var(--media-width, 80vw);
                height: var(--media-height, auto);
            }
            video {
                border: 0.5rem solid var(--main-border-color, darkblue);
                padding: var(--media-padding, 0);
                width: var(--media-width, 80vw);
                height: var(--media-height, auto);
            }
            figcaption {
                color: var(--main-text-color, black);
                font-size: var(--caption-font-size, 1rem);
                text-align: left;
            }
        }
        iframe {
            border: 0.5rem solid var(--main-border-color, darkblue);
            width: 100dvw;
            height: 50dvh;
        }

        /* Link Styles */
        a {

            color: var(--main-text-color, black);
            text-decoration: none;
            font-size: var(--nav-font-size, 1rem);
            
        }
        a:hover {
            text-decoration: underline;
            color: var(--link-highlight-color, blueviolet);
            font-size: var(--nav-font-size, 1rem);
        }

        

    }
    footer {
        min-width: 100vw;
        background-color: var(--main-border-color, darkblue);
        border: 1rem solid var(--main-border-color, darkblue);
        nav {
            font-size: var(--nav-font-size, 1rem);
            color: var(--main-header-color, white);
            a{
                color: var(--main-header-color, white);
                text-decoration: none;
                
            }
            a:hover {
                text-decoration: underline;
                color: var(--link-highlight-color, blueviolet);
            }
        }
    }
}







