foss_alternatives/FOOS_ALT_WEBSITE/list.css

291 lines
4.3 KiB
CSS

/* Reset and global styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
transition: 1s;
}
/* Body styles */
body {
background-color: #f5f5f5;
background-image: url("assets/");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
background-attachment: fixed;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
}
/* Article styles */
article {
margin-top: 100px;
padding: 20px;
width: 90%;
max-width: 800px;
background: rgba(255, 255, 255, 0.9);
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
h1 {
color: #333;
margin-bottom: 20px;
font-size: 2em;
}
p.text {
color: #666;
line-height: 1.2;
margin-bottom: 20px;
font-size: 1em;
}
img {
max-width: 100%;
height: auto;
margin-bottom: 20px;
}
button {
padding: 10px 20px;
margin: 2em;
border: none;
background-color: #333;
color: white;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #555;
}
.flex {
display: flex;
align-items: center;
}
nav {
margin-top: 20px;
}
.folder-list {
list-style-type: none;
padding: 0;
}
.folder-list-item {
margin-bottom: 10px;
}
.folder-link {
text-decoration: none;
color: #eee8e8;
font-weight: bold;
display: block;
padding: 10px;
border-radius: 5px;
background: linear-gradient(to right, #000000, #707070); /* Gradient background */
}
.folder-link:hover {
background: linear-gradient(to right, #707070, #000000); /* Gradient change on hover */
}
.folder-link:active {
transform: scale(0.98); /* Slight scale down on click */
}
/* Styles for the game lists */
h2 {
margin-top: 40px;
color: #333;
}
article ul {
list-style-type: none;
padding: 0;
width: 50%;
margin: 0 auto;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
ul.fully-free {
border: 2px solid #4CAF50;
}
ul.non-free-assets {
border: 2px solid #FF5722;
}
ul li {
padding: 12px;
border-bottom: 1px solid #ddd;
text-align: center;
}
ul li:last-child {
border-bottom: none;
}
ul.fully-free li {
background-color: #e8f5e9;
}
ul.non-free-assets li {
background-color: #ffebee;
}
.fiveStar, .fourStar, .threeStar, .twoStar, .oneStar, .death{
margin-bottom: 1em;
color: white;
font-weight: bold;
text-shadow: red;
}
ul.fiveStar {
background: #01ab04;
}
ul.fourStar {
background: #59ff00;
}
ul.threeStar {
background: rgb(226, 226, 0);
}
ul.twoStar {
background: #ff9d00;
}
ul.oneStar {
background: #ff0000;
}
ul.death {
background: #920e0e;
color: white;
font-weight: bold;
text-shadow: red;
}
/* Mobile Styles */
@media (max-width: 1000px) {
.burger-menu {
display: block;
}
.menu {
display: none;
flex-direction: column;
background-color: rgba(0, 0, 0, 0.7);
position: absolute;
top: 100%; /* Adjusted position */
left: 0;
width: 100%;
z-index: 999;
}
.menu.active {
display: flex;
}
header {
padding: 5px;
height: auto;
}
.header-content {
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.project-name {
font-size: 1.2em;
}
header li {
margin: 0;
width: 100%;
}
header a {
padding: 10px;
width: 100%;
display: block;
}
article {
margin-top: 190px;
padding-top: 20px;
}
}
/* Header styles */
header {
background-color: rgba(0, 0, 0, 0.7);
padding: 10px;
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 1000;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}
.project-name {
color: white;
font-size: 1.5em;
}
.burger-menu {
background: none;
border: none;
color: white;
font-size: 1.5em;
cursor: pointer;
display: none;
}
.menu {
list-style: none;
display: flex;
justify-content: space-around;
flex-grow: 1;
}
header li {
margin: 0 10px;
}
header a {
color: white;
text-decoration: none;
padding: 10px;
border-radius: 5px;
transition: background-color 0.3s ease;
}
header a:hover {
background-color: rgba(255, 255, 255, 0.2);
}