* {
  box-sizing: border-box;
}

body {
  background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  margin: 0;
}

h1 {
  font-size: 50px;
  color: #fff;
}

canvas {
  background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
  display: block;
  border-radius: 5px;  
}

.btn {
  cursor: pointer;
  border: 0;
  padding: 10px 20px;
  color: #fff;
  background-color: #000;
  border-radius: 5px;
}

.btn:focus {
  outline: 0;
}

.btn:hover {
  background-color: rgb(49, 48, 48);
}

.btn:active {
  transform: scale(0.98);
}

.rules-btn {
  position: absolute;
  top: 30px;
  left: 30px;
}

.rules {
  position: absolute;
  top: 0;
  left: 0;
  background: #333;
  color: #fff;
  min-height: 100vh;
  width: 400px;
  padding: 20px;
  line-height: 1.5;
  transform: translateX(-400px);
  transition: transform 0.5s ease-in-out;
}

.rules.show {
  transform: translateX(0);
}
