JSFiddle - React, Tailwind, and code Playground
CSS
/**************************************************
GAME
**************************************************/
section.game {
padding: 40px 0px;
}
.SplashScreen, .FinishScreen {
margin: 0 auto;
text-align:center;
width: 450px;
height: 450px;
border: 2px solid #fff;
background-color:#0056a0;
}
.FinishScreen h1,
.SplashScreen h1 {
color: #fff200;
font-family: 'Oswald', sans-serif;
font-size: 36px;
font-weight: 700;
margin: 0px 0px 10px;
padding: 50px 0px 0px;
text-align: center;
text-transform: uppercase;
}
.FinishScreen p {
color: #fff;
font-weight: bold;
}
.FinishScreen h2,
.SplashScreen h2 {
color: #ffffff;
font-family: 'Oswald', sans-serif;
font-size: 28px;
font-weight: 700;
margin: 0px 0px 25px;
text-align: center;
}
canvas {
border: 2px solid #fff;
margin: 0 auto;
display: block;
}
#gamecontainer {
background: red;
width:450px;
height:450px;
border: 2px solid #fff;
margin: 0 auto;
}
.gamelayer {
width:450px;
height:450px;
position:absolute;
display:none;
}
input.StartButton {
color: #fff200;
font-size: 16px;
display: block;
width: 200px;
height: 40px;
background-color: #0056a1;
border: 2px solid #fff200;
text-align: center;
margin: 0 auto;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
input.StartButton:hover {
color: #0056a1;
font-size: 16px;
display: block;
width: 200px;
height: 40px;
background-color: #fff;
border: 2px solid #0056a1;
}
input.StartButton:focus {
outline-color: transparent;
outline-style: none;
}
.button-pad {
margin:10px 0px 0px 200px;
position: relative;
}
.button-pad button {
background-color:transparent;
border-color:transparent;
height: 50px;
width: 50px;
margin: 0px;
padding: 0px;
}
.button-pad .btn-up {
position: relative;
top: 0px;
}
.button-pad .btn-right {
position: relative;
right: -40px;
top: -10px;
}
.button-pad...