@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Special+Elite&display=swap');

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

body {
    background-color: #000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Special Elite', cursive;
    overflow: hidden;
}

.menu-container {
    text-align: center;
    z-index: 2;
}

.game-title {
    font-family: 'Creepster', cursive;
    font-size: 5rem;
    color: #8b0000;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    animation: flicker 4s infinite;
    margin-bottom: 2rem;
}

.play-button {
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid #8b0000;
    color: #8b0000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.play-button:hover {
    background: #8b0000;
    color: #000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.play-button:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 1s linear;
}

.fog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="f"><feTurbulence type="fractalNoise" baseFrequency="0.01" numOctaves="5"/><feColorMatrix values="0 0 0 7 -4 0 0 0 7 -4 0 0 0 7 -4 0 0 0 0.4 0"/></filter><rect width="100%" height="100%" filter="url(%23f)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
    animation: fog-move 20s infinite linear;
    z-index: 1;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    25%, 75% { opacity: 0.9; }
    33%, 66% { opacity: 0.95; }
}

@keyframes shine {
    100% { left: 100%; }
}

@keyframes fog-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100%, -100%); }
}

.menu-subtitle {
    font-family: 'Special Elite', cursive;
    font-size: 2.5rem;
    color: #8b0000;
    margin-bottom: 2rem;
    text-shadow: 0 0 5px rgba(139, 0, 0, 0.5);
}

.difficulty-button {
    /* Copy play-button styles directly */
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid #8b0000;
    color: #8b0000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Add hover effects */
.difficulty-button:hover {
    background: #8b0000;
    color: #000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.difficulty-button:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 1s linear;
}

.hidden {
    display: none;
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.achievements-button {
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid #8b0000;
    color: #8b0000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.achievements-button:hover {
    background: #8b0000;
    color: #000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.achievements-button:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 1s linear;
}

.achievements-screen {
    text-align: center;
    color: #8b0000;
}

.back-to-menu-button {
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid #8b0000;
    color: #8b0000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.back-to-menu-button:hover {
    background: #8b0000;
    color: #000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.achievement {
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    border: 2px solid #8b0000;
    border-radius: 8px;
    margin: 1rem;
    transition: all 0.3s ease;
}

.achievement h3 {
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #8b0000;
}

.achievement p {
    font-family: 'Special Elite', cursive;
    font-size: 1rem;
    color: #666;
}

.achievement.unlocked h3 {
    color: white;
    text-shadow: 0 0 10px white;
}

.achievement.unlocked .achievement-progress {
    color: gold;
}
