/* Basic Reset & Typography */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a2e; /* Dark blue-purple background */
    color: #e0e0e0; /* Light grey text */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes footer down */
}

/* Ad Banner Styling */
.ad-banner {
    width: 100%;
    min-height: 50px; /* Placeholder height */
    background-color: #0f0f1a; /* Darker shade for ad background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a4a68; /* Muted text color */
    font-size: 0.8em;
}

/* App Container */
.app-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #162447; /* Slightly lighter blue */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    flex-grow: 1; /* Allows container to take up available space */
}

header h1 {
    color: #fca311; /* Bright orange for main heading */
    margin-bottom: 5px;
    font-size: 2.2em;
}

.app-tagline {
    font-size: 1.1em;
    color: #b6c2de; /* Lighter blue-grey */
    margin-bottom: 25px;
}

/* Question & Options Styling */
#question-container {
    margin-bottom: 20px;
    min-height: 60px; /* Ensures space for question text */
}

.question-text {
    font-size: 1.6em;
    color: #e0e0e0;
}

.options-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
}

.option-btn {
    flex-basis: 45%; /* Each button takes up 45% of the container */
    padding: 15px;
    font-size: 1.1em;
    font-weight: 600;
    border: 2px solid #1f4068; /* Blue border */
    border-radius: 8px;
    background-color: #1b3a6b; /* Darker blue */
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 70px; /* Consistent button height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-btn:hover {
    background-color: #1f4068;
    border-color: #fca311;
}

.option-btn.selected {
    background-color: #e43f5a; /* Reddish color for selected */
    border-color: #e43f5a;
    color: #fff;
    transform: translateY(-2px);
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.or-divider {
    font-size: 1.2em;
    font-weight: bold;
    color: #fca311;
    margin: 0 10px;
}

/* Controls & Results Styling */
.controls-container {
    margin-top: 20px;
}

.control-btn {
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 8px;
    border: none;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

#next-btn {
    background-color: #fca311; /* Orange */
    color: #1a1a2e;
}

#next-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

#share-btn {
    background-color: #1b3a6b;
    color: #e0e0e0;
    border: 1px solid #fca311;
}

#results-container {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.hidden {
    display: none;
}

/* Site Intro & Footer */
.site-intro {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
    font-size: 0.95em;
    color: #b6c2de;
}

.site-footer {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    background-color: #0f0f1a;
    font-size: 0.9em;
}

.site-footer a {
    color: #fca311;
    text-decoration: none;
    margin: 0 10px;
}

.site-footer a:hover {
    text-decoration: underline;
}

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

    header h1 {
        font-size: 1.8em;
    }

    .question-text {
        font-size: 1.4em;
    }

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

    .option-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .or-divider {
        margin: 5px 0;
    }

    .controls-container {
        display: flex;
        flex-direction: column;
    }

    .control-btn {
        width: 80%;
        margin: 5px auto;
    }
}

#timer-container {
  text-align: center;
  margin: 10px 0;
}

#timer-display {
  font-size: 24px;
  font-weight: bold;
  color: #ff6b6b;
  margin-bottom: 5px;
}

#timer-bar {
  width: 100%;
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

#timer-bar::before {
  content: '';
  display: block;
  height: 100%;
  background-color: #ff6b6b;
  width: var(--progress, 100%);
  transition: width 0.1s linear;
}
