/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

p, div {
    margin-bottom: 1em;
}

/* Dark Czech Cafe */
body {
    background-color: black;
    color: #ff1a1a;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.3em;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('/background.png');
    background-repeat: repeat;
    background-position: 0 0;
    animation: bg-scroll 60s linear infinite;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

@keyframes bg-scroll {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

#title {
    margin-bottom: 0.8em;
}

#title-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    color: #ff1a1a;
    text-shadow: 0 0 3px #ff1a1a, 0 0 5px #ff1a1a;
    letter-spacing: 3px;
    transition: text-shadow 0.15s ease-in, text-shadow 1.5s ease-out;
    border: none;
}

#title-title:hover {
    text-shadow: 0 0 10px #ff1a1a, 0 0 20px #ff1a1a, 0 0 40px #ff1a1a;
}

#title-lang {
    color: #00aaff;
    font-size: 0.9em;
    margin-left: 15px;
    text-transform: uppercase;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ff1a1a;
}

a {
    position: relative;
    color: #ff4d4d;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 1px dashed #ff4d4d;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: #00aaff;
    border-bottom-color: #00aaff;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #00aaff;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

.links h3 {
    border-bottom: 2px solid #444;
    padding-bottom: 5px;
}

.links-group {
    margin-bottom: 0.5em;
}

.links-group a {
    margin-right: 1.5em;
}

a:hover {
    animation: glitch 0.3s steps(2, end);
}

@keyframes glitch {
    0% { text-shadow: 2px 0 red, -1px 0 blue; }
    20% { text-shadow: -2px 0 red, 1px 0 blue; }
    40% { text-shadow: 2px 0 red, -1px 0 blue; }
    60% { text-shadow: -2px 0 red, 1px 0 blue; }
    80% { text-shadow: 2px 0 red, -1px 0 blue; }
    100% { text-shadow: none; }
}

@media (max-width: 768px) {
    body {
        font-size: 1.1em;
    }

    #title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3em;
    }
    #title-title,
    #title-lang {
        display: inline-block;
        margin-left: 0;
    }

}

@media (max-width: 600px) {
    #title-title {
        font-size: 2em;
    }
}
