Files
purplebored.pl/assets/css/style.css

215 lines
3.2 KiB
CSS

@font-face {
font-family: "Clockopia";
src: url("../fonts/Clockopia.ttf") format("truetype");
}
@font-face {
font-family: "LuxiSans";
src: url("../fonts/luxisr.ttf") format("truetype");
}
body {
margin: 0;
padding: 0;
display: flex;
height: 100vh;
overflow: hidden;
background-color: #0e0016;
color: white;
font-family: "LuxiSans", sans-serif;
}
/* === NAVBAR ON THE RIGHT === */
.navbar {
width: 140px;
background-color: #3c1a4d;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
padding-top: 2rem;
padding-bottom: 2rem;
position: fixed;
right: 0;
top: 0;
bottom: 0;
z-index: 20;
}
.navbar ul {
list-style: none;
margin: 0;
padding: 0;
width: 100%;
}
.navbar li {
width: 100%;
position: relative;
}
.navbar a {
display: block;
color: white;
text-decoration: none;
text-align: center;
padding: 0.75rem 0;
position: relative;
transition: background 0.2s ease, color 0.2s ease;
}
/* === Full-width divider lines === */
.navbar a::before,
.navbar a::after {
content: "";
display: block;
position: absolute;
left: 0;
width: 100%;
height: 1px;
background-color: rgba(255, 255, 255, 0.25);
transition: background-color 0.2s ease;
}
.navbar a::before {
top: 0;
}
.navbar a::after {
bottom: 0;
}
.navbar a:hover {
background-color: #5e2b7a;
color: #fff5a8;
}
.navbar a:hover::before,
.navbar a:hover::after {
background-color: #fff5a8;
}
/* === MAIN CONTENT === */
.content {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
padding: 0 10% 0 10%;
gap: 5%;
z-index: 10;
position: relative;
}
/* === LEFT SIDE (UZI IMAGE) === */
.left {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
.uzi {
width: 90%;
max-width: 650px;
height: auto;
pointer-events: none;
}
/* === MIDDLE SECTION (TEXT + BADGES) === */
.middle {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
text-align: left;
z-index: 10;
}
.middle h1 {
font-family: "Clockopia", sans-serif;
font-size: 3.5rem;
margin-bottom: 1rem;
color: #fff5a8;
}
.middle p {
font-size: 1.1rem;
line-height: 1.7;
margin-bottom: 1rem;
max-width: 550px;
}
.buttons {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 1.5rem;
}
.buttons img {
width: 88px;
height: 31px;
border: none;
image-rendering: pixelated;
}
/* === BACKGROUND CANVAS === */
#night {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -9999;
}
.clouds {
position: fixed;
bottom: -70px;
left: 0;
width: 100%;
height: auto;
z-index: -1; /* behind content but above star canvas */
pointer-events: none;
overflow: hidden;
}
.clouds img {
width: 100%;
height: auto;
display: block;
opacity: 0.5; /* soften the layer */
filter: blur(1px);
}
@media (max-width: 900px) {
body {
flex-direction: column;
}
.navbar {
position: relative;
width: 100%;
height: auto;
flex-direction: row;
justify-content: center;
padding: 0.5rem 0;
}
.navbar ul {
display: flex;
gap: 1rem;
}
.content {
flex-direction: column;
padding: 2rem;
text-align: center;
}
.uzi {
width: 70%;
}
}