.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 50px;
    
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel img {
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.carousel-indicators {
    position: absolute;
    bottom: 9px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicators .dot {
    width: 12px;
    height: 12px;
    background-color: rgb(187, 205, 255);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.carousel-indicators .dot.active {
    background-color: #3498db;
}



/* Animation จากซ้ายไปขวา */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%); /* เริ่มต้นอยู่นอกจอทางซ้าย */
        opacity: 0;
    }
    to {
        transform: translateX(0); /* เลื่อนเข้ามาที่ตำแหน่งปกติ */
        opacity: 1;
    }
}

/* ปรับสำหรับหน้าจอโทรศัพท์ */
@media (max-width: 768px) {
    .notification-box {
        font-size: 12px;
        padding: 5px 8px;
    }

    .notification-box i {
        font-size: 12px;
        margin-right: 8px;
    }

    .notification-message {
        font-size: 12px;
    }
}

/* Animation ซ้ายไปขวา สำหรับมือถือ */
@media (max-width: 480px) {
    .notification-box {
        padding: 10px;
        

        /* ปรับ Animation ให้เหมาะกับมือถือ */
        animation: slideInRight 1s ease-in-out;
    }

    .notification-box i {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .notification-message {
        font-size: 10px;
    }
}

/* Animation สำหรับมือถือ (จากขวาไปซ้าย) */
@keyframes slideInRight {
    from {
        transform: translateX(-100%); /* เริ่มต้นอยู่นอกจอทางซ้าย */
        opacity: 0;
    }
    to {
        transform: translateX(0); /* เลื่อนเข้ามาที่ตำแหน่งปกติ */
        opacity: 1;
    }
}




/* ส่วนหัวของเกม */
.home-games-lottery {
    text-align: center;
    padding: 30px 20px;
    background-color: #0056b3a8;
    color: white;
}

.home-games-lottery h2 {
    color:#ffffff;
    font-size: 36px;
    margin: 0;
    font-weight: bold;
}

.home-games-lottery .subtitle {
    font-size: 18px;
    margin-top: 10px;
    font-weight: 300;
}



.game-card-box-container {
    
    display: flex;
    justify-content: center; /* จัดกึ่งกลาง */
    align-items: center; /* จัดให้อยู่ตรงกลางแนวตั้ง */
    padding: 20px;
    background-color: #f9f9f9; /* สีพื้นหลัง */
}

.game-cards-list {
    margin-bottom: 70px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* จัดเป็น 2 คอลัมน์ */
    gap: 20px; /* ระยะห่างระหว่างการ์ด */
    max-width: 800px; /* กำหนดความกว้างสูงสุด */
    width: 100%;
}

.game-cards-list a {
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-cards-list a:hover {
    transform: scale(1.05); /* ขยายเมื่อ hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* เพิ่มเงา */
}

.game-cards-list .card-1min,
.game-cards-list .card-3min,
.game-cards-list .card-5min,
.game-cards-list .card-10min {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #ddd; /* เส้นขอบ */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.game-cards-list .card-1min img,
.game-cards-list .card-3min img,
.game-cards-list .card-5min img,
.game-cards-list .card-10min img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.game-cards-list .card-1min:hover,
.game-cards-list .card-3min:hover,
.game-cards-list .card-5min:hover,
.game-cards-list .card-10min:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
