* {
    /*
        Estas son propiedades generales que se van aplicar en todo el documento html  
     */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

footer {
    margin: 0 auto;
    text-align: center;
}

.prp {
    color: #ff4444;
}

.section {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.hidden {
    display: none;
}

input[type="text"] {
    padding: 10px 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 250px;
    margin-right: 10px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#hint-btn {
    background-color: #f39c12;
    margin-top: 15px;
}

#hint-btn:hover {
    background-color: #e67e22;
}

#restart-btn {
    background-color: #27ae60;
    margin-top: 15px;
}

#restart-btn:hover {
    background-color: #219653;
}

#word-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.word-item {
    padding: 8px 15px;
    background-color: #ecf0f1;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.word-found {
    background-color: #2ecc71;
    color: white;
    text-decoration: line-through;
}

#word-search {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 2px;
    margin: 20px auto;
    max-width: 640px;
}

/*
    Cada letra tiene un estilo donde va ponerle estos estilos preterminados 
 */
.letter {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ecf0f1;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s; 
}

.letter:hover {
    background-color: #d5dbdb;
}

.letter.selected {
    background-color: #3498db;
    color: white;
}

.letter.found {
    background-color: #2ecc71;
    color: white;
}

.letter.found.selected {
    background-color: #1abc9c;
    color: white;
}

#congratulations {
    background-color: #2ecc71;
    color: white;
}

#congratulations h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

@media (max-width: 700px) {
    .letter {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    #word-search {
        grid-template-columns: repeat(16, 1fr);
        max-width: 450px;
    }
    
    input[type="text"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .container {
        padding: 10px;
    }
}