* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#wrapper {
    max-width: 1440px;
    margin: 0 auto;
    /* background-image: url(images/background_image_test.jpg); */
}

body {
    background: black;
}

img {
    height: auto;
    max-width: 100%
}

main {
    background-image: url(images/background_for_cast.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

nav {
    display: flex;
    width: 100%;
    background-color: rgba(0, 0, 0, 50%);
    color: white;
    padding: 1.5em;
    max-height: 100vh;
}

nav ul {
    display: flex;
    flex: 2;
    gap: 20%;
    padding-left: 7%;
}

nav li {
    display: flex;
    align-items: center;
}

a {
    color: white;
    text-decoration: none;
    list-style-type: none;
}

.fa-solid {
    display: none;
}

a:hover {
    font-weight: bold;
}

nav div {
    display: flex;
    flex: 1;
    margin-left: 25%;
    gap: 5%;
}

.header_for_mobile {
    display: none;
}

h1 {
    color: white;
}

p {
    color: #ffffff;
}

.setup {
    display: flex;
}

.history {
    display: flex;
    margin-right: 30em;
    color: #ffffff;
    flex: 6;
}

.middle {
    position: relative;
    left: 5em;
    width: 98%;
}

.blood {
    color: rgb(169, 0, 0);
    font-family: "Nosifer", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.mobile_and_tablet_only {
    display: flex;
}

.side_images {
    flex: 4;
    position: relative;
    right: 16em;
    bottom: 2em;
}

.h1_spacing {
    margin: 3em 0;
    color: rgb(255, 255, 255);
}

footer {
    display: flex;
    position: sticky;
    max-width: 1440px;
    width: 100%;
    background-color: rgba(0, 0, 0, 50%);
    color: white;
    justify-content: center;
    align-items: center;
    height: 65.92px;
    flex-direction: column;
}



/*------------------------------------------*/


@media screen and (max-width:1200px) {

    nav ul {
        gap: 7%;
        padding-left: unset;
    }

    main {
        background-position: center;
    }

    nav div {
        justify-content: flex-end;
    }

    h1 {
        max-width: 14em;
        position: relative;
        left: 5em;
    }

    .h1_spacing {
        max-width: 28em;
        margin-top: 6em;
    }

    .history {
        margin-right: unset;
        position: relative;
        left: 10em;
        max-width: 78%;
    }

    .history p {
        width: 20em;
    }

    .setup {
        width: 44em;
        display: unset;
    }

    .middle {
        width: 40em;
    }

    .mobile_and_tablet_only {
        flex-direction: column-reverse;
    }

    .side_images {
        position: relative;
        left: 10em;
        bottom: 1em;
        max-width: 45%;
        margin-bottom: 4em;
    }

    .side_images img {
        width: 18em;
    }

    #legend {
        position: relative;
        right: 4em;
    }

    footer {
        margin-top: 3em;
    }
}



@media screen and (max-width:599px) {
    h1 {
        left: 1em;
    }

    .history {
        left: 2em;
    }

    .side_images {
        left: 6em;
        bottom: 3em;
        width: 100%;
    }

    .middle {
        left: 6em;
        width: 25em;
    }

    .h1_spacing {
        top: 17em;
        position: relative;
        width: 21em;
    }

    #legend {
        left: 2em;
        width: 20em;
    }

    nav div {
        display: none;
    }

    .fa-solid {
        display: block;
        position: absolute;
        right: 5vw;
        top: 5vw;
        font-size: 2em;
    }

    header {
        display: none;
    }

    nav a {
        display: grid;
        width: 100%;
        align-items: center;
    }

    nav li {
        padding: 0.5em 0;
        text-align: center;
    }

    nav div {
        display: none;
    }

    nav {
        position: static;
        bottom: 2em;
    }

    nav ul {
        justify-items: stretch;
        display: grid;
        grid-auto-flow: row;
        align-items: center;
        padding: 0.5em 0;
        height: 100vh;
    }

    .header_for_mobile {
        display: block;
        position: relative;
        top: 2em;
        color: rgba(255, 255, 255);
        max-width: 338px;
        left: 4em;
    }
}

@media screen and (max-width:599px) {

    #wrapper {
        overflow: hidden;
    }

    .middle {
        left: 2em;
    }

    .header_for_mobile {
        left: 1em;
    }
}