body {
    text-align: center;
    max-width: 800px;
    min-width: 600px;
    margin: 0 auto;
}

canvas {
    margin: 0 auto;
}

.game {
    float: right;
    margin-right: 2em;
    color: rgb(20, 20, 201);
}

.game .val{
        color: rgb(25, 48, 151);
}

header h1 {
    color: rgb(24, 94, 45);
    overflow: hidden;
     text-align: center;
     margin-top: 0;
     margin-bottom: 0;
     clear: right;
}

header  .rules {
    cursor: pointer;
   
}


header h2 {
    margin-bottom: 0;
} 

/*header::after {
content: "";
display: block;
clear: both;
}*/

section.rules.hide {
    display: none;
}

section.rules {
    position: absolute;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 700px;
    
    font-size: 1.5 rem;
    font-weight: 600;
    font-family: Helvetica, Arial,  sans-serif;
    background-color: rgb(165, 165, 165);
    border: 1px solid rgb(120,120,120);
    border-radius: 20px;
    box-shadow: 2px 2px 4px rgba(80,80,80,0.7);
}

section.rules .close {
    text-align: right;
    

}

section.rules .close span {
    font-size: 2.5rem;
    margin: 0.75rem;
    cursor: pointer;
}

section.rules .wrapper {
    margin-top: -2rem;
    padding: 1.5rem;
}

section.rules img {
    vertical-align: bottom;
}

section.rules ul li{
    list-style-type: none;
}
