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

body {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    color: #00ff00;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        );
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 40px;
}

.project-link {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 30px;
    font-size: 0.9em;
    letter-spacing: 2px;
    color: #00ff00;
    border: 2px solid #00ff00;
    background: rgba(0, 20, 0, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.project-link:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
    transform: scale(1.05);
}

.title-section {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 1s ease-in;
}

.title-section h1 {
    font-size: 4em;
    letter-spacing: 8px;
    text-shadow: 0 0 20px #00ff00;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1em;
    letter-spacing: 4px;
    opacity: 0.7;
}

.menu-section {
    background: rgba(0, 20, 0, 0.8);
    border: 2px solid #00ff00;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
    animation: slideUp 0.5s ease-out;
}

.menu-section h2 {
    text-align: center;
    font-size: 1.5em;
    letter-spacing: 3px;
    margin-bottom: 25px;
    text-shadow: 0 0 10px #00ff00;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: #000;
    border: 2px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    border-color: #00ff00;
}

.input-group input::placeholder {
    color: rgba(0, 255, 0, 0.4);
    text-transform: none;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    padding: 15px 30px;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    letter-spacing: 3px;
    border: 2px solid;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-primary {
    color: #00ff00;
    border-color: #00ff00;
}

.btn-primary:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.btn-secondary {
    color: #00ff00;
    border-color: #00ff00;
    opacity: 0.7;
}

.btn-secondary:hover {
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.btn-cancel {
    color: #ff0000;
    border-color: #ff0000;
}

.btn-cancel:hover {
    background: #ff0000;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.settings-toggle {
    margin-top: 30px;
    text-align: center;
    opacity: 0.7;
}

.settings-toggle label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.settings-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.room-code-display {
    text-align: center;
    margin: 30px 0;
}

.room-code-display p {
    font-size: 0.9em;
    margin-bottom: 10px;
    opacity: 0.7;
}

.code-box {
    font-size: 2.5em;
    letter-spacing: 8px;
    padding: 20px;
    background: #000;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    animation: pulse 2s infinite;
}

.instruction {
    text-align: center;
    font-size: 0.9em;
    margin-bottom: 25px;
    opacity: 0.6;
}

.error-message {
    text-align: center;
    color: #ff0000;
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ff0000;
    background: rgba(255, 0, 0, 0.1);
    animation: shake 0.5s;
}

.loading-section {
    text-align: center;
    padding: 50px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 0, 0.3);
    border-top: 3px solid #00ff00;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loading-section p {
    font-size: 1.2em;
    letter-spacing: 3px;
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
    }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    .title-section h1 {
        font-size: 2.5em;
        letter-spacing: 4px;
    }
    
    .code-box {
        font-size: 2em;
        letter-spacing: 5px;
    }
    
    .project-link {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.8em;
    }
}