Files
frontend/css/games.css
2025-11-14 21:53:45 -05:00

125 lines
2.4 KiB
CSS
Executable File

game {
width: 20vw;
height: 10vh;
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);
}
game:hover {
transform: scale(1.1);
filter:brightness(1.15);
}
game img {
height: 80%;
border-radius: 15px;
aspect-ratio: 1 / 1;
margin: 10px;
justify-self: left;
margin-right: auto;
}
#holder h1 {
font-size: 14px;
margin: 15px;
width: 80%;
text-align: right;
height: 70%;
}
#holder {
width: 70%;
height: auto;
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;
}
@-moz-document url-prefix() {
game {
backdrop-filter: blur(0);
}
}
warnings {
position: absolute;
top: -20px;
left: -20px;
display: flex;
justify-content: center;
align-items: center;
}
warning {
width: 25px;
height: 25px;
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;
}
}