/* Google Feud Español Styles */

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

body {
    font-family: 'Arial', sans-serif;
    background: #fff;
    min-height: 100vh;
    color: #202124;
}

a {
    text-decoration: none;
    color: inherit;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    background: #fff;
    border-bottom: 1px solid #dadce0;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 100%;
}

.subtitle {
    margin: 8px 0 0 0;
    color: #5f6368;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3em;
    color: #4285f4;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -1px;
}

.game-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.game-info>div {
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 8px;
    color: #202124;
    font-weight: 500;
    font-size: 1.1em;
    border: 1px solid #dadce0;
}

.category-selection {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #dadce0;
}

.category-selection h2 {
    margin-bottom: 30px;
    color: #202124;
    font-size: 2em;
    font-weight: 400;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-btn {
    background: #f8f9fa;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
}

.category-btn:hover {
    box-shadow: 0 1px 6px rgba(32, 33, 36, .28);
    border-color: #dadce0;
    background: #f1f3f4;
}

.game-play {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #dadce0;
}

.question-container {
    text-align: center;
    margin-bottom: 30px;
}

.question {
    font-size: 2em;
    color: #202124;
    margin-bottom: 20px;
    font-weight: 400;
}

.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

#guessInput {
    flex: 1;
    max-width: 500px;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #dadce0;
    border-radius: 24px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px 1px rgba(64, 60, 67, .16);
}

#guessInput:focus {
    border-color: #4285f4;
    box-shadow: 0 2px 8px 1px rgba(66, 133, 244, .3);
}

#guessInput:disabled {
    background-color: #f1f3f4;
    color: #80868b;
    cursor: not-allowed;
}

#submitGuess {
    background: #4285f4;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 54px;
}

#submitGuess:hover {
    background: #1a73e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

#submitGuess:disabled {
    background-color: #f1f3f4;
    color: #80868b;
    cursor: not-allowed;
    box-shadow: none;
}

.answers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.answer-item {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.answer-item.revealed {
    background: #f8f9fa;
    animation: revealAnswer 0.3s ease;
}

.answer-item.correct {
    background: #e8f5e8;
    color: #137333;
    border-color: #34a853;
}

@keyframes revealAnswer {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.answer-text {
    font-weight: bold;
    font-size: 1.1em;
}

.answer-points {
    background: #4285f4;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 0.9em;
}

.game-controls {
    text-align: center;
}

.game-controls button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 8px;
    font-weight: 500;
}

.game-controls button:hover {
    background: #1a73e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.game-over {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #dadce0;
}

.game-over h2 {
    font-size: 3em;
    color: #202124;
    margin-bottom: 20px;
    font-weight: 400;
}

.final-score {
    font-size: 2em;
    color: #4285f4;
    margin-bottom: 30px;
    font-weight: 500;
}

#playAgain {
    background: #4285f4;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

#playAgain:hover {
    background: #1a73e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .logo {
        height: 40px;
    }

    .subtitle {
        font-size: 14px;
    }

    h1 {
        font-size: 2em;
    }

    .game-info {
        flex-direction: column;
        align-items: center;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .answers-grid {
        grid-template-columns: 1fr;
    }

    .input-container {
        flex-direction: column;
    }

    #guessInput {
        max-width: 100%;
        margin-bottom: 10px;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Wrong answer feedback */
.wrong-answer-x {
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color: #ea4335;
    font-weight: bold;
    z-index: 9999;
    opacity: 1;
}