You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
171 lines
3.3 KiB
171 lines
3.3 KiB
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
--brand-color: rgb(252, 98, 0);
|
|
}
|
|
|
|
body {
|
|
position: fixed;
|
|
top: 0; right: 0; bottom: 0; left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #1a1a1a;
|
|
color: #e8e8e8;
|
|
}
|
|
|
|
a, a:visited {
|
|
color: var(--brand-color);
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
justify-content: center;
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
background-color: #000000;
|
|
color: #e8e8e8;
|
|
}
|
|
|
|
.container .text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.container .margin-block {
|
|
display: block;
|
|
position: relative;
|
|
width: 100%;
|
|
margin: 2em 0;
|
|
}
|
|
|
|
.container .game-title {
|
|
font-size: 2.5em;
|
|
font-weight: bold;
|
|
color: var(--brand-color);
|
|
}
|
|
|
|
.container .game-subtitle {
|
|
margin: 8px 0;
|
|
color: var(--brand-color);
|
|
font-style: italic;
|
|
}
|
|
|
|
.container .game-display-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.container .game-display-wrapper canvas.game-display {
|
|
display: block;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
height: auto;
|
|
border: solid 1px #4a4a4a;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.container .game-display-wrapper button.start-button {
|
|
position: absolute;
|
|
left: calc(50% - 120px);
|
|
top: calc(50% - 32px);
|
|
width: 240px;
|
|
height: 64px;
|
|
padding: 10px 20px;
|
|
background-color: var(--brand-color);
|
|
color: white;
|
|
border: solid 3px white;
|
|
border-radius: 8px;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.container button {
|
|
border: solid 3px;
|
|
border-color: rgba(255,255,255, 0);
|
|
border-radius: 8px;
|
|
width: 80px;
|
|
height: 80px;
|
|
|
|
-webkit-user-select: none;
|
|
-webkit-touch-callout: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.container button.direction-button {
|
|
background: rgba(0,0,0, 0.6);
|
|
color: white;
|
|
font-size: 4em;
|
|
font-weight: bold;
|
|
font-family: apple color emoji,segoe ui emoji,noto color emoji,android emoji,emojisymbols,emojione mozilla,twemoji mozilla,segoe ui symbol;
|
|
}
|
|
|
|
.container button.action-button {
|
|
background: rgba(255,0,0, 0.6);
|
|
color: white;
|
|
font-size: 3em;
|
|
font-family: apple color emoji,segoe ui emoji,noto color emoji,android emoji,emojisymbols,emojione mozilla,twemoji mozilla,segoe ui symbol;
|
|
}
|
|
|
|
.container button.action-button.active,
|
|
.container button.direction-button.active {
|
|
border-color: white;
|
|
}
|
|
|
|
.container button.direction-button#btn-move-left {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
left: 20px;
|
|
}
|
|
|
|
.container button.direction-button#btn-move-right {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
}
|
|
|
|
.container button.action-button#btn-throw-egg {
|
|
position: absolute;
|
|
bottom: 120px;
|
|
right: 20px;
|
|
}
|
|
|
|
@media only screen and (max-width: 480px) {
|
|
.container .game-display-wrapper button.start-button {
|
|
left: calc(50% - 100px);
|
|
top: calc(50% - 28px);
|
|
width: 200px;
|
|
height: 56px;
|
|
padding: 10px 20px;
|
|
background-color: var(--brand-color);
|
|
color: white;
|
|
border: solid 3px white;
|
|
border-radius: 8px;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.container button {
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
|
|
.container button.direction-button {
|
|
font-size: 2em;
|
|
}
|
|
|
|
.container button.action-button {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.container button.action-button#btn-throw-egg {
|
|
bottom: 80px;
|
|
}
|
|
}
|