html,
body {
    display: contents;
    min-height: 100vh;
    min-width: 100%;
    padding: 0%;
    margin: 0%;
    background: white;
    /* border: black solid; */
}

/* div {
    display: contents;
} */

/* ---------------main------------------ */

.main {
    height: 100%;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

h2 {
    color: var(--dunkelgruen);
    font-family: var(--font1);
}

h3 {
    font-size: larger;
    padding: 0.2rem;
    margin: 0%;
    font-family: var(--font1);
}

h4 {
    font-size: small;
    padding: 0.2rem;
    font-weight: bolder;
    margin: 0%;
    font-family: var(--font1);
}

.doku {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.corperate {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.trailer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.auto {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.project {
    position: relative;
    width: 24%;
    margin: 0.5%;
    float: left;
    /* background-color: var(--hellgruen); */
}

#image {
    display: block;
    object-fit: cover;
    width: 100%;
    /* min-width: 400px; */
    height: auto;
}

#playbutton {
    width: 3rem;
    height: auto;
    padding: 1rem;
}

.overlay {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background-color: rgb(106, 156, 137, 0.5);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
    /* border: black solid; */
}

.info {
    display: flex;
    flex-direction: column;
    font-family: var(--font1);
    color: var(--beigegelb);
    text-shadow: 0 0 3px #000000;
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}

.project:hover .overlay {
    bottom: 0;
    height: 100%;
    backdrop-filter: blur(10px);
}


#yourmonitor {
    display: none;
}

/* ---------------mediaquery------------------ */


@media only screen and (min-width: 2500px) {
    .flex-container-navbar {
        max-width: 70vw;
        padding-left: 25rem;
    }


}

@media (max-width: 1700px) {

    .flex-container-navbar {
        max-width: 100vw;
    }

    .project {
        position: relative;
        width: 35%;
        padding: 0.2rem;
        /* background-color: var(--hellgruen); */
    }
}


@media (max-width: 1170px) {


    .smallscreen {
        display: none;
    }

    .doku {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }

    .corperate {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }

    .trailer {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }

    .auto {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }


    .project {
        position: relative;
        width: 55%;
        margin: 0.5%;
        /* background-color: var(--hellgruen); */
    }

    h3 {
        font-size: x-large;
        padding: 0.2rem;
        margin: 0%;
        font-family: var(--font1);
    }

    h4 {
        font-size: small;
        padding: 0.2rem;
        font-weight: bolder;
        margin: 0%;
        font-family: var(--font1);
    }

}


@media (max-width: 700px) {

    .main {
        height: 100%;
        margin: 0rem;
        padding: 0%;
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .smallscreen {
        display: none;
    }

    .doku {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }

    .corperate {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }

    .trailer {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }

    .auto {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }


    .project {
        position: relative;
        width: 100%;
        margin: 0%;
        margin-bottom: 0.9%;
        padding: 0%;
        max-width: 300px;
        /* background-color: var(--hellgruen); */
    }

        h3 {
        font-size: medium;
        padding: 0.2rem;
        margin: 0%;
        font-family: var(--font1);
    }

    h4 {
        font-size: x-small;
        padding: 0.2rem;
        font-weight: bolder;
        margin: 0%;
        font-family: var(--font1);
    }


}

@media (max-width: 343px) {
    #main {
        display: flex;
        flex-wrap: wrap;
        width: auto;
        height: auto;
        justify-content: center;
        border-width: 0;
    }

    .smallscreen {
        display: flex;
        flex-wrap: wrap;
        justify-self: center;
        align-items: center;
        margin: 5rem;
    }

    #yourmonitor {
        display: flex;
        flex-wrap: wrap;
        font-size: 500%;
        line-height: 150%;
    }

    .flex-container-navbar {
        display: none;
    }

    .doku {
        display: none;
    }

    .corperate {
        display: none;
    }

    .trailer {
        display: none;
    }

    .auto {
        display: none;
    }

    h2 {
        display: none;
    }

    footer {
        display: none;
    }
}