/*
   Student Name: Simon Digafe
   File Name: style.css
   Today's Date: July 15, 2026
*/

/* Reset rules for structural and semantic layout elements */
html, body, header, nav, main, footer, aside, figure, figcaption, video {
    margin: 0;
    padding: 0;
    border: 0;
}

#wrapper {
    width: 100%;
    margin: 0 auto;
}

.tab-desk {
    display: none;
}

.mobile {
    display: block;
    text-align: center;
    padding: 10px;
}

/* Global Mobile Layout Structural Rules */
aside {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 4px 4px 10px #c5a687;
}

figure {
    border: 4px solid #2a1f14;
    box-shadow: 6px 6px 10px #c5a687;
    max-width: 400px;
    margin: 2% auto;
}

figure img {
    width: 100%;
    display: block;
}

/* Video layout rule scaling with matching img behavior */
video {
    max-width: 100%;
    display: block;
    height: auto;
    margin: 2% auto;
}

figcaption {
    padding: 2%;
    border-top: 4px solid #2a1f14;
}

/* Mobile Nav Selectors & Modifiers */
.mobile-nav a {
    color: #fff;
    text-align: center;
    font-size: 2em;
    text-decoration: none;
    padding: 3%;
    display: block;
}

.mobile-nav a.nav-icon {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    color: #f6eee4;
    padding: 2%;
}

.nav-icon div {
    height: 40px;
    width: 40px;
    color: #2a1f14;
}

/* Hiding navigation links globally by default for mobile view */
#nav-links, .tab-desk, .desktop {
    display: none;
}

/* Adjust margin for mobile heading */
.mobile h1 {
    margin: 2% 0 3%;
}

/* FAQ view interactive styling definitions */
#questions p {
    cursor: pointer;
}

#answer {
    text-align: center;
    font-weight: bold;
    width: 80%;
    margin: 0 auto;
}

#answer h2 {
    display: none;
}


/* Tablet Media Query (Min-width: 768px) */
@media screen and (min-width: 768px) {
    /* Hide mobile navigation blocks when browsing on larger layouts */
    .mobile-nav, .mobile-nav a.nav-icon {
        display: none;
    }

    .tab-desk {
        display: block;
    }
    
    .mobile {
        display: none;
    }

    /* Target rules moved into media query block */
    nav ul {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        list-style-type: none;
    }

    nav li a {
        display: block;
        color: #f6eee4;
        padding: 0.5em 1em;
        text-decoration: none;
        font-weight: bold;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }

    aside {
        grid-column: 1 / span 2;
    }
}

/* Desktop Media Query (Min-width: 1024px) */
@media screen and (min-width: 1024px) {
    nav li a:hover {
        opacity: 0.5;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 30px;
    }

    aside {
        grid-column: 1 / span 3;
        font-size: 2em;
    }
}

/* Large Desktop Media Query (Min-width: 1920px) */
@media screen and (min-width: 1920px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    aside {
        grid-column: 1 / span 4;
        font-size: 3em;
    }
}

/* Chapter 9 Research Assignment Element: Styling video track captions */
video::cue {
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
}