/* Split button dropdown styles */
.split-dropdown {
    display: inline-flex;
    position: relative;
    font-size: 1em;
    width: 100%;
    white-space: nowrap;
}
.split-main, .split-toggle {
    background: #f3faff;
    color: #1a2a4f;
    border: 2px solid #b6c7e6;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 7px 0 0 7px;
    cursor: pointer;
    outline: none;
    font-size: 1em;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
    overflow: hidden;

}
.split-toggle {
    border-radius: 0 7px 7px 0;
    border-left: none;
    width: 38px;
    text-align: center;
    background: #e3f2fd;
}
.split-main:focus, .split-toggle:focus {
    box-shadow: 0 0 0 2px #1976d2;
}
.split-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    max-width: 100%;
    background: linear-gradient(90deg, #fffbe6 0%, #e3f2fd 100%);
    border: 2px solid #b6c7e6;
    border-radius: 0 0 7px 7px;
    box-shadow: 0 2px 8px rgba(58,123,213,0.08);
    z-index: 10;
    list-style: none;
    margin: 0;
    padding: 0;
}
.split-menu li {
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.18s;
    font-size: 1em;
}
.split-menu li:hover {
    background: #062164;
    color: #fafafa;
}
.split-dropdown.open .split-menu {
    display: block;
}
@media (max-width: 600px) {
    .custom-tooltip {
        font-size: 0.92em;
        padding: 7px 8px;
        max-width: 60vw;
        left: 5vw !important;
        right: 5vw !important;
        word-break: break-word;
    }
    .info-icon {
        font-size: 1em;
    }
}
.quiz-label-flex {
    display: flex;
    align-items: start;
    gap: 6px;
    font-weight: 600;
    font-size: 1.08em;
    color: #1a2a4f;
    margin-bottom: 6px;
    text-align: right;
    margin-left: 10px;
}
.info-icon {
    margin-left: 2px;
    margin-bottom: 0;
    font-size: 1.08em;
    color: #3a7bd5;
    cursor: pointer;
    transition: color 0.18s;
}
/* Custom tooltip styles */
.custom-tooltip {
    position: absolute;
    z-index: 9999;
    background-color: #fbaf42;
    color: black;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.98em;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(21,74,145,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
    white-space: pre-line;
}
.custom-tooltip.visible {
    opacity: 1;
}
.info-icon {
    cursor: pointer;
    margin-left: 6px;
    color: #3a7bd5;
    font-size: 1.08em;
    vertical-align: middle;
    transition: color 0.18s;
}
.info-icon:hover {
    color: #154A91;
}
/* Loading inline styles */
.loading-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 18px;
    border-radius: 10px;
    background: #f3faff;
    box-shadow: 0 2px 8px rgba(58,123,213,0.08);
}
.center-inline {
    width: 35%;
    justify-content: center;
}
.loading-spinner {
    width: 28px;
    height: 28px;
    border: 4px solid #e3eafc;
    border-top: 4px solid #3a7bd5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-text {
    font-size: 1.08em;
    color: #154A91;
    font-weight: 600;
    letter-spacing: 0.02em;
}
/* Quiz header card styling */
.quiz-header-card {
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 4px 24px rgba(58,123,213,0.08);
    border-radius: 18px;
    padding: 28px 32px 18px 32px;
    margin-bottom: 32px;
    margin-top: 22px;
    border: 1.5px solid #e3eafc;
}
.quiz-header-icon {
    margin-right: 22px;
    display: flex;
    align-items: center;
}
.quiz-header-content {
    flex: 1;
}
.quiz-title {
    margin: 0;
    font-size: 2.1em;
    font-weight: 700;
    color: #0d2341;
    letter-spacing: 0.03em;
}
.quiz-subtitle {
    margin: 8px 0 0 0;
    font-size: 1.08em;
    color: #800020;
    font-weight: 500;

}
@media (max-width: 900px) {
    .quiz-header-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 10px 10px 10px;
    }
    .quiz-header-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
    .quiz-title {
        font-size: 1.2em;
    }
    .quiz-subtitle {
        font-size: 0.98em;
    }
}
body{
    background-color: #f6f8fa;
    font-family: 'Inter', sans-serif;
}

/* Headings */
h1 {
  color: #0E1D3B;
  font-weight: 700;
  margin-bottom: 24px;
 padding-top: 25px;
  border-bottom: 3px solid #FBAF42;
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  
}

/* Quiz submit button styling */
.quiz-submit-container {
    margin-top: 30px;
    padding-bottom: 24px;
    display: flex;
    justify-content: center;
}

/* Quiz grid layout for labels and selects */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1em;
    margin-bottom: 18px;
    justify-content: center;
    align-items: start;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.quiz-pair {
    display: flex;
    flex-direction: column;
    align-items: stretch;

}

.quiz-pair label {
    font-weight: 600;
    font-size: 1.08em;
    color: #1a2a4f;
    margin-bottom: 6px;
    text-align: left;
}



#sub-button {
  background-color: #154A91;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 13px 36px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(21, 74, 145, 0.4);
  transition: background-color 0.25s ease, box-shadow 0.3s ease;

}

#sub-button:hover {
  background-color: #fbaf42;
  color: #154A91;
  box-shadow: 0 7px 20px rgba(251, 175, 66, 0.7);
  outline: none;
}

.message {
  margin-bottom: 24px;
  max-width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #155724;
  background-color: #d4edda;
  border: 2px solid #c3e6cb;
  box-sizing: border-box;
}


@media (max-width: 900px) {
    .quiz-grid {
        grid-template-columns: 1fr;
        gap: 0.5em;
    }

    .quiz-pair {
        margin-bottom: 12px;
    }

    .quiz-submit-container  {
        font-size: 0.95rem;
        padding: 20px 0;
        border-radius: 14px;
    }

    body{
        overflow-x: hidden;
    }

     h1 {
    font-size: 0.98rem;
    margin-bottom: 6px;
    padding-bottom: 2px;
  }

    .loading-inline {
        flex-direction: column;
        align-items: center;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 10px 4px;
        font-size: 1em;
        gap: 8px;
    }
    .loading-text {
        font-size: 1em;
        text-align: center;
    }

}

@media (max-width: 480px) {
    .loading-inline {
        flex-direction: column;
        align-items: center;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 10px 4px;
        font-size: 1em;
        gap: 8px;
    }
    .loading-text {
        font-size: 1em;
        text-align: center;
    }
}


/* nav-bar */
.hori-selector{
  background-color: #f6f8fa !important;
}

.hori-selector .right,
.hori-selector .left{
  background-color: #f6f8fa !important;
}

#navbarSupportedContent>ul>li.active>a{
  color:black !important;
}

/* NAVBAR responsiveness */
@media (max-width: 768px) {
  .hori-selector {
    width: 100%;
  }
  #navbarSupportedContent > ul > li > a {
    font-size: 1em;
  padding-bottom: 10px;
  margin-top: -3px;
  }
}