@font-face {
    font-family: 'Quadaptor';
    src: url('./Quadaptor.otf') format('opentype');
}

:root {
    --bg-color: #060606;
    --main-text-color: #cccccc;
    --sub-text-color: #999999;
    --red-dark: #8b0000;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: var(--bg-color);
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.final-screen {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0; 
}

.start-animation {
    animation: fadeInScreen 3s ease-out forwards;
}

@keyframes fadeInScreen {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

.main-text {
    font-family: 'Quadaptor', sans-serif;
    font-size: 6rem;
    font-weight: bold;
    color: var(--main-text-color);
    text-shadow: 0 0 12px rgba(204, 204, 204, 0.3);
    user-select: none;
    cursor: pointer;
    min-height: 96px;
    position: relative;
}

.main-text.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    display: inline-block;
    margin-left: 5px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.soon-text {
    font-family: 'Quadaptor', sans-serif;
    font-size: 1.5rem;
    color: var(--sub-text-color);
    margin-top: -5px;
}

.soon-text span {
    transition: font-family 0.5s ease-in-out;
}

.rsod-screen {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center;
    padding: 40px; 
    box-sizing: border-box; 
    background-color: var(--red-dark); 
    color: white;
}

.rsod-logo {
    font-family: 'Quadaptor', sans-serif; 
    font-size: 5rem; 
    margin-bottom: 20px;
    text-shadow: 3px 3px #000; 
    border: 3px solid white; 
    padding: 10px 20px;
}

.rsod-text { 
    font-size: 1.2rem; 
    line-height: 1.8rem; 
    max-width: 800px; 
}

.rsod-footer { 
    margin-top: 40px; 
    border-top: 1px solid white; 
    padding-top: 20px; 
}

.sleep-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sleep-text-smoky {
    font-family: 'Quadaptor', sans-serif;
    font-size: 4rem;
    color: transparent;
    animation: smoke-effect 8s ease-out forwards;
}

.sleep-text-smoky.typing-cursor::after {
    content: '|';
    color: var(--main-text-color);
    animation: blink 1s step-end infinite;
    display: inline-block;
    margin-left: 5px;
}

@keyframes smoke-effect {
    0% {
        color: transparent;
        text-shadow: 0 0 30px rgba(204, 204, 204, 0.6), 0 0 50px rgba(204, 204, 204, 0.4);
    }
    50% {
        color: var(--main-text-color);
        text-shadow: 0 0 15px rgba(204, 204, 204, 0.3), 0 0 25px rgba(204, 204, 204, 0.2);
    }
    100% {
        color: var(--main-text-color);
        text-shadow: 0 0 2px rgba(204, 204, 204, 0.1);
    }
}

.trembling {
    animation: tremble 0.2s linear infinite;
}

@keyframes tremble {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    25% { transform: translate(1px, -1px) rotate(-0.1deg); }
    50% { transform: translate(-1px, 1px) rotate(0); }
    75% { transform: translate(1px, 1px) rotate(0.1deg); }
}

.letter-particle {
    position: absolute;
    font-family: 'Quadaptor', sans-serif;
    font-size: 4rem;
    color: var(--main-text-color);
    text-shadow: 0 0 2px rgba(204, 204, 204, 0.1);
    pointer-events: none;
    opacity: 0;
    animation: parasite-fade-in 1s forwards;
}

@keyframes parasite-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.text-fading-out {
    transition: opacity 0.5s ease-out;
    opacity: 0 !important;
}


.hidden {
    display: none;
}
