Files
frontend/css/games.css
2026-04-11 15:46:12 -04:00

143 lines
2.8 KiB
CSS
Executable File

.game {
width: 20vw;
height: 9vh;
background-color: color-mix(in srgb, var(--color-2) 40%, #00000000 60%);
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
border-radius: 20px;
margin: 15px;
/* transition-duration: 0.25s; */
backdrop-filter: blur(2px);
box-shadow: 0 0 10px var(--color-2);
text-decoration: none;
content-visibility: auto;
contain-intrinsic-size: auto 9vh;
}
.game:hover {
transform: scale(1.1);
}
.game img {
height: calc(100% - 4px - 4px);
border-radius: 15px;
aspect-ratio: 1 / 1;
margin: 4px;
justify-self: left;
margin-right: auto;
}
#holder h1 {
font-size: 14px;
margin: 15px;
width: 80%;
text-align: right;
height: 70%;
}
#holder {
flex: 1;
display: flex;
flex-direction: column;
align-items: flex-end;
}
#star {
margin-top: 0px;
width: 10%;
margin-left: auto;
margin-right: 15px;
/* transition-duration: 0.25s; */
}
#star:hover {
transform: scale(1.1);
filter: drop-shadow(0 0 5px var(--color-1))
}
#games, #starredgames, #topGames {
width: 90vw;
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
height: 100%;
gap: 0px;
}
#noResults, #loadingMsg {
font-size: 24px;
color: var(--color-1);
}
#starredHeader, #allHeader, #topHeader {
font-size: 32px;
color: var(--color-1);
}
#noResults, #starredHeader, #allHeader, #topHeader {
display: none;
}
body {
justify-content: flex-start;
}
#gamesort {
border-style: solid;
border-width: 2px;
padding: 10px 18px;
margin: 5px;
border-radius: 10px;
background-color: var(--color-2);
border-color: var(--color-3);
color: var(--text-color);
outline: none;
transition-duration: 0.25s;
font-size: 16px;
cursor: pointer;
}
#gamesort:hover {
filter: brightness(1.1);
}
@-moz-document url-prefix() {
game {
backdrop-filter: blur(0);
}
}
warnings {
position: absolute;
top: 0px;
right: 5px;
display: flex;
justify-content: center;
align-items: center;
}
warning {
width: 20px;
height: 20px;
color: var(--text-color);
border-radius: 100%;
display: flex;
justify-content: center;
align-items: center;
margin: 4px;
font-size: 12px;
}
.gore {
background-color: rgb(100, 20, 20);
box-shadow: 0 0 10px rgb(100, 20, 20);
}
.thirteen {
background-color: rgb(0, 0, 0);
box-shadow: 0 0 10px rgb(0, 0, 0);
}
.horror {
background-color: rgb(118, 118, 118);
box-shadow: 0 0 10px rgb(193, 193, 193);
}
body[fast] game {
background-color: color-mix(in srgb, var(--color-2) 70%, #000000 30%);
backdrop-filter: blur(0);
}
@media screen and (max-width: 900px) {
game {
width: 40vw;
}
}
@media screen and (max-width: 660px) {
game {
width: 60vw;
}
}