/* Importăm un font modern și curat */
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;700&display=swap');

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    display: flex;
    justify-content: center;
    padding: 10px;
    margin: 0;
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.main-page-title {
    text-align: center;
    color: #1a5f7a;
    font-size: 2rem;
    margin: 20px 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.game-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #d1d9e0;
}

h1 { 
    color: #2c3e50; 
    font-size: 1.5rem;
    margin-top: 0;
}

.ghicitoare-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #2d3436; /* Culoare mai închisă pentru citire ușoară */
    min-height: 60px;
    font-weight: 500;
}

.rebus-grid {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.letter-input {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid #3498db;
    border-radius: 8px;
    background: #ffffff;
    color: #2c3e50;
    transition: all 0.2s;
}

.letter-input:focus {
    outline: none;
    border-color: #e67e22;
    background: #fffdf0;
    box-shadow: 0 0 5px rgba(230, 126, 34, 0.5);
}

.btn {
    padding: 15px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin: 5px;
    transition: transform 0.1s, background 0.2s;
    color: white;
    font-weight: 600;
    min-width: 140px;
}

.btn-check { background-color: #27ae60; }
.btn-next { background-color: #2980b9; }

.btn:active { transform: scale(0.95); }

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.success { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.error { background-color: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* OPTIMIZĂRI SPECIALE PENTRU MOBIL */
@media (max-width: 480px) {
    .main-page-title { font-size: 1.6rem; margin: 15px 0; }
    .game-container { padding: 15px; }
    .ghicitoare-text { font-size: 1.1rem; }
    
    .letter-input { 
        width: 35px; 
        height: 42px; 
        font-size: 1.3rem;
        border-width: 1px;
    }
    
    .btn { 
        width: 100%; /* Butoanele devin unul sub altul pe ecrane foarte mici pentru a fi ușor de apăsat */
        margin: 5px 0;
    }
}