@font-face {
    font-family: 'DogTown';
    src: url('../fonts/dogtown.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*
    Biela: #fcfcfa
    Modrá: #2c4467
    Žltá: #e3dac7
    Šedá: #676767
*/

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
    font-family: 'DogTown', sans-serif;
    padding: 0;
    margin: 0;
    background: #fcfcfa;
}

header {
    width: 100%;    
    color: #e3dac7;
    background-color: #2c4467;
    padding-bottom: 10px;
}

header h1 {
    text-align: center;
    margin: 0;
    padding: 0;
    font-weight: 100;
    padding: 20px 0px;
}

header nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}
header nav ul li {
    font-size: 16pt;
}
header nav ul li a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 80%;
    margin: 0 auto;
}

.section_1 {
    text-align: center;
    color: #676767;
    padding: 0px;
    background-color: #fcfcfa;
    padding-bottom: 1px;
}

.section_1 .top-img {
    width: 100%;
}

.section_1 p {
    font-size: 16pt;
    text-align: left;
}

.read-more,
.read-less {
    text-align: center;
    color:inherit;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 16pt;
}

.read-less {
    display: none;
}

.hidden-info {
    display: none;
}

.section_2 {
    background-color: #fbfbfa;
}

.section_2 .top-img {
    width: 100%;
}

.section_3 {
    background-color: #fcfcfa;
    margin-top: -135px;
}

.section_3 h2 {
    text-align: center;
    color: #676767;
}

.section_4 {
    background-color: #fcfcfa;
    color: #676767;
    text-align: center;
}

.section_4 .top-img {
    width: 100%;
}

footer {
    margin-top: 100px;
    background-color: #2c4467;
    color: #676767;
    text-align: center;
    background-image: url(../img/makovice.png);
    background-repeat: no-repeat;
    padding-bottom: 10px;
    background-size: 10%;
    background-position: 10% 200%;
}

footer .top-img {
    width: 100%;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

footer ul li {
    position: relative;
}
footer ul li img {
    height: 48px;
    object-fit: cover;
}

footer small {
    width: 80%;
    display: block;
    margin: 0 auto;
    margin-top: 45px;
}

.calendar{
    width:520px;
    padding:30px;
    border-radius:10px;
    margin: 0 auto;
    padding-top: 0px;
}

.calendar-header{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:25px;
    margin-bottom:25px;
}

.calendar-header h2{
    margin:0;
    font-size:48px;
    color:#666;
    font-family:'DogTown', cursive;
    letter-spacing:2px;
}

.nav{
    cursor:pointer;
    font-size:40px;
    color:#666;
    user-select:none;
    transition:0.2s;
}

.nav:hover{
    transform:scale(1.2);
}

.days,
.dates{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    text-align:center;
}

.days{
    margin-bottom:10px;
}

.day-name{
    font-size:28px;
    font-weight:bold;
    color:#666;
    padding:10px 0;
    font-family:'DogTown', cursive;
}

.day-name.sunday{
    color:#cc0000;
}

.date{
    height:68px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    color:#666;
    position:relative;
    cursor:pointer;
    transition:0.2s;
}

.date:hover{
    transform:scale(1.1);
}

.date.sunday{
    color:#cc0000;
    font-weight:bold;
}

.date.active {
    background-image: url(../img/calendar_active.png);
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
}

.tooltip-box {
    position:absolute;
    left:50%;
    top:0px;
    transform:translate(-50%, -100%);
    background:#2c4467;
    color:#fff;
    padding:10px 14px;
    border-radius:10px;
    font-weight: bold;
    white-space:nowrap;
    font-size:16px;
    opacity:0;
    pointer-events:none;
    transition:0.2s;
    z-index:9999;
}

.tooltip-box.show{
    opacity:1;
}

.tooltip-box:after{
    content:"";
    position:absolute;
    left:50%;
    bottom:-10px;
    transform:translateX(-50%);
    border-width:6px;
    border-style:solid;
    border-color:#2c4467 transparent transparent transparent;
}

/* MOBILE MODAL */
.mobile-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.5);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;
}

.mobile-popup-content{
    background: #fbfbfa;
    width: 100%;
    max-width: 80%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 50px 0px;
    text-align: center;
    position: relative;
    animation: popupShow 0.2s ease;
    left: 0;
    right: 0;
    margin: 0 auto;
    font-size: 20pt;
    top: 10%;
}

.mobile-popup-content img {
    width: 100%;
    position: absolute;
    left: 0;
    top: 99%;
}

.mobile-close{
    position:absolute;
    right:15px;
    top:10px;
    font-size:22px;
    cursor:pointer;
}

@keyframes popupShow{
    from{
        transform:scale(0.9);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

.swiper {
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}

.gallery .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #0000000e;
    cursor: pointer;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery .swiper-slide img,
.gallery .swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery img.play-icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    bottom: 0;
    background: #ffffff61;
    border-radius: 10em;
}


.galleryOverlay{
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.95);
    z-index:9999;
    display:none;
}

.galleryOverlay.active{
    display:block;
}

.gallerySwiper{
    width:100%;
    height:100%;
}

.gallerySwiper .swiper-slide{
    display:flex;
    align-items:center;
    justify-content:center;
    width: 100% !important;
}

.gallerySwiper img,
.gallerySwiper video{
    max-width:80%;
    max-height:80%;
    object-fit:contain;
}

.closeGallery{
    position:absolute;
    top:20px;
    right:20px;
    z-index:10000;
    width:45px;
    height:45px;
    border-radius:50%;
    border:none;
    background:white;
    color:black;
    font-size:22px;
    cursor:pointer;
}


@media (max-width: 768px) {
  .only-pc {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .only-mobile {
    display: none !important;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  display: block;
}

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 10;
}

.swiper-button-lock {
    display: flex !important;
}
.swiper-button-next, .swiper-button-prev {
    cursor: auto !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

.gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.gallery-container .swiper {
    width: 80%;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    margin: 0;
    transform: none;
    color: #2c4467 !important;
}
.swiper-button-prev {
    left: -2% !important;
}
.swiper-button-next {
    right: -2% !important;
}


/* MOBILE */
@media (max-width: 768px) {
    section,
    footer,
    h2 {
        scroll-margin-top: 80px;
    }

    .container {
        width: 95%;
    }
    
    header {
        height: 50px;
        position: fixed;
        z-index: 999999999999999999999999999999999999999999999999999999999;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0px;
    }
    header h1 {
        max-width: 75%;
        text-align: left;
        font-size: 16pt;
        padding-left: 10px;
        padding-right: 0px;
        padding-top: 0px;
        padding-bottom: 0px;
    }
    
    .hamburger {
        max-width: 25%;
        display: flex;
        padding: 20px
    }

    .navigaton {
        position: fixed;
        top: 0;
        right: -300px;
        width: 250px;
        height: 100%;
        background: #222;
        flex-direction: column;
        padding: 80px 20px;
        gap: 15px;
        transition: 0.3s;
        z-index: 20;
    }

    .navigaton ul {
        display: flex;
        flex-direction: column;
        gap: 80px;
    }

    .navigaton.open {
        right: 0;
    }

    .section_1 {
        padding-top: 50px;
    }

    .section_1 p {
        text-align: justify;
    }

    .calendar {
        width: 90%;
        padding:20px;
        padding-top: 150px;
    }
    .calendar-header h2{
        margin:0;
        font-size:26px;
    }

    .day-name {
        font-size: 20px;
    }

    .date {
        font-size: 18px;
    }

    .gallery-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        position: relative;
    }

    .gallery-container .swiper {
        width: 80%;
    }

    .swiper-button-prev,
    .swiper-button-next {
        position: absolute;
        margin: 0;
        transform: none;
        color: #2c4467 !important;
    }
    .swiper-button-prev {
        left: -2% !important;
    }
    .swiper-button-next {
        right: -2% !important;
    }

    footer {
        background-position: 5% 0%;
        background-size: 17%;
    }

    footer ul {
        gap: 20px;
    }
 
    footer ul li img {
        height: 30px;
        object-fit: cover;
    }

    footer small {
        font-size: 8pt;
    }
}