/* Base Styles */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #4caf50;
    --error-color: #f44336;
    --text-color: #333;
    --light-bg: #f0f2f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--light-bg);
    padding: 20px;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Typography */
h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Quiz Controls */
.topic-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 16px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

/* Quiz Content */
.quiz-container {
    display: none;
}

.question-container {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.question {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.options {
    display: grid;
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.option:hover {
    background-color: #f5f5f5;
}

.option input[type="radio"] {
    margin-right: 10px;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #1557b0;
}

.result-indicator {
    margin-left: 10px;
    font-size: 20px;
    display: none;
}

.correct {
    color: #4caf50;
}

.incorrect {
    color: #f44336;
}

.score-display {
    margin-top: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #1a73e8;
}

.try-again-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.try-again-btn:hover {
    background-color: #45a049;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .question {
        font-size: 16px;
    }

    .option {
        padding: 8px;
    }
}

.telegram-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}

.popup-content {
  position: relative;
  background-color: #fff;
  max-width: 500px;
  margin: 20px auto;
  padding: 25px;
  border-radius: 10px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-header {
  text-align: center;
  margin-bottom: 20px;
}

.telegram-logo {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
  color: #666;
}

.close-btn:hover {
  color: #000;
}

.popup-body {
  text-align: center;
}

.urgent-msg {
  color: #ff3b30;
  font-weight: bold;
  font-size: 1.1em;
  margin: 15px 0;
}

.popup-body ul {
  text-align: left;
  margin: 20px auto;
  max-width: 300px;
}

.popup-body li {
  margin: 10px 0;
}

.join-btn {
  display: inline-block;
  background-color: #0088cc;
  color: white;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.join-btn:hover {
  background-color: #006699;
}

/* Simplified Donation Section Styles */
.donation-section {
    margin-top: 30px;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.donation-title {
    color: #1a73e8;
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.donation-description {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.donation-method {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.wave-logo,
.gtbank-logo {
    width: 60px;
    height: auto;
    margin-right: 20px;
    border-radius: 8px;
}

.donation-info {
    flex-grow: 1;
}

.donation-info p {
    margin-bottom: 10px;
}

.copy-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #1557b0;
}

.copy-btn.copied {
    background: #4caf50;
}

.donation-footer {
    margin-top: 20px;
    text-align: center;
}

.thank-you-note {
    color: #666;
}

/* Responsive styles */
@media (max-width: 600px) {
    .donation-method {
        flex-direction: column;
        text-align: center;
    }

    .wave-logo,
    .gtbank-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .donation-info {
        text-align: center;
    }
}

/* Add these new styles */
.score-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.score-popup-content {
    position: relative;
    background-color: #fff;
    max-width: 400px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.score-display {
    font-size: 28px;
    color: #1a73e8;
    margin-bottom: 20px;
}

/* Add these styles for the donation image container and image */
.donation-image-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}

.donation-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Responsive styles for different screen sizes */
@media (max-width: 768px) {
    .donation-image-container {
        padding: 0 10px;
        margin: 15px auto;
    }
    
    .donation-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .donation-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .donation-image-container {
        padding: 0 5px;
        margin: 10px auto;
    }
    
    .donation-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
}

.return-home-btn {
    display: block;
    width: 100%;
    max-width: 800px;
    padding: 12px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 auto 20px auto;
    text-align: center;
    text-decoration: none;
}

.return-home-btn:hover {
    background-color: #1557b0;
}
.donate-banner {
    position: fixed;
    bottom: 10px; /* Adjust to place at the bottom of the viewport */
    right: 10px;  /* Align to the right side */
    background-color: #e74c3c; /* Eye-catching red */
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Ensure it stays above other elements */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donate-banner a {
    color: white;
    text-decoration: none;
}

.donate-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background-color: #c0392b; /* Darker red on hover */
}

/* Responsive styles for the return home button */
@media (max-width: 600px) {
    .return-home-btn {
        padding: 10px;
        font-size: 14px;
    }
}
