* {
    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_image.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;
}

nav ul {
    display: flex;
    flex: 2;
    gap: 20%;
    padding-left: 7%;
}

nav li {
    display: flex;
    align-items: center;
}

.fa-solid {
    display: none;
}

a {
    color: white;
    text-decoration: none;
    list-style-type: none;
}

a:hover {
    font-weight: bold;
}

nav div {
    display: flex;
    flex: 1;
    margin-left: 25%;
    gap: 5%;
}

#middle_text {
    display: flex;
    position: relative;
    top: 10em;
    margin-left: 25em;
    color: white;
    background-color: #0003;
}

#hidden {
    margin-top: 45em;
    opacity: 0%;
}

.header_for_mobile {
    display: none;
}

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: 9%;
}



/*---------------------------------------*/
@media screen and (max-width:1339px) {

    main {
        background-position: center;
    }

    nav ul {
        gap: 7%;
        padding-left: unset;
    }

    nav div {
        justify-content: flex-end;
    }
}


@media screen and (max-width:599px) {

    main {
        background-image: url(images/background_for_index_mobile.jpg);
    }

    .header_for_mobile {
        display: block;
        position: relative;
        top: 2em;
        color: rgba(255, 255, 255, 75%);
        max-width: 338px;
        left: 4em;
    }

    nav div {
        display: none;
    }

    .fa-solid {
        display: block;
        position: absolute;
        right: 5vw;
        top: 5vw;
        font-size: 2em;
    }

    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;

    }

    header {
        display: none;
    }

    nav ul {
        justify-items: stretch;
        display: grid;
        grid-auto-flow: row;
        align-items: center;
        padding: 0.5em 0;
        height: 100vh;
    }
}


@media screen and (max-width:420px) {
    .header_for_mobile {
        left: 2em;
    }
}