* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "ROBOTO", sans-serif;
    min-height: 200vh; /* Zachováváme pro umožnění scrollování */
}

#background-canvas {
    position: absolute; /* Změněno zpět na absolute pro zachování scrollovací funkcionality */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.nav,
.slider {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    background-color: #1e1f26;
    text-align: center;
    padding: 0 2em;
}

.nav h1,
.slider h1 {
    font-family: "Josefin Sans", sans-serif;
    font-size: 8vw;
    margin: 0;
    padding-bottom: 0.5rem;
    letter-spacing: 0.3rem;
    color: #03dac6;
    transition: all 0.3s ease;
    z-index: 3;
}

h1:hover {
    color: #4dd0e1;
    text-shadow:
        0 0 5px rgba(77, 208, 225, 0.5),
        0 0 10px rgba(77, 208, 225, 0.3),
        0 0 15px rgba(77, 208, 225, 0.1);
    animation: gentlePulsate 2s infinite alternate;
}

@keyframes gentlePulsate {
    0% {
        text-shadow:
            0 0 5px rgba(77, 208, 225, 0.5),
            0 0 10px rgba(77, 208, 225, 0.3),
            0 0 15px rgba(77, 208, 225, 0.1);
    }
    100% {
        text-shadow:
            0 0 6px rgba(77, 208, 225, 0.6),
            0 0 12px rgba(77, 208, 225, 0.4),
            0 0 18px rgba(77, 208, 225, 0.2);
    }
}

.slider h2 {
    font-size: 5vw;
    letter-spacing: 0.2rem;
    font-family: "ROBOTO", sans-serif;
    font-weight: 300;
    color: #faebd7;
    z-index: 4;
}

h3.span {
    font-size: 5vw;
    letter-spacing: 0.4em;
    font-family: "ROBOTO", sans-serif;
    font-weight: 300;
    color: #faebd7;
    z-index: 4;
}

span:hover {
    color: #ff0266;
    font-weight: 500;
    font-size: 5.2vw;
}

a {
    text-decoration: none;
}

.nav-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #1e1f26;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-container--top-first {
    position: fixed;
    top: 75px;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-container--top-second {
    position: fixed;
    top: 0;
}

.nav-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    color: #03dac6;
    letter-spacing: 0.1rem;
    transition: all 0.5s ease;
    font-size: 4vw;
    padding: 10px 0;
}

.nav-tab:hover {
    color: #1e1f26;
    background: #03dac6;
}

.nav-tab-slider {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #03dac6;
    transition: left 0.3s ease;
}

.more-link, .back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #03dac6;
    color: #1e1f26;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 4vw;
}

.more-link:hover, .back-link:hover {
    background-color: #018786;
}

.back-link {
    background-color: #1e1f26;
    color: #03dac6;
}

.back-link:hover {
    background-color: #2c2d36;
}

.loader span {
    color: #faebd7;
    text-shadow: 0 0 0 #faebd7;
    animation: loading 3.5s ease-in-out infinite alternate;
}

@keyframes loading {
    to {
        text-shadow: 20px 0 70px #ff0266;
        color: #ff0266;
    }
}

.loader span:nth-child(2) { animation-delay: 0.8s; }
.loader span:nth-child(3) { animation-delay: 0.9s; }
.loader span:nth-child(4) { animation-delay: 1.0s; }
.loader span:nth-child(5) { animation-delay: 1.1s; }
.loader span:nth-child(6) { animation-delay: 1.2s; }
.loader span:nth-child(7) { animation-delay: 1.3s; }
.loader span:nth-child(8) { animation-delay: 1.4s; }
.loader span:nth-child(9) { animation-delay: 1.5s; }
.loader span:nth-child(10) { animation-delay: 1.9s; }
.loader span:nth-child(11) { animation-delay: 1.7s; }

/* Media Queries pro responzivní design */
@media (min-width: 768px) {
    .nav h1,
    .slider h1 {
        font-size: 5vw;
    }

    .slider h2 {
        font-size: 3vw;
    }

    h3.span {
        font-size: 3vw;
        letter-spacing: 0.7em;
    }

    span:hover {
        font-size: 3.2vw;
    }

    .nav-container {
        flex-direction: row;
        height: 75px;
    }

    .nav-tab {
        font-size: 2vw;
    }

    .more-link, .back-link {
        font-size: 2vw;
    }
}

@media (min-width: 1024px) {
    .nav h1,
    .slider h1 {
        font-size: 4vw;
    }

    .slider h2 {
        font-size: 2vw;
    }

    h3.span {
        font-size: 2vw;
    }

    span:hover {
        font-size: 2.2vw;
    }

    .nav-tab {
        font-size: 1.5vw;
    }

    .more-link, .back-link {
        font-size: 1.5vw;
    }
}