@import url("https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap"); #draw { position: absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); overflow: hidden; width: 95%; height: 95%; max-width: 95%; max-height: 95%; min-width: 150px; min-height: 140px; resize: both; } #draw::-webkit-resizer { display: none; } body { min-height: 100vh; width: 100%; background-color: #000000; overflow: hidden; } #scene { position: absolute; height: 640px; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); } #resize { width: 100%; padding: 0 25px 0 0; box-sizing: border-box; height: 100px; position: absolute; bottom: 0; right: 0; z-index: 2; pointer-events: none; height: 70px; } #resize:after { content: ""; display: block; position: absolute; transform: rotate(45deg); background-color: #13b4e5; right: -30px; bottom: -30px; width: 50px; height: 50px; pointer-events: none; } #resize > div { position: relative; width: 100%; height: 100%; padding: 0 25px 0 0; } #resize > div > div { display: flex; align-items: center; justify-content: right; display: -webkit-box; -webkit-box-pack: end; } #resize > div > div > span { color: #13b4e5; font-family: "MedievalSharp", cursive; text-align: right; font-size: 4em; display: inline-block; text-shadow: 0px 0px 9px black; } #arrow { filter: drop-shadow(0px 0px 9px rgba(0, 0, 0, 0.7)); } @media screen and (max-width: 640px) { #resize > div > div > span { font-size: 3em; } } #resize > div > svg { position: absolute; right: 0; bottom: 0; width: 25px; height: 25px; }