/* *:focus {
    outline: none !important;
    box-shadow: !important;
} */

#trivia-section {
    width: 100%;
    height: 100%;
    align-items: center;
    text-align: center;
    color: white;
    box-sizing: border-box;
    justify-content: center;
    display: flex;
    flex-direction: column;
}


#trivia-questions-container {
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
    overflow-y: auto;
}

#trivia-questions-timed {
    padding: 10px 10px;
    margin-right: 20px;
    margin-left: 10px;
}

#trivia-score {
    padding: 10px;
    border-style: dashed;
    display: inline-block;
    margin: 10px;
}

.trivia-option {
    flex: 1 1 100px;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    margin: 10px;
    border-radius: 6px;
    border: none;
    min-width: 80px;
    background-color: #fff;
    transition: background-color 0.3s;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}

/* .trivia-option:hover {
    background-color: #888;
} */

.trivia-option.correct {
    background-color: #4caf50;
    color: white;
    animation: pulseGreen 1.5s ease forwards;
}

.trivia-option.incorrect {
    background-color: #f44336;
    color: white;
    animation: pulseRed 1.5s ease forwards;
}

.trivia-option,
.trivia-option.correct,
.trivia-option.incorrect {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
}

.trivia-option:focus {
    outline: none;
    background-color: inherit;
    box-shadow: none;
}

.trivia-option:active {
    background-color: inherit;
}

#trivia-section h1,
#trivia-section p,
#trivia-score {
    font-size: 0.9rem;
}

.trivia-option::selection {
    background: transparent !important;
}

.trivia-option::-moz-selection {
    background: transparent !important;
}


@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 15px 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }
    70% {
        box-shadow: 0 0 15px 10px rgba(244, 67, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

@media (hover: hover) and (pointer: fine) {
    .trivia-option:hover {
      background-color: #888;
    }
  }
  