* { margin: 0; padding: 0; box-sizing: border-box; } html, body { width: 100%; height: 100%; overflow: hidden; } .container { width: 100%; height: 100%; position: relative; } .list-page, #detail-page { width: 100%; height: 100%; padding: 10px 8px; background-color: ghostwhite; position: absolute; top: 0; left: 0; } #detail-page { left: 100%; top: 0; --duration: 400ms; } @keyframes slide-in { from { left: 100%; } to { left: 0; } } @keyframes slide-out { from { left: 0; } to { left: 100%; } } .slide-in { animation: slide-in var(--duration) forwards; } .slide-out { animation: slide-out var(--duration) forwards; } .search-box { width: 100%; height: 30px; display: flex; justify-content: center; padding: 2px; border-radius: 50px; border: 1px solid lightgray; } .search-box:has(:focus) { border-color: lightblue; } #seq-input { width: calc(100% - 40px); height: 100%; outline: none; border: none; } input, textarea { background-color: transparent; } #search-icon, #back-icon, .holder { width: 22px; height: 22px; } #devices { width: 100%; height: calc(100vh - 60px); margin-top: 10px; overflow-y: scroll; padding: 5px 4px; } .device { width: 100%; height: 40px; border-radius: 4px; margin-bottom: 5px; padding: 2px 4px; display: flex; align-items: center; } .seq { width: calc(100% - 80px); text-align: center; } .status { width: 80px; text-align: center; } .device.online { background-color: lightgreen; } .device.offline { background-color: lightgray; } .online > .status { color: #007BFF; } .offline > .status { color: black; } .line { margin-bottom: 15px; width: 100%; display: flex; justify-content: space-between; align-items: center; } #seq-text { font-weight: bold; } #update-loc, .ppv-btn { width: 50px; line-height: 24px; text-align: center; border: 1px solid black; border-radius: 4px; cursor: pointer; } .update-loc:active, .ppv-btn:active, .btn-in-two:active { transform: scale(0.99); box-shadow: 0 0 2px dimgray; } #location { width: 100%; height: 70px; resize: none; outline: none; margin-top: -10px; margin-bottom: 15px; border: 1px solid lightgray; border-radius: 2px; padding: 2px; } #location:focus { border-color: lightblue; } .ppv-input { width: 50%; line-height: 24px; outline: none; border: 1px solid lightgray; text-align: center; } .ppv-input:focus { border-color: lightblue; } .btn-in-two { width: 40%; line-height: 34px; text-align: center; border: 1px solid black; border-radius: 6px; cursor: pointer; }