* { margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; } html, body { height: 100%; margin: 0; padding: 0; } p, button { font-family: 'Roboto', sans-serif; } p { font-weight: 300; font-size: 12px; } .bold { font-weight: 500; } button { cursor: pointer; font-size: 16px; font-weight: 500; color: #ffffff; background-color: #5e77aa; padding: 0 15px; height: 35px; border: none; border-radius: 3px; } button:enabled:hover, button:enabled:focus { background-color: #29457f; outline: none; } button:disabled { cursor: no-drop; color: #dddddd; opacity: 0.7; } button.block { padding: 0; width: 100%; } button.gray { background-color: #808080; } button.gray:hover, button.gray:focus { background-color: #555555; } div.buttonContainer { height: 35px; } div.buttonContainer.top { margin-bottom: 5px; } div.buttonContainer.bottom { margin-top: 5px; } #loading { position: absolute; width: 40px; height: 40px; top: 50%; left: 50%; margin-top: -20px; margin-left: -20px; z-index: 3; } #panorama { height: 100%; width: 100%; z-index: 1; } #guess { position: absolute; bottom: 20px; right: 20px; z-index: 2; } #guessMap { width: 100%; border-radius: 3px; } #result { position: absolute; opacity: 0.95; z-index: 2; visibility: hidden; background-color: #ffffff; border-radius: 3px; } #resultMap { height: 70%; width: 100%; border-top-left-radius: 3px; border-top-right-radius: 3px; } #resultInfo { height: 30%; width: 100%; padding: 10px 20px; text-align: center; box-sizing: border-box; } #resultInfo > div { height: 25%; width: 100%; display: flex; justify-content: center; align-items: center; } #resultInfo p { font-size: 24px; } #scoreBarBase { height: 24px; margin: 0 auto; background-color: #eeeeee; border-radius: 3px; } #scoreBar { height: 100%; width: 0; border-radius: 3px; transition-property: width; transition-duration: 2.0s; } @media screen and (max-width: 599px) { button { padding: 0; width: 100%; } #showGuessButtonContainer { position: absolute; left: 20px; bottom: 20px; right: 20px; z-index: 2; } #guess { left: 20px; top: 20px; opacity: 0.95; visibility: hidden; } #guessMap { height: calc(100% - 80px); } #result { top: 20px; left: 20px; right: 20px; bottom: 20px; } #scoreBarBase { width: 100%; } } @media screen and (min-width: 600px) { #showGuessButtonContainer { visibility: hidden; } #guess { width: 500px; height: 350px; opacity: 0.95; } #guess.adapt { top: initial; width: 250px; height: 175px; opacity: 0.5; transition-property: width, height, opacity; transition-duration: 0.1s; transition-delay: 0.8s; } #guess.adapt:hover { width: 500px; height: 350px; opacity: 0.95; transition-delay: 0s; } #closeGuessButtonContainer { display: none; } #guessMap { height: calc(100% - 40px); } #result { top: 50px; left: 50px; right: 50px; bottom: 50px; } #scoreBarBase { width: 60%; } @media screen and (max-height: 389px) { #guess { top: 20px; height: initial; } #guess.adapt:hover { top: 20px; height: initial; } } }