*{
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}

body{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

h1{
    margin-top: 20px;
    color: #444;
}

.dice{
    font-size: 100px;
    margin: 20px;
    color: #333;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.roll-animation {
  animation-name: roll;
}

@keyframes roll {
  0% {
    transform: rotateY(0deg) rotateX(0deg);
  }

  100% {
    transform: rotateY(720deg) rotateX(720deg);
  }
}

button{
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
}

button:hover{
    background-color: #2e8baf;
}

ul{
    list-style-type: none;
    padding: 0;
    width: 600px;
    margin: 1.5rem;
}

li{
    padding: 1rem;
    background-color: #f0f0f0;
    margin: 1rem;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
}

span{
    font-size: 50px;
    color: #555;
}

.modal-box{
    background-color: rgba(0,0,0,0.4);
    color: rgb(218, 26, 26);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: auto;
    position: fixed;
    top: 0;
    bottom: 0;
}

.close{
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 480px) and (min-width: 320px) {
    ul{
       width: 90%;
       margin: 1rem;
    }

}

@media (min-width: 481px) and (max-width: 767px) {
    ul{
        width: 80%;
        margin: 1rem;
    }
}