You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

153 lines
1.8 KiB
CSS

* {
box-sizing: border-box;
}
html,
body {
background-color: #006dfe;
font-family: sans-serif;
font-size: 20px;
line-height: 1.6;
}
header {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
width: 100%;
height: 100vh;
padding: 24px;
margin: 0;
}
.meta {
position: relative;
}
.index {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
justify-content: center;
align-content: center;
flex-wrap: wrap;
gap: 12px;
list-style: none;
}
ul {
padding: 0;
margin: 0;
}
.index li,
.meta button {
position: relative;
padding: 6px 12px;
background-color: white;
border-radius: 42px;
margin: 0;
font-size: 42px;
}
a {
color: currentColor;
text-decoration: none;
}
.index a:after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
li:hover {
transform: scale(1.05);
}
#background,
#foreground {
position: absolute;
width: 100%;
height: 100vh;
top: 0;
left: 0;
object-fit: contain;
}
#foreground {
pointer-events: none;
}
.meta button {
background-color: white;
border: none;
font-size: 1rem;
font-family: sans-serif;
margin-top: 16px;
}
.meta .title {
margin: 0;
background-color: white;
}
.meta .description {
max-width: 60ch;
margin: 0;
}
.meta.release {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
gap: 8px;
}
.meta .title,
.meta.release .title,
.meta.release .date {
font-size: 1rem;
background-color: white;
padding: 6px 12px;
border-radius: 6px;
}
.hidden {
visibility: hidden;
}
main {
padding: 24px;
}
main * {
max-width: 60ch;
}
main img {
display: inline-block;
}
@media (max-width: 767.98px) {
#background {
object-fit: contain;
object-position: top;
}
}