*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
}

body{
    /* background-color: #0095dd; */
    background-color: rgb(7, 1, 34);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

canvas{
    background: #f0f0f0;
    display: block;
    border-radius: 5px;
}

h1{
    margin-top: -10px;
    margin-bottom:10px;
    font-size: 45px;
    color:white;
}

.btn{
    cursor: pointer;
    padding: 10px 20px;
    /* background: black; */
    background: #071a52;
    color: white;
    border-radius: 5px;
}

.btn:focus{
    outline: 0;
}

.btn:hover{
    background: #0d2774;
}

.btn:active{
    transform: scale(0.98);
}

.rules-btn{
    position: absolute;
    top:30px;
    left:30px;
}

.rules{
    position: absolute;
    top: 0;
    left: 0;
    background:#454f6b;
    color: white;
    min-height: 100vh;
    width:400px;
    padding:20px;
    line-height: 1.5;
    transform: translateX(-400px);
    transition: transform 1s ease-in-out;

}

.rules.show{
    transform: translateX(0);
}

#heart{
   position: absolute;
   bottom: 0;
   left:20;
}
#canvas{
    background: #33334c;
}