body { height: 100%; width: 100%; max-width: 100%; max-height: 100%; overflow: hidden; white-space: pre; } #inviteDiv { position: absolute; display: flex; flex-direction: column; justify-content: center; align-items: center; pointer-events: none; word-wrap: break-word; width: 100%; } #inviteDiv h1, h2 { text-align: center; font-family: monospace; max-width: 100%; margin: 0; word-wrap: break-word; text-shadow: 3px 3px 1px rgba(75, 75, 75, 1); color: #d152b8; } #inviteDiv h1 { font-size: 1vw; padding-top: 5vh; padding-left: 17vw; } #inviteDiv h2 { font-size: 0.4vw; padding-left: 24vw; } #invitetextDiv { z-index: 500; position: absolute; display: flex; justify-content: center; align-items: center; word-wrap: break-word; height: 100%; width: 100%; max-height: 100%; max-width: 100%; } #invitetextDiv p { font-family: Arial; font-weight: bold; flex-grow: 1; font-size: 1.2vw; color: #d152b8; text-align: center; margin-left: 27vw; margin-right: 27vw; } #backgroundDiv { position: absolute; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; } #backgroundDiv h3 { font-family: monospace; white-space: pre; font-size: 0.8vw; color: lightgrey; } @media only screen and (max-width: 768px) { #inviteDiv h1 { font-size: 1.5vw; } #inviteDiv h2 { font-size: 0.8vw; } #invitetextDiv p { font-size: 3vw; color: #d152b8; margin-left: 13vw; margin-right: 13vw; } #backgroundDiv h3 { font-size: 1.8vw; } }