/* Reset cơ bản */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-image: url('image/background1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px;
    text-align: center;
}

.wrapper h1 {
    font-size: 2.5rem; /* Cỡ chữ phù hợp trên máy tính */
    font-family: 'Lobster', cursive;
    letter-spacing: 1px;
    color: #fff;
}

.wrapper .box-time {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Khoảng cách giữa các ô */
    margin-top: 20px;
}

.box-time .time {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgb(216, 48, 48);
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px #fff;
    margin: 10px;
}

.box-time .time::before {
    position: absolute;
    content: '';
    width: 100px;
    height: 100px;
    border: 8px solid rgb(251, 255, 0);
    box-shadow: inset 0 0 10px #333;
    border-radius: 50%;
}

.box-time .time p {
    font-size: 1.2rem; /* Điều chỉnh kích thước chữ */
    font-family: 'Caramel', cursive;
    margin-bottom: 5px;
}

.box-time .time span {
    font-size: 1rem; /* Điều chỉnh kích thước chữ */
    font-family: 'Fredoka One', cursive;
}

/* Nút bấm */
#loi-chuc {
    border: 3px solid red;
    border-radius: 20px;
    height: 50px;
    background: #d04e2daa;
    margin-top: 50px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #f1ff4e;
    cursor: pointer;
    transition: transform 0.2s;
}

#loi-chuc:hover {
    transform: scale(1.1); /* Hiệu ứng khi hover */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wrapper h1 {
        font-size: 2rem;
    }

    .box-time .time {
        width: 100px;
        height: 100px;
    }

    .box-time .time::before {
        width: 80px;
        height: 80px;
        border: 6px solid rgb(251, 255, 0);
    }

    .box-time .time p {
        font-size: 1rem;
    }

    .box-time .time span {
        font-size: 0.9rem;
    }

    #loi-chuc {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    .box-time .time {
        width: 80px;
        height: 80px;
    }

    .box-time .time::before {
        width: 60px;
        height: 60px;
    }

    .box-time .time p {
        font-size: 0.9rem;
    }

    .box-time .time span {
        font-size: 0.8rem;
    }

    #loi-chuc {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}



.flower {
    position: absolute;
    font-size: 20px;
    color: #d45d79;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.5;
    }
}
