* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}
.container {
  position: ;
  background: url('sonic.jpg') no-repeat center center fixed;
  background-size: cover;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 8px #000;
  padding: 1rem;
}

.container h1 {

  font-size: 3rem;
  margin: 0.5em 0;

}
.container p {
  padding-top:200px;
  font-size: 1.5rem;
  margin: 0.5em 0 1.5em;
}
.container button {
  padding: 0.8em 1.5em;
  font-size: 1.2rem;
  background-color: #ffcc00;
  border: none;
  border-radius: 0.5em;
  cursor: pointer;
  transition: background 0.3s;
}
.container button:hover {
  background-color: #e6b800;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}
.modal-content {
  position: relative;
  background-color: #222;
  padding: 1rem;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  border-radius: 0.5em;
}
.close {
  position: absolute;
  top: 0.5em;
  right: 1em;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}
#snakeCanvas {
  display: block;
  background: #000;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-width: 600px;
  border: 0.2em solid #ccc;
}
@media (max-width: 600px) {
  .container h1 {
    font-size: 2.5rem;
  }
  .container p {
    font-size: 1rem;
  }
  .container button {
    font-size: 1rem;
    padding: 0.5em 1em;
  }
  .modal-content {
    max-width: 100%;
    max-height: 100%;
  }
}
@media (max-width: 400px) {
  .container h1 {
    font-size: 2rem;
  }
  .container p {
    font-size: 0.9rem;
  }
  .container button {
    font-size: 0.9rem;
    padding: 0.4em 0.8em;
  }
}
