body {
    font-family: 'Cute Font', sans-serif;
    background: url(images/background.jpg);
    text-align: center;
    cursor: url(https://cur.cursors-4u.net/anime/ani-10/ani979.ani), url(https://cur.cursors-4u.net/anime/ani-10/ani979.png), auto !important;
}

article {
    text-align: left;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

h1 {
    font-family: 'Press Start 2P';
    font-size: 32px;
}

h2 {
    margin: 0;
    font-size: 28px;
}

p, footer {
    font-size: 24px;
}

footer a {
    text-decoration: none;
    color: black;
    cursor: url(https://cur.cursors-4u.net/anime/ani-10/ani979.ani), url(https://cur.cursors-4u.net/anime/ani-10/ani979.png), auto !important;
}

footer a:hover {
    text-decoration: none;
    color: blue;
    cursor: url(https://cur.cursors-4u.net/anime/ani-10/ani977.ani), url(https://cur.cursors-4u.net/anime/ani-10/ani977.png), auto !important;
}

#rules {
    text-align: left;
}

#main {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px auto;
}

.hidden {
    visibility: hidden;
    opacity: 0;
}

.showing {
    visibility: visible;
    opacity: 1;
}

#overlay {
    position: absolute;
    background-color:rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
}

#overlay article {
    box-sizing: border-box;
    background-color:#fff;
    border-radius: 20px;
    padding: 50px;
    width: 50vw;
    height: 60vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    overflow-y: hidden;
    z-index: 3;
}

.dice {
    position: relative;
    top: 20px;
    max-width: 150px;
}

#dice {
    display: flex;
    justify-content: center;
    align-items: center; 
}

#dice img {
    max-width: 150px; 
    margin: 0 5px; 
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

button {
    font-size: 22px;
    background-color: white;
    border-radius: 10px;
    border-style: none;
    box-shadow: #ADCFFF 0 -12px 6px inset;
    box-sizing: border-box;
    color: black;
    padding: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    display: block;
    text-align: center;
    transition: all .15s;
    margin: auto;
}

button:hover {
    background-color:cornsilk;
    box-shadow: #FFC229 0 -6px 8px inset;
    transform: scale(1.125);
    cursor: pointer;
    cursor: url(https://cur.cursors-4u.net/anime/ani-10/ani977.ani), url(https://cur.cursors-4u.net/anime/ani-10/ani977.png), auto !important;
}

#gamecontrol button{
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

#gamecontrol{
    text-align: center;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#game{
    text-align: center;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);

}

#actions{
    text-align: center;
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);

}

#winner{
    text-align: center;
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 60%, 80%, 100% {
      top: 80%; 
    }
    
    40% {
      top: 78%; 
    }
  }


#quit:hover{
    background-color: #fcd3c7;
    box-shadow: #f0300a 0 -6px 8px inset;
}

