* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    text-align: center;
    background: url('./images/bg_body.png') no-repeat center center !important;
    background-size: cover;
    background-attachment: scroll;
    height: 100%;
    font-family: 'Bai Jamjuree', sans-serif;
    overflow-x: hidden;
    touch-action: pan-y;
}

.logo {
    margin-top: 8%;
    margin-bottom: 4%;
}

.logo img {
    width: 35%;
    height: auto;
}

.link-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin: auto;
    max-width: 1435px;
    justify-items: center;
    padding: 0 20px;
}

.link-box {
    color: white;
    background-image: url(./images/bg_btn.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 140px;
    width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
    transition: transform 0.2s;
}

.link-box:hover {
    transform: scale(1.05);
}

.link-title {
    border-radius: 23.932px;
    background: linear-gradient(180deg, #FBF1E7 0%, #e9a05d 100%);
    color: #000;
    font-size: 19px;
    font-weight: 900;
    width: 110px;
    margin: 0 auto;

}

.link-latency {
    font-size: 20px;
    margin-top: 18px;
}

.link-action {
    border-radius: 16px;
    background: #FFF;
    box-shadow: inset 0px 3px 3px #A3D3FF, 0px 2px 3px rgba(0, 0, 0, 0.25);
    color: #000;
    font-size: 12px;
    font-weight: 900;
    width: 95px;
    padding: 4px 0;
    margin: auto;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    margin-bottom: 10px;
}

.link-action:hover {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.download-app {
    padding: 8px;
    margin: 90px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    max-width: 939px;
    border-radius: 24px;
    background: linear-gradient(180deg, #FBF1E7 0%, #FDDABA 100%);
}

.download-app>div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.download-app img {
    width: 120px;
    vertical-align: middle;
}

.tai_ngay {
    text-align: left;
    color: #000;
    font-size: 33px;
    font-weight: 700;
    text-transform: uppercase;
}

.download-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.app-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 30px;
    border: 1px solid #FFAC60;
    background: #FFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    width: 230px;
    height: 61px;
    text-decoration: none;
}

.app-button span {
    color: #484848;
    font-size: 16px;
    font-weight: 700;
}

.app-button img {
    width: 45px;
    height: 45px;
}


.customer-support {
    position: fixed;
    top: 510px;
    right: 20px;
    z-index: 9999;
}

.customer-support img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: shakeStrong 0.5s infinite;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

@keyframes shakeStrong {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-2px, 1px) rotate(-1deg);
    }

    50% {
        transform: translate(2px, -1px) rotate(1deg);
    }

    75% {
        transform: translate(-2px, 1px) rotate(-1deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.customer-support img:hover {
    transform: scale(1.1);
}

.header_mobile {
    display: none;
}

.download-app-mobile {
    display: none;
}

@media (min-width: 700px) and (max-width: 1024px) {
    .link-buttons {
        max-width: 700px;
    }
    .download-app {
        width: 660px;
        padding-top: 15px;
    }
    .download-buttons {
        padding-bottom: 10px;
    }
}

@media (max-width: 700px) {
    .header_mobile {
        display: block;
    }

    .download-app-mobile {
        display: block;
    }

    .tai_ngay_mobile {
        font-weight: bold;
        text-align: left;
    }

    .download-buttons-mobile {
        display: flex;
        gap: 15px;
        border-radius: 84px;
        background: linear-gradient(180deg, #FBF1E7 0%, #FDDABA 100%);
        width: 334px;
        height: 50px;
        margin: auto;
        padding: 12px 12px;
    }

    .btn {
        display: flex;
        align-items: center;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 25px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: background-color 0.3s ease;
        color: #484848;
        font-size: 10px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        height: 30px;
    }

    .btn:hover {
        background-color: #ff5722;
    }

    .btn img {
        width: 24px;
        margin-right: 10px;
    }

    #android-btn {
        background-color: white;
    }

    #ios-btn {
        background-color: white;
    }

    #android-btn:hover {
        background-color: #1e90ff;
    }

    #ios-btn:hover {
        background-color: #6495ed;
    }

    #app-button-mobile {
        background-color: red;
    }

    .app-button-mobile {
        width: 169.765px;
        height: 35.896px;
        flex-shrink: 0;
        border-radius: 17.948px;
        border: 0.592px solid #FFAC60;
        background: #FFF;
        box-shadow: 0px 2.369px 2.369px 0px rgba(0, 0, 0, 0.25);
    }

    .download-app-mobile .img2 {
        width: 80px;
    }

    .download-app-mobile .download1 {
        border-radius: 14.964px;
        background: linear-gradient(180deg, #FBF1E7 0%, #FDDABA 100%);
        display: flex;
        width: 276px;
        height: 82px;
        padding: 4.988px 5.986px;
        align-items: center;
        gap: 9.976px;
        flex-shrink: 0;
        margin: auto;
        margin-top: 14px;
        margin-bottom: 15px;
    }

    .download-app-mobile .download2 {
        border-radius: 84px;
        background: linear-gradient(180deg, #FBF1E7 0%, #FDDABA 100%);
        width: 306px;
        height: 44.424px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        margin: auto;
        margin-top: 16px;
        font-size: 12px;
    }

    .download-app-mobile .download2 a {
        width: 169.765px;
        height: 35.896px;
        flex-shrink: 0;
        border-radius: 17.948px;
        border: 0.592px solid #FFAC60;
        background: #FFF;
        box-shadow: 0px 2.369px 2.369px 0px rgba(0, 0, 0, 0.25);
        color: #484848;
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        text-decoration: none;
        width: 158px;
    }

    .download-app-mobile .download2 img {
        width: 27.027px;
        height: 27.027px;
        flex-shrink: 0;
    }

    body {
        background-image: url(./images/bg_mobile.png) !important;
        background-size: cover;
    }

    .download-buttons {
        background-image: none;
    }

    .download-app {
        display: none;
        padding: 0;
        margin: 0;
        background: none;
        box-shadow: none;
    }

    .header_mobile {
        color: #FFF;
        font-size: 14.977px;
        font-style: normal;
        font-weight: 900;
        line-height: normal;
        border-radius: 20.5px;
        background: #0AF;
        box-shadow: 0px -5.409px 2.705px 0px #5CCEFF inset, 0px 6.086px 4.26px 0px #00D0FF inset;
        width: 240px;
        height: 37px;
        flex-shrink: 0;
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: relative;
        top: 20px;
    }

    .logo img {
        width: 80%;
        margin-bottom: 20px;
    }

    .link-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-items: center;
        border: 1px solid blue;
        width: 90%;
        border: 2px solid #0884F1;
        border-radius: 21px;
        padding-top: 29px;
        padding-bottom: 10px;
    }

    .link-box {
        width: 100%;
        max-width: 160px;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
    }

    .link-title {
        color: #000;
        text-align: center;
        font-size: 12.02px;
        font-style: normal;
        font-weight: 900;
        line-height: normal;
        margin-left: auto;
        margin-right: auto;
        width: 80px;
        margin-top: -5px;
        padding: 2px 0;
    }

    .link-latency {
        font-size: 18px;
        margin: auto;
        margin-top: 8px;
    }

    .link-action {
        width: 70px;
        padding: 4px 0;
        border-radius: 11.347px;
        background: #FFF;
        font-size: 8px;
        text-align: center;
        position: relative;
        bottom: -8px;
    }


    .tai_ngay {
        font-size: 20px;
        text-align: center;
    }

    .app-button {
        width: 180px;
        height: 50px;
        font-size: 13px;
        padding: 6px 12px;
    }

    .app-button span {
        font-size: 14px;
    }

    .app-button img {
        width: 35px;
        height: 35px;
    }

    .download-app {
        margin: 40px auto;
        padding: 15px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
        background-image: none;
    }

    .download-app>div:first-child {
        flex-direction: column;
        align-items: center;
    }

    .download-app img {
        width: 80px;
    }

    .logo {
        margin-top: 10px;
        margin-bottom: -15px;
        animation: drift 2s infinite alternate;
    }

    @keyframes drift {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(5px);
        }
    }

}