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

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

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

.result-header-box {
    width: 40%;
    text-align: center;
    margin: 0 auto;
}

.result-title-prefix {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: white;
    text-align: center;
}

.result-title-role {
    font-family: "Rubik Bubbles", serif;
    font-size: 4rem;
    color: white;
    text-align: center;
    padding-top: 10px;
}

.back-link-container {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    padding-bottom: 1.8rem;
    position: relative;
    max-width: 50rem;
    margin: 0 auto;
}

.back-link {
    text-decoration: none;
    color: rgb(120, 120, 120);
    display: inline-block;
    /* This is required for the transform animation. */
    transition: transform 0.2s ease, color 0.2s ease;
}

.back-link:hover {
    text-decoration: none;
    color: rgb(80, 80, 80);
    transform: translateX(-4px);
}

.result-loading-card {
    text-align: center;
    font-size: 1.5rem;
    color: gray;
    margin-top: 90px;
}

/* Result card. */
.result-card {
    font-family: 'Poppins', sans-serif;
    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;
}

/* 2.1 First row: Overview contains image and personality bar. */
.result-overview-image {
    margin-top: 20px;
    max-width: 95%;
    height: auto;
}

.result-overview-personality-bars {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    height: 100%;
}

.result-overview-personality-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    padding-bottom: 25px;
    padding-top: 25px;
}

.result-overview-personality-bar-line-one,
.result-overview-personality-bar-line-two,
.result-overview-personality-bar-line-three,
.result-overview-personality-bar-line-four {
    width: 100%;
    height: 12px;
    position: relative;
    border-radius: 1.5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    /* CSS variables for dot position and percentage position. */
    --dot-position: 0%;
    --percentage-position: 0%;
    --percentage-text: "0%";
}

.result-overview-personality-bar-line-one {
    background-color: #CB7FB4;
}

.result-overview-personality-bar-line-two {
    background-color: #ACC0DC;
}

.result-overview-personality-bar-line-three {
    background-color: #3E895E;
}

.result-overview-personality-bar-line-four {
    background-color: #F4A582;
}

.result-overview-personality-bar-label {
    font-size: 0.88rem;
    position: absolute;
    bottom: 0;
}

/* Position left label. */
.result-overview-personality-bar-label:first-child {
    left: 0;
}

/* Position right label. */
.result-overview-personality-bar-label:last-child {
    right: 0;
}

/* Dot display. */
.result-overview-personality-bar-line-one::before,
.result-overview-personality-bar-line-two::before,
.result-overview-personality-bar-line-three::before,
.result-overview-personality-bar-line-four::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 2.5px solid;
    left: var(--dot-position);
}

.result-overview-personality-bar-line-one::before {
    border-color: #CB7FB4;
}

.result-overview-personality-bar-line-two::before {
    border-color: #ACC0DC;
}

.result-overview-personality-bar-line-three::before {
    border-color: #3E895E;
}

.result-overview-personality-bar-line-four::before {
    border-color: #F4A582;
}

/* Add percentage display above the dot. */
.result-overview-personality-bar-line-one::after,
.result-overview-personality-bar-line-two::after,
.result-overview-personality-bar-line-three::after,
.result-overview-personality-bar-line-four::after {
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: bold;
    left: calc(var(--percentage-position) + 1%);
    content: var(--percentage-text);
}

.result-overview-personality-bar-line-one::after {
    color: #CB7FB4;
}

.result-overview-personality-bar-line-two::after {
    color: #ACC0DC;
}

.result-overview-personality-bar-line-three::after {
    color: #3E895E;
}

.result-overview-personality-bar-line-four::after {
    color: #F4A582;
}

/* 2.2 Second row: Description. */
.result-description {
    padding: 0 10px;
    margin-top: 50px;
}

.result-description-text {
    text-align: left;
    padding: 20px 25px;
    border-radius: 10px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 2.3 Third row: Career suggestion and representative objects */
.result-fun-career-and-representative-object {
    padding: 10px 25px 0px 25px;
    margin-top: 30px;
    margin-bottom: 35px;
}

.result-fun-career-title,
.result-representative-object-title {
    font-weight: bold;
    color: rgb(122, 151, 198);
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-align: left;
}

.result-fun-career-description,
.result-representative-object-description {
    font-size: 1.1rem;
    text-align: left;
}

/* 2.4 Fourth row: Training suggestions. */
/* 2.5 Fifth row: Interaction suggestions. */
/* 2.6 Sixth row: Recommended toy and best match. */
.result-training-suggestions,
.result-interaction-suggestions,
.result-recommended-toys {
    text-align: left;
    padding: 25px 25px;
    border-radius: 10px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.result-training-suggestions .fa-paw,
.result-interaction-suggestions .fa-paw,
.result-recommended-toys .fa-paw {
    margin-right: 8px;
}

.result-training-suggestions-title,
.result-interaction-suggestions-title,
.result-recommended-toys-title {
    font-weight: bold;
    color: rgb(122, 151, 198);
    font-size: 1.4rem;
    margin-bottom: 13px;
}

.result-training-suggestions-description,
.result-interaction-suggestions-description,
.result-recommended-toys-description {
    padding-left: 15px;
}

.result-training-suggestions-description-title,
.result-interaction-suggestions-description-title,
.result-recommended-toys-description-title {
    font-size: 1.1rem;
}

.result-training-suggestions-description-text,
.result-interaction-suggestions-description-text,
.result-recommended-toys-description-text,
.result-explore-other-types {
    padding-left: 30px;
    padding-bottom: 10px;
    margin-bottom: 5px;
    font-size: 1rem;
    color: #676666;
}

.explore-types-link {
    color: rgb(122, 151, 198);
    text-decoration: underline;
    text-decoration-color: rgb(122, 151, 198);
    text-underline-offset: 4px;
    font-weight: 500 !important;
}

.explore-types-link:hover {
    color: rgb(94, 131, 190);
    text-decoration-color: rgb(94, 131, 190);
}

/* 3. Button container. */
.button-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 40px;
}

/* 4. Donation container. */
.donation-container {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 80px;
}

.img-donate {
    width: 700px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 12px;
}

.img-donate:hover {
    transform: scale(1.01);
    opacity: 0.9;
}

/* ===== Donation Modal Style ===== */
#donationModal .modal-content {
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#donationModal .modal-header {
    border-bottom: none;
    background-color: rgb(122, 151, 198);
    color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

#donationModal .modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

#donationModal .modal-body {
    padding-top: 20px;
    font-size: 1.05rem;
    color: #575656;
}

.donation-modal-text {
    font-size: 1.05rem;
    color: #575656;
    margin-bottom: 50px;
}

#donationModal .btn-group .btn {
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    border: 2px solid rgb(122, 151, 198);
    color: rgb(122, 151, 198);
    background-color: transparent;
}

#donationModal .btn-group .btn:hover,
#donationModal .btn-group .btn-check:checked+.btn {
    background-color: rgb(122, 151, 198);
    color: white;
}

#donationModal #customAmountInput input {
    border-radius: 10px;
    padding: 6px 12px;
    border: 1.5px solid #ccc;
    font-size: 1rem;
    width: 60%;
    margin: 0 auto;
    display: block;
}

#donationModal .modal-footer {
    border-top: none;
    padding-top: 0;
    padding-bottom: 20px;
}

#donationModal #confirmDonation {
    background-color: #3E895E;
    color: white;
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    transition: background-color 0.3s ease;
}

#donationModal #confirmDonation:hover {
    background-color: #346e4d;
}

/* Optional: Give modal backdrop a soft look */
.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.2);
}

.custom-amount-wrapper {
    display: inline-block;
    vertical-align: middle;
    width: 100px;
}

.custom-amount-input {
    border-radius: 30px;
    padding: 6px 10px;
    text-align: center;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    border: 2px solid rgb(122, 151, 198);
    color: rgb(122, 151, 198);
    transition: all 0.2s ease-in-out;
}

.custom-amount-input:focus {
    color: rgb(122, 151, 198);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

#customAmountValue::placeholder {
    font-size: 0.8rem;
}

.custom-amount-input:focus {
    outline: none;
    border-color: rgb(122, 151, 198);
    box-shadow: 0 0 3px rgba(122, 151, 198, 0.4);
}

/* 5. Share container. */
.share-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-button:hover {
    transform: translateY(-3px);
    color: white;
}

.social-button.facebook {
    background-color: #3b5998;
}

.social-button.facebook:hover {
    background-color: #2d4373;
}

.social-button.twitter {
    background-color: #000000;
}

.social-button.twitter:hover {
    background-color: #333333;
}

.social-button.pinterest {
    background-color: #bd081c;
}

.social-button.pinterest:hover {
    background-color: #8c0615;
}

.social-button.instagram {
    background: #f09433;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-button.instagram:hover {
    background: linear-gradient(45deg, #e07d1e 0%, #d85527 25%, #c61332 50%, #b61955 75%, #a60977 100%);
}

.social-button.tiktok {
    background-color: #000000;
}

.social-button.tiktok:hover {
    background-color: #333333;
}

.toast-notice {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

/* 6. 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-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 {
    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;
    }

    .back-link-container {
        padding-left: 1.5rem;
        padding-top: 0.5rem
    }

    .footer-links {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }
}

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

    .result-header {
        padding: 4rem 1rem 4rem 1rem;
        margin-bottom: 0;
    }

    .result-header-box {
        width: 100%;
    }

    .result-title-prefix {
        font-size: 1rem;
    }

    .result-title-role {
        font-size: 3rem;
    }

    .back-link-container {
        padding-left: 1rem;
        padding-top: 1.5rem
    }

    .img-donate {
        width: 350px;
    }

    .footer-links {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }
}

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

    .img-donate {
        width: 320px;
    }
}