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 { 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; } #chat-button > img { height: 90px; width: 90px; } #chat { height: 60vh; width: 30vw; position: absolute; bottom: 0; right: 0; display: none; background-color: white; } .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 { background-image: url("./images/mobile-background.jpg"); } #title { display: none; } #mobile-title { display: flex; } #chat { z-index: 9999; height: 100vh; width: 100vw; } .photo-container { width: 300px; height: 300px; margin-left: 15vw; } }