/* Global Styles */
* {
    box-sizing: border-box;
}

/* THIS MAKES SURE IMAGES NEVER EXCEED THEIR CONTAINER */
img{
    max-width: 100%;
    height: auto;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: black;
    text-decoration: none;
    font-size: 30px;
}

p {
    font-family: "Roboto", sans-serif;
    font-size: 20px;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #e69f1b;
    border-bottom: 2px solid black;
    margin: 0;
}

.sidenav a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 25px;
    color: white;
    display: block;
}

.sidenav .closebtn {
    font-size: 36px;
}

.logo {
    width: 50px;
    height: auto;
}

.desktop-nav {
    display: none;
}

main {
    padding-top: 10px;
}


#index-headline {
    margin-top: 10px;
}

#index-text, #index-poster-container {
    margin-left: 20px;
    margin-right: 20px;
}

#desktopmap {
    display: none;
}

#index-poster-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
    align-items: center;
}

.index-posters{
    margin:10px;
    max-width: 100px;
    height: 150px;
    object-fit: cover;
}


/* .index-posters{
    width: 120px;
    height: 163px;
    margin-left: 5px;
    justify-content: space-around;
} */

/* .index-posters img{
    width: 120px;
    height: 163px;
} */


.poster {
    border: 5px solid black;
    width: 150px;
    max-width: 50%;
    margin: 20px auto;
    display: block;
    position: relative;
    top: -10px;
}

.text {
    width: 90%;
    font-size: 14px;
    margin: -10px auto 10px auto;
    padding: 5px 15px 15px 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 10px;
}

.text p {
    font-size: 14px;
}

/* Overlay Button */
.overlay-btn {
    background: gold;
    color: black;
    padding: 15px 25px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
    display: block;
    text-align: center;
    margin: 10px auto 0 auto;
}

#bulldurham-page {
    display: flex;
    flex-direction: column;
    /* stack poster + text */
    align-items: center;
    /* center horizontally */
    background-image: url('../img/durham_bg.jpg');
    background-size: cover;
    background-position: top center;
    height: 100vh;
    position: relative;
}

#IKWYDLS-page {
    position: relative;
    height: 100vh;
    background-image: url('../img/southport_bg2.jpg');
    background-size: cover;
    background-position: center;
}

#HUNGERGAMES-PAGE {
    position: relative;
    height: 100vh;
    background-image: url('../img/hg_bg.jpeg');
    background-size: cover;
    background-position: center;
}

#durham-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .8));
}

/* Content Container */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.other_films_gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
}

.other_films_gallery img {
    height: 159px;
    width: 120px;
    border: #707070 solid 1px;
    object-fit: cover;
    margin-bottom: 10px;
}

.film {
    margin: 10px;
    text-align: center;
}

/* H1 */
h1 {
    font-family: "Anton SC", sans-serif;
    font-size: 40px;
    font-weight: bolder;
    text-align: center;
    margin: 0%;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.3s;
    z-index: 1000;
    /* make sure it sits above everything */
}

#durham-page {
    position: relative;
    height: 120vh;
    background-image: url('../img/durham.jpg');
    background-size: cover;
    background-position: center -50px;
}

#southport-page {
    position: relative;
    height: 120vh;
    background-image: url('../img/Southport.jpeg');
    background-size: cover;
    background-position: top;
}

#asheville-page {
    position: relative;
    height: 120vh;
    background-image: url('../img/asheville.webp');
    background-size: cover;
    background-position: top;
}

.other_films_gallery figcaption {
    color: white;
    font-weight: bold;
}

footer p{
    font-size: 14px;
    color: black;
    margin-left: 20px;
}

/* Desktop Layout Overrides */
@media screen and (min-width: 1080px) {

    /* Show desktop nav */
    .desktop-nav {
        display: flex;
    }

    .mobile-nav {
        display: none;
    }

    #desktopmap {
        display: block;
    }

    .index-posters{
        display: none;
    }


    #bulldurham-page {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        height: 100vh;
        padding: 20px;
    }

    #HUNGERGAMES-PAGE {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        height: 100vh;
        padding: 20px;
    }

    #IKWYDLS-page {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        height: 100vh;
        padding: 20px;
    }

    /* Poster */
    .poster {
        width: 300px;
        height: auto;
        margin: 0;
        flex-shrink: 0;
    }

    /* Text */
    .text {
        width: calc(100% - 300px);
        font-size: 20px;
        margin: 20px 0 0 20px;

    }

    .text p {
        font-size: 20px;
    }

    /* Overlay button */
    .overlay-btn {
        margin: 20px 0 0 0;
        display: inline-block;
    }

    .other_films_gallery img {
        height: 200px;
        width: 150px;
    }

    h1 {
        font-size: 60px;
    }
}