/*vše co je zde v komentářích mi poradilo chatgpt*/
body {
    overflow-x: hidden;
    overflow-y: scroll;
    background-color: rgb(32, 32, 32);
    scroll-behavior: smooth;
    scrollbar-color: rgb(249, 255, 170) rgb(44, 44, 44);
    scrollbar-width: thin;
}

h2 {color: rgb(249, 255, 170);
    font-family: "McLaren";}

h1 {font-size: 32px;
    font-family: "Martian Mono";}

.uvod {color: rgb(249, 255, 170);}

::-webkit-scrollbar {
    width: 12px;
    background-color: rgb(44, 44, 44);
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 1px rgb(249, 255, 170);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgb(249, 255, 170);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(253, 255, 139);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 5;
    display: flex;
    padding: 10px;
    background-color: rgb(32, 32, 32);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    word-wrap: break-word; /* Zajišťuje zalomení slov */
}

#menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;       /* Umožní zalomení položek menu na další řádek */
    gap: 20px;
    padding: 0;
    margin-top: 10px;
    justify-content: center;
    width: 100vw;
    box-sizing: border-box;
}

#menu li a {
    text-decoration: none;
    font-size: 0.925vw;
    font-family: "McLaren";
    color: white;
    transition: 300ms linear color;
    word-break: break-word; /* Zalomení slov uvnitř odkazu, pokud přesahují šířku */
}

/* Liché odkazy (1., 3., 5., ...) */
#menu li:nth-child(odd) a:hover {
    color: rgb(126, 255, 255);
    transition: 300ms linear color;
}

/* Sudé odkazy (2., 4., 6., ...) */
#menu li:nth-child(even) a:hover {
    color: rgb(249, 255, 170);
    transition: 300ms linear color;
}

.akce {margin-top: 10%;
    font-size: 1.7vw;
    padding: 3px;
    margin-bottom: 2.5%;
    border-bottom: 1px solid white;
color: rgb(126, 255, 255);}


.odpocivarna {
    font-size: 2.75vw;
    font-family: "Roboto";
    color: rgb(249, 255, 170);
    position: relative;
}

section {display: flex;
    flex-direction: column;
    width: calc(100vw - 20px); 
    height: 100vh;
    padding: 100px 20px 20px 20px; 
    box-sizing: border-box;  
    word-wrap: break-word; 
}

#informace {height: 280vh;}

.timeline {display: block;}

.timeline, .timeline2 {
    margin-top: 2.5%;
margin-bottom: 2.5%;}

.timeline2 {display: none;}

#informace, #sponzoriapartneri {justify-content: center;
align-items: center;}

.informace-text {width: 50%;
    border: 1px solid rgb(126, 255, 255);
    font-family: "Roboto";
    font-size: 16px;
    text-align: center;
    margin-bottom: 10%;
    padding: 1.25%;
    color: white;}

    .sponzori {color: rgb(249, 255, 170);}
    .partneri {color:rgb(126, 255, 255);}
    .loga {display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 25%;
margin-top: 5%;
margin-bottom: 5%;}


.logo {filter: grayscale(0.9);
transition: 450ms ease-in-out;}

.logo:hover {filter: grayscale(0);
    transition: 500ms ease-in-out;}

@media screen and (max-width: 1000px) {

    .odpocivarna {font-size: 5vw;}

    .akce {font-size: 3.25vw;}

    .timeline {display: none;}

    .timeline2 {display: block;
        margin-top: 10%;
    margin-bottom: 10%;}

    #menu li a {font-size: 1.5vw;}
}

@media screen and (max-width: 900px) {
    #informace {height: 245vh;}}

@media screen and (max-width: 650px) {
    #menu li a {font-size: 2.45vw;}
    
    .akce {font-size: 4.5vw;}

    .odpocivarna {font-size: 6.5vw;}
}

@media screen and (max-width: 450px) {
    #menu li a {font-size: 2.85vw;}
}
