88 lines
1.2 KiB
CSS
88 lines
1.2 KiB
CSS
body.ddguesser {
|
|
display: grid;
|
|
grid-template-areas: 'nav' 'main';
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: auto 1fr;
|
|
}
|
|
|
|
body.ddguesser > nav {
|
|
background-color: #1F1F47;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
body.ddguesser > main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
width: min(90ch, 90%);
|
|
place-self: start center;
|
|
margin-bottom: 5vh;
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
}
|
|
|
|
header > h1 {
|
|
font-size: 3rem;
|
|
}
|
|
|
|
img#meow {
|
|
width: min(45ch, 50%);
|
|
aspect-ratio: 1 / 1;
|
|
margin: 0 auto 2rem auto;
|
|
}
|
|
|
|
a#start-game {
|
|
width: max-content;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
a#new-game {
|
|
margin: 2rem auto;
|
|
width: fit-content;
|
|
}
|
|
|
|
form {
|
|
width: 100%;
|
|
display: flex;
|
|
}
|
|
|
|
form > input[type=text] {
|
|
color: #FAFAFF;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.guess {
|
|
font-size: 1.5rem;
|
|
/* text-align: center; */
|
|
}
|
|
|
|
span.correct {
|
|
color: #64DB4F;
|
|
}
|
|
|
|
span.incorrect {
|
|
color: #E04F53;
|
|
}
|
|
|
|
.map {
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.map > img {
|
|
width: 100%;
|
|
}
|
|
|
|
.map > p {
|
|
position: absolute;
|
|
bottom: 1rem;
|
|
user-select: none;
|
|
translate: 50%;
|
|
right: 50%;
|
|
padding: 1rem 2rem;
|
|
background-color: #0008;
|
|
} |