@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Source+Sans+Pro:wght@300;400;600&display=swap');
:root {
    --body-font: 'Source Sans Pro', sans-serif;
    --heading-font: 'Playfair Display', serif;
}

/* Base Button Styles */
.triviabtn {
    display: flex;
    padding: 12px 24px;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--background);
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    animation: scaleAnimation 2s infinite ease-in-out; /* Apply the scaling animation */
  }
  
  /* Keyframe Animation for Scaling */
  @keyframes scaleAnimation {
    0% {
      transform: scale(1); /* Initial size */
    }
    50% {
      transform: scale(1.1); /* Scaled up */
    }
    100% {
      transform: scale(1); /* Back to original size */
    }
  }
  

/* Overlay Styles */
.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background: #121212;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    text-align: center;
    color: #fff;
    position: relative;
}

.overlay-content h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 20px;
}

.overlay-content button {
    margin-top: 20px;
    background: var(--highlight);
    padding: 10px 20px;
    font-size: 1rem;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.overlay-content button:hover {
    background: var(--btn-hover);
}
#timerContainer {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-family: var(--body-font);
}

/* Trivia Question Styling */
.question {font-family: var(--body-font);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.answers {
    font-family: var(--body-font);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answers label {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.answers label:hover {
    background: var(--highlight);
}

#resultContainer {
    text-align: center;
    margin-top: 30px;
}
