body { overflow: hidden; margin: 0; padding: 0; height: 100vh; } .home-button { position: absolute; top: 20px; left: 20px; width: 50px; height: 50px; cursor: pointer; transition: all 0.3s ease; } .home-button:hover { transform: scale(1.1); } .home-button:active { transform: scale(0.95); } /* mainpage section */ #lockscreen { position:absolute; display: flex; background: #000000; flex-direction: column; width: 100%; height: 100%; align-items: center; justify-content: center; img{ height: 100px; } input{ height: 20px; width: 300px; border-radius: 0px; border: 1px solid red; } } #background img { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: -1; } #main-page { z-index: -1; position: relative; display: flex; justify-content: space-around; height: 100vh; } #main-page-left-saya { display: flex; justify-content: space-around; align-items: center; height: 100%; } #main-page-left-saya div { display: flex; justify-content: center; align-items: center; height: 100%; } #main-page-left-saya div img { height: 80%; } #right-main-page-container { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; } .direct-button { background-color: rgb(46, 0, 0); width: 450px; height: 100px; margin: 50px 200px 40px 80px; border: 2px solid white; border-radius: 15px; transition: all 0.3s ease; cursor: pointer; } .direct-button a { height: 100%; color: white; font-size: 34px; text-decoration: none; line-height: 80px; display: block; text-align: center; background: none; } .direct-button:hover { transform: translateY(-15px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); } /* thank letter section */ #lockscreen-container { z-index: 3; display: flex; position: absolute; display: flex; align-items: center; justify-content: center; background-color: #f8e7c3; flex-direction: column; width: 100%; height: 100%; } #lockscreen-container img { height: 100px; transition: all 0.7s ease; } #lockscreen-container img:hover { cursor: pointer; top: 2px; transform: scale(2); } #thank-letter-container { background-color: #fdf2da; position: absolute; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; } #azuki-left { position: absolute; left: 0; bottom: 0; z-index: 0; img{ height: 1000px; } } #thank-letter-content { z-index: 2; align-items: center; background-color: rgba(0, 0, 0, 0.5); border: 2px solid white; border-radius: 15px; width: 60%; height: fit-content; padding: 20px; color: white; overflow-y: auto; } /* iloveyouIrene */