/* General Reset */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #121212;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Glitch effect on the header */
.glitch {
    font-size: 4rem;
    color: #0ff;
    position: relative;
    display: inline-block;
    font-weight: bold;
}

.glitch::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #f00;
    animation: glitch-anim-2 1s infinite linear alternate-reverse;
    clip-path: inset(0 0 100% 0);
}

.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #ff0;
    animation: glitch-anim 1s infinite linear alternate-reverse;
    clip-path: inset(0 0 100% 0);
}

@keyframes glitch-anim {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-10px, 0); }
    40% { transform: translate(10px, 0); }
    60% { transform: translate(-5px, 0); }
    80% { transform: translate(5px, 0); }
    100% { transform: translate(0, 0); }
}

@keyframes glitch-anim-2 {
    0% { transform: translate(0, 0); }
    20% { transform: translate(0, 10px); }
    40% { transform: translate(0, -10px); }
    60% { transform: translate(0, 5px); }
    80% { transform: translate(0, -5px); }
    100% { transform: translate(0, 0); }
}

/* Main content */
main {
    flex: 1;
    overflow-y: auto;  /* Umožní vertikálne posúvanie */
    padding: 20px;
    width: 100%; /* Uistíme sa, že hlavný obsah bude zaberať celú šírku */
    box-sizing: border-box;
}

.intro {
    margin-top: 50px;
    color: #eee;
}

.intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.neon-button {
    padding: 10px 20px;
    font-size: 1.5rem;
    color: #121212;
    background: #0f0;
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 10px #0f0, 0 0 20px #0f0, 0 0 30px #0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.neon-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px #0f0, 0 0 50px #0f0, 0 0 70px #0f0;
}

/* Neon text */
.neon-text {
    font-size: 2rem;
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    margin-top: 30px;
}

.description {
    font-size: 1.2rem;
    color: #bbb;
    margin-top: 20px;
}

/* Footer */
.footer {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #bbb;
}

.footer span {
    color: #ff0000;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-content {
    background: #121212;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
}

.overlay-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#closeOverlay {
    background: #ff0000;
    border: none;
    padding: 10px 20px;
    color: #fff;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

#closeOverlay:hover {
    background: #ff5555;
}

.image {
    width: 40%;
    max-width: 500px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 30px rgba(0, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.image:hover {
    transform: scale(1.05);
}
