@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: #1e293b;
    text-align: center;
    min-height: 100vh;
    padding: 20px;
}

/* Title */
#title {
    font-size: 3rem;
    font-weight: 700;
    color: #f8fafc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 10px 0 20px 0;
}

/* Game Container */
.game-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Divider */
hr {
    width: 200px;
    height: 1px;
    border: none;
    background-color: #cbd5e1;
    margin: 0 auto 20px auto;
}

/* Message */
#message {
    font-size: 1.1rem;
    font-weight: 500;
    color: #f8fafc;
    min-height: 30px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Game Board */
#board {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.board-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.board-row:last-child {
    margin-bottom: 0;
}

/* Tiles */
.tile {
    width: 55px;
    height: 55px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    background-color: white;
    transition: all 0.2s ease;
}

.tile:not(:empty) {
    border-color: #9ca3af;
    transform: scale(1.05);
}

.tile.correct {
    background-color: #22c55e;
    border-color: #22c55e;
    color: white;
}

.tile.present {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.tile.absent {
    background-color: #6b7280;
    border-color: #6b7280;
    color: white;
}

/* Keyboard */
#keyboard {
    margin-bottom: 30px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.keyboard-row:last-child {
    margin-bottom: 0;
}

#keyboard button {
    background-color: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    min-width: 40px;
    transition: all 0.15s ease;
}

#keyboard button:hover {
    background-color: #d1d5db;
    transform: translateY(-1px);
}

#keyboard button:active {
    transform: translateY(0);
    background-color: #9ca3af;
}

#keyboard button[data-key="ENTER"],
#keyboard button[data-key="BACKSPACE"] {
    padding: 12px 16px;
    font-size: 0.8rem;
}

/* Reset Button */
#reset-button {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#reset-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

#reset-button:active {
    transform: translateY(0);
}

/* Message States */
.message-win {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
    border-color: #16a34a !important;
}

.message-lose {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #dc2626 !important;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    #title {
        font-size: 2.5rem;
        margin: 10px 0;
    }
    
    .tile {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .board-row {
        gap: 6px;
    }
    
    #board {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    #keyboard button {
        padding: 10px 6px;
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    #keyboard button[data-key="ENTER"],
    #keyboard button[data-key="BACKSPACE"] {
        padding: 10px 12px;
        font-size: 0.7rem;
    }
    
    #reset-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    #message {
        font-size: 1rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    #title {
        font-size: 2rem;
    }
    
    .tile {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .board-row {
        gap: 4px;
    }
    
    #keyboard button {
        padding: 8px 5px;
        min-width: 30px;
        font-size: 0.7rem;
    }
    
    #keyboard button[data-key="ENTER"],
    #keyboard button[data-key="BACKSPACE"] {
        padding: 8px 10px;
        font-size: 0.65rem;
    }
} 
