@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --background-color: #1a0000;
    --text-color: #ffffff;
    --accent-color: #ff0000;
    --highlight-color: #ff3333;
    --secondary-color: #ff6666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    z-index: 10;
    position: relative;
}

.interaction-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    transition: opacity 0.5s ease;
}

.fallback-text {
    background-color: rgba(30, 0, 0, 0.9);
    color: var(--accent-color);
    padding: 1rem 2rem;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    animation: pulse 2s infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.fallback-text.visible {
    opacity: 1;
}

#start-button {
    padding: 15px 30px;
    font-size: 1.2rem;
    background-color: transparent;
    color: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#start-button:hover {
    transform: none;
    background-color: transparent;
}

.notice-container {
    text-align: center;
    transition: opacity 0.5s ease;
}

.notice-heading {
    margin-bottom: 2rem;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s ease;
}

.letter-container {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.letter {
    font-size: 5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0 5px;
    display: inline-block;
    opacity: 0;
    transform: rotateX(-90deg);
    transition: transform 0.5s, opacity 0.5s;
}

.letter.visible {
    opacity: 1;
    transform: rotateX(0deg);
}

.notice-content {
    background-color: rgba(30, 0, 0, 0.8);
    padding: 2rem;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    transition: opacity 1s ease, transform 1s ease, max-height 1.2s ease;
    opacity: 0;
    transform: translateY(30px);
    max-height: 0;
    overflow: hidden;
}

.notice-content.visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px; 
}

h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.highlight-date {
    color: var(--highlight-color);
    font-weight: bold;
}

.new-domain {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 5px;
}

#new-domain-link {
    color: var(--highlight-color);
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
}

#new-domain-link:hover {
    text-decoration: underline;
}

.countdown {
    margin-top: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.visual-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    opacity: 0;
    animation: pulse-expand 4s infinite;
}

.pulse-circle.visible {
    opacity: 1;
}

.hidden {
    display: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-expand {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .letter {
        font-size: 3.5rem;
        margin: 0 2px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .new-domain {
        padding: 0.5rem;
    }
    
    #new-domain-link {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .notice-content {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .letter {
        font-size: 2.5rem;
        margin: 0 1px;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    .notice-content {
        padding: 1rem !important;
    }
    
    .notice-heading {
        margin-bottom: 1rem;
        height: 80px;
    }
    
    .countdown {
        margin-top: 1rem;
        font-size: 0.9rem;
    }
    
    .fallback-text {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 320px) {
    .letter {
        font-size: 2rem;
        margin: 0;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    .notice-content {
        padding: 0.75rem !important;
    }
}

@media (max-height: 600px) {
    .notice-heading {
        height: 60px;
        margin-bottom: 0.5rem;
    }
    
    .letter {
        font-size: 2.5rem;
    }
    
    p {
        margin-bottom: 0.5rem;
    }
}