.sticky-navbar {
    position: sticky;
    top: 0; /* Navbar zůstane přichycen k horní části obrazovky */
    z-index: 1000; /* Aby byla lišta vždy nad ostatními prvky */
    background-color: #000; /* Černé pozadí */
    color: #fff; /* Bílé písmo */
    height: 1.5rem; /* Výška 1,5 cm (v pixelech cca 24px) */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem; /* Odstup kolem obsahu */
    font-size: 1.2em; /* Velikost písma přizpůsobená ostatnímu textu */
}

.sticky-navbar .logo {
    font-weight: bold;
    font-size: 1.5em;
    letter-spacing: 0.05em; /* Lehké rozestupy mezi písmeny */
}

.sticky-navbar .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.sticky-navbar .nav-links li {
    margin-left: 0.2rem; /* Mezera mezi jednotlivými odkazy */
}

.sticky-navbar .nav-links li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.sticky-navbar .nav-links li a:hover {
    color: #ff9800; /* Oranžová barva při přejetí */
}

/* Globální styl */
body {
    font-family: 'Oswald', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Hlavička */
header {
    background: url(IMG_8883\ _finalni\(1\).jpg) no-repeat center center/cover;
    height: 100vh; /* Plná výška obrazovky */
    width: 100%; /* Plná šířka obrazovky */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #fff;
    text-align: center;
    background-attachment: fixed; /* Pro efekt paralaxy */
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5em;
    font-weight: 300;
    color: #fff;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin: 0 0.5em;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    padding: 0.5em 1em;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #ff9800;
}

.menu-wrapper {
    display: flex;
    align-items: center;
}

.logo_text_m {display:none; margin-left: 0.5em;  position: absolute; top: 1.35em; font-size:2em; left: 1em;}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 0.5em;
	position: absolute;
        top: 3em;
        right: 1em;
}

.hamburger .bar {
    width: 25px;
    height: 3 px;
    background-color: white;
    margin: 3px 0;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px;
    border-radius: 5px;
    transition: 0.3s;
}



/* Styl pro h1 - Jsem šachista */
.header-content {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Posunutí textu níže */
    height: 100%;
    padding-bottom: 5%; /* Jemné posunutí textu dolů */
}


.header-content h1 {
    font-family: 'Bebas Neue', sans-serif; /* Nové zajímavé písmo */
    font-size: 8em; /* Větší text */
    font-weight: 400;
    margin: 0;
    color: #000; /* Černá barva textu */
    letter-spacing: 0.05em; /* Menší rozestup mezi písmeny */
    text-transform: uppercase;
    transition: color 0.3s ease-in-out;
}


/* Mobilní menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-links li {
    margin: 1em 0;
}

.mobile-nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 2em;
    padding: 1em;
    transition: color 0.3s;
}

.mobile-nav-links li a:hover {
    color: #ff9800;
}

.close-btn {
    position: absolute;
    top: 0em;
    right: 0.5em;
    font-size: 2em;
    cursor: pointer;
    color: #fff;
}

/* Patička */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    position: relative;
    bottom: 0;
    width: 100%;
}


/* Responzivní design */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
.logo_text_m {display:block;}

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    header {
        height: 100vh; /* Udržení plné výšky na mobilních zařízeních */
    }

    .header-content {
        padding-bottom: 5%;
    }

    .header-content h1 {
        font-size: 4em; /* Menší text na mobilních zařízeních */
    }


    section {
        padding: 2em 1em;
    }

    .menu-wrapper {
        justify-content: flex-end;
        width: 100%;
    }
}

/* Sekce */
section {
    padding: 4em 2em;
    text-align: center;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: url(IMG_8883\ _finalni\(1\).jpg) no-repeat center center/cover;
    margin: 0 auto;
    margin-bottom: 2em;
}

/* Menu stránka */
.menu-page {
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-weight: 300;
}

.menu-container {
    position: relative;
    text-align: center;
    width: 100%;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 2em;
    font-weight: 300;
}

.menu-list li {
    margin: 1em 0;
    border-bottom: 1px solid #fff; /* Slabá bílá linka */
    padding-bottom: 0.5em;
}

.menu-list li:last-child {
    border-bottom: none;
}

.menu-list a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.menu-list a:hover {
    color: #ff9800;
}

.close-btn {
    position: absolute;
    top: 0em;
    right: 0.5em;
    font-size: 3em;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff9800;
}

/* Responzivní styl */
@media (max-width: 768px) {
    .menu-list {
        font-size: 1.5em;
    }
}

#home {
    padding-top: 2rem; /* Přizpůsobte podle výšky navigační lišty */
    margin-top: -2rem; /* Kompenzace odsazení */
}

/* Sekce O mně */
#about {
    padding: 4rem 2rem;
    background-color: #ffffff; /* Základní bílá */
    font-family: 'Oswald', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Žluté pozadí za textem a medailonkem */
.about-background {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: #f7b633; /* Žlutá barva */
    transform: translateX(-50%);
    z-index: -1;
    border-radius: 20px; /* Zakulacení rohů */
}

/* Kontejner sekce */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8); /* Poloprůhledné pozadí pro kontrast */
    border-radius: 10px; /* Kulaté rohy */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Jemný stín */
}

/* Medailonek */
.about-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Kulatý tvar */
    object-fit: cover;
    margin-bottom: 1.5rem; /* Odstup od textu */
    border: 4px solid #f7b633; /* Žlutý rámeček */
}

/* Nadpis "O mně" */
.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    text-transform: uppercase;
    border-bottom: 4px solid #f7b633; /* Žlutá linka pod nadpisem */
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Text pod nadpisem */
.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Věta pod nadpisem */
.about-text p.welcome {
    font-size: 1.2rem;
    font-weight: normal;
    color: #555;
    margin-top: 1.5rem;
    text-align: center;
}

/* Sekce Moje hry */
#games {
    padding: 3rem 2rem;
    background-color: #ffffff;
    font-family: 'Oswald', sans-serif;
    color: #333;
    text-align: center;
    border: 5px solid #f7b633; /* Silnější žlutý rámeček */
    border-radius: 20px; /* Kulatější rohy, shodné se sekcí O mně */
    max-width: 900px; /* Šířka přizpůsobená sekci O mně */
    margin: 2rem auto; /* Centrované zarovnání */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Jemný stín pro efekt */
}
.btn_vice {font-family: 'Oswald', sans-serif; text-transform: uppercase; margin:auto; border: 2px solid #fff; box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); -webkit-transition-duration: 0.4s; transition-duration: 0.4s; cursor: pointer; background-color: #979797; padding: 3px 25px 3px 25px; border-radius: 5px; color: #fff;}
.btn_mene:hover {border: 2px solid #f7b633; font-size:1em; color:#fff; padding: 5px 35px 5px 35px; border-radius: 10px;}
.btn_mene {font-family: 'Oswald', sans-serif; text-transform: uppercase; margin:auto; border: 2px solid #fff; box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); -webkit-transition-duration: 0.4s; transition-duration: 0.4s; cursor: pointer; background-color: #979797; padding: 3px 25px 3px 25px; border-radius: 5px; color: #fff;}
.btn_vice:hover {border: 2px solid #f7b633; font-size:1em; color:#fff; padding: 5px 35px 5px 35px; border-radius: 10px;}
.vice {display:none;}
.p_mene {display:none; text-align:center;}


#games h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem; /* Nastaveno o 1rem více než v "O mně" */
    color: #333;
    text-transform: uppercase;
    border-bottom: 4px solid #f7b633; /* Žlutá linka pod nadpisem */
    display: inline-block;
    padding-bottom: 0.5rem;
}

.games-container {
    max-width: 900px;
    margin: 0 auto;
}

.game {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.game-header .placement {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
}

.game-header .date {
    color: #666;
    font-size: 1rem;
    border-left: 3px solid #f7b633; /* Žlutá svislá čára */
    padding-left: 1rem;
}

.game p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.game p .details {
    color: #999; /* Světle šedá barva */
}

/* Sekce Kontakt */
#contact {
    padding: 1rem 2rem;
    background-color: #ffffff; /* Bílá barva pozadí */
    font-family: 'Oswald', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Žluté pozadí za textem */
.contact-background {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: #f7b633; /* Žlutá barva */
    transform: translateX(-50%);
    z-index: -1;
    border-radius: 20px; /* Kulaté rohy */
}

/* Kontejner sekce */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8); /* Poloprůhledné bílé pozadí */
    border-radius: 10px; /* Kulaté rohy */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Jemný stín */
}

/* Nadpis "Kontakt" */
.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    text-transform: uppercase;
    border-bottom: 4px solid #f7b633; /* Žlutá linka pod nadpisem */
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Text pod nadpisem */
.contact-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* E-mailová adresa */
.contact-text p.email {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Ikona e-mailu */
.email-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Odkaz na e-mail */
.contact-text p.email a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text p.email a:hover {
    color: #f7b633; /* Žlutá barva při hoveru */
}

/* Responzivní design pro mobilní zařízení */
@media (max-width: 768px) {
    #contact {
        padding: 2rem 1rem;
    }

    .contact-container {
        max-width: 100%;
    }

    .contact-text h2 {
        font-size: 2rem;
    }

    .contact-text p {
        font-size: 1rem;
    }
}

/* Responzivní design pro mobilní zařízení */
@media (max-width: 768px) {
    #games {
        padding: 2rem 1rem;
    }

    #games h2 {
        font-size: 2rem;
        margin-bottom: 1rem; /* Menší mezera pro mobilní verzi */
    }

    .game-header .placement {
        font-size: 1rem;
    }

    .game-header .date {
        font-size: 0.9rem;
    }

    .game p {
        font-size: 0.9rem;
    }
}


/* Responzivní design pro mobilní zařízení */
@media (max-width: 768px) {
    #about {
        padding: 2rem 1rem;
    }

    .about-container {
        max-width: 100%;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-image img {
        width: 150px;
        height: 150px;
    }

    .about-text p.welcome {
        font-size: 1rem;
        margin-top: 1rem;
    }
}
@media (max-width: 1024px) {
    .sticky-navbar {
        display: none; /* Skryjeme navbar na mobilních zařízeních */
    }
}

html {
    scroll-behavior: smooth;
}