body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #0f2027, #2c5364, #1a2a6c, #000428);
    background-size: 400% 400%;
    animation: gradientBG 18s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #f5f5f5;
}


/* Container */


/* Hiệu ứng mờ dần cho container */

@keyframes fadeInOpacity {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.homepage_container {
    /* bỏ position/top/left/transform */
    text-align: center;
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    animation: fadeInOpacity 1.2s ease-in-out both;
}


/* Logo + Tiêu đề */

.homepage_logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
}

.main_title {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
}

.main_title span {
    color: aquamarine;
}

.subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ddd;
}

.title_homepage {
    color: wheat;
    display: flex;
    justify-content: center;
    padding: 50px;
}

.title_homepage h1 {
    font-family: cursive
}

.select_homepage {
    display: flex;
    justify-content: center;
}


/* Nút Play Games */

.button_playgames {
    font-size: 26px;
    /* to hơn */
    font-family: cursive;
    padding: 28px 45px;
    /* to hơn */
    margin: 20px 20px;
    background: linear-gradient(45deg, aquamarine, lightblue);
    color: blue;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.6), 0 0 40px rgba(0, 200, 255, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: pulseGlow 1.5s infinite alternate, bounce 2.5s infinite ease-in-out;
}

.button_playgames:hover {
    transform: scale(1.18) rotate(-2deg);
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.9), 0 0 70px rgba(0, 200, 255, 0.7);
    background: linear-gradient(45deg, lightblue, aquamarine);
    cursor: pointer;
    opacity: 1;
}


/* Hiệu ứng nhấp nháy ánh sáng */

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 200, 0.6), 0 0 20px rgba(0, 200, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 25px rgba(0, 255, 255, 1), 0 0 50px rgba(0, 200, 255, 0.9);
    }
}


/* Hiệu ứng nhún nhảy */

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.button_playgames a {
    text-decoration: none;
}


/* Hiệu ứng xuất hiện */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Nút Join Discord */

.button_joindiscord {
    font-size: 26px;
    /* to hơn giống Play */
    font-family: cursive;
    padding: 28px 45px;
    margin: 20px 20px;
    background: linear-gradient(45deg, #7289da, #a77bff);
    /* tím + xanh discord */
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    box-shadow: 0 0 20px rgba(114, 137, 218, 0.6), 0 0 40px rgba(167, 123, 255, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: pulseDiscord 1.5s infinite alternate, bounce 3s infinite ease-in-out;
}

.button_joindiscord:hover {
    transform: scale(1.18) rotate(2deg);
    box-shadow: 0 0 35px rgba(167, 123, 255, 0.9), 0 0 70px rgba(114, 137, 218, 0.7);
    background: linear-gradient(45deg, #a77bff, #7289da);
    cursor: pointer;
    opacity: 1;
}

.button_joindiscord a {
    text-decoration: none;
}