html,
body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
}

#gradient {
  z-index: -1;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: url("maze 4 copy.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  text-align: center;
  padding-bottom: 120px;
}

#view {
  position: absolute;
  top: 0;
  bottom: 120px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

#mazeContainer {
  opacity: 0;
  transition: opacity 1s linear;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
  margin: auto;
  max-width: 100%;
  max-height: calc(100vh - 140px);
}

#mazeContainer #mazeCanvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid black;
  border-radius: 5px;
}

button,
input,
select {
  box-sizing: border-box;
  transition: background-color 0.2s ease-in-out, opacity 0.2s ease-in-out;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
  max-width: 260px;
  display: inline-block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button:hover,
input:hover,
select:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

button:active,
input:active,
select:active {
  background-color: black;
}

button:focus,
input:focus,
select:focus {
  outline: none;
}

#page #menu {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 360px;
  box-sizing: border-box;
  padding: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#startMazeBtn {
  width: 100%;
  max-width: 260px;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 700;
  background-color: black;
  color: #ffffff;
  border-radius: 10px;
  border: none;
}

#startMazeBtn:hover {
  background-color: black;
}

#startMazeBtn:active {
  background-color: black;
}

#Message-Container {
  visibility: hidden;
  color: white;
  display: block;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

#Message-Container #message {
  width: 300px;
  height: 300px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.border {
  border: 1px solid black;
  border-radius: 5px;
}

@media only screen and (max-width: 400px) {
  button,
  input,
  select {
    width: 90vw;
    max-width: 260px;
    font-size: 16px;
  }

  #page #menu {
    bottom: 10px;
    padding: 0;
  }

  #mazeContainer {
    max-height: calc(100vh - 120px);
  }
}
