body {
  font-family: Impact, fantasy;
  letter-spacing: 2px;
  background: #000000;
  color: white;
  text-align: center;
}

button {
  font-family: Georgia, serif;
  margin: 10px;
  padding: 10px;
  background: rgb(255, 255, 255, 0.7);
  color: rgb(0, 0, 0);
  border: none;
  cursor: pointer;
  border-radius: 24px;
}

/*background color for the top bar with page links*/
.topbar {
  background-color: rgba(255, 255, 255, 0.7);
}

/*topbar link colors*/
.topbar a {
  color: rgb(0, 0, 0);
  padding: 15px;
  font-size: 17px;
  text-decoration: none;
  align-items: center;
}

.topbar a:hover {
  background-color: #ddd;
  color: rgb(128, 128, 128);
}

.topbar a:active {
  background-color: rgb(138, 138, 138);
  color: white;
}

.tutorialText {
  font-family: Verdana, sans-serif;
}

.topText {
  color: black;
  font-size: 17px;
  padding: 15px;
}

/*# = ID selector --> Targets a single element with a unique ID attribute*/
#room {
  width: 900px;
  height: 500px;
  margin: 20px auto;
  background: url("../images/front.PNG");
  background-size: cover;
  position: relative;
  border: 3px solid white;
}

#leftButton{
  position: absolute;
  left: -100px;
  top: 210px;
}

#rightButton{
  position: absolute;
  left: 940px;
  top: 210px;
}

.hidden {
  display: none !important;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Shared structural container rule to perfectly match the size and look of the panels */
#home, .instructionsText, .escaped, .lost {
  background: rgba(18,18,18,1);
  width: 100%;
  max-width: 746px;
  margin: 100px auto;
  padding: 50px 30px;
  border-radius: 16px;
  text-align: center;
  box-sizing: border-box;
}

.clickable {
  position: absolute;
  cursor: pointer;
  display: none; /* hidden by default */
}

/* Invisible clickable area */
.hotspot {
  position: absolute;
  cursor: pointer;
}

/* object location */
#safeSpot {
  position: absolute;
  width: 125px;
  height: 75px;
  left: 720px;
  top: 380px;
}

#folderSpot {
  position: absolute;
  width: 125px;
  height: 30px;
  left: 550px;
  top: 325px;
}

#codeSpot {
  position: absolute;
  width: 50px;
  height: 20px;
  left: 766px;
  top: 290px;
}

.overlay img {
  width: 60%;
}

.key {
  position: absolute;
  width: 3%;
  height: 8.5%;
  opacity: 0;
  padding: 0;
  border: none;
  cursor: pointer;
}

#typed {
  background: black;
  color: lime;
  font-size: 32px;
  padding: 10px;
  letter-spacing: 10px;
  width: 150px;
  text-align: center;
}


#textOverlay {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-45%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
}

#textOverlay button {
  position: relative;
  font-size: 16px;
  cursor: pointer;
}

#codeInput {
  text-transform: uppercase;
  padding: 8px;
  font-size: 100px;
  width: 570px;
  letter-spacing: 115px;
  background: transparent;
  border: none;
  outline: none;
}

/*fade out and in animations*/
.fade-out {
  opacity: 0;
  transition: opacity 3s ease; /* fade duration: 1 second */
}

@keyframes fadeInUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

.fadeInUp-animation {
  animation: 1.5s fadeInUp;
}
