body {
    display: flex;                  /* make body a flex container */
    flex-direction: column;         /* stack elements vertically */
    justify-content: center;        /* center vertically */
    align-items: center;            /* center horizontally */
    min-height: 100vh;              /* full screen height */
    margin: 0;                      /* remove default margin */
    background: linear-gradient(135deg, #006400, #228B22); /* nicer green */
    font-family: Arial, sans-serif; /* clean modern font */
    text-align: center;
}

h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* makes text pop */
}

#numDice{
    font-size: 1.2rem;
    padding:5px;
    border: none;
}

#expSum{
    font-size: 1.2rem
}

button {
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    background-color: white;
    color: green;
    font-weight: bold;
    transition: all 0.3s ease; /* smooth hover effect */
}

button:hover {
    background-color: lightgoldenrodyellow;
    color: darkgreen;
    transform: scale(1.05); /* slight zoom effect */
}

#outcome {
    font-size: 7rem;
    color: yellow
}

label {
    font-size: 1.2rem;
    font-weight: bold;
    color: lightyellow;
    margin-right: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.dropdown{
    display:flex;
    flex-direction: row;
}

#result{
    font-size: 2rem;
}

@keyframes shake{
    0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake {
  display: inline-block;
  animation: shake 0.6s;
}
