html {
    scroll-behavior: smooth;
}

.body_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 300px 50px max-content max-content;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

/*HEADER START*/
header {
    grid-column: 1/4;
    grid-row: 1;
    justify-self: left;
    margin-left: 15%;
    display: flex;
    border-bottom: 2px solid red;
    width: fit-content;
    height: 300px;
}

.header--logo {
    width: 450px;
    height: auto;
    margin: auto;
    margin-top: 80px;
    margin-bottom: 20px;
}

.header--photo {
    grid-column: 2/4;
    grid-row: 1/3;
    justify-self: end;
    /*width: 100%;*/
    width: 80%;
    height: auto;
    border-bottom-left-radius: 70%;
}
/*HEADER END*/

/*NAV START*/
nav {
    grid-column: 1/4;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    justify-content: center;
    /*width: 40%;*/
    width: 450px;
    margin-left: 15%;
    gap: 5%;
}

nav > a {
    align-self: center;
}

nav > a:hover {
    text-decoration: underline;
    color: black;
}

/*NAV END*/
/*MAIN START*/
main {
    grid-column: 1/4;
    grid-row: 3;
    display: flex;
    flex-direction: column;
}


main > h2 {
    margin: 20px 0 0 20%;
    margin-left: 15%;
    padding: 5px 25px 0 25px;
    border-bottom: 1px solid red;
    width: min-content;
}
section > h3 {
    margin-left: 15%;
    margin-right: 40%;
    margin-top: 30px;
}

section > div {
    
    padding: 5px 0;
    margin: 0 15%;
    text-align: justify;
    backdrop-filter: blur(4px);
    background-color: rgba(255, 255, 255, 0.308);
    padding-right: 20px !important;
    border-radius: 0 10px 10px 0;

}

.gallery--section {
    background-color: rgb(249, 249, 249);
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery--section>button {
    font-size: 20px;
    padding: 20px 30px;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    background-color: rgb(195, 195, 195);
    border-radius: 20px;
}

.gallery--section>button:hover {
    color: white;
    background-color: red;
}

.gallery--article {
    display: flex;
    flex-direction: row;
    justify-items: left;
    flex-wrap: wrap;
    gap: 1.3%;
    row-gap: 20px;
    margin: 30px 15% 0 15%;
}

.gallery--img {
    display: none;
    flex-grow: 1;
    max-width: 24%;
    border-radius: 10px;
    box-shadow: 1px 2px 5px rgb(154, 77, 77);
    cursor: pointer;
    transition: 0.3s;
}

.gallery--img:hover {
    box-shadow: 1px 5px 10px rgb(110, 29, 29);
}

.certificates__container {
    display: flex;
    flex-direction: row;
    justify-items: left;
    flex-wrap: wrap;
    gap: 1.3%;
    row-gap: 20px;
    margin: 30px 15% 20px 15%;
}

.certificates {
    flex-grow: 1;
    max-width: 24%;
    border-radius: 10px;
    box-shadow: 1px 2px 5px rgb(154, 77, 77);
    cursor: pointer;
    transition: 0.3s;
}

.certificates:hover {
    box-shadow: 1px 5px 10px rgb(110, 29, 29);
}

/*MAIN END*/
/*IMG WINDOW START*/
.container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min-content;
    height: min-content;
    display: none;
    grid-template-columns: 8% 84% 8%;
    grid-template-rows: repeat(2, min-content);
    opacity: 0;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.images {
    grid-column: 1/4;
    grid-row: 2;
    width: fit-content;
}

.img__window {
    display: none;
    max-width: 80vw;
    width: 80vh;
    border-radius: 10px;
    animation-duration: 0.2s;
    animation-fill-mode: forwards;
    
}

.current__img {
    display: block;
}

.container button {
    display: none;
    background-color: rgba(0, 0, 0, 0.15);
    color: white;
    font-size: 70px;
    border: none;
    cursor: pointer;
    transition: 0.5s;
}

.left {
    grid-column: 1;
    grid-row: 2;
    border-bottom-left-radius: 10px;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.left:hover {
    background-color: rgba(88, 88, 88, 0.472);
}

.left:active {
    background-color: rgba(143, 143, 143, 0.834);
}

.right {
    grid-column: 3;
    grid-row: 2;
    border-bottom-right-radius: 10px;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.right:hover {
    background-color: rgba(88, 88, 88, 0.472);
}

.right:active {
    background-color: rgba(143, 143, 143, 0.834);
}


.exit__div {
    display: none;
    grid-column: 1/4;
    grid-row: 1;
    background-color: rgb(53, 53, 53);
    margin-bottom: -1px;
    border-radius: 10px 10px 0 0;
    height: 40px;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.exit {
    display: block !important;
    align-self: center;
    width: 8%;
    font-size: 30px !important;
    border-top-left-radius: 10px;
}   

.exit:hover {
    background-color: rgb(138, 138, 138) !important;
}

.container>p {
    display: none;
    background-color: rgba(0, 0, 0, 0.15);
    color: white;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -120%);
    transition: 0.3s;
    padding: 5px;
    border-radius: 5px;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.container>p:hover {
    background-color: rgba(88, 88, 88, 0.472);
}

.certificates__window-container {
    display: none;
    grid-template-rows: min-content, min-content;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.certificates_window {
    max-height: 80vw;
    height: 80vh;
    grid-row: 2;
    border-radius: 0 0 10px 10px;
    animation-duration: 0.2s;
    animation-fill-mode: forwards;
}

.exit__certificates-container {
    display: flex;
    grid-row: 1;
    background-color: rgb(53, 53, 53);
    margin-bottom: -1px;
    border-radius: 10px 10px 0 0;
    height: 40px;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.exit__certificates {
    display: block !important;
    align-self: center;
    width: 8%;
    font-size: 30px !important;
    border-top-left-radius: 10px;
    border: none;
    color: white;
    cursor: pointer;
}
 /*IMG WINDOW END*/
/*FOOTER START*/
footer {
    grid-column: 1/4;
    grid-row: 4;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: min-content max-content min-content min-content;
    background-color: rgb(195, 195, 195);
    box-shadow: inset 0px 4px 5px rgb(249, 249, 249);
    padding-bottom: 40px;
}

footer > h2 {
    grid-row: 1;
    grid-column: 1/7;
    margin: 10px 0 10px 20%;
    margin-left: 15%;
    padding: 5px 25px 0 25px;
    border-bottom: 1px solid red;
    width: min-content;
}

footer > address {
    grid-column: 1/7;
    grid-row: 3;
    margin: 0 0 0 15%;
}

.footer_kontakt:hover {
    text-decoration: underline;
}


.footer_map {
    grid-column: 1/7;
    grid-row: 4;
    width: 70%;
    height: 200px;
    border: none;
    border-radius: 10px;
    margin: 20px 15% 0 15%;
}

.footer_radim {
    grid-row: 2;
    grid-column: 1/4;
    justify-self: left;
    margin-left: 30%;
}

.footer_zdena {
    grid-row: 2;
    grid-column: 4/7;
    justify-self: end;
    margin-right: 30%;
}
/*FOOTER END*/

.languageBtn {
    font-size: 15px;
    line-height: 30px;
    border: none;
    background-color: rgb(195, 195, 195);
    width: 35px;
    height: 35px;
    border-radius: 100%;
    cursor: pointer;
    transition: 0.3s;
    display: none;
}

.languageBtn:hover {
    background-color: rgb(217, 217, 217);
}

#languageBtnsContainer {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 5px;
}