* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    color: white;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

body {
    background-image: url(images/background_img.jpg);
    background-size: cover;
}

a {
    text-decoration: none;
    color: white;
}

#header1 {
    font-size: 2em;
    padding: 3%;
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-shadow: #000 -3px 3px 5px;
}

img,
picture,
figure,
figure img {
    width: 100%;
    height: auto;
}

nav {
    background-color: #00000090;
    padding: 2% 5%;
    position: fixed;
    width: 100%;
    z-index: 5;
}

#burgerMenuer {
    display: none;
    justify-content: space-between;
}

#burgerIcon{
    justify-self: end;
}

nav ul {
    /* display: none; */
}

#homepage_footer {
    display: none;
}

footer {
    display: flex;
    padding: 3em;
    justify-content: center;
    gap: 2em;
    background-color: #00000090;
    bottom: 0;
    position: fixed;
    width: 100%;
    z-index: 4;
}

/* Homepage start */
#homepage {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    height: 100vh;
    background-image: url(images/filmsite_home_img_mobile.jpg);
    background-size: cover;
}

#homepage #buttons {
    color: black;
}

#homepage h1 {
    padding-top: 20%;
}

#buttons {
    display: flex;
    flex-direction: column;
    padding-bottom: 10%;
    gap: 1em;
}

#buttons button {
    background-color: white;
    padding: 1em 3em;
    border: none;
    color: black;
}

/* Homepage slut */

/* Gallery start */
#lightbox {
    display: none;
}

#gallery_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 5em 1em 10em;
}

#gallery_grid figure figcaption {
    background-color: #0f563480;
    margin-bottom: 1em;
    border-radius: 5px;
    /* Ellers forsvinder de på tablet og telefon når man trykker på billedet */
    display: inline-block;
}

#gallery_grid figure {
    padding: 1%;
}

/* gallery slut */

/* synopsis start */
#synopsis div {
    background-color: #0f563480;
    padding: 2%;
    border-radius: 5px;
}

#synopsis {
    padding: 10%;
    padding-bottom: 10em;
}

#synopsis div table {
    margin: 0 auto;
}

#synopsis div table tr td {
    vertical-align: top;
    padding: 0 2em 2em;
}

#synopsis div table ul {
    list-style: none;
}

#synopsis article p {
    padding-top: 1em;
}

/* synopsis slut */

/* cast start */
.more_tekst {
    display: none;
}

.read_buttons {
    background-color: transparent;
    border: none;
    font-weight: bold;
    font-size: 1em;
    margin-top: 5px;
}

#cast {
    background-color: #0f563480;
    padding: 1em;
    margin-bottom: 7em;
}

#cast_main {
    padding: 10% 10%;
}

#cast figure {
    padding-bottom: 2em;
}

/* cast slut */

/* Media query til tablet */
@media only screen and (min-width: 769px) {

    /* Homepage start */
    #homepage {
        background-image: url(images/filmsite_home_img_tablet.jpg);
    }

    #header1 {
        font-size: 4em;
    }

    #buttons {
        display: none;
    }

    #homepage_footer {
        display: flex;
    }

    /* Homepage slut */

    /* Nav start */
    nav {
        background-color: #00000090;
    }

    nav {
        justify-content: space-between;
    }

    nav ul {
        display: flex;
        list-style: none;
        gap: 1em;
    }

    #burgerIcon {
        display: none;
    }

    /* Nav slut */

    /* Gallery */
    #lightbox {
        display: none;
    }

    #gallery_grid {
        max-width: 89%;
        margin: 0 auto;
        gap: 1em;
        padding: 9em 2em 10em;
    }

    #gallery_grid figure {
        padding: 0;
    }

    /* Cast start */
    #cast {
        margin-bottom: 5em;
    }

    .more_tekst {
        display: block;
    }

    .read_buttons {
        display: none;
    }

    /* Cast slut */

    /* Synopsis start */
    #synopsis div article {
        display: flex;
        flex-direction: column;
    }

    #synopsis article h2 {
        order: -1;
    }

    #synopsis div table tr td {
        padding: 1em;
    }
}

/* Media query til desktop */
@media only screen and (min-width: 1441px) {

    /* Homepage start */
    #homepage {
        background-image: url(images/filmsite_home_img.jpg);
    }

    #header1 {
        font-size: 5em;
    }

    /* Homepage slut */

    /* Nav start */
    nav ul {
        gap: 5em;
    }

    #some {
        gap: 1em;
    }

    /* Nav slut */

    /* Gallery start */
    #wrapper {
        display: grid;
    }

    #lightbox {
        background-color: #00000095;
        grid-area: 1 / 1 / 2 / 2;
        z-index: 2;
        width: 100%;
        height: 100vh;
        display: none;
        place-items: center;
    }

    #lightbox figure {
        text-align: center;
    }

    #lightbox img {
        width: 50%;
    }

    #gallery {
        grid-area: 1 / 1 / 2 / 2;
    }

    #gallery_grid {
        max-width: 63%;
        gap: 1em;
    }

    #gallery_grid figure img {
        cursor: pointer;
    }

    #gallery_grid figure figcaption {
        background-color: #00000090;
        padding: 1em;
        margin: 0;
        align-self: end;
        display: none;
    }

    #gallery_grid figure {
        display: grid;
        padding: 0;
        box-shadow: #00000090 -5px 7px 5px;
    }

    #gallery_grid figure img,
    #gallery_grid figure figcaption {
        grid-area: 1 / 1 / 2 / 2;
    }

    /* Gallery slut */

    /* Cast start */
    #cast {
        margin-bottom: 3em;
    }

    #cast figure {
        display: flex;
    }

    #cast figure:nth-child(even) {
        flex-direction: row-reverse;
    }

    #cast figure img,
    #cast figure figcaption {
        max-width: 50%;
        padding: 1em;
    }

    /* Cast slut */

    /* Synopsis start */
    #synopsis {
        padding: 10%;
        height: 100vh;
        display: grid;
    }

    #synopsis div article {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    #synopsis table {
        grid-column: 2 / -1;
        grid-row: 1 / span 3;
    }

    #synopsis article p {
        grid-column: 1 / span 1;
    }
}