#canvas {
  width: 720px;
  aspect-ratio: 3 / 2;
  border: 1px solid #000;
  background-color: black;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 5px;
  z-index: 1;
  color: white;
}

.link-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

@media (orientation: portrait) {
  #canvas {
    display: none;
  }

  #overlay-portrait {
    display: flex;
    z-index: 2;
  }

  #overlay-portrait::before {
    content: "Please rotate your device";
    color: white;
  }
}

@media (max-width: 1000px) {
  .hidemobile {
    display: none;
  }

  #canvas {
    max-width: 380px;
    aspect-ratio: 3 / 2;
  }

  #header {
    height: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

    #overlay-start-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 720px;
    height: 70%;
    padding: 5px;
    font-size: 1.1rem;
  }

  .link-box {
    display: flex;
    flex-direction: row;
    align-items: space-between;
    justify-content: center;
    gap: 12px;
    width: 100%;
    font-size: 1rem;
  }

}

@media (max-height: 500px) {
  .hidemobile {
    display: none;
  }

  #canvas {
    max-height: 300px;
    aspect-ratio: 3 / 2;
  }

  #header {
    height: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

}

@media (max-height: 400px) {
  .hidemobile {
    display: none;
  }

  #canvas {
    max-height: 250px;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  #header {
    height: 10px;
    padding-top: 2.5px;
    padding-bottom: 2.5px;
  }

}

@media (min-width: 1001px) {
  .hidedesktop {
    display: none;
  }

  #overlay-start-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 720px;
    height: 100%;
    max-height: 80%;
    padding: 12px;
    font-size: 1.5rem;
  }

  h2 {
    font-size: 4.5rem;
    margin: 0;
  }

  h3 {
    font-size: 2rem;
    margin: 0;
  }

  .link-box {
    display: flex;
    flex-direction: row;
    align-items: space-between;
    justify-content: center;
    gap: 20px;
    max-width: 100%;
    width: 720px;
    font-size: 1.3rem;
  }

  .plain-text {
    gap: 12px;
  }

  #start-button {
    padding: 6px 11px;
    font-size: 1.1em;
    transform: scale(1.1);
    margin: 10px 0;
  }

  #start-button:hover {
    box-shadow: 0 0 6px #fae352;
  }

  #start-button:active {
    transform: scale(1.05);
  }
}
