body { font-family: Arial, sans-serif; padding: 20px; background-color: #f0f0f0; height: none; } #setup { margin-bottom: 20px; } .building { margin-top: 50px; height: 1000px; width: 100%; margin-left: 20px; position: relative; display: flex; background-color: #f6f3f3; } .floors-container { display: flex; flex-direction: column-reverse; position: absolute; width: 100%; height: 100%; } .floor { height: 100px; border-top: 1px solid #999; display: flex; align-items: center; padding: 0 10px; width: 100%; margin-right: 35px; background-color: #f6f3f3; } .floor-text { margin-right: 25px; } .lifts-container { display: flex; margin-left: 200px; position: relative; z-index: 1; } .lift-shaft { margin-left: 60px; width: 60px; position: relative; height: 100%; } input { border: 0; } .up-field { padding: 10px 18px; } .down-field { padding: 10px 18px; } input:focus { border: 0; outline: none; } .lift { position: absolute; bottom: 0; left: 0; right: 0; height: 100px; background-color: #000000; transition: bottom 2s ease-in-out; } .doors { display: flex; height: 100%; width: 100%; position: relative; overflow: hidden; } .door { width: 50%; height: 100%; background-color: #3498db; transition: transform 2s ease-in-out; top: 0; border: 1px solid black; position: absolute; background-color: rgb(192, 69, 69); position: relative; } .left-door { transform-origin: left; left: 0; } .right-door { transform-origin: right; position: absolute; right: 0; } .doors.open .left-door { transform: translateX(-100%); transition: transform 2000ms ease-in-out; } .doors.open .right-door { transform: translateX(100%); transition: transform 2000ms ease-in-out; } button { background-color: #3498db; border: none; color: white; padding: 10px 15px; cursor: pointer; margin: 5px; font-weight: bold; } .up-button { display: flex; gap: 5px; border: bisque; background-color: #3498db; border: none; color: white; padding: 10px 15px; cursor: pointer; padding: 10px 16px; position: relative; text-align: center; text-decoration: none; transition: color 100ms; vertical-align: baseline; user-select: none; -webkit-user-select: none; touch-action: manipulation; } .down-button { background-color: #3498db; border: none; color: white; padding: 10px 15px; cursor: pointer; padding: 10px 16px; position: relative; text-align: center; text-decoration: none; transition: color 100ms; vertical-align: baseline; user-select: none; -webkit-user-select: none; touch-action: manipulation; } button:hover, button:focus { background-color: #055f9b; } input { margin: 5px; padding: 5px; }