body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-align: center;
}
canvas {
  
}

#character-selection {
  background-color: #fff7d4;
}
#character-selection {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

#start_over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

.start-game {
  border-radius: 5px;
  cursor: pointer;
}

.start-game img {
  width: 200px;
  margin-right: auto;
  margin-left: auto;
}

/* Orientation Overlay Styles */
.orientation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.orientation-overlay p {
  font-size: 1.5em;
}

@media screen and (orientation: portrait) {
    html {
        /* transform: rotate(-90deg);
        transform-origin: left top; */
        width: 100vh;
        height: 100vw;
        overflow-x: hidden;
        position: absolute;
        top: 100%;
        left: 0;
    }
}

#main {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#gameCanvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

#mobile-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

/* .left-controls, .right-controls {
    display: flex;
    flex-direction: column;
}

#mobile-controls button {
    font-size: 24px;
    padding: 15px;
    margin: 5px;
    border-radius: 50%;
    border: 1px solid #000;
    color: #000;
    
} */

@media (min-width: 769px) and (min-height: 480px) {
  #mobile-controls {
      display: none;
  }
}
