* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #011a35f6, #000000e1);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background-image: linear-gradient(to top, #6a85b6 0%, #bac8e0 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 6px solid transparent;
    border-image-source: linear-gradient(to top, #3b41c5 0%, #a981bb 49%, #ffc8a9 100%);
    border-image-slice: 1;
    position: relative;
    animation: borderAnimation 4s linear infinite;
}

.dice {
    background: linear-gradient(135deg, #420f6e89, #31587f);
    width: 160px;
    height: 160px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    font-size: 120px;
    color: #ffffff;
    position: relative;
}

.number-display {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #ffffff;
}

.generate-btn {
    background-color: #e67e22;
    color: #ffffff;
    padding: 15px 35px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s, transform 0.3s;
    &:hover {
        background-color: #f39c12;
        transform: scale(1.05);
    }    
}


@keyframes borderAnimation {
    0% {
        border-image-source: linear-gradient(to top, #3b41c5 0%, #a981bb 49%, #ffc8a9 100%);
        border-image-slice: 1;
        border-image-width: 6px;
    }
    25% {
        border-image-source: linear-gradient(to bottom, #3b41c5 0%, #a981bb 49%, #ffc8a9 100%);
        border-image-slice: 1;
        border-image-width: 6px;
    }
    50% {
        border-image-source: linear-gradient(to top, #3b41c5 0%, #a981bb 49%, #ffc8a9 100%);
        border-image-slice: 1;
        border-image-width: 6px;
    }
    75% {
        border-image-source: linear-gradient(to bottom, #3b41c5 0%, #a981bb 49%, #ffc8a9 100%);
        border-image-slice: 1;
        border-image-width: 6px;
    }
    100% {
        border-image-source: linear-gradient(to top, #3b41c5 0%, #a981bb 49%, #ffc8a9 100%);
        border-image-slice: 1;
        border-image-width: 6px;
    }
}
