/* ---- QUIZ APPLICATION STYLES ---- */

/* ---- VUE.JS UTILITIES ---- */
[v-cloak] {
    display: none;
}

/* ---- MAIN CONTAINER ---- */
div#quiz-app {
    max-width: 940px !important;
    padding: 0 !important;
}

/* ---- CARD LAYOUT---- */
#boot .quiz .card {
    border: none !important;
    background-color: transparent;
}

#boot .card-body {
    flex: 1 1 auto;
    padding: 0;
    color: var(--bs-card-color);
}

#boot .card-footer {
    padding: 0;
    margin-top: 1rem;
}

#boot .quiz .card-header,
#boot .quiz .card-footer {
    border: none !important;
    background-color: transparent !important;
}

/* ---- FIELDSET & QUESTION LAYOUT---- */
#boot fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

@media (max-width: 767px) {
    #boot fieldset {
        flex-wrap: nowrap;
        flex-direction: column;
        gap: .5rem;
    }
}

/* ---- TYPOGRAPHY---- */
#boot .quiz h1 {
    font: normal 60px/1.5 "gill-sans-nova", sans-serif;
    color: @color-burgundy;
    letter-spacing: 0px;
}

#boot .quiz .title {
    width: 100%;
}

#boot .quiz-subtitle {
    font-size: var(--cds-font-size-200);
    color: @color-black;
    letter-spacing: 0px;
    width: 100%;
}

#boot .quiz legend {
    font-family: var(--cds-font-family-brand);
    font-size: var(--cds-font-size-400);
    font-weight: var(--cds-font-weight-bold);
    line-height: var(--cds-font-line-height-brand-heading);
    margin-bottom: 1rem;
    max-width: 600px;
    text-wrap: pretty;
}

@media (max-width: 768px) {
    #boot .quiz legend {
        font-size: var(--cds-font-size-200);
        line-height: var(--cds-font-line-height-brand-lead);
    }
}

#boot .quiz .card-header {
    padding: 0 !important;
    margin-bottom: 1rem;
  font-size: var(--cds-font-size-100) !important;
  font-weight: var(--cds-font-weight-bold);
  color: #912238;
  font-family: var(--cds-font-family-body);
}

/* ---- FORM CHECKBOXES---- */
#boot .quiz .form-check {
    background-color: #fff;
    border-radius: 4px;
    display: flex !important;
    padding-left: 0 !important;
    align-items: flex-start;
    border: 1px solid #dcdcdc;
    cursor: pointer;
    margin-bottom: 0;
    transition: 150ms all;
}

#boot .quiz .form-check:hover {
    background-color: #f0f0f0;
    border: 1px solid #c6c6c6;
}

#boot .quiz .form-check:active {
    background-color: #e1e1e1;
}

#boot .quiz .form-check:has(>.form-check-input:disabled):hover {
    background-color: white;
}

#boot .quiz .form-check-label {
    font: normal 18px/1.5 "Arial", sans-serif !important;
    padding: .75rem 1rem;
    width: 100%;
    cursor: pointer;
    transition: padding 0.2s linear;
}

@media(max-width: 767px) {
    #boot .quiz .form-check-label {
        font-family: "Arial", sans-serif !important;
        font-size: 18px !important;
        font-weight: normal !important;
        line-height: 1.6 !important;
        letter-spacing: 0;
    }
}

#boot .form-check-input {
    border: 1px solid #00000026 !important;
    margin-top: 1em;
    margin-left: 1.25rem !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    align-self: flex-start;
    opacity: 1;
}

#boot .form-check-input--active {
    position: static;
    opacity: 1;
}

#boot .form-check-input:checked {
    background-color: #912338;
    border-color: #912338;
}

@media(max-width: 767px) {
    #boot .quiz .form-check-input {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
}

/* ---- SELECTED STATE STYLES---- */
.shadow-burgundy {
    position: relative;
    background: white;
    border: 1px solid #9122383e !important;
}

.shadow-burgundy::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    background: linear-gradient(145deg, #9122383e);
    filter: blur(8px);
    opacity: 0.8;
}

/* ---- BUTTONS---- */
#boot .quiz .btn {
    font-size: var(--cds-font-size-125);
    line-height: var(--cds-font-line-height-body);
    font-family: var(--cds-font-family-body);
    background-color: #912338;
    padding: .5rem 1.5rem;
    border-radius: 2px;
    font-weight: bold;
    letter-spacing: -.5px;
}

#boot .quiz .btn:hover {
    background-color: #671827;
}

#boot .quiz .btn[disabled] {
    color: #fff;
    background: #4d4d4d;
    opacity: .5;
}

#boot .quiz .btn-primary__small {
    font-size: 1rem;
    padding: .5rem 1rem;
    border-radius: 2px; 
    display: inline;
}

@media(max-width: 767px) {
    #boot .quiz .btn {
        width: 50%;
    }
    
    #boot .quiz .card-header,
    #boot .quiz .card-footer {
        display: flex;
    }
}

/* ---- RESULTS PAGE---- */
#boot .quiz .results-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

#boot .quiz .results-body {
    font-size: 1.2rem;
}

#boot .quiz .results-body ul {
    gap: 1rem;
    padding: 0 !important;
}

#boot .quiz .quiz-card-result {
    background-color: #F0F0F0;
    padding: 2rem 2rem 3rem 2rem;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 1rem;
    transition: all 150ms;
}

#boot .quiz .quiz-card-result:hover {
    background-color: #c8c8c8;
}

#boot .quiz .quiz-card-result h3 {
    font: normal var(--cds-font-size-300) / 36px "gill-sans-nova", sans-serif !important;
    margin-bottom: 1rem;
    max-width: 50ch;
}

#boot .quiz .quiz-card-result h3 a {
    text-decoration: underline;
}

#boot .quiz .quiz-card-result p {
    margin-bottom: 0 !important;
    max-width: 60ch;
}

/* ---- PROGRAM LINKS---- */
#boot .quiz .list-group {
    display: flex;
    gap: 1rem;
}

#boot .quiz .list-group-item {
    padding: 0;
    border: 1px solid black;
}

#boot .quiz .list-group-item a {
    font-size: 1.5rem;
    width: 100% !important;
    display: block !important;
    padding: 2rem;
}

/* ---- ACTIVE STATES---- */
#boot .quiz .list-group-item.active {
    color: inherit;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#boot .quiz #quiz-app .list-group-item.active {
    --bs-list-group-active-bg: #004085;
    --bs-list-group-active-color: white;
}

/* Results loader and content transitions */
.results-wrapper {
    position: relative;
}

.results-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-loader {
    display: block;
    width: 70px;
    height: 70px;
}

.results-content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.results-content.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}