body {
    margin: 0;
    padding: 0;
    background: rgba(231, 243, 249, 0.932);
    font-family: Arial, Helvetica, sans-serif;
}

#container {
    text-align: center;
    font-weight: bold;
    padding: 30px;
    max-width: 650px;
    margin: 60px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

#container h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 25px;
}

form {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#container label {
    font-size: 1.1rem;
    color: #333;
}

input {
    font-size: 1.2rem;
    width: 100px;
    font-weight: bold;
    text-align: center;
    padding: 8px;
    border: 2px solid rgba(104, 103, 103, 0.8);
    border-radius: 10px;
    outline: none;
    color: #333;
    transition: 0.2s ease-in-out;
}
input:focus {
    border-color: #5ca9f7;
    box-shadow: 0 0 6px rgba(92, 169, 247, 0.6);
}

button {
    font-size: 1.1rem;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    background-color: rgb(129, 194, 240);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}
button:hover {
    background-color: rgb(85, 168, 240);
    transform: scale(1.05);
}
button:active {
    transform: scale(0.97);
}

#results h2 {
    color: #444;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-decoration: underline;
}

#diceResult {
    color: #333;
    font-size: 1.2rem;
    padding: 15px;
    font-weight: bold;
    min-height: 25px;
}

#diceImage {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
#diceImage img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
#diceImage img:hover {
    transform: rotate(8deg) scale(1.15);
}

#diceResult{
  white-space: normal; /* default */
  word-wrap: break-word;
  color: #333;
}
