@font-face {
    font-family: 'Komu A';
    src: url('Komu_A.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/*GLOBALNI HODNOTY*/
/**/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
body{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#stickerbar{
    background-color: #135428;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    position: sticky;
    top: 0;
    left: 0;
}

#stickerbar div{
    margin-left: 5px;
    margin-right: 5px;
}

#stickerbar div span{
    font-weight: bold;
}

/*WRAPPER A JEHO OBSAH*/

#wrapper{
    width: 1500px;
    min-height: 1000px;
    padding: 20px 50px 0px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#header{
    width: 100%;
    height: 120px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo{
    background-color: white;
    width: 200px;
    height: 100%;

}

#logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#menu{
    width: 800px;
    height: 100%;
}

#menu ul{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    list-style-type: none;
}

#menu ul li{
    padding: 0 20px;
}

#menu ul li.has-submenu {
    position: relative;
}

#menu ul .submenu {
    display: block; /* Always block for transition */
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    height: auto;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#menu ul li.has-submenu:hover > .submenu,
#menu ul li.has-submenu:focus-within > .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#menu ul .submenu .backgroundSM {
    background-color: rgb(208, 223, 144);
    width: 100%;
    height: 100%;
    margin-top: 10px;
}



#menu ul .submenu li {
    padding: 10px 20px;
    white-space: nowrap;
}

#menu ul li.has-submenu:hover > .submenu {
    display: block;
}

/* Optional: submenu link styling */
#menu ul .submenu li a {
    color: #000;
    text-decoration: none;
    display: block;
}

#menu ul .submenu li a:hover {
    text-decoration: underline;
}

#menu ul li a {
    font-family: 'Komu A', Arial, Helvetica, sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    color: #135428;
    text-decoration: none;
}

#menu ul li.has-submenu > a::after {
    content: " ▼";
    font-size: 0.7em;
    color: #135428;
    margin-left: 4px;
    vertical-align: middle;
    
}

#socials{
    width: 80px;
    height: 100%;
}

#slider {
    width: 100%;
    max-width: 100%;
    height: 500px;
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    background: #e7f3d7;
    border-radius: 20px;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-link {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    z-index: 1;
}

.slider-link.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.slider-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background-color: transparent;
    border: none;
    font-size: 2.5rem;
    padding: 0 18px;
    cursor: pointer;
    z-index: 2;
    user-select: none;
}

.slider-arrow-left {
    left: 20px;
}
.slider-arrow-right {
    right: 20px;
}
.slider-arrow:hover {
    color: #239e4a;
}

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.slider-dot {
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid #135428;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    opacity: 0.7;
    transition: background 0.2s, opacity 0.2s;
}
.slider-dot.active {
    background: #135428;
    opacity: 1;
}


/* DOČASNÁ STRÁNKA */
#infoButtons{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.bigBtn{
    width: 200px;
    height: 50px;
    background-color: #135428;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 10px;
    margin: 20px;
    cursor: pointer;
    user-select: none;
}
.bigBtn:hover{
    background-color: #239e4a;
}

#menu ul li a:hover {
    color: #239e4a;
    text-decoration: underline;
}

#content table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 50px;
}
#content table, #content th, #content td{
    border: 1px solid black;
}
#content th, #content td{
    padding: 10px;
    text-align: left;
}
#content th{
    background-color: #135428;
    color: white;
}
#content tr:nth-child(even){
    background-color: #f2f2f2;
}
#content tr:hover{
    background-color: #ddd;
}

/* === RESPONSIVE DESIGN FOR MOBILE DEVICES === */
@media (max-width: 900px) {
    #wrapper {
        width: 100%;
        min-width: 0;
        padding: 10px 5vw 0 5vw;
    }
    #header {
        flex-direction: column;
        height: auto;
        margin-bottom: 30px;
        align-items: flex-start;
        gap: 18px;
    }
    #logo {
        width: 140px;
        height: 70px;
    }
    #menu {
        width: 100%;
        height: auto;
    }
    #menu ul {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        gap: 8px;
    }
    #menu ul li {
        padding: 8px 0;
    }
    #menu ul .submenu {
        position: static;
        min-width: 0;
        box-shadow: none;
        transform: none;
        transition: none;
        margin-top: 0;
    }
    #menu ul .submenu .backgroundSM {
        margin-top: 0;
    }
    #socials {
        width: 100%;
        height: 40px;
        margin-top: 10px;
    }
    #slider {
        height: 220px;
        border-radius: 10px;
    }
    .slider-image {
        height: 220px;
    }
    .slider-arrow {
        font-size: 2rem;
        padding: 0 10px;
    }
    .slider-dots {
        gap: 8px;
        bottom: 10px;
    }
    #infoButtons {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }
    .bigBtn {
        width: 90vw;
        max-width: 300px;
        margin: 10px 0;
        font-size: 18px;
        height: 44px;
    }
    #content table {
        font-size: 14px;
        margin-bottom: 30px;
    }
    #content th, #content td {
        padding: 6px;
    }
    .contact-info {
        font-size: 15px;
        word-break: break-word;
    }
}

/* === RESPONSIVE DESIGN FOR TABLETS === */
@media (max-width: 1200px) {
    #wrapper {
        width: 98vw;
        min-width: 0;
        padding: 10px 2vw 0 2vw;
    }
    #header {
        height: auto;
        margin-bottom: 35px;
        gap: 24px;
    }
    #logo {
        width: 160px;
        height: 80px;
    }
    #menu {
        width: 90vw;
        min-width: 0;
    }
    #menu ul {
        gap: 18px;
    }
    #menu ul li {
        padding: 0 12px;
    }
    #socials {
        width: 100px;
        height: 40px;
    }
    #slider {
        height: 320px;
        border-radius: 14px;
    }
    .slider-image {
        height: 320px;
    }
    .slider-arrow {
        font-size: 2.2rem;
        padding: 0 14px;
    }
    .slider-dots {
        gap: 10px;
        bottom: 14px;
    }
    #infoButtons {
        margin-top: 18px;
    }
    .bigBtn {
        width: 60vw;
        max-width: 260px;
        font-size: 19px;
        height: 48px;
    }
    #content table {
        font-size: 16px;
        margin-bottom: 40px;
    }
    #content th, #content td {
        padding: 8px;
    }
    .contact-info {
        font-size: 16px;
    }
}

/* Extra small screens */
@media (max-width: 500px) {
    #logo {
        width: 100px;
        height: 50px;
    }
    #slider {
        height: 120px;
    }
    .slider-image {
        height: 120px;
    }
    .bigBtn {
        font-size: 16px;
        height: 38px;
    }
    #content table {
        font-size: 12px;
    }
    .contact-info {
        font-size: 13px;
    }
}

#infoButtons a {
    text-decoration: none;
}
