|
* { |
|
margin: 0; |
|
padding: 0; |
|
} |
|
|
|
body { |
|
background-color: gray; |
|
display: flex; |
|
flex-direction: column; |
|
align-items: center; |
|
justify-content: center; |
|
} |
|
|
|
.flexContainerColumns { |
|
display: flex; |
|
flex-direction: column; |
|
align-items: center; |
|
justify-content: center; |
|
} |
|
|
|
.flexContainerRows { |
|
display: flex; |
|
flex-direction: row; |
|
} |
|
|
|
.circle { |
|
height: 35vmin; |
|
width: 35vmin; |
|
border: solid black; |
|
box-shadow: 3px 3px 146px -8px rgba(0, 0, 0, 0.75); |
|
cursor: pointer; |
|
max-width: 360px; |
|
max-height: 360px; |
|
min-width: 150px; |
|
min-height: 150px; |
|
} |
|
|
|
.red { |
|
background: #B90000; |
|
border-top-right-radius: 100%; |
|
border-bottom-left-radius: 25%; |
|
border-width: 1.5em 1.5em .75em .75em; |
|
} |
|
|
|
.green { |
|
background: #008000; |
|
border-top-left-radius: 100%; |
|
border-bottom-right-radius: 25%; |
|
border-width: 1.5em .75em .75em 1.5em; |
|
} |
|
|
|
.blue { |
|
background: blue; |
|
border-bottom-left-radius: 100%; |
|
border-top-right-radius: 25%; |
|
border-width: .75em .75em 1.5em 1.5em; |
|
} |
|
|
|
.yellow { |
|
background: #F3B521; |
|
border-bottom-right-radius: 100%; |
|
border-top-left-radius: 25%; |
|
border-width: .75em 1.5em 1.5em .75em; |
|
} |
|
|
|
.redPadTurnOn { |
|
animation: redkeyframe 0.1s; |
|
animation-fill-mode: forwards; |
|
} |
|
|
|
.greenPadTurnOn { |
|
animation: greenkeyframe 0.1s; |
|
animation-fill-mode: forwards; |
|
} |
|
|
|
.bluePadTurnOn { |
|
animation: bluekeyframe .1s; |
|
animation-fill-mode: forwards; |
|
} |
|
|
|
.yellowPadTurnOn { |
|
animation: yellowkeyframe 0.1s; |
|
animation-fill-mode: forwards; |
|
} |
|
|
|
@keyframes redkeyframe { |
|
0% { |
|
background: #B90000; |
|
border-width: 1.5em 1.5em .75em .75em; |
|
} |
|
100% { |
|
background: #FF5050; |
|
border-width: 1em 1em .5em .5em; |
|
} |
|
} |
|
|
|
@keyframes greenkeyframe { |
|
0% { |
|
background: #008000; |
|
border-width: 1.5em .75em .75em 1.5em; |
|
} |
|
100% { |
|
background: #00FF00; |
|
border-width: 1em 0.5em 0.5em 1em; |
|
} |
|
} |
|
|
|
@keyframes bluekeyframe { |
|
0% { |
|
background: blue; |
|
border-width: .75em .75em 1.5em 1.5em; |
|
} |
|
100% { |
|
background: #1E90FF; |
|
border-width: 0.5em 0.5em 1em 1em; |
|
} |
|
} |
|
|
|
@keyframes yellowkeyframe { |
|
0% { |
|
background: #F3B521; |
|
border-width: .75em 1.5em 1.5em .75em; |
|
} |
|
100% { |
|
background: #FFFF00; |
|
border-width: 0.5em 1em 1em .5em; |
|
} |
|
} |
|
|
|
.redPadTurnOff { |
|
animation: redturnoffkeyframe 0.005s; |
|
animation-fill-mode: forwards; |
|
} |
|
|
|
.greenPadTurnOff { |
|
animation: greenturnoffkeyframe 0.005s; |
|
animation-fill-mode: forwards; |
|
} |
|
|
|
.bluePadTurnOff { |
|
animation: blueturnoffkeyframe 0.005s; |
|
animation-fill-mode: forwards; |
|
} |
|
|
|
.yellowPadTurnOff { |
|
animation: yellowturnoffkeyframe 0.005s; |
|
animation-fill-mode: forwards; |
|
} |
|
|
|
@keyframes redturnoffkeyframe { |
|
0% { |
|
background: #FF5050; |
|
border-width: 1em 1em 0.5em 0.5em; |
|
} |
|
100% { |
|
background: #B90000; |
|
border-width: 1.5em 1.5em .75em .75em; |
|
} |
|
} |
|
|
|
@keyframes greenturnoffkeyframe { |
|
0% { |
|
background: #00FF00; |
|
border-width: 1em 0.5em 0.5em 1em; |
|
} |
|
100% { |
|
background: #008000; |
|
border-width: 1.5em .75em .75em 1.5em; |
|
} |
|
} |
|
|
|
@keyframes blueturnoffkeyframe { |
|
0% { |
|
background: #1E90FF; |
|
border-width: 0.5em 0.5em 1em 1em; |
|
} |
|
100% { |
|
background: blue; |
|
border-width: .75em .75em 1.5em 1.5em; |
|
} |
|
} |
|
|
|
@keyframes yellowturnoffkeyframe { |
|
0% { |
|
background: #FFFF00; |
|
border-width: 0.5em 1em 1em 0.5em; |
|
} |
|
100% { |
|
background: #F3B521; |
|
border-width: .75em 1.5em 1.5em .75em; |
|
} |
|
} |
|
|
|
#centeringFlexBox { |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
} |
|
|
|
.middleCircle { |
|
display: flex; |
|
align-content: center; |
|
justify-content: center; |
|
position: absolute; |
|
z-index: 5; |
|
background: #a9aaab; |
|
border-radius: 50%; |
|
height: 40vmin; |
|
width: 40vmin; |
|
border: solid .5vh black; |
|
max-width: 215px; |
|
max-height: 215px; |
|
min-height: 170px; |
|
min-width: 170px; |
|
} |
|
|
|
#simonContainer { |
|
position: relative; |
|
max-width: 580px; |
|
} |
|
|
|
#gameTitle { |
|
text-align: center; |
|
margin-bottom: 60px; |
|
padding-bottom: 20px; |
|
color: black; |
|
font-size: 80px; |
|
font-family: 'Orbitron', sans-serif; |
|
font-weight: 400px; |
|
animation-name: rollIn; |
|
-webkit-animation-duration: 2s; |
|
animation-duration: 2s; |
|
-webkit-animation-fill-mode: both; |
|
animation-fill-mode: both; |
|
} |
|
|
|
@keyframes rollIn { |
|
from { |
|
opacity: 0; |
|
-webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); |
|
transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); |
|
} |
|
to { |
|
opacity: 1; |
|
-webkit-transform: none; |
|
transform: none; |
|
} |
|
} |
|
|
|
#gameOptions { |
|
display: flex; |
|
flex-direction: column; |
|
justify-content: center; |
|
} |
|
|
|
#count { |
|
font-weight: bold; |
|
font-size: 2em; |
|
} |
|
|
|
#countWindow { |
|
background: black; |
|
max-width: 50px; |
|
max-height: 50px; |
|
width: 33%; |
|
height: 33%; |
|
border: solid 3px white; |
|
color: darkorange; |
|
text-align: center; |
|
font-size: 20px; |
|
} |
|
|
|
@media only screen and (max-width: 500px) { |
|
#count { |
|
font-size: 1em; |
|
} |
|
} |
|
|
|
.centeredRow { |
|
display: flex; |
|
flex-direction: row; |
|
justify-content: center; |
|
margin: .5em 0 0 0; |
|
} |
|
|
|
.gameControlButton { |
|
padding: 0 .75em 0 .75em; |
|
} |
|
|
|
.centeredRow { |
|
display: flex; |
|
flex-direction: row; |
|
justify-content: center; |
|
align-content: center; |
|
margin: .25em 0 0 0; |
|
} |
|
|
|
#startButton { |
|
background: red; |
|
background-image: -webkit-linear-gradient(top, red, darkred); |
|
background-image: -moz-linear-gradient(top, red, darkred); |
|
background-image: -ms-linear-gradient(top, red, darkred); |
|
background-image: -o-linear-gradient(top, red, darkred); |
|
background-image: linear-gradient(to bottom, red, darkred); |
|
-webkit-border-radius: 28; |
|
-moz-border-radius: 28; |
|
border-radius: 50px; |
|
font-family: Arial; |
|
color: #ffffff; |
|
font-size: 12px; |
|
text-decoration: none; |
|
width: 27px; |
|
height: 27px; |
|
} |
|
|
|
#strictButton { |
|
background: yellow; |
|
background-image: -webkit-linear-gradient(top, yellow, greenyellow); |
|
background-image: -moz-linear-gradient(top, yellow, greenyellow); |
|
background-image: -ms-linear-gradient(top, yellow, greenyellow); |
|
background-image: -o-linear-gradient(top, yellow, greenyellow); |
|
background-image: linear-gradient(to bottom, yellow, greenyellow); |
|
-webkit-border-radius: 28; |
|
-moz-border-radius: 28; |
|
border-radius: 50px; |
|
font-family: Arial; |
|
color: #ffffff; |
|
font-size: 12px; |
|
text-decoration: none; |
|
width: 27px; |
|
height: 27px; |
|
} |
|
|
|
#startButton:hover { |
|
background: darkred; |
|
background-image: -webkit-linear-gradient(top, red, darkred); |
|
background-image: -moz-linear-gradient(top, red, darkred); |
|
background-image: -ms-linear-gradient(top, red, darkred); |
|
background-image: -o-linear-gradient(top, red, darkred); |
|
background-image: linear-gradient(to bottom, red, darkred); |
|
text-decoration: none; |
|
} |
|
|
|
#strictButton:hover { |
|
background: red; |
|
background-image: -webkit-linear-gradient(top, yellow, greenyellow); |
|
background-image: -moz-linear-gradient(top, yellow, greenyellow); |
|
background-image: -ms-linear-gradient(top, yellow, greenyellow); |
|
background-image: -o-linear-gradient(top, yellow, greenyellow); |
|
background-image: linear-gradient(to bottom, yellow, greenyellow); |
|
text-decoration: none; |
|
} |
|
|
|
.led-box { |
|
height: 20px; |
|
} |
|
|
|
#led { |
|
margin: 0 auto; |
|
width: 12px; |
|
height: 12px; |
|
border-radius: 50%; |
|
box-shadow: rgba(0, 0, 0, 0.4) 0 -1px 7px 1px, inset #D3D3D3 0 -1px 9px, rgba(169, 169, 169, 0.5) 0 2px 12px; |
|
} |
|
|
|
.led-clear { |
|
background-color: #C0C0C0; |
|
} |
|
|
|
.led-green { |
|
background-color: lawngreen; |
|
} |
|
|
|
.led-red { |
|
margin: 0 auto; |
|
width: 12px; |
|
height: 12px; |
|
background-color: #600; |
|
border-radius: 50%; |
|
box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 2px 12px; |
|
-webkit-animation: blinkRed 0.5s infinite; |
|
-moz-animation: blinkRed 0.5s infinite; |
|
-ms-animation: blinkRed 0.5s infinite; |
|
-o-animation: blinkRed 0.5s infinite; |
|
animation: blinkRed 0.5s infinite; |
|
} |
|
|
|
@-webkit-keyframes blinkRed { |
|
from { |
|
background-color: #F00; |
|
} |
|
50% { |
|
background-color: #A00; |
|
box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 2px 0; |
|
} |
|
to { |
|
background-color: #F00; |
|
} |
|
} |
|
|
|
@-moz-keyframes blinkRed { |
|
from { |
|
background-color: #F00; |
|
} |
|
50% { |
|
background-color: #A00; |
|
box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 2px 0; |
|
} |
|
to { |
|
background-color: #F00; |
|
} |
|
} |
|
|
|
@-ms-keyframes blinkRed { |
|
from { |
|
background-color: #F00; |
|
} |
|
50% { |
|
background-color: #A00; |
|
box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 2px 0; |
|
} |
|
to { |
|
background-color: #F00; |
|
} |
|
} |
|
|
|
@-o-keyframes blinkRed { |
|
from { |
|
background-color: #F00; |
|
} |
|
50% { |
|
background-color: #A00; |
|
box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 2px 0; |
|
} |
|
to { |
|
background-color: #F00; |
|
} |
|
} |
|
|
|
@keyframes blinkRed { |
|
from { |
|
background-color: #F00; |
|
} |
|
50% { |
|
background-color: #A00; |
|
box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 7px 1px, inset #441313 0 -1px 9px, rgba(255, 0, 0, 0.5) 0 2px 0; |
|
} |
|
to { |
|
background-color: #F00; |
|
} |
|
} |
|
|
|
#powerSwitch {} |
|
|
|
#on-off { |
|
float: left; |
|
margin: 10 5px; |
|
position: relative; |
|
font-size: .75em; |
|
margin: 25px 30px; |
|
line-height: 20px; |
|
} |
|
|
|
#on-off-mark { |
|
float: left; |
|
width: 50px; |
|
height: 20px; |
|
background-color: #222222; |
|
margin: 0 6px; |
|
border-radius: 3px; |
|
} |
|
|
|
#on, |
|
#off { |
|
float: left; |
|
} |
|
|
|
#mark-toggle { |
|
display: block; |
|
position: relative; |
|
width: 20px; |
|
height: 16px; |
|
margin: 2px; |
|
background-color: #3193DE; |
|
} |
|
|
|
footer { |
|
padding-top: 100px; |
|
font-size: 20px; |
|
font-weight: 400px; |
|
text-align: center; |
|
color: black; |
|
font-family: 'Playfair Display', serif; |
|
} |
|
|
|
.social { |
|
margin: 0; |
|
padding: 0; |
|
} |
|
|
|
.social ul { |
|
margin: 0; |
|
padding: 5px; |
|
} |
|
|
|
.social ul li { |
|
margin: 5px; |
|
list-style: none outside none; |
|
display: inline-block; |
|
} |
|
|
|
.social i { |
|
width: 40px; |
|
height: 40px; |
|
color: #FFF; |
|
background-color: #909AA0; |
|
font-size: 22px; |
|
text-align: center; |
|
padding-top: 12px; |
|
border-radius: 50%; |
|
-moz-border-radius: 50%; |
|
-webkit-border-radius: 50%; |
|
-o-border-radius: 50%; |
|
transition: all ease 0.3s; |
|
-moz-transition: all ease 0.3s; |
|
-webkit-transition: all ease 0.3s; |
|
-o-transition: all ease 0.3s; |
|
-ms-transition: all ease 0.3s; |
|
} |
|
|
|
.social i:hover { |
|
color: #FFF; |
|
text-decoration: none; |
|
transition: all ease 0.3s; |
|
-moz-transition: all ease 0.3s; |
|
-webkit-transition: all ease 0.3s; |
|
-o-transition: all ease 0.3s; |
|
-ms-transition: all ease 0.3s; |
|
} |
|
|
|
.social .fa-facebook:hover { |
|
/* round facebook icon*/ |
|
background: #4060A5; |
|
} |
|
|
|
.social .fa-twitter:hover { |
|
/* round twitter icon*/ |
|
background: #00ABE3; |
|
} |
|
|
|
.social .fa-linkedin:hover { |
|
/* round linkedin icon*/ |
|
background: #0094BC; |
|
} |
|
|
|
.social .fa-github:hover { |
|
/* round github icon*/ |
|
background: #343434; |
|
} |
|
|
|
.social .fa-fire:hover { |
|
/* round github icon*/ |
|
background: #008000; |
|
} |
|
|
|
.popupContainer { |
|
display: flex; |
|
flex-direction: row; |
|
align-items: center; |
|
justify-content: center; |
|
margin: 0; |
|
position: fixed; |
|
overflow: hidden; |
|
pointer-events: none; |
|
z-index: 10; |
|
width: 400px; |
|
height: 100%; |
|
top: -100%; |
|
} |
|
|
|
.loserPopUp { |
|
background: rgba(255, 255, 255, 0.7); |
|
padding: 1em 5em; |
|
-webkit-border-radius: 5px; |
|
-moz-border-radius-: 5px; |
|
border-radius: 5px; |
|
z-index: 10; |
|
width: 300px; |
|
} |
|
|
|
#gameStatementBox { |
|
flex-direction: column; |
|
display: flex; |
|
} |
|
|
|
h3 { |
|
color: black; |
|
font-weight: bold; |
|
font-size: 25px; |
|
text-align: center; |
|
font-family: Arial, Helvetica, sans-serif; |
|
} |
|
|
|
.slideDown { |
|
animation: slideDown 4s; |
|
animation-fill-mode: forwards; |
|
} |
|
|
|
.slideUp { |
|
animation: slideUp 3s; |
|
animation-fill-mode: forwards; |
|
} |
|
|
|
@keyframes slideDown { |
|
from { |
|
top: -100%; |
|
} |
|
to { |
|
top: 0%; |
|
} |
|
} |
|
|
|
@keyframes slideUp { |
|
from { |
|
top: 0%; |
|
} |
|
to { |
|
top: -100%; |
|
} |
|
} |
|
|
|
.winningAnimation { |
|
animation: winningAnimation 1s linear; |
|
animation-iteration-count: 2; |
|
} |
|
|
|
@keyframes winningAnimation { |
|
100% { |
|
transform: rotate(360deg); |
|
} |
|
} |
|
|
|
.losingAnimation { |
|
animation: losingAnimation 1.5s linear; |
|
animation-iteration-count: 2; |
|
} |
|
|
|
@keyframes losingAnimation { |
|
0% { |
|
transform: rotateY(0deg) |
|
} |
|
25% { |
|
transform: rotateY(60deg) |
|
} |
|
50% { |
|
transform: rotateY(0deg) |
|
} |
|
75% { |
|
transform: rotateY(-60deg) |
|
} |
|
100% { |
|
transform: rotateY(0deg) |
|
} |
|
} |