* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    animation: glow 2s ease-in-out infinite alternate;
}

a {
    color: #ffce54;
    text-decoration: none;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #4dabf7;
    }

    to {
        text-shadow: 0 0 20px #4dabf7, 0 0 30px #4dabf7;
    }
}

.terminal {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #4dabf7;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 0 25px rgba(77, 171, 247, 0.3);
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid #4dabf7;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4dabf7, #1c7ed6);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 15px;
}

.enigma {
    display: none;
    animation: fadeIn 0.8s ease-in;
}

.enigma.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.choice-container {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.choice-btn {
    background: rgba(77, 171, 247, 0.2);
    border: 2px solid #4dabf7;
    border-radius: 10px;
    padding: 20px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.choice-btn:hover {
    background: rgba(77, 171, 247, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(77, 171, 247, 0.4);
}

.choice-btn.correct {
    border-color: #51cf66;
    background: rgba(81, 207, 102, 0.2);
}

.choice-btn.incorrect {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
}

.choice-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.input-group {
    margin: 20px 0;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #4dabf7;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    margin: 10px 0;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(77, 171, 247, 0.6);
}

.btn {
    background: linear-gradient(45deg, #4dabf7, #1c7ed6);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(77, 171, 247, 0.5);
}

.timer {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #4dabf7;
    border-radius: 10px;
    padding: 15px;
    font-size: 20px;
    color: #4dabf7;
    z-index: 1000;
}

.success {
    color: #51cf66;
    font-weight: bold;
    margin: 15px 0;
    padding: 15px;
    background: rgba(81, 207, 102, 0.1);
    border-radius: 8px;
    border-left: 4px solid #51cf66;
}

.error {
    color: #ff6b6b;
    font-weight: bold;
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
}

.hint {
    background: rgba(255, 206, 84, 0.1);
    border-left: 4px solid #ffce54;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    color: #ffce54;
}

.info-box {
    background: rgba(77, 171, 247, 0.1);
    border: 1px solid #4dabf7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.scenario {
    background: rgba(0, 0, 0, 0.8);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #4dabf7;
}

.final-screen {
    text-align: center;
    padding: 40px;
    background: linear-gradient(45deg, rgba(77, 171, 247, 0.2), rgba(28, 126, 214, 0.2));
    border-radius: 15px;
    margin: 20px 0;
}

.difficulty-badge {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #51cf66;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1001;
}

.explanation {
    background: rgba(77, 171, 247, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border: 1px solid #4dabf7;
}

.code-example {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    border: 1px solid #666;
    color: #51cf66;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .timer {
        position: relative;
        margin-bottom: 20px;
    }

    .difficulty-badge {
        position: relative;
        margin-bottom: 20px;
    }
}