*{
    margin: 0;
    padding: 0;
    text-align: center;
}

.container{
    padding: 2rem;
}

h1{
    color: black;
    font-size: 4rem;
    text-align: center;
    justify-content: center;
    margin-bottom: 2rem;
}

h1:hover{
    cursor: pointer;
    color: blueviolet;
}

#input-names{
    display: inline-block;
    gap: 4rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

#input-names input{
    width: 250px;
    font-size: 16px;
    border-radius: 15px;
    height: 40px;
}

#input-names input:hover{
    cursor: pointer;
    border: 1px solid blue;
}

#input-names button{
    color: blueviolet;
    border-radius: 8px;
    font-size: 1.5rem;
}

#input-names button:hover{
    cursor: pointer;
    border: 1px solid blue;
}

.dice{
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}


@keyframes roll {
    0% { transform: rotate(0deg);}
    25% {transform: rotate(90deg);}
    50% {transform: rotate(180deg);}
    75% {transform: rotate(270deg);}
    100% {transform: rotate(360deg);}
}

.animate-dice {
    animation: roll 0.5s ease-in-out;
}



.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

#modal-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

#winner-message {
  font-size: 1.6rem;
  font-weight: bold;
}
#winner-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

#winner-modal.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

footer{
    position: fixed;
    color: white;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
    padding: 0.5rem;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: blueviolet;
}