127 lines
1.9 KiB
CSS
127 lines
1.9 KiB
CSS
html {
|
|
background-color: black;
|
|
}
|
|
|
|
h1, h2 {
|
|
color: white;
|
|
text-align: center;
|
|
}
|
|
|
|
menu {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 0px;
|
|
}
|
|
menu a {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
padding-left: 1rem;
|
|
padding-right: 1rem;
|
|
padding-bottom: 1rem;
|
|
text-decoration: none;
|
|
color: white;
|
|
}
|
|
|
|
menu a img {
|
|
width: 60px;
|
|
height: 60px;
|
|
}
|
|
menu a:hover img {
|
|
width: 75px;
|
|
height: 75px;
|
|
transition: 0.1s ease;
|
|
}
|
|
|
|
menu a h3 {
|
|
margin: 0px;
|
|
}
|
|
|
|
nav > img {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
menu {
|
|
display: none;
|
|
position: absolute;
|
|
background-color: black;
|
|
padding: 0.69rem;
|
|
margin-top: 0;
|
|
right: 0;
|
|
z-index: 2;
|
|
text-align: left;
|
|
}
|
|
menu a {
|
|
display: flex;
|
|
}
|
|
menu a img {
|
|
width: 25px;
|
|
height: 25px;
|
|
padding-right: 1rem;
|
|
}
|
|
menu a:hover img {
|
|
width: 25px;
|
|
height: 25px;
|
|
transition: 0;
|
|
}
|
|
nav > img {
|
|
display: block;
|
|
color: red;
|
|
margin: 1rem;
|
|
position: absolute;
|
|
top: 0px;
|
|
right: 0px;
|
|
margin-top: 1.5rem;
|
|
width: 42px;
|
|
}
|
|
h1 {
|
|
padding-right: 50px;
|
|
}
|
|
}
|
|
|
|
.games {
|
|
margin: 0 auto;
|
|
display: grid;
|
|
gap: 1rem;
|
|
grid-template-columns: repeat(1, 1fr);
|
|
}
|
|
|
|
@media (min-width: 600px) {
|
|
.games { grid-template-columns: repeat(2, 1fr); }
|
|
}
|
|
|
|
@media (min-width: 900px) {
|
|
.games { grid-template-columns: repeat(3, 1fr); }
|
|
}
|
|
|
|
.game {
|
|
color: white;
|
|
position: relative;
|
|
}
|
|
|
|
.game p {
|
|
margin: 0;
|
|
}
|
|
|
|
.game img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.game-video{
|
|
opacity: 0;
|
|
transition: 0.5s ease;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.game:hover .game-video {
|
|
opacity: 1;
|
|
}
|