#landing-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

#landing-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#landing-page #lift-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;
  gap: 1rem;
}

#landing-page #lift-form input {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  width: 100%;
}

#landing-page #lift-form .label-text {
  margin-bottom: 0.5rem;
  text-align: center;
}

#landing-page #lift-form button {
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  cursor: pointer;
}

#simulation-page {
  display: none;
}

#simulation-page > h1 {
  text-align: center;
}

.floor-container {
  border: 2px solid black;
  margin: 10px auto;
  padding: 20px;
}

.floor-container .floor {
  display: grid;
  grid-template-columns: 1fr 10fr;
  height: 6rem;
  border-bottom: 2px solid black;
  margin-top: 10px;
  margin-bottom: 10px;
}

.floor-container .floor .control-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 20px;
}

.floor-container .floor .control-btns button {
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  border: none;
}

.floor-container .floor .control-btns button:hover {
  background-color: #555454;
}

.floor-container .floor .control-btns .up-btn {
  background-color: green;
  color: white;
}

.floor-ground {
  display: flex;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.floor-ground .lift {
  flex: 1;
  max-width: 70px;
  height: 90%;
  background-color: #333;
  position: relative;
  margin: 0 5px;
  overflow: hidden;
}

.floor-ground .lift::before,
.floor-ground .lift::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-color: grey;
  transition: transform 1s ease;
}

.floor-ground .lift::before {
  left: 0;
}

.floor-ground .lift::after {
  right: 0;
}

.floor-ground .lift.door-open::before {
  transform: translateX(-100%);
}

.floor-ground .lift.door-open::after {
  transform: translateX(100%);
}

.message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
}
