270 lines
3.9 KiB
CSS
270 lines
3.9 KiB
CSS
@import url("./common.css");
|
|
|
|
body {
|
|
font-family: "Prompt";
|
|
color: #295a85;
|
|
}
|
|
|
|
#game-page {
|
|
width: 100%;
|
|
}
|
|
|
|
#error-page {
|
|
display: none;
|
|
background-color: white;
|
|
}
|
|
|
|
#introduction-page {
|
|
background-image: url("/public/images/background1.png");
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
#introduction {
|
|
display: flex;
|
|
}
|
|
|
|
/* Game-container */
|
|
#game-container {
|
|
display: none;
|
|
color: white;
|
|
position: relative;
|
|
background-image: url("/public/images/background2.jpeg");
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
#game-container {
|
|
color: white;
|
|
position: relative;
|
|
}
|
|
#countdown-timer {
|
|
font-size: 70px;
|
|
}
|
|
|
|
#choices-container {
|
|
height: 200px;
|
|
}
|
|
|
|
.choice:hover {
|
|
width: 85%;
|
|
}
|
|
|
|
.choice {
|
|
width: 150px;
|
|
}
|
|
|
|
#hint-container {
|
|
position: absolute;
|
|
top: 20%;
|
|
left: 15%;
|
|
width: 200px;
|
|
z-index: 9999;
|
|
/* display: none; */
|
|
}
|
|
|
|
.hint{
|
|
animation: blinker 1s linear infinite;
|
|
}
|
|
|
|
@keyframes blinker {
|
|
20% {
|
|
opacity: 0;
|
|
}
|
|
21%{
|
|
opacity: 1;
|
|
}
|
|
|
|
}
|
|
|
|
/* .backgroundImg{
|
|
background-image: url("/public/images/background2.jpeg");
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
background-position: center;
|
|
} */
|
|
|
|
/* Save-score */
|
|
#modal-save-score {
|
|
display: none;
|
|
background-image: url("/public/images/background2.jpeg");
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
#modal-save-score-backdrop {
|
|
background: rgba(255, 255, 255, 0.29);
|
|
backdrop-filter: blur(3px);
|
|
}
|
|
.modal-save-score-content {
|
|
background-color: #104f75;
|
|
opacity: 0.7;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
#player-name {
|
|
border-radius: 3px;
|
|
border: #104f75 solid 2px;
|
|
color: #295a85;
|
|
}
|
|
|
|
#player-name:focus {
|
|
border: #4642f1 solid 2px;
|
|
}
|
|
|
|
#end-container {
|
|
display: none;
|
|
background-image: url("/public/images/background1.png");
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
#end-score {
|
|
font-weight: 400;
|
|
}
|
|
|
|
#play-btn,
|
|
#hint-btn,
|
|
#quit-btn,
|
|
#play-again-btn,
|
|
#save-btn {
|
|
border: 3px solid transparent !important;
|
|
border-radius: 30px;
|
|
font-weight: 100;
|
|
}
|
|
#play-btn:hover,
|
|
#hint-btn:hover,
|
|
#quit-btn:hover,
|
|
#play-again-btn:hover {
|
|
border: 3px solid #5b9b4f !important;
|
|
color: #5b9b4f !important;
|
|
}
|
|
|
|
#play-btn,
|
|
#hint-btn {
|
|
width: 20%;
|
|
}
|
|
|
|
#save-btn {
|
|
width: 35%;
|
|
}
|
|
#save-btn:hover {
|
|
background-color: #5b9b4f;
|
|
scale: 1.2;
|
|
}
|
|
|
|
#quit-btn,
|
|
#play-again-btn {
|
|
width: 85%;
|
|
}
|
|
|
|
@media screen and (max-width: 1024px) and (orientation: portrait) {
|
|
#content {
|
|
margin: auto;
|
|
}
|
|
.introduction-container {
|
|
flex-direction: column;
|
|
}
|
|
#title {
|
|
width: 75%;
|
|
margin: auto;
|
|
}
|
|
#iframe-container {
|
|
width: 100%;
|
|
}
|
|
iframe {
|
|
height: 52vh !important;
|
|
}
|
|
|
|
#hint-container {
|
|
top: 15%;
|
|
left: 7%;
|
|
}
|
|
|
|
.choice:hover {
|
|
width: 70%;
|
|
}
|
|
#choices-container {
|
|
height: 450px;
|
|
}
|
|
#quit-btn,
|
|
#play-again-btn {
|
|
width: 90%;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 1024px) and (orientation: landscape) {
|
|
#play-btn,
|
|
#hint-btn {
|
|
width: 30%;
|
|
}
|
|
iframe {
|
|
height: 65vh !important;
|
|
}
|
|
|
|
#quit-btn,
|
|
#play-again-btn {
|
|
width: 65%;
|
|
}
|
|
}
|
|
|
|
@media screen and (width: 1024px) and (orientation: portrait) {
|
|
#quit-btn,
|
|
#play-again-btn {
|
|
width: 65%;
|
|
}
|
|
.choice:hover {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-height: 600px) {
|
|
#countdown-timer {
|
|
line-height: 60px;
|
|
}
|
|
.introduction-container {
|
|
flex-direction: row;
|
|
}
|
|
iframe {
|
|
height: 80vh !important;
|
|
}
|
|
#end-content {
|
|
scale: 0.8;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 1180px) {
|
|
#title {
|
|
margin-left: 30px;
|
|
}
|
|
#question img {
|
|
width: 50%;
|
|
}
|
|
.choice:hover {
|
|
width: 85%;
|
|
}
|
|
#choices-container {
|
|
height: 300px;
|
|
}
|
|
.choice {
|
|
width: 70%;
|
|
}
|
|
#play-btn,
|
|
#hint-btn {
|
|
width: 30%;
|
|
}
|
|
|
|
#quit-btn,
|
|
#play-again-btn {
|
|
width: 65%;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 1440px){
|
|
#iframe-container iframe{
|
|
height: 90vh !important;
|
|
}
|
|
} |