/* theme.css - Colors, fonts, and visual styling */

body {
    font-family: 'Courier New', monospace;
    background-color: #0a0a0a;
    color: #fff;
}

/* Game header styling */
.game-header h1 {
    color: #fff;
}

.stats {
    font-size: 16px;
}

/* WSV Controls Visual Styling */
.wsv-checkbox {
    width: 16px;
    height: 16px;
    background-color: #333;
    border: 1px solid #555;
}

.wsv-label {
    font-size: 14px;
    cursor: pointer;
    color: #ccc;
}

.help-icon {
    background-color: #444;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.help-icon:hover {
    background-color: #555;
}

.tooltip {
    background-color: #222;
    border: 1px solid #444;
    color: #ddd;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.tooltip h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #66ccff;
    font-size: 16px;
    text-align: center;
}

.tooltip h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #ffcc66;
    font-size: 14px;
}

.tooltip p {
    margin: 5px 0;
    font-size: 12px;
}

.tooltip-section {
    background-color: #1a1a1a;
}

kbd {
    background-color: #333;
    border: 1px solid #555;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    color: #fff;
    display: inline-block;
    font-size: 11px;
    line-height: 1.4;
    margin: 0 2px;
    padding: 1px 4px;
}

/* Monster area styling */
.monster-area {
    background-color: #111;
    border: 1px solid #333;
}

.monster-name {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.health-bar {
    background-color: #333;
}

.health-fill {
    background-color: #ff5555;
}

/* Animation and effect styles */
@keyframes float-up {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px);
        opacity: 0;
    }
}

.damage-text {
    font-weight: bold;
    color: #ff3333;
    font-size: 20px;
    animation: float-up 1s ease-out;
}

.typing-area {
    background-color: #111;
    border: 1px solid #333;
}

.typing-input {
    background-color: transparent;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 18px;
}

.typing-input:empty:before {
    content: attr(placeholder);
    color: #666;
    cursor: text;
}

/* Text formatting styles removed */

/* Special effects styling */
.fire-effect {
    background: radial-gradient(ellipse at center, rgba(255,59,0,0.7) 0%, rgba(255,59,0,0) 70%);
    animation: pulse 1s ease-in-out;
}

.ice-effect {
    background: radial-gradient(ellipse at center, rgba(0,191,255,0.7) 0%, rgba(0,191,255,0) 70%);
    animation: pulse 1s ease-in-out;
}

.lightning-effect {
    background: radial-gradient(ellipse at center, rgba(255,255,0,0.7) 0%, rgba(255,255,0,0) 70%);
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Monster defeated animation */
.monster-defeated {
    animation: defeat 1s ease-out;
}

@keyframes defeat {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Level up animation */
.level-up {
    font-size: 48px;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 0 0 10px #ff9900;
    animation: level-up 2s ease-out;
}

@keyframes level-up {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Shake animation */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-10px);
    }
    40%, 80% {
        transform: translateX(10px);
    }
}

/* Milestone animations */
@keyframes milestone-pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 255, 204, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(102, 255, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 255, 204, 0); }
}

@keyframes milestone-popup {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.milestone-text {
    font-size: 24px;
    font-weight: bold;
    color: #66ffcc;
    text-shadow: 0 0 10px #339966;
    animation: milestone-popup 2s ease-out;
}

/* Bonus Panel Styling */
.bonus-panel {
    background-color: #222;
    border: 1px solid #444;
}

.bonus-panel-header {
    font-size: 16px;
    font-weight: bold;
    color: #66ccff;
}

.bonus-item {
    background-color: #333;
}

.bonus-name {
    font-size: 14px;
    color: #ddd;
}

.bonus-value {
    font-size: 16px;
    font-weight: bold;
}

.bonus-info {
    font-size: 12px;
    color: #aaa;
}

.total-words {
    font-size: 12px;
    color: #aaa;
}

.bonus-bar {
    background-color: #555;
}

/* Color coding for different bonuses */
#endurance-bonus {
    color: #ffcc66;
}

#endurance-bar-fill {
    background-color: #ffcc66;
}

#speed-bonus {
    color: #66ff99;
}

#speed-bar-fill {
    background-color: #66ff99;
}

#milestone-bonus {
    color: #ff66cc;
}

#milestone-bar-fill {
    background-color: #ff66cc;
}

/* Large Milestone Notification */
.milestone-notification {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(102, 255, 204, 0.5);
    animation: milestone-notification-appear 0.5s ease-out;
}

.milestone-notification-icon {
    font-size: 40px;
}

.milestone-notification-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffcc66;
}

.milestone-notification-bonus {
    font-size: 20px;
    color: #ff66cc;
}

.milestone-notification-fade {
    animation: milestone-notification-fade 0.5s ease-out forwards;
}

@keyframes milestone-notification-appear {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes milestone-notification-fade {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

#debug-info {
    background: rgba(0, 0, 0, 0.7);
    font-size: 12px;
    color: #ccc;
}