@font-face {
    font-family: 'PixelFont';
    src: url('smallest_pixel-7.ttf') format('truetype');
}

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

body {
    font-family: 'PixelFont', monospace;
    background: #1a1a1a;
    color: white;
    overflow: hidden;
    height: 100vh;
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

#loading-screen {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.typewriter-container {
    margin-bottom: 3rem;
}

#typewriter-text {
    font-size: 3rem;
    text-align: center;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    min-height: 4rem;
    opacity: 0;
    animation: fadeInButton 3s ease-in-out 0s forwards;
}

.enter-button {
    font-family: 'PixelFont', monospace;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid white;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: fadeInButton 3s ease-in-out 0s forwards;
    border-radius: 10px;
}

.enter-button:hover {
    background: white;
    color: #1a1a1a;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

@keyframes fadeInButton {
    to {
        opacity: 1;
    }
}

#main-screen {
    position: relative;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.main-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 2rem;
}

.main-title {
    font-size: 4rem;
    text-align: center;
    color: white;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    margin-top: 2rem;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    }
    to {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.9);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }
}

.bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.discord-btn {
    font-family: 'PixelFont', monospace;
    font-size: 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #4a4a4a, #6a6a6a);
    border: 2px solid white;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
    object-fit: contain;
    vertical-align: middle;
}

.discord-btn:hover {
    background: linear-gradient(45deg, #6a6a6a, #8a8a8a);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.discord-icon {
    font-size: 1.2rem;
}

.credit {
    font-size: 1.2rem;
    color: #cccccc;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    opacity: 0.7;
}


.volume-control {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(42, 42, 42, 0.8);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.volume-icon {
    font-size: 1.2rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

#volume-slider {
    width: 100px;
    height: 5px;
    background: #4a4a4a;
    outline: none;
    border-radius: 5px;
    appearance: none;
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Download page centering and style improvements */
#download-screen.screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    background: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.download-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.97);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    padding: 2.5rem 2rem 2rem 2rem;
    min-width: 620px;
    max-width: 520px;
    border: 2px solid #444;
    animation: downloadBoxFadeIn 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes downloadBoxFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.download-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px #fff2, 0 0 2px #fff8;
}

.download-input {
    width: 420px;
    padding: 1.1rem 1.2rem;
    font-size: 1.15rem;
    border-radius: 8px;
    border: 1.5px solid #888;
    background: #222;
    color: #fff;
    font-family: 'PixelFont', monospace;
    outline: none;
    margin-bottom: 1.2rem;
    transition: border 0.2s;
    text-align: left;
}

.download-input:focus {
    border: 1.5px solid #6cf;
}

.download-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    width: 100%;
    justify-content: center;
}

.download-checkbox-row input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    accent-color: #6cf;
    margin-right: 0.5rem;
}

.download-label, .download-link {
    color: #ccc;
    font-family: 'PixelFont', monospace;
    font-size: 0.95rem;
}

.download-link {
    color: #6cf;
    text-decoration: underline;
    cursor: pointer;
}

.download-btn {
    margin-top: 0.5rem;
    width: 420px;
    min-width: 220px;
    padding: 1.1rem 0;
    font-size: 1.18rem;
    letter-spacing: 2px;
    opacity: 1;
    animation: none;
}

.download-message {
    min-height: 1.2rem;
    text-align: center;
    margin-top: 1.2rem;
    color: #fff;
    font-family: 'PixelFont', monospace;
    font-size: 1rem;
    word-break: break-word;
}

@media (max-width: 500px) {
    .download-box {
        min-width: unset;
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    }
    .download-input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #typewriter-text {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .discord-btn {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }
    
    .volume-control {
        bottom: 1rem;
        right: 1rem;
        padding: 0.5rem;
    }
    
    #volume-slider {
        width: 80px;
    }
}

.terms-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.terms-popup.active {
    display: flex;
}
.terms-popup-content {
    background: #232323;
    border-radius: 16px;
    box-shadow: 0 0 30px #000a;
    padding: 2rem 1.5rem;
    max-width: 90vw;
    width: 400px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.terms-popup-content h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'PixelFont', monospace;
    font-size: 1.3rem;
    text-align: center;
}
.terms-popup-scroll {
    overflow-y: auto;
    max-height: 45vh;
    color: #eee;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    padding-right: 0.5rem;
    text-align: left;
}

