309 lines
7.3 KiB
CSS
309 lines
7.3 KiB
CSS
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body{
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
.main{
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background-color: rgb(159, 173, 218);
|
|
}
|
|
|
|
.main-panel{
|
|
border-radius: 10px;
|
|
background-color: #ffffff;
|
|
width: 85vw;
|
|
height: 80vh;
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
.panel-nav{
|
|
height: 60px;
|
|
width: 100%;
|
|
background-color: rgb(28, 76, 223);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
color: white;
|
|
}
|
|
|
|
.elem{
|
|
text-transform: capitalize;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
font-family: 'Chakra Petch', sans-serif;
|
|
|
|
}
|
|
|
|
.box{
|
|
color: rgb(28, 76, 223);
|
|
background-color: #ffffff;
|
|
display: flex;
|
|
padding: 5px 8px;
|
|
border-radius: 3px;
|
|
font-family: 'Arvo', serif;
|
|
|
|
}
|
|
|
|
.panel-content{
|
|
z-index: 1;
|
|
background-color: #ffffff;
|
|
height: calc(100% - 60px);
|
|
width: 100%;
|
|
gap: 10px;
|
|
padding: 5px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
font-family: 'Arvo', serif;
|
|
|
|
|
|
}
|
|
|
|
.bubble{
|
|
background-color: #1c29df;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
color: #ffffff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.bubble:hover{
|
|
cursor: pointer;
|
|
background-color: #211594;
|
|
}
|
|
|
|
.menu-screen{
|
|
height: 100vh;
|
|
width: 100vw;
|
|
background-color: rgba(0, 255, 0, 0.434);
|
|
backdrop-filter: blur(5px);
|
|
position: absolute;
|
|
z-index: 99;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
gap: 80px;
|
|
}
|
|
|
|
|
|
.menu-screen .main-instruction {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
background-color: rgba(0, 181, 159, 0.50) !important; /*The color set to rgba(0, 181, 159, 0.50) provides good contrast. Phillip Andrews*/
|
|
/*Changed hexadecimal notation to match the rgba color. Also, I added !important after both background-colors so the desired
|
|
background color takes precedence. Phillip Andrews*/
|
|
background-color: #00b59f80 !important; /* Hexadecimal notation */
|
|
-webkit-backdrop-filter: blur(5px);
|
|
backdrop-filter: blur(5px);
|
|
padding: 40px 50px;
|
|
border-radius: 30px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
|
|
.menu-screen .main-instruction h1{
|
|
font-family: 'Chakra Petch', sans-serif;
|
|
text-transform: uppercase;
|
|
font-size: 3vw;
|
|
color: #211594;
|
|
|
|
}
|
|
|
|
.main-instruction ul li::before {
|
|
font-size: 25px;
|
|
content: "\2022";
|
|
color: #211594;
|
|
font-weight: bold;
|
|
display: inline-block;
|
|
width: 1em;
|
|
margin-left: -1em;
|
|
}
|
|
|
|
.menu-screen .main-instruction ul{
|
|
list-style: none;
|
|
font-family: 'Bricolage Grotesque', sans-serif;
|
|
font-weight: 400;
|
|
text-transform: capitalize;
|
|
font-size: 1.4vw;
|
|
color: #211594;
|
|
}
|
|
|
|
.game-over-screen{
|
|
height: 100vh;
|
|
width: 100vw;
|
|
position: absolute;
|
|
z-index: 99;
|
|
background-color: rgba(22, 56, 159, 0.475);
|
|
backdrop-filter: blur(5px);
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
|
|
}
|
|
|
|
.game-over-screen h1{
|
|
text-transform: uppercase;
|
|
color: #ffffff;
|
|
font-size: 999;
|
|
font-size: 3vw;
|
|
font-family: 'Arvo', serif;
|
|
}
|
|
|
|
.game-over-screen h3{
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-transform: capitalize;
|
|
font-family: 'Bricolage Grotesque', sans-serif;
|
|
}
|
|
|
|
.game-over-screen h3 .current-score{
|
|
color: #ffffff;
|
|
font-size: 40px;
|
|
font-family: 'Arvo', serif;
|
|
}
|
|
.game-over-screen h3 .high-score{
|
|
color: #ffffff;
|
|
font-size: 40px;
|
|
font-family: 'Arvo', serif;
|
|
}
|
|
.video-game-button {
|
|
cursor: pointer;
|
|
outline: none;
|
|
border: 0;
|
|
vertical-align: middle;
|
|
text-decoration: none;
|
|
font-family: 'Chakra Petch', sans-serif;
|
|
font-size: 32px;
|
|
font-weight: 600;
|
|
color: white;
|
|
padding: .75em .5em;
|
|
background: #1c29df; /* Blue color */
|
|
border: 2px solid #0512a4; /* Darker blue color */
|
|
border-radius: 0.75em;
|
|
-webkit-transform-style: preserve-3d;
|
|
transform-style: preserve-3d;
|
|
-webkit-transition: background 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
|
|
transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
|
|
}
|
|
|
|
.video-game-button::before {
|
|
position: absolute;
|
|
content: '';
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: #4a5dff; /* Lighter blue color */
|
|
border-radius: inherit;
|
|
-webkit-box-shadow: 0 0 0 2px #0512a4, 0 0.625em 0 0 #5263ff; /* Darker blue color */
|
|
box-shadow: 0 0 0 2px #0512a4, 0 0.625em 0 0 #5263ff; /* Darker blue color */
|
|
-webkit-transform: translate3d(0, 0.75em, -1em);
|
|
transform: translate3d(0, 0.75em, -1em);
|
|
transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
|
|
}
|
|
|
|
.video-game-button:hover {
|
|
background: #2936cc; /* Darker blue color on hover */
|
|
/* border-color: white; */
|
|
}
|
|
|
|
.video-game-button::before {
|
|
-webkit-box-shadow: 0 0 0 2px #0512a4, 0 0.5em 0 0 #5263ff; /* Darker blue color */
|
|
box-shadow: 0 0 0 2px #0512a4, 0 0.5em 0 0 #333333; /* Darker color */
|
|
-webkit-transform: translate3d(0, 0.5em, -1em);
|
|
transform: translate3d(0, 0.5em, -1em);
|
|
}
|
|
|
|
.video-game-button:active {
|
|
background: #2936cc; /* Darker blue color on active */
|
|
-webkit-transform: translate(0em, 0.75em);
|
|
transform: translate(0em, 0.75em);
|
|
}
|
|
|
|
.video-game-button:active::before {
|
|
-webkit-box-shadow: 0 0 0 2px #0512a4, 0 0 #5263ff; /* Darker blue color */
|
|
box-shadow: 0 0 0 2px #0512a4, 0 0 #5263ff; /* Darker blue color */
|
|
-webkit-transform: translate3d(0, 0, -1em);
|
|
transform: translate3d(0, 0, -1em);
|
|
}
|
|
|
|
.video-game-button:focus:not(:focus-visible) {
|
|
outline: 0;
|
|
}
|
|
|
|
@-webkit-keyframes bubble-anim {
|
|
0% {
|
|
-webkit-transform: scale(1);
|
|
transform: scale(1); }
|
|
|
|
20% {
|
|
-webkit-transform: scaleY(0.95) scaleX(1.05);
|
|
transform: scaleY(0.95) scaleX(1.05); }
|
|
|
|
48% {
|
|
-webkit-transform: scaleY(1.1) scaleX(0.9);
|
|
transform: scaleY(1.1) scaleX(0.9); }
|
|
|
|
68% {
|
|
-webkit-transform: scaleY(0.98) scaleX(1.02);
|
|
transform: scaleY(0.98) scaleX(1.02); }
|
|
|
|
80% {
|
|
-webkit-transform: scaleY(1.02) scaleX(0.98);
|
|
transform: scaleY(1.02) scaleX(0.98); }
|
|
|
|
97%, 100% {
|
|
-webkit-transform: scale(1);
|
|
transform: scale(1); } }
|
|
|
|
@keyframes bubble-anim {
|
|
0% {
|
|
-webkit-transform: scale(1);
|
|
transform: scale(1); }
|
|
|
|
20% {
|
|
-webkit-transform: scaleY(0.95) scaleX(1.05);
|
|
transform: scaleY(0.95) scaleX(1.05); }
|
|
|
|
48% {
|
|
-webkit-transform: scaleY(1.1) scaleX(0.9);
|
|
transform: scaleY(1.1) scaleX(0.9); }
|
|
|
|
68% {
|
|
-webkit-transform: scaleY(0.98) scaleX(1.02);
|
|
transform: scaleY(0.98) scaleX(1.02); }
|
|
|
|
80% {
|
|
-webkit-transform: scaleY(1.02) scaleX(0.98);
|
|
transform: scaleY(1.02) scaleX(0.98); }
|
|
|
|
97%, 100% {
|
|
-webkit-transform: scale(1);
|
|
transform: scale(1); }
|
|
}
|