@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


:root {
    --color-pozadi: rgb(230, 230, 230);
    --color-orange: rgb(255, 158, 47);
    --color-gray: rgb(48, 48, 48);
    --z-fixed: 100;
}




*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    background-color: var(--color-pozadi);
}


.container{
    max-width: 1120px;
    margin-inline: 1.5rem;
}
a {
    text-decoration: none;
}


/* navbar */
ul {
    list-style: none;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-gray);
    box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
    z-index: var(--z-fixed);
}
.nav {
    height: 4rem;
}
.nav-logo,
.nav-burger,
.nav-close {
    color: whitesmoke;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
    font-weight: 500;
    font-size: 2rem;
}
.nav-logo i {
    font-weight: 400;
}
.nav-data {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-toggle{
    position: relative;
    width: 32px;
    height: 32px;
}
.nav-burger,
.nav-close{
    position: absolute;
    width: max-content;
    height: max-content;
    inset: 0;
    margin: auto;
    font-size: 1.5rem;
    cursor: pointer;
    transition: opacity .1s, transform .4s;
}
.nav-close{
    opacity: 0;
}
.nav-link{
    color: var(--color-orange);
    background-color: var(--color-gray);
    font-weight: 500;
    font-size: 22px;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color .3s;
}
/* toggle navbar(scrollbar) */
@media screen and (max-width:1118px){
    .nav-menu{
        position: absolute;
        left: 0;
        top: 3.5rem;
        width: 100%;
        height: calc(100vh - 3.5rem);
        overflow: auto;
        pointer-events: none;
        opacity: 0;
        transition: top .4s, opacity .3s;
    }
    .nav-menu::-webkit-scrollbar{
        width: 0;
    }
    .nav-list{
        background-color: var(--color-gray);
        padding-top: 1rem;
    }
    .nav-link:hover{
        color: rgb(192, 192, 192);
        margin-left: 1rem;
        transition: .5s;
    }
}
/* burger menu */
.show-menu{
    opacity: 1;
    top: 3.5rem;
    pointer-events: initial;
}
.show-icon .nav-burger{
    opacity: 0;
    transform: rotate(90deg);
}
.show-icon .nav-close{
    opacity: 1;
    transform: rotate(90deg);
}
/* řesponzivita navbar */
@media screen and (max-width:393px){
    .container{
        margin-inline: 1rem;
    }
    .nav-link{
        padding-inline: 1rem;
    }
    .table caption {
        font-size: 20px;
    }   
}
@media screen and (min-width:1118px){
    .container{
        margin-inline: auto;
    }
    .nav{
        height: calc(4rem + 2rem);
        display: flex;
        justify-content: space-between;
    }
    .nav-toggle{
        display: none;
    }
    .nav-list{
        height: 100%;
        display: flex;
        column-gap: 3rem;
    }
    .nav-link{
        height: 100%;
        padding: 0;
        justify-content: initial;
        column-gap: .25rem;
    }
    .nav-link:hover{
        background-color: transparent;
        color: rgb(192, 192, 192);
        transition: .5s;
    }
}
@media (max-width: 480px) {
    .harmonogram-texty {
        padding: 10px;
        gap: 10px;
    }

    .harmonogram-texty div {
        padding: 10px;
        font-size: 14px;
        width: 80%;
    }
    
    .harmonogram-texty p {
        line-height: 1.4;
    }
}

/* home image */
.home-image {
    min-height: 70vh;
    width: 100%;
    background: url('odpocivarna.webp') no-repeat center 75% / cover;
    opacity: 0.9;
    position: relative;
}
.home-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1; /* Zajistí, že ztmavení bude nad obrázkem, ale pod textem */
}
.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Umožní správné vycentrování */
    color: rgb(243, 243, 243);
    text-align: center;
    z-index: 2;
}
.text-overlay h1 {
    font-size: 3em;
    margin: 0;
}
.text-overlay p {
    font-size: 1.5em;
    margin-top: 3%;
}

/* harmonogram */
.table {
    display: grid;
    max-width: 100%;
    justify-content: center;
    align-items: center;
    border-collapse: collapse;
    margin-top: 5%;
    padding: 20px;
}
table caption{
    text-transform: uppercase;
    font-size: 35px;
    font-weight: 500;
    padding: 1rem;
    align-items: center;
}
td{
    background-color: rgb(245, 245, 245);
    padding: 1rem;
}
.harmonogram-texty {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-top: 6%;
}
.harmonogram-texty div {
    background-color: rgb(243, 243, 243);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 50%;
}
.harmonogram-texty .h-text1,
.harmonogram-texty .h-text3 {
    align-self: flex-start;
    text-align: left;
    margin-left: 10%;
}
.harmonogram-texty .h-text2,
.harmonogram-texty .h-text4 {
    align-self: flex-end;
    text-align: left;
    margin-right: 20%;
}
.harmonogram-texty p {
    margin: 0;
    line-height: 1.6;
}

/* lepsi misto */
.lepsi-misto {
    padding: 20px;
    margin: 0 auto;
    max-width: 800px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}
.lepsi-misto h2 {
    margin-top: 15%;
    font-size: 2em;
    margin-bottom: 1em;
    text-align: center; 
}
.lepsi-misto p {
    margin-bottom: 1em; 
}

/* kontakt */
.contact-container h3 {
    padding-top: 30px;
}
.contact {
    margin-top: 200px;
    padding: 50px;
    text-align: center;
}
.contact h2{
    font-size: 50px;
}
.contact-container {
    margin: 0 auto;

}
.contact-container i{
    margin-right: 5px;
}

/* footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    display: inline;
    margin: 0 10px;
}
.footer-links a {
    color: white;
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}