body {
    background-color: rgb(248, 249, 250);
    font-size: 16px;
}

.mobile-header-bar {
    display: none;
}

/* Header section. */
.quiz-header {
    background-color: rgb(122, 151, 198);
    padding: 5.5rem 4.5rem 4.5rem 4.5rem;
    margin-bottom: 2rem;
}

.quiz-header-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-align: center;
}

.quiz-header-progress-bar {
    background-color: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
}

.quiz-header-progress-bar-filled {
    background-color: rgb(82, 156, 114);
    height: 100%;
}

/* Alert banner. */
.quiz-alert-banner {
    display: none;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 0 auto 20px;
    animation: slideDown 0.3s ease-out;
    max-width: 50rem;
    text-align: center;
}

.quiz-alert-banner i {
    margin-right: 8px;
    color: #ffc107;
}

/* Quiz card. */
.quiz-card {
    background-color: rgb(248, 249, 250);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 50rem;
    margin: 0 auto;
}

.question-block {
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
}

.question-block .question-text {
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
    font-weight: 400;
    margin-bottom: 15px;
    text-align: center;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.options-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0 60px 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    width: 100%;
}

.options-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.options-disagree,
.options-agree {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.options-disagree {
    color: rgb(122, 151, 198);
}

.options-agree {
    color: rgb(82, 156, 114);
}

.option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.option-item input[type="radio"] {
    display: none;
}

.option-circle {
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    background-color: transparent;
}

.option-item:nth-child(2) .option-circle {
    width: 42px;
    height: 42px;
    border-color: rgb(122, 151, 198);
}

.option-item:nth-child(3) .option-circle {
    width: 36px;
    height: 36px;
    border-color: rgb(122, 151, 198);
}

.option-item:nth-child(4) .option-circle {
    width: 30px;
    height: 30px;
    border-color: rgb(122, 151, 198);
}

.option-item:nth-child(5) .option-circle {
    width: 24px;
    height: 24px;
    border-color: rgb(134, 144, 167);
}

.option-item:nth-child(6) .option-circle {
    width: 30px;
    height: 30px;
    border-color: rgb(82, 156, 114);
}

.option-item:nth-child(7) .option-circle {
    width: 36px;
    height: 36px;
    border-color: rgb(82, 156, 114);
}

.option-item:nth-child(8) .option-circle {
    width: 42px;
    height: 42px;
    border-color: rgb(82, 156, 114);
}

.option-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.05);
}

.option-item:nth-child(2).selected .option-circle {
    background-color: rgb(122, 151, 198);
}

.option-item:nth-child(3).selected .option-circle {
    background-color: rgb(122, 151, 198);
}

.option-item:nth-child(4).selected .option-circle {
    background-color: rgb(122, 151, 198);
}

.option-item:nth-child(5).selected .option-circle {
    background-color: rgb(134, 144, 167);
}

.option-item:nth-child(6).selected .option-circle {
    background-color: rgb(82, 156, 114);
}

.option-item:nth-child(7).selected .option-circle {
    background-color: rgb(82, 156, 114);
}

.option-item:nth-child(8).selected .option-circle {
    background-color: rgb(82, 156, 114);
}

.mobile-options-second-row {
    display: none;
}

.question-block-divider {
    height: 1px;
    background-color: rgb(220, 220, 220);
}

/* Breed question. */
.breed-input-container {
    position: relative;
    display: inline-block;
    width: 280px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.breed-input-wrapper {
    position: relative;
    width: 100%;
}

.breed-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    font-size: 16px;
}

.breed-input:focus {
    outline-color: rgb(122, 151, 198);
}

.clear-input-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
}

.clear-input-btn:hover {
    color: #666;
}

.breed-dropdown {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background: white;
    z-index: 1000;
}

.breed-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    background-color: white;
    text-align: left;
}

.breed-dropdown-item:hover {
    background-color: #f5f5f5;
}

.breed-input-divider {
    margin-top: 20px;
    margin-bottom: 20px;
}

#secondary-breed-input {
    display: none;
}

/*** 3. Button container. ***/
.button-container {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    width: 100px;
    white-space: nowrap;
}

#prev-btn {
    font-size: 0.9rem;
}

#next-btn {
    font-size: 0.9rem;
    background-color: rgb(82, 156, 114);
    border-color: rgb(82, 156, 114);
}

#next-btn:hover {
    background-color: rgb(62, 126, 94);
    border-color: rgb(62, 126, 94);
}

/* Footer section in desktop. */
.footer-section {
    text-align: center;
    width: 100%;
    margin-top: 7rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 60px;
    padding: 0 20px;
}

.footer-link-column {
    flex: 1;
    min-width: 200px;
    margin: 0 10px;
    text-align: center;
}

.footer-link-column-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgb(94, 94, 94);
    letter-spacing: 0.1em;
}

.footer-link-column-links {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    gap: 5px;
    color: rgb(94, 94, 94);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.footer-link-column-links a {
    color: rgb(94, 94, 94);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-column-links a:hover {
    color: rgb(94, 94, 94);
}

.footer-copyright {
    font-family: 'Mallanna', sans-serif;
    font-size: 0.8rem;
    font-weight: 100;
    color: rgb(150, 150, 150);
    text-align: center;
    padding-left: 1rem;
}

.footer-copyright p {
    margin-bottom: 0;
}

/* Hamburger menu in mobile or small screens. */
.hamburger-menu {
    display: none;
}

.hamburger-menu-icon {
    position: fixed;
    top: 15px;
    right: 20px;
    font-size: 30px;
    z-index: 1001;
}

@keyframes rotate720 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(720deg);
    }
}

.rotate-once {
    animation: rotate720 0.5s ease;
}

.hamburger-menu-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 60%;
    background-color: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 10px 12px 20px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.hamburger-menu-sidebar.open {
    transform: translateX(0);
}

.hamburger-menu-sidebar-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hamburger-menu-sidebar-links a {
    font-family: 'Mallanna', sans-serif;
    display: inline-block;
    margin: 8px 0;
    font-size: 18px;
    text-decoration: none;
    color: #333;
}

.hamburger-menu-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hamburger-menu-sidebar-close {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    width: 100%;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}

.hamburger-menu-sidebar-close i {
    font-size: 2rem;
}

.hamburger-menu-divider {
    border: none;
    border-top: 1px solid rgb(130, 130, 130);
    margin: 10px 0;
    width: 100%;
}

/* For smaller pads. */
@media (max-width: 1000px) {
    .mobile-header-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background-color: rgb(122, 151, 198);
        z-index: 1000;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 10px 20px 10px 20px;
    }

    .hamburger-menu-icon {
        position: fixed;
        top: 15px;
        right: 20px;
        font-size: 28px;
        z-index: 9999;
    }

    .footer-links {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }
}

/* For iphone pro max. */
@media (max-width: 500px) {

    .quiz-header {
        padding: 4rem 3.5rem 3rem 3.5rem;
        margin-bottom: 0;
    }

    .quiz-header-title {
        font-size: 2rem;
    }

    .quiz-header-progress-bar {
        width: 100%;
    }

    .quiz-alert-banner {
        margin: 0;
    }

    .quiz-card {
        padding: 10px;
    }

    .question-block {
        margin-top: 3rem;
        margin-bottom: 3rem;
        padding: 10px;
    }

    .question-block .question-text {
        width: 90%;
        font-size: 1.1rem;
    }

    .options-grid {
        margin-bottom: 30px;
        gap: 10px;
    }

    .options-row {
        gap: 1rem;
    }

    .option-circle {
        border: 2px solid;
    }

    .options-disagree,
    .options-agree {
        display: none;
    }

    .option-item:nth-child(2) .option-circle {
        width: 2.7rem;
        height: 2.7rem;
    }

    .option-item:nth-child(3) .option-circle {
        width: 2.3rem;
        height: 2.3rem;
    }

    .option-item:nth-child(4) .option-circle {
        width: 2.0rem;
        height: 2.0rem;
    }

    .option-item:nth-child(5) .option-circle {
        width: 1.8rem;
        height: 1.8rem;
    }

    .option-item:nth-child(6) .option-circle {
        width: 2.0rem;
        height: 2.0rem;
    }

    .option-item:nth-child(7) .option-circle {
        width: 2.3rem;
        height: 2.3rem;
    }

    .option-item:nth-child(8) .option-circle {
        width: 2.7rem;
        height: 2.7rem;
    }

    .mobile-options-second-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .mobile-options-disagree,
    .mobile-options-agree {
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
        font-size: 1rem;
        display: flex;
        align-items: center;
    }

    .mobile-options-disagree {
        color: rgb(122, 151, 198);
    }

    .mobile-options-agree {
        color: rgb(82, 156, 114);
    }

    .footer-links {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }
}

/* For iphone pro. */
@media (max-width: 400px) {

    .quiz-header-title {
        font-size: 1.8rem;
    }

    .quiz-alert-banner {
        font-size: 0.9rem;
    }

    .question-block .question-text {
        width: 90%;
        font-size: 1rem;
    }

    .option-item:nth-child(2) .option-circle {
        width: 2.5rem;
        height: 2.5rem;
    }

    .option-item:nth-child(3) .option-circle {
        width: 2.1rem;
        height: 2.1rem;
    }

    .option-item:nth-child(4) .option-circle {
        width: 1.8rem;
        height: 1.8rem;
    }

    .option-item:nth-child(5) .option-circle {
        width: 1.5rem;
        height: 1.5rem;
    }

    .option-item:nth-child(6) .option-circle {
        width: 1.8rem;
        height: 1.8rem;
    }

    .option-item:nth-child(7) .option-circle {
        width: 2.1rem;
        height: 2.1rem;
    }

    .option-item:nth-child(8) .option-circle {
        width: 2.5rem;
        height: 2.5rem;
    }

    .mobile-options-disagree,
    .mobile-options-agree {
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
    }

    .mobile-options-second-row {
        width: 103%;
    }
}