/* Container */
#gdr-quiz-wrapper {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

/* Lives */
#gdr-quiz-wrapper #lives-container {
    margin-bottom: 20px;
}

#gdr-quiz-wrapper .life-icon {
    font-size: 40px;
    margin: 0;
}

/* Answer grid */
#gdr-quiz-wrapper .answer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    #gdr-quiz-wrapper .answer-grid {
        grid-template-columns: 1fr;
    }
}

#gdr-quiz-wrapper .answer-slot {
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    background: transparent;
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
}

/* Input + suggestions */
#gdr-quiz-wrapper .input-wrap {
    position: relative;
    display: inline-block;
    width: 80%;
    max-width: 350px;
}

#gdr-quiz-wrapper #user-input {
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}

#gdr-quiz-wrapper #suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    z-index: 1000;
    background-color: #222222;
    border: 1px solid #cccccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}

#gdr-quiz-wrapper #suggestions li {
    padding: 10px;
    cursor: pointer;
    color: #ffffff;
    border-bottom: 1px solid #444444;
}

#gdr-quiz-wrapper #suggestions li:hover,
#gdr-quiz-wrapper #suggestions li.highlight {
    background-color: #444444;
    color: #ffffff;
}

/* Buttons */
#gdr-quiz-wrapper button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

#gdr-quiz-wrapper #submit-btn {
    background: #28a745;
    color: #ffffff;
}

#gdr-quiz-wrapper #reveal-btn {
    background: #007bff;
    color: #ffffff;
}

#gdr-quiz-wrapper #play-again-btn {
    background: #ffc107;
    color: #000000;
}

/* Feedback + wrong guesses */
#gdr-quiz-wrapper #feedback {
    margin-top: 15px;
    font-weight: bold;
}

#gdr-quiz-wrapper #wrong-guesses {
    margin-top: 30px;
    color: #ffffff;
    font-weight: bold;
}

#gdr-quiz-wrapper #end-buttons {
    margin-top: 30px;
    display: none;
}

/* Animations / states */
.flash-green {
    animation: flash-green 0.7s ease-in-out forwards;
    color: #ffffff !important;
}

.flash-red {
    animation: flash-red 0.7s ease-in-out forwards;
    color: #ffffff !important;
}

.flash-white {
    animation: flash-white 1s ease-in-out;
    color: #000000 !important;
}

.hold-green {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

@keyframes flash-green {
    0%   { background-color: transparent; }
    100% { background-color: #28a745; }
}

@keyframes flash-red {
    0%   { background-color: transparent; }
    100% { background-color: #ff4d4d; }
}

@keyframes flash-white {
    0%   { background-color: transparent; }
    50%  { background-color: #ffffff; }
    100% { background-color: transparent; }
}

.slot-num {
    background: #2ecc71;
    color: black;
    padding: 3px 7px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    margin-right: 6px;
    display: inline-block;
}
