body {
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    margin: 0;
    padding: 20px;
    background: linear-gradient(to bottom right, #f0f4f8, #f0f4f8);
}

h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

#roller {
    font-size: 1.8em;
    margin-bottom: 10px;
    min-height: 40px;
    color: #333;
}

#counter {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.controls select,
.controls input[type="number"],
.controls button {
    padding: 10px 15px;
    font-size: 1em;
    border-radius: 6px;
    border: none;
    background-color: #0078d4;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.controls button:hover {
    background-color: #005fa3;
}

#uploadForm {
    margin-top: 10px;
    display: none;
}

.result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.result div {
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 1.2em;
    animation: fadeIn 0.5s ease-in-out;
    width: 500px;
    box-sizing: border-box;
    text-align: left;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .controls {
        flex-direction: column;
        align-items: center;
    }

    .controls select,
    .controls input[type="number"],
    .controls button {
        width: 100%;
        max-width: 300px;
    }

    .result div {
        width: 90%;
        font-size: 1em;
    }
}