body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(img/5_background/bg.png);
  margin: 0;
  font-family: "Sancreek";
}

h1 {
  font-size: 80px;
  display: flex;
  justify-content: center;
  margin: 10px;
  font-weight: 800;
}

.infoBar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.infoIcon {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  border: 3px solid #000000;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  padding: 2px;
  cursor: pointer;
  margin-right: 5px;
}

table{
  font-family: "Creepster";
  font-size:20px;
}

.mainDiv {
  /* border: 15px solid rgb(152, 61, 0); */
  position: relative;
  width: 720px;
  height: 480px;
  aspect-ratio: auto 720 / 480;
}
.mainDiv > * {
  width: 100%;
  height: 100%;
}

.startDiv {
  z-index: 1001;
}

.startBackground {
}

.playbutton {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 150px;
  width: 200px;
  padding: 15px;
  border-radius: 15px;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: 0.5;
  color: blue;
  font-size: 30px;
  z-index: 1001;
}

.playbutton:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.restartButton {
  font-family: "Creepster";
  border: 0;
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px;
  border-radius: 15px;
  transition: all 0.3s ease;
  background-color: rgba(255, 177, 0.8);
  cursor: pointer;
  color: rgb(125, 47, 19);
  font-size: 30px;
  z-index: 1000;
}

.restartButton:hover {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 0.9;
}

.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 160px;
  width: 230px;
  padding: 15px;
  border-radius: 15px;
  transition: all 0.3s ease;
  background-color: rgba(255, 204, 0, 1);
  font-size: 15px;
  z-index: 1500;
}

.infoDiv {
}

.infoDiv td {
  width: 150px;
  text-align: center;
}

.infoImage {
  height: 30px;
  font-family:none;
  font-weight:800;
  margin:0;
  font-size:30px;
  text-align: center;
}

.startscreen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 900;
  width: 720px;
  height: 480px;
  object-fit: fill;
}

.menuGamescreen {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  width: 100%;
  max-width: 720px;
  z-index: 999;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 480px;
}

.panel-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.panel-top img {
  height: 30px;
  width: 30px;
  cursor: pointer;
}

.panel-bottom {
  width: 720px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.panel-bottom img {
  cursor: pointer;
}

.panel-wrapper-right {
  display: flex;
  gap: 20px;
}

.panel-right img {
  height: 45px;
  width: 45px;
  margin-right: 15px;
}

.panel-left {
  display: flex;
  gap: 20px;
  margin-left: 15px;
  margin-bottom: 6px;
}

.panel-left img {
  height: 45px;
  width: 45px;
}

.mobileVersion {
  background-color: rgb(234, 95, 0);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 1500;
  font-size: 40px;
}
.mobileVersion img {
  width: 200px;
  height: 200px;
}
@media (min-width: 935px) {
  .panel-bottom {
    display: none;
  }
}
/* Smartphones ------ */
@media only screen and (max-width: 720px) {
  .mainDiv {
    width: 100%;
  }
  .startscreen {
    width: 100%;
  }
  .startDiv {
    width: 100%;
  }
  .menuGamescreen {
    width: 100%;
  }
  .panel-bottom {
    width: 100%;
  }

  canvas {
    width: 100%;
  }
  h1 {
    display: none;
  }
}

@media only screen and (max-height: 480px) {
  .mainDiv {
    height: 100vh;
  }
  .startscreen {
    height: 100vh;
  }
  .startDiv {
    height: 100vh;
  }
  .menuGamescreen {
    height: 100vh;
  }

  canvas {
    height: 100vh;
  }
  h1 {
    display: none;
  }
}

@media screen and (max-width: 650px) {
  .mobileVersion {
    display: flex;
  }
}
@media screen and (min-width: 651px) {
  .mobileVersion {
    display: none;
  }
}
