@font-face{ font-family: roboto; src: url('JetBrainsMono-Bold.ttf'); } .Roboto{ font-family: roboto; } html, body { width: 100%; height: 100%; margin: 0; overflow-y: hidden; font-family: "roboto"; } #container { display: -webkit-flex; -webkit-align-items: center; width: 100%; height: 100% } #canvas-layout { position: absolute; width: 100%; height: 100%; z-index: 1; } #canvas-content { position: absolute; width: 100%; height: 100%; z-index: 2; } /* hour&minutes */ #digital-body { position: absolute; width: 70%; width: 360px; height: 360px; top: 0px; left: 0px; background-size: 100%; background-repeat: no-repeat; overflow: hidden; } #rec-time { margin: 0; position: absolute; top: 50%; left: 50%; -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%); } #str-hours { font-size: 370%; font-style: bold; float: left; color: white; } #str-console { font-size: 370%; font-style: bold; float: left; color: white; } #str-minutes { font-size: 370%; font-style: bold; float: left; color: white; } #str-ampm { font-size: 280%; color: white; padding-top: 20%; }