/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
            #fffeea 0%,
            #fffeea 35%,
            #b7e8eb 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 0;
    animation: fadeInOverlay 1s forwards;
}

/* Logo Container */
.logo-container__loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.logo_loading {
    width: 400px;
    height: auto;
    animation: pulse 2s ease-in-out infinite, fadeIn 2s ease-in-out infinite alternate;
}

/* Ocean Container */
.ocean {
    height: 5%;
    position: absolute;
    bottom: -24px;
    left: 0;
    background: #015871;
    width: 100vw;
}

.wave {
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg);
    position: absolute;
    top: -198px;
    width: 6400px;
    height: 198px;
    transform: translate3d(0, 0, 0);
    animation: wave 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
}

.wave:nth-of-type(2) {
    top: -175px;
    opacity: 1;
    animation: wave 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) -0.125s infinite,
        swell 7s ease -1.25s infinite;
}

@keyframes wave {
    0% {
        margin-left: 0;
    }

    100% {
        margin-left: -1600px;
    }
}

@keyframes swell {

    0%,
    100% {
        transform: translate3d(0, -25px, 0);
    }

    50% {
        transform: translate3d(0, 5px, 0);
    }
}

@keyframes fadeInOverlay {
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .logo_loading {
        width: 250px;
        /* Giảm kích thước logo */
        animation: pulse 2s ease-in-out infinite, fadeIn 2s ease-in-out infinite alternate;
    }
}

@media screen and (max-width: 480px) {
    .logo_loading {
        width: 200px;
        /* Nhỏ hơn khi trên màn hình rất nhỏ */
    }
}