html {
    scroll-behavior: smooth;
}

body {
    background-color: #232323;
    color: #ffffff;
    font-family:
        "Source Han Sans SC",
        "PingFang SC",
        "Microsoft YaHei",
        "Noto Sans SC",
        sans-serif;
    padding-top: 131px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 110px;
    padding: 20px 30px;
    background-color: #232323;

    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

#shaoshao-logo {
    width: 110px;
    height: auto;
}

.app-download-btn {
    width: 140px;
    height: 56px;
    border: none;
    font-size: 22px;
    font-weight: 480;
    color: #ffffff;
    background-color: #0c08af;
    border-radius: 14px;
    text-decoration: none;

    display: flex;
    justify-content: center;
    align-items: center;
    --bs-btn-hover-bg: #110e87;
    --bs-btn-active-bg: #0a0874;
}

.title-section {
    padding: 80px 0px;
    text-align: center;
}

.title-section h1 {
    font-size: 56px;
    font-weight: 500;
}

.feature {
    position: relative;
    width: 100%;
    padding: 70px 150px 70px 150px;
    background-color: #f3f3f3;

    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-text {
    width: 50%;
    min-width: 280px;
    padding: 0px 0px 0px 50px;
    color: #000000;
    text-align: center;
    transform: translateY(-60%);
}

.feature-text h2 {
    font-size: 45px;
    font-weight: 500;
    margin: 0px 0px 50px 0px;
}

.feature-text p {
    font-size: 23px;
    font-weight: 450;
}

.feature-img {
    width: 50%;
    max-width: 350px;
    min-width: 300px;

    /* the browser will reserve spaces before image loads,
    this line of code ensures the smooth crolling after clicking
    the download button */
    aspect-ratio: 587 / 1201;

    display: flex;
    justify-content: center;
}

.feature-img img {
    width: 100%;
    height: auto;
    background-color: #0c08af;
    border-radius: 50px;
    border: 24px solid #0c08af;
}

.reverse {
    background-color: #232323;

    flex-direction: row-reverse;
}

.feature-text-rvs {
    padding: 0px 0px 0px 0px;
    color: #ffffff;
}

.app-download {
    position: relative;
    width: 100%;
    padding: 100px 150px 80px 150px;

    display: flex;
    gap: 30px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.app-download-bar {
    height: 100px;
    border: 2.5px solid #ffffff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 23px;
    color: #ffffff;
    padding: 0px 43px 0px 18px;

    display: flex;
    align-items: center;
}

.ios-icon {
    width: 82px;
    padding:0px 23px 0px 23px
}

.android-icon {
    width: 83px;
    padding: 0px 23px 0px 26px;
}

.protocols {
    padding: 20px 120px;
    margin-bottom: 40px;
    align-items: center;

    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-evenly;
}

.footer-link {
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    padding: 0px;
    --bs-btn-hover-color: #c7c7c7;
    --bs-btn-active-color: #a7a7a7;
}

footer {
    position: relative;
    width: 200px;
    bottom: 11px;
    left: 14px;
}

.icp {
    font-size: 16px;
    font-weight: 450;
    color: #6e6e6e;
    text-decoration: underline;
    padding: 0px;
    --bs-btn-hover-color: #aeaeae;
    --bs-btn-active-color: #d7d7d7;
}

.custom-popover {
  --bs-popover-max-width: 200px;
  --bs-popover-border-color: #0c08af;
  --bs-popover-header-bg: #0c08af;
  --bs-popover-header-color: var(--bs-white);
  --bs-popover-body-padding-x: 1rem;
  --bs-popover-body-padding-y: .5rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 960px) {
    #shaoshao-logo {
        width: 95px;
    }

    .app-download-btn {
        width: 120px;
        height: 48px;
        font-size: 20px;
    }

    .title-section h1 {
        font-size: 48px;
    }

    .feature {
        padding: 70px 120px 70px 120px;
    }

    .feature-text h2 {
        font-size: 40px;
    }

    .feature-text p {
        font-size: 20px;
    }

    .reverse {
        padding: 70px 120px 70px 120px;
    }

    .app-download-bar {
        height: 80px;
        border: 2px solid #ffffff;
        border-radius: 22px;
        font-size: 20px;
    }

    .ios-icon {
        width: 76px;
    }

    .android-icon {
        width: 77px;
    }

    .footer-link {
        font-size: 14px;
    }

    .icp {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .feature {
        flex-direction: column;
        padding: 50px 20px;
        gap: 20px;
        justify-content: center;
    }

    .feature-text {
        width: 100%;
        padding: 0px;
        transform: translateY(0);
    }

    .feature-text h2 {
        font-size: 40px;
        margin: 0px 0px 20px 0px;
    }

    .feature-img {
        width: 100%;
    }

    .app-download {
        padding: 100px 22px 80px 22px;
    }

    .app-download-bar {
        padding: 0px 25px 0px 0px;
        font-size: 16.5px;
    }

    .app-download-btn {
        width: 106px;
        height: 38px;
        font-size: 17px;
    }

    .ios-icon {
        height: 37px;
        padding: 0px 0px 0px 3px;
    }

    .android-icon {
        height: 32px;
        padding: 0px 0px 0px 6px;
    }

    .protocols {
        padding: 20px 30px;
    }
}
