html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


.quiz-header {
    padding-bottom:2%;
    position: relative;
    width: 100%;
    height: 400px; /* desktop default height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    /* Overlay for readability */
    .quiz-header .header-overlay {
        background: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
        padding: 20px;
        border-radius: 10px;
    }

/* Desktop background */
.quiz-header {
    background-image: url('/images/header-desktop.jpeg');
}

/* Tablet: smaller image, adjust height */
@media (max-width: 992px) {
    .quiz-header {
        height: 300px;
        background-image: url('/images/header-tablet.jpeg');
    }
}

/* Mobile: compact height, mobile-friendly image */
@media (max-width: 576px) {
    .quiz-header {
        height: 200px;
        background-image: url('/images/header-mobile.jpeg');
    }

        .quiz-header .header-overlay {
            padding: 10px;
        }

        .quiz-header h1 {
            font-size: 1.5rem;
        }

        .quiz-header p {
            font-size: 0.9rem;
        }
}







.quiz-m-container {
    display: grid;
    gap: 16px; /* spacing between buttons */
    grid-template-columns: repeat(1, 1fr); /* mobile default: 1 column */
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .quiz-m-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .quiz-m-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.quiz-m-Button {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* pushes title and action apart */
    align-items: center;
    padding: 20px;
    background-color: #f0f0f0;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    min-height: 150px; /* ensures all buttons have same height */
}

.quiz-m-Button:hover {
    background-color: #dcdcdc;
    transform: translateY(-2px);
}

.quiz-m-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.quiz-m-action {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #007bff; /* highlight action */
}