*{
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

h2{
    text-align: center;
    font-size: 2rem;
}

p{
    font-size: 1.1rem;
}

:root {
    --bg:#0f1724;
    --card:#0b1220;
    --accent:#f07d2c;
    --radius:12px;
    --ff: "Rubik", sans-serif;;
    --maxw:1100px;
}

body {
    margin:0;
    font-family:var(--ff);
    background: linear-gradient(160deg, #181A1F 0%, #1F242A 50%, #101214 100%);
    color:#e6eef8;
    line-height:1.45;
    padding:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    overflow-x: hidden;
}

.container {
    width:100%;
    max-width:var(--maxw);
}

/* NAVBAR */
.navbar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px;
    background:#101214;
    border-radius:var(--radius);
    margin:0;
    width:100%;
    position:sticky;
    top:0;
    z-index:1000;
}

.navbar .brand {
    font-weight:bold;
    color:var(--accent);
    font-size: 1.2rem;
}

.nav-links {
    display:flex;
    gap:18px;
    font-size: 1.2rem;
}

.nav-links :hover{
    color: #f07d2c;
    text-decoration: underline;
    transition: 0.8s;
}

.nav-links a {
    color:#e6eef8;
    text-decoration:none;
    font-weight:500;
}

.menu-toggle {
    display:none;
    cursor:pointer;
    font-size:1.5rem;
}

/* náhled */
.nahled {
    position:relative;
    width:100%;
    height:75vh;
}

.nahled-bg {
    position:absolute;
    inset:0;
    background:url('img/DSC0054.jpg') center/cover no-repeat;
}

.overlay {
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.4);
}

.overlay h1 {
    font-size:4.8rem;
    text-align:center;
    color:#fff;
}

.countdown {
    position:absolute;
    bottom:-50px;
    left:50%;
    transform:translateX(-50%);
    background:#1F242A;
    padding:12px 20px;
    border-radius:var(--radius);  
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    color:var(--accent);
    z-index: 555;
}

/* OBSAH */
.card {
    background:rgba(255,255,255,0.05);
    margin:20px auto;
    padding:18px;
    border-radius:var(--radius);
    width:90%;
    max-width:1000px;
}

.decor-container {
    position: relative;
}

.background-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.decor-item {
    position: absolute;
    width: 200px;
    height: 200px;
    background: url("img/spoje_logo.png") no-repeat center/contain;
    opacity: 0.5;
}

.item1 { top: 5%; left: -30%; }
.item2 { top: 10%; right: -20%; }
.item3 { top: 35%; left: -20%; }
.item4 { top: 40%; right: -30%; }
.item5 { bottom: 25%; left: -30%; }
.item6 { bottom: 20%; right: -20%; }
.item7 { bottom: -5%; left: -20%; }
.item8 { bottom: -10%; right: -30%; }

.decor-container > section {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .decor-item {
    width: 120px;
    height: 120px;
    opacity: 0.3;
    }
}

@media (max-width: 500px) {
    .decor-item {
    display: none;
    }
}

p strong{
    color: #f07d2c;
}

.procPrijit{
    font-size: 1.1rem;
}

.gallery {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin-top:12px;
    padding-top: 25px;
}

.gallery img {
    width:100%;
    height:200px;
    object-fit:cover;
    border-radius:8px;
}

/* obal */
.schedule-wrapper {
    position: relative;
    border-radius: var(--radius);
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), #2C8AF0, #f07d2c, var(--accent));
    background-size: 400% 400%;
    animation: borderFlow 8s linear infinite;
}

/* samotná tabulka */
.schedule {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border-radius: inherit;
    overflow: hidden;
    background: #181c20;
    position: relative;
    z-index: 1;
}

.schedule td {
    width: 50%;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
    color: #e6eef8;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 1.1rem;
}

/* animace gradientu */
@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.time {
    color:var(--accent);
    font-weight:bold;
    width:100px;
}

.popis{
    width: 50%;
    
}

/* SPONZOŘI */
.sponsors {
    display:flex;
    gap:20px;
    flex-wrap:wrap;justify-content: space-around;
}

.sponsor {
    position:relative;
}

.sponsor img {
    height:60px;
    cursor:pointer;
}

.sponsorB{
    height: 55px;
}

.tooltip {
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    background:var(--card);
    padding:6px 10px;
    border-radius:6px;
    visibility: hidden;
    opacity:0;
    transition:opacity .5s;
    z-index: 666;

    max-width: 250px;
    width: max-content;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    line-height: 1.4;
}

.sponsor:hover .tooltip {
    opacity:1;
    visibility: visible;
}

/* FOOTER */
footer {
    display:flex;
    justify-content:space-around;
    flex-wrap:wrap;
    background:#101214;
    padding:20px;
    margin-top:30px;
    width:100%;
    z-index: 999;
}

.kontakty{
    display: flex;
    justify-content: center;
    justify-content: space-between;
}

.map-wrapper {
    width: 80%;
    height: 0;
    padding-bottom: 56.25%; /* proporce 16:9 */
    position: relative;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
}

.footer-section {
    flex:1 1 250px;
    padding:10px;
    justify-items: center;
    text-align: center;
}

.footer-section h3 {
    color:var(--accent);
    font-size: 1.8rem;
}

.footer-section a{
    text-decoration: none;
    color: #e6eef8;
}

.socials {
    display:flex;
    gap:25px;
    font-size:1.5rem;
}

.socials img {
    width:28px;
    height:28px;
    filter:invert(100%);
}


/*AnNIMACE ICON*/
.socials a img:hover {
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}

@keyframes pulse {
    0% {
    transform: scale(1);
    }
    50%{
    transform: scale(1.1);
    }
    100% {
    transform: scale(1);
    }
}
@keyframes rotate {
    0% {
    transform: rotate(0deg);
    }
    100% {
    transform: rotate(360deg);
    }
}

.socials a img {
    width: 40px;
    height: 40px;
    animation: pulse 2s linear infinite;
}

.copyright{
    width: 100%; 
    padding: 0px 12px 0px 12px;
    text-align: left;
    font-size: 1rem;
    background-color: #101214;
}

.copyright p{
    margin-top: 0;
}


/* RESPONSIVITA */
@media(max-width:768px) {
    .nav-links {
        display:none;
        flex-direction:column;
        gap:10px;
        background:var(--card);
        position:absolute;
        top:60px;
        right:20px;
        padding:10px;
        border-radius:8px;
    }

    .nav-links.active {
        display:flex;
    }

    .menu-toggle {
        display:block;
        font-size: 2rem;
    }

    .gallery {
        grid-template-columns:1fr;
    }

    footer {
        flex-direction:column;
        align-items:center;
    }

    .map-wrapper{
        width: 100%;
    }

    .overlay h1{
        font-size: 4rem;
    }
}
