frontend/style.css
2023-09-11 20:21:08 -04:00

246 lines
3.7 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=Baloo+Da+2&display=swap");
@keyframes loadInAnimation {
0% {
opacity: 0;
}
100% {
opacity: 100;
}
}
* {
outline: none;
border: none;
box-sizing: border-box;
align-content: center;
text-align: center;
font-family: "Baloo Da 2", cursive;
}
body {
font-family: "Baloo Da 2", cursive;
margin: 0;
padding: 0;
background-color: #10002b;
color: #fff;
}
header,
footer {
background-color: #240046;
color: #fff;
display: flex;
padding: 0.7rem;
width: 100%;
z-index: 1;
justify-content: center;
}
header {
top: 0;
position: fixed;
box-shadow: 0 5px 10px #240046;
}
footer.noscroll {
position: fixed;
overflow: hidden;
}
footer {
bottom: 0;
box-shadow: 0 -5px 10px #240046;
}
footer a,
footer a:visited,
header a,
header a:visited {
text-align: center;
font-weight: 700;
color: #fff;
text-decoration: none;
margin-right: 2rem;
margin-left: 1rem;
transition-duration: 0.5s;
}
footer a:hover,
header a:hover {
text-shadow: 2px 2px 6px white;
}
main {
animation: 1.25s ease-in-out 0s 1 loadInAnimation;
align-items: center;
flex-direction: column;
display: flex;
min-height: calc(100vh - (2 * 0.7rem));
gap: 0;
flex-wrap: wrap;
margin: auto;
margin-top: 4rem;
width: 90%;
}
main#main.noscroll {
justify-content: center;
}
h1,
h2,
h3,
p,
a {
margin: 0;
padding: 0;
}
.samerow {
display: flex;
justify-content: center;
gap: 0;
flex-wrap: wrap;
}
h1 {
font-size: 60px;
}
h2 {
font-size: 40px;
}
h3 {
font-size: 20px;
}
p, a {
font-size: 16px;
color: white;
}
button, input#websubmit.submit, input[type=submit]#panic {
cursor: pointer;
background-color: #5a189a;
border-color: #3c096c;
border-width: 5px;
border-radius: 10px;
border-style: solid;
padding: 10px;
color: white;
margin-left: 20px;
margin-right: 20px;
transition-duration: 0.5s;
margin: 10px;
}
button:hover, input#websubmit.submit:hover, input[type=submit]#panic:hover {
border-color: #240046;
background-color: #3c096c;
transform: scale(1.07);
}
img {
width: 100%;
aspect-ratio: auto;
user-select: none;
}
.img-container a {
width: 100%;
}
.img-container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
gap: 0;
flex-wrap: wrap;
width: 6%;
aspect-ratio: 1 / 1;
margin: 2%;
}
.game {
transition-duration: 0.5s;
width: 15%;
border-radius: 20px;
display: inline-block;
background-color: #240046;
margin: 15px;
cursor: pointer;
box-shadow: 0px 0px 5px 5px #240046;
}
.game:hover {
transform: scale(1.1);
background-color: #2f005a;
box-shadow: 0px 0px 5px 5px #2f005a;
}
.game h1 {
font-size: 13px;
float: right;
margin-right: 10px;
margin-top: 3px;
margin-bottom: 3px;
}
.game img {
width: 100%;
border-radius: 20px;
aspect-ratio: 1 / 1;
}
img.star {
float: left;
width: 10%;
margin-top: 3px;
margin-bottom: 3px;
margin-left: 10px;
}
#noscroll {
overflow-y: hidden;
justify-content: center;
}
#games,
#pinned {
width: 100%;
justify-content: center;
}
a {
font-size: 16px;
}
input[type="text"] {
width: 50%;
background-color: #3c096c;
color: white;
box-sizing: border-box;
font-size: 20px;
padding: 0.8% 0.8%;
text-align: center;
border-radius: 5px;
outline: none;
margin: 10px;
border: 2px solid #5a189a;
border-radius: 5px;
transition: opacity 0.25s ease-in-out;
opacity: 70%;
transition-duration: 0.5s;
}
input[type=text]:hover {
opacity: 100%;
}
.bookmarkletdiv {
width: 30%;
background-color: #240046;
box-shadow: 0px 0px 5px 5px #240046;
padding: 5px;
margin: 15px;
border-radius: 10px;
display: inline-block;
}
.bookmarkletdiv a {
font-size: 30px;
color: white;
}
form {
width: 100%;
}