@keyframes slideFadeOut {
    0% {
      opacity: 1;
    }
    99% {
        opacity: 1;
      }
    100% {
      opacity: 0;
    }
}

*{
    margin: 0;
    padding: 0;
    /* font-family: Arial, Helvetica, sans-serif; */
    text-decoration: none;
    color: inherit;
}
@font-face {
    font-family: mainFont;
    src: url("/Src/font/Roboto/Roboto-Regular.ttf");
}
body{
    font-family: mainFont;
    padding-top: 64px;
}
ul{
    list-style-type: none;
    overflow: hidden;
}
.scrollPoint{
    position: absolute;
    top: -64px;
}
#content{
    min-height: 640px;
}
.relative{
    position: relative;
}
html, body, .fullSize, .viewLink, .galleryImgCont, #galleryFocus{/* .fullSize used in eventItem*/
    width: 100%;
    height: 100%;
}
.viewItem, #eventItemPage #infoTable, #eventItemPage #trailerImg{
    border-radius: 20px;
    overflow: hidden;
}
.onPrint, .hidden{
    display: none !important;
}

/* Colors */
:root{
    --mainColor: #e6ffcf;
    --secColor: #ccff9d;
    /* --mainColor: #BCEB3C;
    --secColor: #7CBD1E; */
    --textColor1: #000000;
    --textColor2: #ffffff;
    
}

/*
#6BD425
#618B25
 */
#menu{
    position: fixed;
    top: 0;
    z-index: 100;
    background-color:var(--secColor);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px;
    width: 100%;
}
.logo{
    position: absolute;
    display: flex;
    align-items: center;
    left: 0.5em;
    float: left;
}
.logo img{
    max-height: 3em;
    margin-right: 12px;
}
.logo p{
    margin-right: 6px;
    font-size: 24px;
    color: var(--textColor1);
}
.logo p:last-child{
    margin-left: 4px;
}

/* Burger Icon - Hidden by default, visible only on small screens */
#menu-icon {
    font-size: 34px;
    position: absolute;
    right: 20px;
    cursor: pointer;
    z-index: 10;
    display: none; /* Hidden on larger screens */
}

/* Horizontal Menu (for larger screens) */
#navMenu {
    display: flex;
    position: absolute;
    right: 0;
    height: 100%;
}

/* Menu Links Styling */
#navMenu div {
    font-size: 26px;
    text-align: center;
}
.hoverAnim{
    float: left;
    position: relative;
    display: flex;
}
.hoverAnim a{
    display: flex;
    align-items: center;
    justify-content: center;/*for mobile centering*/
    padding: 0 16px 0 16px;
}

.hoverAnim ::after{
    width: 100%;
    content: "";
    bottom: 0;
    height: 4px;
    position: absolute;
    background-color: var(--textColor1);
    transform: scale(0, 1);
    transition: transform 0.45s ease-out;
}
.hoverAnim :hover::after{
    transform: scale(1, 1);
}


/*slideshow*/
#slideShow{
    min-height: 420px;
    position: relative;
    display: flex;
}
#homePage #slideShow{
    min-height: 640px;
}
#slides{
    width: 100%;
    height: 100%;
}
.slide{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: 0.4s;
    /* transition: none; */
    /* transition: opacity 1.6s ease-in-out; */
}
.activeSlide{
    z-index: 1;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}
.lastSlide{
    z-index: -1;
    animation: slideFadeOut 0.8s;
}

.dots {
    position: absolute;
    bottom: 18px;
    left: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}
.dot {
    z-index: 2;
    width: 12px;
    height: 12px;
    background: gray;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: 1s;
}
.activeDot {
    background: #2f2f2f;
    cursor: default;
}

.arrow-left, .arrow-right{
    width: 30%;
    height: 100%;
    position: absolute;
    cursor: pointer;
    font-size: 2em;
    z-index: 16;
}
.arrow-left :hover, .arrow-right :hover{
    background-color: black;
    opacity: 50%;
}
.arrow-left{
    left: 0;
}
.arrow-right{
    right: 0;
}


/* viewList */
#viewList{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}
#homePage #viewList{
    padding-top: 24px;
}
#viewList, #galleryImgList{
    padding-top: 64px;
}
.viewItem{
    width: 100%;
    height: 420px;
}
.viewItem a{
    display: flex;
}
.viewItem img{
    width: 100%;
    object-fit: cover;
}
.viewItem .viewCont{
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 16px;
    box-sizing: border-box; /* ensures correct padding */
    background-color: rgba(20%, 20%, 20%, 60%);
    color: var(--textColor2);/* text color */
}
.viewItem .viewCont h2{
    font-size: 42px;
}
.viewItem .viewCont h3{
    font-size: 22px;
}
.viewItem .viewCont p{
    font-size: 20px;
}

.archive {
    /* filter: grayscale(100%);
    opacity: 0.5;
    border: 2px dashed #999;
    background-color: #f8f8f8; */
}
.archive::after {
    content: "Archív";
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    background-color: rgba(20%, 20%, 20%, 60%);
    color: white;
    padding: 4px 8px;
    font-size: 26px;
    font-weight: bold;
    border-radius: 12px;
}



/* homePage page */
.sec{
    text-align: center;
    padding: 64px;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}
.sec:nth-child(even) {
    background-color: var(--mainColor);
}
.sec h1{
    font-size:56px;
}
#homePage .sec h1{
    padding-bottom: 24px;
}
.sec p{
    font-size: 28px;
}

/* Paging */
.paging{
    /* background-color: var(--secColor); */
    justify-content: center;
    display: flex;
    height: fit-content;
    font-size: 24px;
    user-select: none;
}
#title .paging{
    padding: 10px;
}

.paging .menuItem{
    border: solid transparent 1px;   
}
.paging .menuItem ::after{
    bottom: -1px;
}
.paging .activePage{
    border: solid black 1px;
    background-color: var(--mainColor);
}
.paging .hoverAnim ::after{
    height: 2px;
}

/* about page */
#aboutPage #who p:nth-of-type(n+2),
#aboutPage #where p:nth-of-type(n+2){
    padding-top: 8px;
}

/* event page */
#eventItemPage #invite{
    position: absolute;
    font-size: 18px;
    top: 12px;
    left: 12px;
}
#eventItemPage #content {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Stretches content to fill the page */
}
#eventItemPage #eventTitle h1{
    padding-bottom: 10px;
}
#eventItemPage #message p{
    font-size: 22px;
}
#eventItemPage #regards{
    padding-top : 14px;
    font-size: 23px;
}
#eventItemPage #outro{
    display: flex;
    align-items: center;
}
#eventItemPage #outro img{
    left: 60px;
    width: 160px;
    margin-top: -160px;
    margin-bottom: -130px;
}
#eventItemPage #footer p{
    flex: 1;
    font-size: 14px;
}
    #eventItemPage #footer p:first-child{
        text-align: left;
        position: absolute;
        bottom: 8px;
        left: 8px;
    }
    #eventItemPage #footer p:last-child{
        text-align: right;
        position: absolute;
        bottom: 8px;
        right: 8px;
    }

#eventItemPage #details{
    display: flex;
    flex-direction: row;
    gap: 32px;
    width: 100%;
}
#eventItemPage #details #infoTable, #eventItemPage #details #trailerImg{
    flex: 1;
    min-height: 260px;
    max-height: 330px;
}
#eventItemPage #trailerImg img{
    object-fit: cover;
    object-position: center;
}
#eventItemPage table .link {
    color: #007bff; 
    text-decoration: underline; 
    font-weight: bold;
    cursor: pointer;
}
#eventItemPage table .link:hover {
    color: #0056b3;
    text-decoration: none;
}
#eventItemPage table {
    padding: 16px;
    text-align: left;
    border-collapse: collapse;
    font-size: 18px;
    background-color: #f3ffe7;
}
    #eventItemPage tr:nth-child(odd) {
        background-color: var(--mainColor);;
    }
    #eventItemPage td{
        padding: 8px;
    }
        #eventItemPage td:nth-child(even) {
            padding-left: 12px;
            width: 80%;
        }
        #eventItemPage td:nth-child(odd) {
            /* padding: 10px; */
            width: 20%;
        }
    

/* Gallery item */
#galleryItemPage #galleryImgList{
    display: grid;
    grid-template-columns: repeat(6, auto);
}
    #galleryItemPage .galleryImgItem :hover{
        background-color: var(--textColor1);
    }
        #galleryItemPage .galleryImgCont{
            display: flex;
            align-items: center;
            justify-content: center;
        }
            #galleryItemPage .galleryImgCont img{
                height: 94%;
                width: 94%;
                object-fit: cover;
            }
#galleryItemPage #galleryFocus{
    position: fixed;
    top: 0;
    left: 0;
    /* width: 100vw; */
    /* height: 100vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    background-color: rgba(0, 0, 0, 0.7);
}
    #galleryItemPage #galleryFocusImg{
        max-width: 90vw;
        max-height: 90vh;
        object-fit: cover;
        position: relative;
    }
    #galleryItemPage .arrow {
        position: absolute;
        /* top: 50%;
        transform: translateY(-50%); */
        font-size: 48px;
        color: white;
        background-color: rgba(0, 0, 0, 0.1);
        padding: 10px;
        cursor: pointer;
        z-index: 10000;
        user-select: none;

        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    #galleryItemPage .arrow:hover {
        background-color: rgba(0, 0, 0, 0.4);
    }

    #galleryItemPage .left-arrow {
        left: 0;
    }
    #galleryItemPage .right-arrow {
        right: 0;
    }

/* notFoundPage */
#notFoundPage {
    padding-bottom: 320px;
}

/*footer*/
footer{
    width: 100%;
    height: auto;
    display: flex;
    background-color: var(--secColor);
    color: var(--textColor1);
}
footer .col{
    padding: 2em;
    height: fit-content;
}
footer h1{
    font-size: 1.2em;
}
footer .links a, footer .contacts p{
    font-size: 0.8em;
    padding-bottom: 0.1em;
}

footer .about{
    width: 205px;
    display: flex;
    align-items: start;
    /* text-align: left;
    justify-content: left; */
}
footer .logo{
    position: static;
}

footer .links .list{
    padding: 0.3em;
    text-align: left;
}
footer .links .item{
    min-width: 78px;
}

footer .contacts{
    justify-content: center;
    float: right;
    display: flex;
    flex: 1;
    flex-flow: row wrap;
}
footer .contacts div{
    height: fit-content;
    padding: 0 1em 0.4em 0;
}
footer .contacts ul{
    padding: 0.3em;
}
footer .contacts .phone p{
    overflow: hidden;
    width: 72px;
}

/* MEDIAS */
@media (max-width : 1500px) {
    
}
@media (max-width : 1100px) {
    /* menu */
    #navMenu {
        display: block;
        position: fixed;
        top: 64px; /* Adjust to just below the burger icon */
        width: 100%;
        max-height: 0; /* Ensure menu is hidden */
        overflow: hidden;
        background-color: var(--secColor); /* This ensures it's not visible when hidden */
        transition: max-height 0.3s ease-out;
    }
    #navMenu div {
        display: block;
        text-align: center;
        padding: 10px;
        border-top: 1px solid black;
        width: 100%;
    }
    #navMenu div:last-child{
        border-bottom: 1px solid black;
    }
    #menu-icon {
        display: block; /* Show burger icon on smaller screens */
    }

    /* slideshow */
    #slideShow{
        min-height: 260px;
    }
    #homePage #slideShow{
        min-height: 360px;
    }

    /* EventItemPage */
    #eventItemPage #details{
        flex-direction: column;
    }
    .viewItem{
        height: 380px;
    }

    /* EventList */
    #viewList{
        grid-template-columns: 1fr;
    }

    /* gallery item */
    #galleryItemPage #galleryImgList{
        grid-template-columns: repeat(4, auto);
    }

    /* Footer */
    footer .about{
        display: none;
    }
}
@media (max-width : 700px) {
    
    /* homePage page */
    .logo p{
        font-size: 18px;

    }
    
    /* slideshow */
    #slideShow{
        min-height: 180px;
    }
    #homePage #slideShow{
        min-height: 240px;
    }

    .viewItem{
        height: 260px;
    }


    /* eventListPage */
    #viewList{
        padding-top: 32px;
    }
    .viewItem .viewCont h2{
        font-size: 34px;
    }
    .viewItem .viewCont h3{
        font-size: 20px;
    }
    .viewItem .viewCont p{
        font-size: 16px;
    }
    

    /* eventItem */
    .sec{
        padding: 32px;
    }
    .sec h1{
        font-size: 46px;
    }
    #homePage .sec h1{
        padding-bottom: 20px;
    }
    .sec p{
        font-size: 22px;
    }

    /* gallery item */
    #galleryItemPage #galleryImgList{
        grid-template-columns: repeat(3, auto);
    }

    /* footer */
    footer .links{
        display: none;
    }
    footer .contacts{
        justify-content: left;
    }
}


@media print {
    body{
        padding-top: 0px;
    }

    .onPrint{
        display: block !important;
    }

    /* EvnetItemPage */
    #eventItemPage header, #eventItemPage #slideShow, #eventItemPage footer {
        display: none;
    }
    
    #eventItemPage #details{
        flex-direction: row;
    }
}
@page {
    size: auto; /* Let the browser choose the best page size */
    margin: 0; /* Remove default margins */
}



