* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #64b3f4, #c2e9fb);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 80px 0;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 500px;
}

h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

label {
    font-size: 1.2rem;
    margin-right: 10px;
    font-weight: bold;
    color: #333;
}

.number-of-dice {
    width: 80px;
    height: 35px;
    border-radius: 8px;
    border: 2px solid #ccc;
    font-size: 1.2rem;
    padding-left: 10px;
    outline: none;
    transition: all 0.3s ease;
}

.number-of-dice:focus {
    border-color: #0099ff;
    box-shadow: 0 0 5px rgba(0, 153, 255, 0.5);
}

.btn {
    padding: 12px 24px;
    border: none;
    background-color: #00bcd4;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 15px;
    margin-left: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #008c96;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dice-result {
    margin: 30px 0;
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.dice-result span {
    font-weight: 500;
}

.dice-images {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.dice-result.visible,
.dice-images.visible {
    opacity: 1;
    transform: translateY(0);
}

.dice-images img {
    width: 80px;
    height: 80px;
    margin: 10px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dice-images img:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.dice-total {
    margin-top: 50px;
    font-size: 1rem;
    color: #333;
    font-weight: bold;
    letter-spacing: 1px;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.dice-total span {
    font-weight: 400;
}