@font-face { font-family: "Roboto"; font-weight: 500; src: url("../fonts/Roboto-Regular.ttf"); } @font-face { font-family: "Roboto Bold"; font-weight: bold; src: url("../fonts/Roboto-Bold.ttf"); } @font-face { font-family: "Roboto Black"; font-weight: bold; src: url("../fonts/Roboto-Black.ttf"); } @font-face { font-family: "Roboto Light"; font-weight: 100; src: url("../fonts/Roboto-Light.ttf"); } @font-face { font-family: "SF Digital Readout"; src: url("../fonts/SFDigitalReadout-Medium.ttf"); } html { overflow: hidden; } html, body, p, button, h1, h2 { margin: 0; font-family: Roboto, Helvetica, Arial, sans-serif; font-size: 1.4em; } .start-background { width: 100vw; height: 100vh; background-color: #333; -webkit-transition: background-color .5s; -moz-transition: background-color .5s; -o-transition: background-color .5s; transition: background-color .5s; } .start-background.transparent { background-color: transparent; } .start-container { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); -o-transform: translate(-50%, -50%); transform: translate(-50%, -50%); color: #fff; text-align: center; } .start-container.slideDown { animation: slideDown .5s ease-in-out forwards; } @keyframes slideDown { 0% { top: 50%; } 100% { top: 150%; } } .start-container.slideUp { animation: slideUp .5s ease-in-out forwards; } @keyframes slideUp { 0% { top: 100% } 100% { top: 50%; } } .start-container h3 { font-size: .8em; font-family: "Roboto Light", Roboto, Helvetica, sans-serif; font-weight: 100; } button { border: none; border-radius: 10px; box-shadow: none; background-color: #2272ff; color: #fff; padding: 20px 40px; font-size: 28px; -webkit-transition: all .2s; -moz-transition: all .2s; -o-transition: all .2s; transition: all .2s; cursor: pointer; transform: translateY(0); } .game-stats button { font-size: 2vh; padding: 1.25vh 2vw; } .game-stats .restart { position: absolute; left: 50%; transform: translateX(-50%); } button:hover { box-shadow: 0 5px 0 #3562c1, 0 10px 20px rgba(0, 0, 0, .18); transform: translateY(-5px); } button:active { background-color: #1e64cd; } .overlay { position: absolute; top: 0; left: 0; } .game-container { position: absolute; top: 52.5vh; left: 50%; transform: translate(-50%, -50%); } .game-stats { position: absolute; top: calc(2.5vh / 2); left: 50%; height: 5vh; width: 1592px; transform: translateX(-50%); } .stat-container { float: left; background-color: black; border-radius: 10px; color: red; font-size: 4vh; font-family: "SF Digital Readout", Roboto, Arial, sans-serif; margin: 0 10px; } .stat-container.right { float: right; } #time, #bombs { margin: 0 15px; } .main-container { position: absolute; top: -100%; width: 100%; height: 100%; animation: slideIn .5s ease-in-out forwards; } @keyframes slideIn { from { top: -100%; } to { top: 0; } } .popAway { animation: popAway .5s forwards; -webkit-transform-origin: 50%; -moz-transform-origin: 50%; -ms-transform-origin: 50%; -o-transform-origin: 50%; transform-origin: 50%; top: 0; } @keyframes popAway { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(0); } }