/* CSS Document */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --text-size: 25px;
    --subnav-position: 53px;
}

html{
    /* font-family: Arial, Helvetica, sans-serif; */
    font-family: "DM Sans", sans-serif;
}

.header{
    /* display: flex;
    flex-direction: row; */
    background-color: black;
    color: white;
    position: relative;
}

.icon{
    /* color: white; */
    position: relative;
    top: -2px;
}

.nav{
    display: flex;
    flex-direction: row;
}

.nav > div{
    font-size: var(--text-size);
    padding: 10px 20px;
}

.nav > div:hover{
    background-color: gray;
}

.nav a{
    text-decoration: none;
    color: white;
}

.subnav{
    display: none;
    position: absolute;
    background-color: black;
    top: var(--subnav-position);
    border-radius: 0 15px 15px 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.subnav > div{
    padding: 10px 20px;
}

.subnav > div:hover{
    background-color: gray;
    border-radius: 15px 15px 15px 15px;

}

.nav div:hover .subnav{
    display: block;
}

#open-menu{
    display: none;
    visibility: hidden;
}

@media screen and (max-width: 750px) {
    .header .nav{
        flex-direction: column;
    }

    .subnav{
        position: relative;
        top: 0;
        display: none;
        border-radius: 0;
    }

    .nav div:hover .subnav{
        display: none;
    }

    .nav > div:hover{
        background-color: rgba(255, 255, 255, 0);
    }
    
    #open-menu:checked ~ .subnav{
        display: block;
    }

}
.footer{
    display: flex;
    flex-direction: row;
    /* gap: 20px; */
    background-color: black;
    /* justify-content: space-evenly; */
    /* position: absolute;
    left: 0;
    right: 0;
    bottom: 0; */
}

.footer .box{
    color: white;
    font-size: 18px;
    padding: 20px;
    margin-left: 3em;
}


.footer .box div{
    margin: 10px;
}

.footer .box1 a{
    text-decoration: none;
    color: white;
}

div.box3{
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
}

.box div.nazev{
    margin-bottom: 30px;
    font-size: 20px;
}

@media only screen and (max-width: 750px) {
    .footer{
        flex-direction: column;
    }
}
.content{
    background-color: black;
    color: white;
    /* padding-top: 500px; */
    padding-bottom: 200px;
    background-image: linear-gradient(270deg, rgba(0, 0, 0, 0.5), rgba(3, 3, 3, 0.23)), url(../img/background-image-building.png);
    background-size: cover;
    overflow: hidden;
}

.content h1{
    /* position: relative; */
    width: 100%;
    text-align: center;
    padding-top: 40px;
    margin-bottom: 40px;
    text-transform: uppercase;
}
 
.container{
    display: grid;
    grid-template-columns: repeat(auto-fit, 310px);
    color: black;
    justify-content: space-evenly;
    gap: 80px;
    max-width: 1124px;
    margin:  0 auto;
    line-height: 40px;
}

.container div{
    /* position: relative; */
    background-color: rgba(255, 255, 255, 0.89);
    padding: 20px;
    font-size: 20px;
    border-radius: 35px;
    box-shadow: 5px 5px 10px rgb(0, 0, 0)
    /* height: 400px; */
}

.container div p{
    margin-top: 4%;
    font-weight: 400;
}

@media only screen and (max-width: 310px) {
    .container{
        display: grid;
        grid-template-columns: repeat(auto-fit, 250px);
        gap: 30px;
    }
}