@font-face {
    font-family: "closeness";
    src: url(Closeness.ttf);
}

@media (max-width: 600px) {
    .menudiv .menu-link { display: none; }
    .menudiv .menu-link-mobile { display: inline-block; }
}
@media (min-width: 601px) {
    .menudiv .menu-link { display: inline-block; }
    .menudiv .menu-link-mobile { display: none; }
    .mobile-overlay { display: none; }
}
#map { height: 600px; }

.mapanadpis
{
    color: black !important;
    font-family: "closeness", sans-serif;
    text-align: center;
}
html {
    scroll-behavior: smooth;
}
html, body {
    width: 100%;
    overflow-x: hidden;
}
body {
    margin: 0;
    background-color: white;
    color: white;
    font-family: "closeness";
    overflow-x: hidden;
}

a {
    background-color: black;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    font-family: "closeness", sans-serif;
}

a:hover {
    filter: invert(1);
    color: black;
    transform: translateY(-2px) scale(1.05);
    transition: background 0.2s, transform 0.2s;
}

hr
{
    width: 100%;
    margin: 2rem auto;
    border: none;
    border-top: 5px solid black;
}
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    text-align: center;
    z-index: 10;
    text-transform: capitalize;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.overlay-text img.desktop-banner {
    display: block;
    margin: 0 auto;
}
.overlay-buttons {
    color: black;
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.overlay-btn {
    background: white;
    color: black !important;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: "closeness", sans-serif;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.overlay-btn:hover {
    background: black;
    color: white !important;
    transform: translateY(-2px) scale(1.05);
}

.menudiv {
    background-color: black;
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 20px;
    width: auto;
    text-align: center;
    z-index: 1001;
    transition: opacity 0.4s ease;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}
.menudiv.transparent {
    opacity: 0.3;
    transition: opacity 0.4s;
    pointer-events: none;
}
.menudiv {
    transition: opacity 0.4s;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.mobile-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.mobile-overlay a {
    color: white;
    font-size: 2rem;
    text-decoration: none;
}
.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    text-decoration: none;
}

.image-with-text {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}

.rating {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

model-viewer {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto;
    display: block;
    background: transparent;
}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.box-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.box-content {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    background-color: white;
    color: black !important;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.box-button2 {
    background-color: white;
    color: black !important;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.2rem;
    font-family: "closeness", sans-serif;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    box-sizing: border-box;
    margin: 0.5rem 0;
}

.course {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    background-color: red;
}

.box-content-courses {
    width: 100%;
    background-color: black;
    color: white !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    gap: 1rem;
}

.box-content-courses-inner {
    max-width: 60%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box-button3 {
    background-color: white;
    color: black !important;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.2rem;
    font-family: "closeness", sans-serif;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 60%;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    box-sizing: border-box;
    margin: 0.5rem 0;
}


.box-courses {
    display: flex;
    background-color: white;
    width: 100%;
    height: 100%;
    min-height: 100svh;
    justify-content: center;
    align-items: center;
    color: black;
}


.desktop-banner { display: block; }
.mobile-banner { display: none; }

@media (max-width: 600px) {
    .desktop-banner { display: none; }
    .mobile-banner { display: block; }
    .overlay-text { color: black; }
}

@media (max-width: 1400px) {
    .desktop-banner { display: none; }
    .mobile-banner { display: block; }
    .overlay-text { color: black; }
}

@media (max-width: 700px) {
    .menudiv {
        flex-direction: column;
        gap: 0.5rem;
    }
    .menudiv a {
        margin: 0.3rem 0;
    }
}

@media (max-width: 900px) {
    .box-main {
        flex-direction: column;
    }
    model-viewer {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .box-content {
        max-width: 100%;
        padding: 1rem;
    }
    .three-columns {
        flex-direction: column;
        align-items: center;
    }
    .column-box {
        max-width: 90%;
    }
}

.box-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    border-radius: 10px;


}
.three-columns {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.column-box {
    text-align: center;
    flex: 1 1 0;
    min-width: 250px;
    max-width: 400px;
    background: white;
    color: black !important;
    padding: 2rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.star-row {
    display: flex;
    gap: 0.3rem; /* mezera mezi hvězdami */
    justify-content: center; /* volitelné, zarovná na střed */
    align-items: center;
}
.star-rating {
    width: 24px; /* nebo jakou chceš velikost */
    height: 24px;
}

.star-rating1 {
    width: 1rem;
}

.footer
{
    background-color: black;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    color: black;
    background-color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
}

.footer-text {
    margin: 0;
    font-size: 0.9rem;
}

.gallery-slideshow {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-images {
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
}
.gallery-slide {
    display: none;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.gallery-slide.active {
    display: block;
}
.gallery-prev, .gallery-next {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border-radius: 50%;
    transition: background 0.2s;
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-prev:hover, .gallery-next:hover {
    background: rgba(255,255,255,0.2);
}
