body {
    font-family: "Open Sans", sans-serif;
    text-align: center;
    margin: 0;
}

h1 {
    font-size: 3.5rem;
    margin-top: 2rem;
}

.dice-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.dice {
    font-size: 7rem;
    margin: 5px;
    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 {
    background-color: #588157;
    color: white;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: background-color .3s ease;
    display: block;
    margin: 10px auto; 
}

#roll-button {
    font-size: 2rem;
    padding: 1rem 2.5rem;
}

#roll-button:hover {
    background-color: #3a5a40;
}

#clear-button {
    font-size: 1.5rem; 
    padding: 1rem 2rem; 
}

#clear-button:hover {
    background-color: #3a5a40;
}

.history-container {
    display: flex;
    justify-content: space-around;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

.history-box {
    text-align: center;
    width: 45%;
    box-sizing: border-box;
}

h2 {
    background-color: #a3b18a;
    color: white;
    border-radius: .5rem;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    cursor: default;
}

ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

li {
    font-size: 1.5rem;
    padding: .5rem;
    margin: .5rem 0;
    background-color: #dad7cd;
    border-radius: .5rem;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li span {
    font-size: 3rem;
}