
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb);
    background-size: 400% 400%;
    animation: gradientAnimation 8s ease infinite;
    font-family: Arial, sans-serif;
}


@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    text-align: center;
    padding: 20px;
}

#dice-img {
    width: 200px;
    height: 200px;
    border: 5px solid #333;
    border-radius: 10px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

#dice-img.spin {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
}


#result {
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}


button {
    background: linear-gradient(45deg, #007BFF, #00BFFF);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(45deg, #0056b3, #008cba);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
}


@media (max-width: 768px) {
    #dice-img {
        width: 150px;
        height: 150px;
    }

    #result {
        font-size: 20px;
    }

    button {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #dice-img {
        width: 120px;
        height: 120px;
    }

    #result {
        font-size: 18px;
    }

    button {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 20px;
    }
}

