@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

* {
    padding: 0;
    margin: 0;
    font-family: "Lato", sans-serif;
    background-color: #1e1e1e;
}

nav {
    padding-top: 20px;
    display: flex;
    justify-content: center;
}

.nav1{
    color: #bcbcbc ;
}

.nav2{
    color: #515151 ;
}

.container1 {
    display: flex;
    padding-top: 10%;
    padding-bottom: 10%;
    padding-right: 20%;
    padding-left: 20%;
    justify-content: center;
}

.c1nadpis{
    color:#bcbcbc ;
    width: 50%;
}

.jmeno {
    font-size: 150%;
}

.c1text {
    color: #515151;
    width: 50%;
    line-height: 200%;
    display: flex;
}

.photos {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.photo img {
    height: 275px;
    filter: grayscale(30%);
}

.line1 {
    justify-content: center;
    display: flex;
    width: 100%;
    flex-direction: row;
}

.line2 {
    justify-content: center;
    width: 100%;
    display: flex;
    flex-direction: row;
}

.mezisection {
    width: 100%;
    justify-content: center;
    display: flex;
}

.button {
    color: #bcbcbc;
    border: solid 1px #bcbcbc;
    width: fit-content;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 100px;
}

.button a {
    text-decoration: none;
    color: #bcbcbc;
}

.container2 {
    padding-left: 20%;
    padding-right: 20%;
    display: flex;
    flex-direction: row;
    margin-bottom: 100px;
}

.c2left {
    width: 60%;
    display: flex;
    flex-direction: column;
}

.c2leftphoto img{
    height: 370px;
    filter: grayscale(30%);
}

.c2leftnadpis {
    color: #bcbcbc;
    margin-top: 20px;
    margin-bottom: 20px;
}

.c2lefttext {
    color: #515151;
    line-height: 150%;
    margin-bottom: 30px;
}

.c2right {
    display: flex;
    flex-direction: column;
    width: 40%;
    align-items: flex-end;
}

.c2rightnadpis{
    color: #bcbcbc;
    font-size: 150%;
}

.c2rightnadpis h1 {
    margin-bottom: 100px;
}

.c2rightbutton {
    color: #bcbcbc;
    border: solid 1px #bcbcbc;
    width: fit-content;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

.c2rightbutton a {
    text-decoration: none;
    color: #bcbcbc;
}

.container3 {
    padding-left: 20%;
    padding-right: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 100px;
}

.c3nadpis {
    font-size: 150%;
    color: #bcbcbc;
    margin-bottom: 50px;
    text-align: center;
}

.c3img img{
    height: 200px;
    margin-bottom: 50px;
}


.c3text {
    color: #515151;
    margin-bottom: 30px;
    line-height: 150%;
}

.c3button {
    color: #bcbcbc;
    border: solid 1px #bcbcbc;
    width: fit-content;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

.c3button a {
    text-decoration: none;
    color: #bcbcbc;
}

footer {
    padding-left: 10%;
    padding-right: 10%;
    color: #bcbcbc;
    display: flex;
    flex-direction: row;
    margin-bottom: 50px;
    justify-content: space-between;
}

.footcol1 {
    line-height: 200%;
}

.footcol2 {
    height: 100%;
    justify-content: center;
}

.footcol3 {
    height: 100%;
    align-items: center;
    line-height: 200%;
}

.ig {
    height: 40px;
}




/* CSS for devices with screen width less than or equal to 768px */
@media screen and (max-width: 768px) {
    nav {
        padding-top: 10px;
    }
    
    .container1 {
        padding: 5% 10%;
        flex-direction: column;
        align-items: center;
    }

    .c1nadpis, .c1text {
        width: 100%;
    }

    .photos .photo img {
        height: 200px;
    }

    .line1, .line2 {
        flex-direction: column;
        align-items: center;
    }

    .button {
        margin-bottom: 50px;
    }

    .container2, .container3 {
        padding: 0 10%;
    }

    .container2 {
        flex-direction: column;
    }

    .c2right {
        order: -1;
        align-items: center;
    }

    .c2left, .c2right {
        width: 100%;
    }

    .c2leftphoto img {
        height: 180px;
    }

    .c2leftnadpis {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .c2rightnadpis h1 {
        margin-bottom: 50px;
    }

    .c3img img {
        height: 150px;
        margin-bottom: 30px;
    }

    footer {
        flex-direction: column;
        align-items: center;
    }

    .ig {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* CSS for devices with screen width greater than 768px */
@media screen and (min-width: 769px) and (max-width: 1490px) {
    nav {
        padding-top: 20px;
    }

    .container1 {
        padding: 10% 20%;
    }


    .photos {
        flex-direction: row;
        justify-content: space-between;
    }



    .line1, .line2 {
        flex-direction: column; /* Display as rows */
        width: 50%;

    }

    .line1 {
        align-items: end;
    }

    .photo {
        width: 50%; /* Each photo takes 50% of the width */
    }
    
    .photos .photo img {
        height: 200px;
    }

    .button {
        margin-bottom: 100px;
    }

    .container2, .container3 {
        padding: 0 20%;
    }

    .container2 {
        flex-direction: column;
    }

    .c2right {
        order: -1;
    }

    .c2left, .c2right {
        width: 50%;
    }

    .c2leftphoto img {
        height: 370px;
    }

    .c2leftnadpis {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .c2rightnadpis h1 {
        margin-bottom: 100px;
        text-align: ce;
    }

    .c3img img {
        height: 200px;
        margin-bottom: 50px;
    }

    footer {
        flex-direction: row;
    }
}


@media screen and (min-width: 1491px) and (max-width: 1600px) {

    nav {
        padding-top: 20px;
    }

    .container1 {
        padding: 10% 20%;
    }


    .photos {
        flex-direction: row;
        justify-content: space-between;
    }



    .line1, .line2 {
        flex-direction: column; /* Display as rows */
        width: 50%;

    }

    .line1 {
        align-items: end;
    }

    .photo {
        width: 50%; /* Each photo takes 50% of the width */
    }
    
    .photos .photo img {
        height: 275px;
    }

    .button {
        margin-bottom: 100px;
    }

    .container2, .container3 {
        padding: 0 20%;
    }

    .container2 {
        flex-direction: column;
    }

    .c2right {
        order: -1;
    }

    .c2left, .c2right {
        width: 50%;
    }

    .c2leftphoto img {
        height: 370px;
    }

    .c2leftnadpis {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .c2rightnadpis h1 {
        margin-bottom: 100px;
        text-align: ce;
    }

    .c3img img {
        height: 200px;
        margin-bottom: 50px;
    }

    footer {
        flex-direction: row;
    }

}