body {
    margin: 0;
    padding: 0;
    background-color: rgb(171, 113, 109);
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(171, 113, 109);
    padding: 10px;
    flex-wrap: wrap;
}

#logo {
    width: 120px;
    height: auto;
    margin-left: 2%;
}

#nadpis {
    text-align: center;
    flex-grow: 1;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: white;
    margin: 0 10px;
    white-space: nowrap;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #00dcff, 0 0 10px #00dcff, 0 0 20px #00dcff, 0 0 40px #00dcff;
    }
    to {
        text-shadow: 0 0 5px #09889c, 0 0 10px #09889c, 0 0 20px #09889c, 0 0 40px #09889c;
    }
}
.animacia { 
    animation: glow 1s ease-in-out infinite alternate; 
}

#mail {
    color: purple;
    font-size: 1.2rem;
    text-decoration: none;
    margin-right: 2%;
}

/* Grid layout */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}
#carousel-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#carousel-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* zobrazí celý obrázok bez orezania */
    max-height: 90vh; /* prispôsobí výšku oknu, môžeš doladiť podľa potreby */
    transition: opacity 0.5s ease-in-out;
}
/* Carousel */
.carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hlphoto-div {
    width: 100%;
    max-width: 600px;
    height: 500px;
    border: 4px solid black;
    overflow: hidden;
    margin-bottom: 15px;
}

.hlphoto-div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    display: flex;
    gap: 15px;
}

.carousel-btn {
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.9);
}

/* Navigation panels */
.griditem {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-container2, .grid-container3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px;
    width: 100%;
    max-width: 280px;
}

.hover-div {
    background: white;
    border: 2px solid black;
    padding: 10px;
    text-align: center;
    transition: background-color 0.3s;
}

.hover-div:hover {
    background-color: #0062ff;
}

.hover-div a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}

/* Footer */
footer {
    margin-top: 40px;
    background-color: #000;
    padding: 20px;
    text-align: center;
}

.container4 {
    max-width: 960px;
    margin: 0 auto;
}

p {
    margin: 0;
    color: #fff;
}

/* Mobilná verzia */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .griditem {
        order: 2;
    }

    .carousel-container {
        order: 1;
        margin-bottom: 30px;
    }

    .hlphoto-div {
        height: 400px;
    }

    #logo {
        width: 100px;
    }
}

@media (max-width: 600px) {
    .grid-container2, .grid-container3 {
        grid-template-columns: 1fr;
        max-width: 200px;
    }

    .hlphoto-div {
        height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}