@import url('https://db.onlinewebfonts.com/c/dd4d93fe7c0a5ca839a75340d4417f51?family=Formata-Regular');
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Public+Sans:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #2596be;
    --secondary-color: #f18f00;
    --back-color: #80ba27;
    --text-color: #646363;
    --background-color: #f5f5f5;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', 'Formata Regular', Arial, Helvetica, sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    width: 100%;
    max-width: max-content;
}

strong {
    font-weight: normal;
    color: var(--primary-color);
}

header {
    font-family: 'Comfortaa', sans-serif;
    color: white;
}

h2 {
    color: var(--primary-color);
    font-family: 'Google Sans', sans-serif;
    text-align: center;
    font-size: 2em;
}

.logo {
    margin: 0 15px;
}

.header-text {
    position: absolute;
    text-align: left;
    padding: 60px 20px;
    top: 25%;
    left: 8%;
}

.header-text a {
    border: 2px solid white;
    padding: 8px 16px;
    margin: 15px 0;
    border-radius: 8px;
    color: white;
    transition: background-color 0.3s, color 0.3s;
}

.center {
    background-color: var(--background-color);
    color: white;
    text-align: center;
    padding: 20px 8%;
}

main {
    padding: 20px 8%;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.skola {
    display: flex;
    flex-direction: column;
    text-align: justify;
    padding-right: 10px;
}

#o-skole {
    padding: 10px 0;
    margin: 20px auto;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    font-size: 18px;
}

#o-skole img {
    border-radius: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
}

#kalendar {
    max-width: 900px;
    margin: 20px auto;
    font-family: 'Open Sans', sans-serif;
}

.kalendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.kalendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.dnesni-den {
    border: 2px solid var(--secondary-color) !important;
}

.den {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    min-height: 100px;
    background: var(--background-color);
    position: relative;
}

.den span.datum {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.akce-item {
    color: white;
    padding: 3px 5px;
    margin-top: 3px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

#prehled-akci .akce-row {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#prehled-akci .akce-row span {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
}

.dny-tydne {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
}

.den-nadpis {
    padding: 5px 0;
    color: #333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background: white;
    padding: 20px;
    margin: 10% auto;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
}

#modal-close {
    float: right;
    cursor: pointer;
    font-size: 20px;
}


.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

article {
    min-width: 300px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

article:hover {
    transform: translateY(-6px);
}

article img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*
.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    transition: background 0.3s;
    z-index: 10;
}

.carousel button:hover {
    background: var(--secondary-color);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.show-more {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.show-more:hover {
    background: var(--secondary-color);
}
*/

.zadne-akce {
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 0.95rem;
    font-style: italic;
    text-align: center;
}

#myTopnav a{
    transition: 0.3s;
}

#myTopnav a.active {
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
}

#myTopnav a:hover {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
}

.button {
    display: block;
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0;
    overflow: hidden;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    border: 0;
}

.button:before,
.button:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 7px;
}

.button:before {
    border: 4px solid #f0eeef;
    transition: opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1) 80ms,
        transform 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) 80ms;
}

.button:after {
    border: 4px solid var(--back-color);
    transform: scale(1.3);
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
}

.button:hover:before,
.button:focus:before {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.button:hover:after,
.button:focus:after {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1) 80ms,
        transform 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) 80ms;
}

.button-box {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}

.button-elem {
    display: block;
    width: 20px;
    height: 20px;
    margin: 17px 18px 0 18px;
    transform: rotate(180deg);
    fill: var(--text-color);
}

.button-elem-secondary {
    fill: var(--text-color);
    display: block;
    width: 20px;
    height: 20px;
    margin: 19px 18px 0 18px;
}

.button:hover .button-box,
.button:focus .button-box {
    transition: 0.4s;
    transform: translateX(-56px);
}

.article-container {
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.article-container article {
    margin-top: 6px;
    font-family: 'Poppins', sans-serif;
    min-width: auto;
    border-radius: 18px;
    border: 4px solid var(--back-color);
    padding: 0;
}

.article-container img {
    border-radius: 14px 14px 0 0;
    text-align: center;
}

.news {
    padding: 15px;
}

.news h4 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
}

footer {
    background: var(--text-color);
    padding: 20px 8%;
    text-align: center;
    font-size: 1em;
    color: var(--background-color);
    display: flex;
    flex-direction: column;
    border-radius: 0 0 8px 8px;
}

footer h2 {
    margin: 10px;
    color: var(--background-color);
}

footer a {
    color: var(--background-color);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

#scrollTopBtn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    font-weight: bold;
    font-size: 32px;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 0px 4px rgba(219, 255, 160, 0.473);
    cursor: pointer;
    transition-duration: 0.3s;
    overflow: hidden;
    position: fixed;
    right: 2%;
    bottom: 4%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn .svgIcon {
    width: 12px;
    transition-duration: 0.3s;
}

#scrollTopBtn .svgIcon path {
    fill: white;
}

#scrollTopBtn:hover {
    width: 100px;
    border-radius: 50px;
    background-color: var(--secondary-color);
    align-items: center;
    transition: 0.3s;
}

#scrollTopBtn:hover .svgIcon {
    transform: translateY(-200%);
    transition-duration: 0.3s;
}

#scrollTopBtn::before {
    position: absolute;
    bottom: -20px;
    content: "Nahoru";
    color: white;
    font-size: 0px;
    transition-duration: 0.3s;
}

#scrollTopBtn:hover::before {
    font-size: 13px;
    opacity: 1;
    bottom: unset;
    transition-duration: 0.3s;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 36px;
    height: 24px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    background: var(--text-color);
    transition: transform 0.25s, opacity 0.25s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* show submenu on hover or when JS adds .open (desktop) */
.nav-list li:hover>.submenu,
.nav-list li.open>.submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    max-height: 600px;
}

.nav-list .submenu li a {
    display: block;
    padding: 8px 12px;
    color: var(--text-color);
}

@media (max-width: 799px) {
    header {
        display: flex;
        flex-direction: column;
    }

    main {
        margin-top: -60%;
    }

    .dny-tydne {
        display: none;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--background-color);
        padding: 10px;
        position: relative;
    }

    .nav-list.open {
        display: flex;
        flex-direction: column;
    }

    .nav-list.open>li {
        width: 100%;
    }

    .nav-list.open .dropdown {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-list.open .dropdown a {
        flex: 1;
        padding: 15px;
        display: block;
    }

    .nav-list.open .dropdown span {
        width: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }


    .nav-list.open .submenu {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .nav-list.open .submenu li a {
        width: 100%;
        display: block;
    }

    .hamburger {
        display: inline-flex;
    }
}

@media (max-width: 799px) {
    .kalendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    a.active {
        width: 100%;
    }

    .center {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .logo img {
        width: 80%;
        height: auto;
    }

    .header-text {
        position: relative;
        padding: 20px 15px;
        bottom: 170px;
        left: 0;
        font-size: 12px;
    }
}

@media (min-width: 800px) {
    .kalendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .skola {
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }

    .skola img {
        width: 50%;
        height: auto;
        border-radius: 12px;
    }

    .center {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #myTopnav {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    #myTopnav .icon {
        display: none;
    }

    .article-container {
        grid-template-columns: repeat(4, 1fr);
    }

    footer {
        padding: 0;
    }

    footer section {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        padding: 20px 8%;
        gap: 15px;
    }

    .footer-address {
        display: flex;
        flex-direction: row;
        background-color: #f19100a4;
    }

    .footer-info {
        margin: 20px;
    }

    .footer-bottom {
        background-color: #f19100a4;
    }
}

@media (min-width: 1200px) {
    section#akce {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
    }

    #prehled {
        border: 4px solid var(--secondary-color);
        border-radius: 18px;
        margin: 10px;
        flex: 1;
    }

    #lale {
        flex: 2;
    }
}

@media (min-width: 800px) and (max-width: 1199px) {
    .article-container {
        grid-template-columns: repeat(2, 1fr);
    }

    iframe {
        display: none;
    }
}

@media (min-width: 1200px) {
    section#akce {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
    }

    #prehled {
        border: 4px solid var(--secondary-color);
        border-radius: 18px;
        margin: 10px;
        flex: 1;
    }

    #lale {
        flex: 2;
    }
}

@media (min-width: 800px) and (max-width: 1199px) {
    .article-container {
        grid-template-columns: repeat(2, 1fr);
    }

    iframe {
        display: none;
    }
}

.topnav {
    width: 100%;
    background: var(--background-color);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-list > li {
    position: relative;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    color: var(--text-color);
}

.dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dropdown span {
    width: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 200ms ease, max-height 300ms ease, visibility 0s linear 300ms;
}

@media (min-width: 800px) {
    .dropdown span {
        display: none;
    }

    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background: #fff;
        border: 1px solid #e6e6e6;
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
        z-index: 100;
    }

    .has-submenu:hover > .submenu {
        visibility: visible;
        opacity: 1;
        max-height: 500px;
        transition-delay: 0s;
    }
}

@media (max-width: 799px) {
    .nav-list {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 10px;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list > li {
        width: 100%;
    }

    .dropdown {
        cursor: pointer;
    }

    .has-submenu.open > .submenu {
        visibility: visible;
        opacity: 1;
        max-height: 500px;
        transition-delay: 0s;
    }

    .has-submenu .fa-chevron-down {
        transition: transform 250ms ease;
    }

    .has-submenu.open .fa-chevron-down {
        transform: rotate(180deg);
    }
}
