@charset "utf-8";

/* ===== Reset & Base ===== */
html { height: 100%; width: 100%; margin: 0; padding: 0; box-sizing: border-box !important; }
*, *:before, *:after { margin: 0; padding: 0; box-sizing: inherit !important; }
body {
    background: #f4f6f9;
    color: #222;
    height: 100%;
    width: 100%;
    font-family: 'Roboto Condensed', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ===== Navigation ===== */
.site-nav {
    background: linear-gradient(to right, #407ec9 0%, #0052b5 100%);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.nav-brand img { display: block; }
.nav-back {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-back:hover { color: #fff; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(to right, #407ec9 0%, #0052b5 100%);
    color: #fff;
    text-align: center;
    padding: 48px 20px 40px;
}
.hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== Quiz Wrapper ===== */
.quiz-wrapper {
    max-width: 640px;
    margin: -20px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

/* ===== Progress Bar ===== */
#quiz_progress_outer {
    position: relative;
    height: 4px;
    width: 100%;
    border: none;
    background: #e0e0e0;
    z-index: 2;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}
#quiz_progress_inner {
    height: 4px;
    background: linear-gradient(90deg, #2169BF, #1e90ff);
    width: 0;
    border-radius: 4px 4px 0 0;
    transition: width 0.6s ease;
}

/* ===== Quiz Container ===== */
#quiz_container {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    padding: 28px 24px;
    margin: 0 auto;
    text-align: left;
    max-width: 640px;
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
}

#quiz_container button {
    background: #2169BF;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    padding: 11px 24px;
    border: 2px solid #2169BF;
    -webkit-appearance: none;
    border-radius: 6px;
    font-family: 'Roboto Condensed', sans-serif;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#quiz_container .btnOver button {
    background: #fff;
    color: #2169BF;
    border: 2px solid #2169BF;
}

#quiz_container img { max-width: 100%; height: auto; display: block; }
#quiz_container div, p, a, li, td, input { -webkit-text-size-adjust: none; text-size-adjust: none; outline: none; }
#quiz_container h1 { font-weight: 700; color: #222; margin-bottom: 20px; }
#quiz_container p { font-size: 15px; line-height: 1.5; margin-bottom: 12px; color: #222; }
#quiz_container p:last-child { margin-bottom: 0; }

/* ===== Timer ===== */
#quiz_container .timerContainer {}
#quiz_container .timer {
    background: transparent none no-repeat 0 0;
    display: none;
    opacity: 1;
    position: relative !important;
    zoom: 0.5;
    -moz-transform: scale(0.5);
    transform: scale(0.5);
    -moz-transform-origin: top center;
    transform-origin: top center;
}
#quiz_container .timeoutContainer { text-align: center; }
#quiz_container .scoreContainer { text-align: center; }
#quiz_container #submitFormBtn:hover:enabled {
    background: #fff;
    color: #2169BF;
    border: 2px solid #2169BF;
}

/* ===== Text Sizes ===== */
#quiz_container .p_24 { font-size: 22px; line-height: 1.4; font-weight: 700; color: #0052b5; }
#quiz_container .p_30 { font-size: 28px; line-height: 1.3; }
#quiz_container .p_32 { font-size: 30px; line-height: 1.3; }
#quiz_container .p_42 { font-size: 38px; line-height: 1.2; }

/* ===== Answer Options ===== */
#quiz_container .optionBox {
    background: #f4f6f9;
    padding: 12px 30px 12px 40px;
    border: 2px solid transparent;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
#quiz_container .optionBox p { font-size: 16px; color: #333; }
#quiz_container .optionOver {
    background: #2169BF;
    border-color: #2169BF;
}
#quiz_container .optionOver p { color: #fff; }

/* ===== Radio Buttons ===== */
#quiz_container .radioBtn {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #2169BF;
    border-radius: 100%;
    transition: all 0.2s ease;
}
#quiz_container .radioBtn.selected {
    background: #2169BF;
    border: 2px solid #2169BF;
    box-shadow: inset 0 0 0 3px #fff;
}

/* ===== Checkboxes ===== */
#quiz_container .checkbox > .radioBtn {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #2169BF;
    border-radius: 4px;
    box-shadow: none;
}
#quiz_container .checkbox > .radioBtn.selected { background: #fff; }
#quiz_container .checkbox > .radioBtn.selected:before {
    font-family: "Material Icons";
    font-size: 18px;
    line-height: 18px;
    content: "\E5CD";
    color: #2169BF;
    position: absolute;
    top: -2px;
    left: -2px;
}

/* ===== Correct/Incorrect Indicators ===== */
#quiz_container .tick { color: #ccc; }
#quiz_container .indicate_correct { color: #2169BF; }
#quiz_container .img-border img { border: 5px solid #f6f6f6; }

#quiz_container .imgOver img {
    border: 5px solid #f6f6f6;
    transition: transform 0.3s ease;
    transform: scale(1.08);
    outline: none;
}

#quiz_container .imgOut img {
    border: 5px solid #f6f6f6;
    transition: transform 0.3s ease;
    transform: scale(1);
}

/* ===== App Links ===== */
#applinks {
    text-align: center;
    padding: 48px 20px 56px;
    max-width: 640px;
    margin: 0 auto;
}
.applinks-heading {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0052b5;
    margin-bottom: 20px;
}
.applinks-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.applinks-buttons a { display: inline-block; }
.applinks-buttons img { height: 44px; display: block; }
.applinks-logo { opacity: 0.6; transition: opacity 0.2s; }
.applinks-logo:hover { opacity: 1; }
.applinks-logo a { display: inline-block; }

/* ===== Preloader ===== */
.preloader {
    width: 34px;
    height: 34px;
    display: inline-block;
    padding: 0;
    border-radius: 100%;
    border: 3px solid;
    border-top-color: #2169BF;
    border-bottom-color: #e0e0e0;
    border-left-color: #2169BF;
    border-right-color: #e0e0e0;
    outline: 1px solid transparent;
    animation: preloader 0.8s linear infinite;
}
@keyframes preloader {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@-webkit-keyframes preloader {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .hero { padding: 36px 16px 32px; }
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 14px; }
    #quiz_container { padding: 20px 16px; border-radius: 8px; }
    #quiz_container .p_24 { font-size: 18px; }
    #quiz_container .optionBox { padding: 10px 16px 10px 36px; }
    .applinks-buttons img { height: 38px; }
}
