body { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; background-size: cover; background-repeat: no-repeat; background-image: url("./images/background.jpg"); } #title { margin-top: 1vh; width: 100%; display: flex; justify-content: center; } #mobile-title { display: none; } #swiper-container { width: 100%; display: flex; justify-content: center; } #counter-container { display: flex; margin-top: 5vh; justify-content: center; } #counter-container > span { color: white; font-weight: bold; font-size: large ; font-family: sans-serif; } #chat-button { position: absolute; right: 3vh; bottom: 3vh; height: 100px; width: 100px; border-radius: 50%; background-color: white; display: flex; align-items: center; justify-content: center; } #chat-button > img { height: 60px; width: 60px; } #chat { height: 60vh; width: 30vw; position: absolute; bottom: 0; right: 0; display: none; padding: 1.5vh; border-radius: 30px 0px 0px 0px; background-color: white; } #messages { height: 50vh; padding: 0; list-style: none; overflow-y: scroll; font-family: sans-serif; } #message-input { padding: 1vh; width: 20vw; } #send { height: 30px; margin-left: 5px; transform: translateY(10px); } #close { height: 30px; margin-left: 5px; transform: translateY(10px); } .swiper { width: 500px; height: 400px; margin-top: 20vh; } .photo-container { width: 500px; height: 400px; display: flex; justify-content: center; align-content: center; } @media screen and (max-width: 1024px) { body { overflow-y: hidden; background-image: url("./images/mobile-background.jpg"); } #title { display: none; } #mobile-title { display: flex; } #chat-button { height: 60px; width: 60px; bottom: 5vh; } #chat-button > img { z-index: 9998; height: 30px; width: 30px; } #chat { z-index: 9999; height: 100vh; width: 100vw; border-radius: 0px 0px 0px 0px; } #messages { margin-top: 15vh; padding-left: 5vw; height: 70vh; width: 95vw; } #message-input { margin-left: 5vw; width: 60vw; } .photo-container { width: 300px; height: 300px; margin-left: 15vw; } }