body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
}

img {
    width: 100px;
    max-width: 100px;
    height: auto;
    margin-bottom: 1px;
}

.buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.buttons-container button, #restartButton {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.buttons-container button:hover, #restartButton:hover {
    background-color: #ddd;
}

#restartButton {
    margin-top: 20px;
}

#fireworks {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Additional styles for animations as previously defined */
.roll {
    animation: roll 2.5s ease-in-out;
}
@keyframes roll {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-200px) rotate(360deg); }
    100% { transform: translateY(0) rotate(720deg); }
}
.quickSpin {
    animation: quickSpin 2.5s ease-in-out;
}
@keyframes quickSpin {
    0% { transform: rotate(0); }
    100% { transform: rotate(1440deg); }
}
.bounceRoll {
    animation: bounceRoll 2.5s ease-in-out;
}
@keyframes bounceRoll {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-250px) rotate(720deg); }
}
.firework {
    width: 5px;
    height: 5px;
    background: red;
    position: absolute;
    border-radius: 50%;
    animation: explode 2s ease-out forwards;
}
@keyframes explode {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(var(--x), var(--y)); opacity: 0; }
}
footer {
    text-align: center;
    margin-top: 20px;
}

footer a {
    text-decoration: none;
    color: #0078D4;
}

footer a:hover {
    text-decoration: underline;
}

footer button {
    font-weight: bold;
    background-color: #FF0000;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
}
