#bodyCanvas {
}

.main {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}

body{ background-color: ivory; }

.wrapper {
    border: 10px solid black;
    top:10px;
    left:10px;
    width: 1000px;
    height: 750px;
    overflow: hidden;
    background-color:white;
    position: relative;
    margin-top: 72px;
    border-radius: 7px;
    box-shadow: 2px 2px 10px black;
}
.vertical-scroll {
  border: 1px solid black;
  border-radius: 10px;
  width: 20px;
  height: 236px;
  position: absolute;
  bottom: 5px;
  right: 7px;
  box-shadow: 2px 2px 5px black;
}
.vertical-scroll div.bar {
    left:0px;
    top:0px;
    width: 20px;
    background-color: black;
    height: 20px;
    border-radius: 10px;
}
#bodyCanvas {
    left:0px;
    top:0px;
}

.about {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 10px;
  border-radius: 7px;
  font-size: 20px;
  background: black;
  font-family: fantasy;
  color: white;
  width: 150px;
  box-shadow: 2px 2px 10px black;
  transition: box-shadow 0.5s;
}

.clear {
  position: absolute;
  top: 10px;
  right: 170px; /* 150px button width + 10px margin */
  padding: 10px;
  border-radius: 7px;
  font-size: 20px;
  background: black;
  font-family: fantasy;
  color: white;
  width: 150px;
  box-shadow: 2px 2px 10px black;
  transition: box-shadow 0.5s;
}

.cheat {
  position: absolute;
  top: 65px;
  right: 10px;
  padding: 10px;
  border-radius: 7px;
  font-size: 20px;
  background: black;
  font-family: fantasy;
  color: white;
  width: 150px;
  box-shadow: 2px 2px 10px black;
  margin-top: 2px;
  transition: box-shadow 0.5s;
}

.about:hover {
  box-shadow: 2px 2px 20px black;
  cursor: pointer;
}

.cheat:hover {
  box-shadow: 2px 2px 20px black;
  cursor: pointer;
}

.mute {
  height: 50px;
  position: absolute;
  top: 125px;
  right: 10px;
}

.mute:hover {
  cursor: pointer;

}

.header {
  font-size: 54px;
  font-family: fantasy;
  position: absolute;
  margin: 0px;
}


.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0,0,0,0.9);
  color: white;
  width: 400px;
  height: 400px;
  padding: 20px;
  border-radius: 12px;
  font-size: 1.5em;
  z-index: 10000;
  display: none;
  text-align: center;
  box-shadow: 0 0 20px #000;
  
  display: flex;
  flex-direction: column;
  align-items: center;  /* horizontally center */
  justify-content: flex-start; /* start at the top */
  gap: 20px;
}

.popup-image {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  border-radius: 5px;
}

.popup-definition {
  font-size: 1.2em;
  text-align: center;
  padding: 0 20px;
}
