pages/styles.css
sageTheDM 0d0adb1a7b made the css dynamic WoW that's gonna get Patrick so many *female dogs* (#8)
Reviewed-on: https://interstellardevelopment.org/code/code/interstellar_development/pages/pulls/8
Reviewed-by: Patrick <patrick_pluto@noreply.localhost>
Co-authored-by: sageTheDM <info@photofuel.tech>
Co-committed-by: sageTheDM <info@photofuel.tech>
2024-09-06 10:37:35 +02:00

316 lines
6.6 KiB
CSS

/*
interstellar_development website
Copyright (C) 2024 interstellar_development
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
:root {
--background-color: #0b0c1d;
--text-color: #c7d5e0;
--accent-color: #ffdd55;
--accent-hover-color: #ffd700;
--dark-blue: rgba(31, 42, 64, 1);
--dark-blue-translucent: rgba(31, 42, 64, 0.9);
--light-blue: rgba(46, 58, 95, 0.8);
--border-radius: 8px;
--transition-speed: 0.3s;
--box-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
--font-size-large: 2.5em;
--font-size-medium: 1.8em;
}
/* Reset and normalize */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Body styling */
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: "Arial", sans-serif;
line-height: 1.6;
padding: 0 20px;
background: url("images/star.jpg") no-repeat center center fixed;
background-size: cover;
}
/* Header styling */
header {
background-color: var(--dark-blue);
position: fixed;
width: 100%;
padding: 15px 20px;
top: 0;
left: 0;
margin-bottom: 10em;
box-shadow: var(--box-shadow);
backdrop-filter: blur(5px);
z-index: 100;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
header ul {
list-style: none;
display: flex;
gap: 20px;
}
header ul li a {
text-decoration: none;
color: var(--accent-color);
font-weight: bold;
padding: 5px 10px;
border-radius: var(--border-radius);
transition: background-color var(--transition-speed), color var(--transition-speed);
}
header ul li a:hover {
background-color: rgba(255, 221, 85, 0.3);
color: #fff;
box-shadow: 0 0 10px var(--accent-color);
}
/* Old project name styling */
.project-name {
font-size: 1.5em;
color: var(--accent-color);
text-decoration: none;
transition: color var(--transition-speed), text-shadow var(--transition-speed);
}
.project-name:hover {
color: var(--accent-hover-color);
text-shadow: 0 0 10px var(--accent-hover-color);
}
/* Article styling */
article {
max-width: 800px;
margin: 6.25em auto;
padding: 20px;
background-color: var(--dark-blue-translucent);
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
backdrop-filter: blur(5px);
}
article h1 {
font-size: var(--font-size-large);
margin-bottom: 20px;
color: var(--accent-color);
text-shadow: 0 0 15px var(--accent-color);
}
article p {
color: var(--text-color);
margin-bottom: 20px;
hyphens: auto;
}
/* Download list */
article h2 {
font-size: var(--font-size-medium);
margin: 20px 0 10px;
color: var(--accent-color);
text-shadow: 0 0 10px var(--accent-color);
}
article ul {
list-style-type: none;
padding: 0;
}
article ul li {
background-color: var(--light-blue);
margin-bottom: 10px;
border-radius: var(--border-radius);
padding: 10px;
transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}
article ul li:hover {
background-color: rgba(68, 80, 124, 0.9);
box-shadow: 0 0 10px var(--accent-color);
}
article ul li a {
text-decoration: none;
color: var(--accent-color);
font-weight: bold;
}
/* Footer styling */
footer {
background-color: var(--dark-blue);
padding: 10px 20px;
color: var(--text-color);
width: 100%;
position: fixed;
bottom: 0;
left: 0;
box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.7);
backdrop-filter: blur(5px);
}
.footer-content {
text-align: center;
font-size: 0.9em;
}
/* Old card styles */
section .cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-top: 50px;
}
section .card {
text-align: center;
list-style: none;
background-color: rgba(46, 58, 95, 0.9);
padding: 20px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
border: 1px solid #3a4971;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
section .card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(255, 221, 85, 0.5);
}
section .card img {
height: 80px;
width: 80px;
object-fit: cover;
border-radius: 50%;
margin: 0 auto 15px;
box-shadow: 0 0 10px rgba(255, 221, 85, 0.5);
}
section .card h3 {
margin: 10px 0;
font-size: 1.2em;
font-weight: bold;
color: var(--accent-color);
text-shadow: 0 0 10px var(--accent-color);
}
section .card p {
flex-grow: 1;
color: var(--text-color);
margin-bottom: 10px;
}
section .card::before {
content: "";
position: absolute;
top: 10px;
right: 10px;
width: 24px;
height: 24px;
background: url("path-to-cosmic-icon.svg") no-repeat center;
background-size: contain;
}
section .card .suit-icon {
position: absolute;
bottom: 10px;
right: 10px;
width: 24px;
height: 24px;
background: url("path-to-suit-icon.svg") no-repeat center;
background-size: contain;
}
/* Form styling */
form {
max-width: 600px;
margin: 0 auto;
background: var(--dark-blue-translucent);
padding: 20px;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
backdrop-filter: blur(5px);
}
form label,
form input,
form textarea {
color: var(--text-color);
background-color: var(--light-blue);
border: 1px solid #3a4971;
border-radius: 4px;
}
form input,
form textarea {
width: 100%;
padding: 10px;
margin-bottom: 15px;
}
form button {
background-color: var(--accent-color);
color: var(--background-color);
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
transition: background-color var(--transition-speed);
}
form button:hover {
background-color: var(--accent-hover-color);
}
/* Responsive design */
@media (max-width: 768px) {
header ul {
flex-direction: column;
gap: 10px;
}
article {
margin: 12em 10px;
padding: 15px;
}
section .card {
padding: 12px;
}
section .card img {
height: 60px;
width: 60px;
}
}