/* Reset and base layout */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    box-sizing: border-box;
    text-align: center;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Layout wrapper */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Pages */
.page {
    flex: 1 0 auto;
    width: 100%;
    padding: 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    overflow-y: auto;
    box-sizing: border-box;
    display: none;
}

.page.active {
    display: flex;
}

/* Footer sits below content always */
footer {
    background: #f5f5f5;
    text-align: center;
    padding: 1rem;
    width: 100%;
    flex-shrink: 0;
}

footer img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.question-image {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.note {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
}

.question-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.info-box {
    background-color: #f9f9f9;
    padding: 10px;
    margin-top: 10px;
    border-left: 4px solid #007bff;
    display: none;
}

.info-box.visible {
    display: block;
}

.info-box {
    margin-top: 10px;
    padding: 10px;
    border-left: 4px solid #007BFF;
    background-color: #f0f8ff;
    font-size: 0.9em;
}

/* Splash header */
#splashHeader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

#splashPage h1 {
    font-size: 32px;
    font-weight: bold;
}

.splash-logo {
    width: 80px;
    height: auto;
}

/* Pages Header */
.subpage-header {
    position: relative;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.subpage-title {
    font-size: 24px;
    margin: 0;
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    padding: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.back-btn img {
    width: 30px;
}

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

/* Button containers */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

.main-btn,
.nav-btn {
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.main-btn:hover,
.nav-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.cancel-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.cancel-btn:hover {
    background-color: #c9302c;
}

.input-field {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .splash-logo {
        width: 60px;
    }

    .button-container {
        width: 90%;
    }

    .main-btn, .nav-btn {
        font-size: 24px;
    }

    h1, h2, p {
        font-size: 24px;
    }

    .text-container {
        padding: 0 5%;
        max-width: 90%;
    }

    .input-field {
        font-size: 18px;
        padding: 16px;
    }
}

.footer-logos {
  display: flex;
  justify-content: center;  /* Space logos evenly */
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  background-color: #4CAF50; /* Optional background */
  flex-wrap: wrap;
}

.footer-logos img {
  max-height: 60px;      /* Consistent height */
  max-width: 120px;      /* Avoid overly wide logos */
  object-fit: contain;   /* Keep aspect ratio */
  filter: grayscale(20%); /* Optional: desaturate slightly for balance */
}