/* styles.css */
body {
  background-color: #f4f4f9;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

header {
  color: #ecf0f1;
  display: flex;
  background-color: #2c3e50;
  justify-content: space-between;
  align-items:  center;
  padding: 15px 30px;
}

header h1 {
  margin: 0;
  font-size: 24px;
}

#info {
  display: flex;
  color: #bdc3c7;
  gap: 20px;
  font-size: 14px;
}

#info p {
  margin: 0;
}

main {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.building {
  display: flex;
  position: relative;
  background-color: #fff;
  border: 3px solid #34495e;
  flex-direction: column;
  width: 600px;
  padding-left: 120px;
  box-shadow: 0 10px 30px #0000001a;
}

.floor {
  position: relative;
  display: flex;
  box-sizing: border-box;
  border-bottom: 1px solid #bdc3c7;
  align-items:  center;
  height: 100px;
}

.floor:last-child {
  border-bottom: none;
}

.shafts-container {
  display: flex;
  position: absolute;
  height: 100%;
  bottom: 0;
  left: 120px;
}

.shaft {
  position: relative;
  background-color: #ecf0f1;
  border-left: 1px dashed #95a5a6;
  border-right: 1px dashed #95a5a6;
  width: 90px;
  height: 100%;
  margin: 0 15px;
}

.elevator {
  position: absolute;
  display: flex;
  color: #fff;
  background-color: #34495e;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  width: 86px;
  height: 96px;
  transition: bottom 1s linear;
  bottom: 2px;
  left: 1px;
  box-shadow: 0 4px 8px #0003;
}

.elevator-doors {
  position: absolute;
  display: flex;
  pointer-events: none;
  z-index: 5;
  background: none;
  width: 100%;
  height: 100%;
  transition: width .5s;
}

.door-left, .door-right {
  box-sizing: border-box;
  background: #7f8c8d;
  border: 1px solid #2c3e50;
  width: 50%;
  height: 100%;
  transition: transform .5s;
}

.elevator.open .door-left {
  transform: translateX(-100%);
}

.elevator.open .door-right {
  transform: translateX(100%);
}

.floor-controls {
  position: absolute;
  display: flex;
  z-index: 10;
  flex-direction: column;
  gap: 8px;
  left: 15px;
}

.floor-btn {
  cursor: pointer;
  color: #34495e;
  background: #ecf0f1;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  padding: 6px 12px;
  transition: all .2s;
  font-size: 14px;
  font-weight: bold;
}

.floor-btn:hover {
  background: #e0e6ed;
}

.floor-btn.active {
  color: #fff;
  background: #e74c3c;
  border-color: #c0392b;
}

.elevator-panel {
  display: flex;
  z-index: 10;
  background: #2c3e50e6;
  border-radius: 4px;
  flex-wrap: wrap;
  gap: 3px;
  width: 66px;
  padding: 6px;
}

.elevator-btn {
  cursor: pointer;
  color: #fff;
  display: flex;
  background: #34495e;
  border: 1px solid #7f8c8d;
  border-radius: 2px;
  justify-content: center;
  align-items:  center;
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.elevator-btn:hover {
  background: #95a5a6;
}

.elevator-btn.active {
  color: #2c3e50;
  background: #f1c40f;
  border-color: #f39c12;
}

.floor-label {
  position: absolute;
  color: #7f8c8d;
  text-align: right;
  width: 80px;
  font-size: 24px;
  font-weight: bold;
  left: -100px;
}
