body {
  margin: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
}
canvas {
  display: block;
}
#info {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 5px;
}
#lets-go-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 30px;
  font-size: 20px;
  cursor: pointer;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}
#lets-go-button:hover {
  background-color: #45a049;
}
#read-info-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #008cba;
  color: white;
  border: none;
  border-radius: 16px;
  transition: background-color 0.3s;
  display: none;
}
#read-info-button:hover {
  background-color: #007b9a;
}

#flash-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  display: none;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
}
#flash-card .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}
#oxygen-bar {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 200px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
}
#oxygen-level {
  width: 100%;
  height: 100%;
  background-color: #00ff00;
  transition: width 0.5s;
}
#game-over {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: red;
  text-shadow: 2px 2px 4px #000000;
  display: none;
}
#dive-again-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 30px;
  font-size: 20px;
  cursor: pointer;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  display: none;
}
#dive-again-button:hover {
  background-color: #45a049;
}
#implosion-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: red;
  text-shadow: 2px 2px 4px #000000;
  display: none;
}
#oxygen-label {
  position: absolute;
  bottom: 35px;
  left: 20px;
  color: white;
  font-size: 14px;
}
@media (max-width: 768px) {
  #info {
    top: 80px;
    font-size: 12px;
    max-width: 80%;
  }

  #lets-go-button,
  #read-info-button,
  #dive-again-button {
    font-size: 16px;
    padding: 10px 20px;
  }

  #flash-card {
    font-size: 14px;
    max-width: 90%;
    max-height: 70%;
  }

  #oxygen-bar {
    width: 150px;
  }

  #oxygen-label {
    font-size: 12px;
  }

  #returnToMapButton,
  #returnToHome {
    /* top: 30px; */
    /* font-size: 14px; */
    /* padding: 18px 16px; */
    /* right: 100px; */
    margin-left: 16px !important;
  }
  #read-info-button {
    padding: 8px 16px;
    top: 50px;
    right: 50px;
  }

  #returnToHome {
    position: absolute;
    top: 10px;
    right: 350px !important;
    padding: 10px 20px !important;
  }
}
