@font-face {
    font-family: "National Park";
    src: url(assets/NationalPark-VariableFont_wght.woff2);
}

@keyframes fade-in-top {
    from {
        opacity: 0;
        transform: translateY(-20%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fade-in-bottom {
    from {
        opacity: 0;
        transform: translateY(20%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes glow {
    from {
        box-shadow: none;
    }
    to {
        box-shadow: 0 0 10px 5px var(--green-main-transparent);
    }
}
@keyframes enable-hover {
    from {
        pointer-events: none;
    }
    to {
        pointer-events: auto;
    }
}
@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes appear {
    from {
        opacity: 0;
        filter: blur(6px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}
@keyframes up-down {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(5px);
    }
}

img {
    width: 100%;
    height: auto;
}

body {
    background-color: var(--green-bg);
    font-family: "National Park";
}
main {
    font-size: 18px;
    min-height: 250px;
}

header {
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100px;
    /* backdrop-filter: blur(5px); */
}
.header-wrapper {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;

    margin: 0 auto;
    height: 100%;
    min-width: 50%;
    width: fit-content;

    padding: 0.5em 1em;
    background-color: var(--green-main-transparent);
    
    font-size: 25px;
    
    border-bottom-right-radius: 2em;
    border-bottom-left-radius: 2em;
    border: 2px solid var(--green-main);
    border-top: none;
}
.logo, #navigation-main, #hamburger {
    z-index: 1;
} 
.header-blur {
    z-index: -1;
    position: absolute;
    inset: 0;
    backdrop-filter: blur(5px);
    z-index: 0;
    border-bottom-right-radius: 2em;
    border-bottom-left-radius: 2em;
}
#under-header {
    height: 100px
}

.logo {
    box-sizing: border-box;
    height: 100%;
}
.logo img {
    box-sizing: border-box;
    height: 100%;
}

header ul {
    display: flex;
    list-style-type: none;
}
header nav a {
    box-sizing: border-box;
    display: inline-block;
    text-decoration: none;
    margin-right: 1em;
    padding: 0.2em 0.3em;
    color: #000;
    transition: all 0.3s;
}
header nav a:hover {
    color: #fff;
    text-shadow: 2px 2px 2px #000;
    transform: scale(1.2);
}

.activeNav {
    border: 2px solid #fff;
    border-radius: 0.3em;
    cursor: text !important;
}
.activeNav:hover {
    color: unset;
    text-shadow: unset;
    transform: none;
}

#hamburger {
    box-sizing: content-box;
    display: none;
    flex-direction: column;
    width: 70px;
    height: 70px;
    margin-left: 0.5em;
    align-items: center;
    border: unset;
    background-color: unset;
}
#hamburger span {
    width: 100%;
    height: 10px;
    margin: auto 0;
    border-radius: 10px;
    background-color: var(--green-dark);
    border: 2px solid #fff;
}
#hamburger span:nth-child(odd) {
    width: 80%;
}

.link {
    width: fit-content;
    position: relative;
    color: var(--green-dark);
    text-decoration: none;
}
.link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
.link::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--green-dark);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.button-main {
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;

    border: 0.2em solid #fff;
    padding: 0.5em !important;
    border-radius: 2em !important;
    background-color: var(--green-dark) !important;
    transition: all 0.3s ease-in-out;
}
.button-main:hover {
    color: var(--green-dark) !important;
    background-color: #fff !important;
    cursor: pointer;
}

.button-secondary {
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: 900;

    margin: 0.7em 0;
    border: 0.2em solid #fff;
    padding: 0.5em !important;
    border-radius: 2em !important;
    background-color: #d4ce26 !important;
    transition: all 0.2s ease-out;
}
.button-secondary:hover {
    color: var(--green-dark) !important;
    background-color: #fff !important;
    cursor: pointer;
}


#banner {
    width: 80vw;
    min-width: 900px;
    max-width: 100%;

    min-height: 300px;
    height: calc(80vw / 3);

    border-radius: 2em;
    margin: 0.5em auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;

    background-image: url(/partizanske/domov/banner.webp);
    background-size: cover;
    background-position-y: 45%;
    background-position-x: center;
}
#banner-right, #banner-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#banner-left {
    flex-direction: column;
    padding: 1em;
}
#banner-left h1 {
    font-size: 45px;
}
#banner-left p {
    font-size: 25px;
    max-width: 800px;
}
#banner-left * {
    color: #fff;
    background-color: #00000080;
    backdrop-filter: blur(2px);
    border-radius: 0.5em;
    padding: 0.4em;
    margin-top: 0;
    line-height: 1.2em;

    animation: fade-in-top 1s;
}
#banner-left .button-main {
    animation: up-down 1s ease-in-out infinite alternate;
}

.bubble {
    opacity: 0;
    width: 50%;
    height: 50%;
    min-width: 180px;
    min-height: 180px;
    position: absolute;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    
    padding: 0.5em;
    border-radius: 50%;
    font-size: 25px;
    color: #fff;
    font-weight: 900;
    text-shadow: 0 0 4px #000;
    box-shadow: 3px 3px  5px #000;
}
#bubble1 {
    transform: translate(40%, 40%);
    background-color: #00ff0080;
    animation: appear 1.5s 0.5s forwards;
    
}
#bubble2 {
    transform: translate(-35%, 0%);
    background-color: #ffbb0080;
    animation: appear 1.5s 1.5s forwards;
}
#bubble3{
    transform: translate(35%, -45%);
    background-color: #ff000080;
    animation: appear 1.5s 2.5s forwards;
}
.bubble b {
    min-width: 3ch;
    font-size: 25px;
    background-color: #00000080;
    border-radius: 0.5em;
    margin-top: 0.2em;
    padding: 0.2em;
}

/* SLIDES */
.slideshow-container {
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
}

/* toto riadi pohyb */
.slides-wrapper {
  display: flex;
  transition: transform 0.8s ease;
}

.mySlides {
    display: flex;
    min-width: 100%;
    position: relative; /* NIE absolute */
}

/* aktivny slide */
.mySlides.active-slide {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

/* predosly slide */
.mySlides.prev-slide {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}

/* texty */
.text {
  color: #f2f2f2;
  font-size: 18px;
  padding: 10px;
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.numbertext {
  color: #000;
  font-size: 14px;
  padding: 10px;
  position: absolute;
  top: 0;
}
/* SLIDES */

.novinka {
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
    align-self: center;

    width: 80%;
    padding: 2em;
    margin: 1em auto;
    border-radius: 1em;

    background: linear-gradient(135deg, #fff176, #ffd54f);
    border: 2px solid rgba(255, 193, 7, 0.6);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    color: #333;

    /* background-color: #ffff4369;
    border: 0.3em dotted #ff000050; */
    font-size: 25px;
    font-weight: 800;
}


h2 {
    font-size: 38px;
}
#kurzy {
    width: 80%;
    margin: 0 auto;
}
#grid-kurzy {
    box-sizing: border-box;
    width: 100%;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.kurz {
    position: relative; /* kvoli info ikonke */
    display: flex;
    flex-direction: column;
    width: auto;
    height: fit-content;
    align-self: center;
    border-radius: 2em;
    background-color: #eee;
    border: 0.3em solid var(--kurz-border);
    box-shadow: 0.3em 0.3em 0.5em #00000080;
    font-size: 20px;
    transition: box-shadow 0.2s ease-in-out;
}
.kurz:hover {
    box-shadow: 0.4em 0.4em 0.5em #000000b0;
}

/* ikonka v pravom hornom rohu */
.info-icon {
    position: absolute;
    top: 0.3em;
    right: 0.3em;
    font-size: 1.2em;
    color: #555;
}

.info-icon img {
    width: 1.3em;
    height: auto;
    background-color: #ffffffb0;
    padding: 0.2em;
    border-radius: 50%;
}

/* tooltip */
.info-icon::after {
    max-width: 250px;
    min-width: 200px;
    content: attr(data-tooltip);
    position: absolute;
    top: -2.5em;
    right: 0;
    background: #333333c0;
    color: #fff;
    padding: 0.3em 0.6em;
    border-radius: 0.5em;
    font-size: 0.8em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

/* zobraz tooltip pri hover */
.info-icon:hover::after {
    opacity: 1;
}

.kurz hr {
    width: calc(100% - 2em);
    border: 1px dashed #000;
}

.kurz h3 {
    display: inline-block;
    margin: 0;
    padding-right: 10px;
}

.kurz-nadpis {
    padding: 1em;
    display: flex;
    align-items: center;
    margin-bottom: 1em;
    border-top-left-radius: 1.7em;
    border-top-right-radius: 1.7em;
}
.kurz-nadpis img {
    width: 4em;
    max-height: 3em;
    margin-right: 0.7em;
}
.kurz-cena {
    font-size: 26px;
    font-weight: 900;
    margin-left: auto;
}
.kurz-line {
    display: flex;
    align-items: center;
    padding: 0 1em;
}
.male-pismo {
    font-size: 0.7em;
}
.kurz button {
    min-width: fit-content;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}


@font-face {
    font-family: "Playwrite";
    src: url(assets/PlaywriteUSModern-VariableFont_wght.woff2);
}
#povedali-o-nas {
    max-width: 120ch;
    margin: 2em auto;
    background-color: #fff;
    border-top-left-radius: 3em;
    border-bottom-right-radius: 3em;
    padding: 1em 1.5em;
}
#grid-povedali {
    box-sizing: border-box;
    width: 100%;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.citat {
    height: fit-content;
    background-color: var(--green-bg);
    padding: 1em;
    border-top-left-radius: 2.5em;
    border-bottom-right-radius: 2.5em;
}
.citat-meno {
    font-size: 20px;
}

.citat p::before {
    display: block;
    content: " ";
    height: 20px;
    width: 20px;
    margin-bottom: 0.5em;
    background-image: url(assets/quotation-mark.svg);
    background-size: contain;
}
.citat p {
    /* font-style: italic; */
    font-family: "Playwrite";
    font-size: 20px;
}


footer {
    font-size: 18px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 2em;
    background-color: #fff;
}
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-name {
    font-size: 1.5em;
    font-weight: 900;
}

footer a img {
    width: auto;
    height: 1.3em;
    margin-right: 0.5em;
    transition: all 0.2s ease;
}
footer a {
    display: flex;
    align-items: center;
    width: fit-content;
    position: relative;
    color: var(--green-dark);
    text-decoration: none;
}
footer a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
footer a:hover img {
    transform: scale(1.2) rotate(-10deg);
}

footer a::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--green-dark);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}


.table-wrapper {
    overflow-x: auto;
}

table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: fit-content;
  margin: 1em auto;
}

thead {
    background-color: var(--green-dark);
    color: #fff;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #fff;
}


.form-wrapper {
    box-sizing: border-box;
    display: flex;
    /* display: none; */
    align-items: center;
    justify-content: center;
    z-index: 9;
    position: fixed;
    top: 0;
    padding-top: 100px;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: #00000080;
    
    transition: all 1s ease;
}

.field-h {
    opacity: 0;
    height: 0;
    position: absolute;
}

form {
    margin: 30px auto;
    font-family: Arial, sans-serif;

    padding: 25px 30px;
    background-color: var(--green-bg);
    border: 0.4em solid var(--green-main-transparent);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);

    overflow-y: auto;
}
#close-form {
    font-size: 1em;
    display: none;
    top: 0;
    right: 0;
    height: 2em;
    width: 2em;
    text-align: center;
    margin: 0.5em;
    margin-left: auto;
    font-weight: 900;
    padding: 0.3em;
    border-radius: 3em;
    border: 2px solid #000;
    background-color: #fff;
}
#form-pobocka {
    font-size: 25px;
    text-align: center;
    margin-bottom: 0.5em;
}

form label {
    font-weight: bold;
    color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="date"] {
    
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}
#meno, #rodne_cislo, #datum_narodenia, #tel {
    margin-right: 1em;
}

#selects-text {
    margin-top: 0.5em;
    display: flex;
    align-items: center;
}
#selects-text span:first-child {
    margin-left: 0.5em;
    width: fit-content;
}
#selects-text span:last-child {
    margin-left: 0.5em;
    width: 35%;
}
form select {
    font-size: unset;
}
textarea {
    width: 100%;
    height: 4em;
}

fieldset {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;

    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1em;
    margin-top: 15px;
}
fieldset span {
    display: flex;
}

input[type="checkbox"] {
    width: 2em;
}

legend {
    padding: 0 8px;
    font-weight: 600;
}

fieldset label {
    margin-left: 0.2em;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

form input[type=checkbox] {
    width: 1.5em;
    height: 1.5em;
    transform: translateY(0.25em);
}


@media screen and (max-width: 880px) {
    #close-form {
        display: block;
    }
    .form-wrapper {
        box-sizing: border-box;
        align-items: unset;
    }
    form {
        display: flex;
        flex-direction: column;
        margin: unset;
    }
    #selects-text {
        flex-direction: column;
    }
    #selects-text span:last-child {
        width: 100%;
        margin-top: 1em;
    }

    header nav {
        padding-top: 2em;
        z-index: 5;
        display: flex;
        position: fixed;
        top: 0;
        left: 100vw;
        width: 100vw;
        background-color: #00000080;
        backdrop-filter: blur(5px);
        transition: all 1s ease;
    }
    header nav ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    header nav ul li {
        margin-bottom: 1em;
    }
    header nav ul li a {
        color: white;
        font-size: 1.2em;
    }
    #hamburger {
        z-index: 6;
        display: flex;
    }


}


@media screen and (max-width: 1500px) {
    #banner {
        display: flex;
        flex-direction: column;
        height: fit-content;
        min-width: unset;
    }
    #banner-right {
        height: 100%;
    }
    .bubble {
        width: 20vw;
        height: 20vw;
        transform: unset !important;
        position: static;
    }
    #bubble1 {
        transform: translateX(10%) !important;
    }
    #bubble3 {
        transform: translateX(-10%) !important;
    }
    
}

@media screen and (max-width: 700px) {
    #banner {
        width: unset;
    }
    #banner-right {
        display: flex;
        flex-direction: column-reverse;
    }
    #bubble1 {
        transform: translate(40%, -90%) !important;
    }
    #bubble2 {
        transform: translate(-35%, -40%) !important;
    }
    #bubble3{
        transform: translate(35%, 0%) !important;
    }
}