220 lines
3.7 KiB
CSS
220 lines
3.7 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--background: #070F2B;
|
|
--primary: #9290C3;
|
|
--secondary: #535C91;
|
|
--highlight: #1B1A55;
|
|
--click-me: pink;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--background);
|
|
color: var(--primary);
|
|
margin: 0;
|
|
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
|
|
}
|
|
|
|
/* Common */
|
|
|
|
a {
|
|
color: var(--click-me);
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Navbar */
|
|
|
|
nav {
|
|
border-radius: 1rem;
|
|
background-color: var(--highlight);
|
|
margin: 1rem;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-links > a {
|
|
border-radius: 0.75rem;
|
|
padding: 0.25rem 0.5rem;
|
|
color: var(--primary);
|
|
text-decoration: none;
|
|
font-size: large;
|
|
}
|
|
|
|
.nav-links > a:hover {
|
|
background-color: var(--secondary);
|
|
}
|
|
|
|
.nav-links:last-child {
|
|
padding-right: 0.75rem;
|
|
}
|
|
|
|
.nav-logo {
|
|
margin-right: auto;
|
|
}
|
|
|
|
.nav-logo > img {
|
|
height: 2.5rem;
|
|
}
|
|
|
|
/* Content */
|
|
|
|
main {
|
|
max-width: 50rem;
|
|
margin: 0 auto;
|
|
padding: 0.5rem 1rem;
|
|
}
|
|
|
|
.section-image {
|
|
width: 100%;
|
|
height: 10rem;
|
|
border-radius: 0.75rem;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* Form Styles */
|
|
|
|
form {
|
|
background-color: var(--highlight);
|
|
padding: 1rem;
|
|
border-radius: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
max-width: 30rem;
|
|
margin: 1rem auto;
|
|
}
|
|
|
|
/* Input, Textarea, Select */
|
|
input, textarea, select {
|
|
background-color: var(--secondary);
|
|
color: var(--primary);
|
|
border: 1px solid var(--primary);
|
|
border-radius: 0.5rem;
|
|
padding: 0.5rem 0.75rem;
|
|
font-size: 1rem;
|
|
font-family: inherit;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
input:focus, textarea:focus, select:focus {
|
|
outline: none;
|
|
border-color: var(--click-me);
|
|
box-shadow: 0 0 0 2px rgba(255, 192, 203, 0.3);
|
|
}
|
|
|
|
/* Button */
|
|
|
|
button {
|
|
background-color: var(--click-me);
|
|
color: var(--background);
|
|
border: none;
|
|
border-radius: 0.75rem;
|
|
padding: 0.5rem 1rem;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s, transform 0.1s;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #ff85c1; /* slightly darker pink for hover */
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
button:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* Gallery */
|
|
|
|
.gallery {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
gap: 1rem;
|
|
margin: 1rem auto;
|
|
max-width: 50rem;
|
|
}
|
|
|
|
.gallery-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
text-align: center;
|
|
background-color: var(--highlight);
|
|
border-radius: 0.75rem;
|
|
overflow: hidden;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.gallery-item img {
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.gallery-item:hover {
|
|
transform: scale(1.05);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.gallery-title {
|
|
padding: 0.5rem;
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Timeline Articles */
|
|
|
|
.articles-timeline {
|
|
position: relative;
|
|
margin: 2rem auto;
|
|
max-width: 50rem;
|
|
padding-left: 2rem;
|
|
border-left: 2px solid var(--primary);
|
|
}
|
|
|
|
.timeline-item {
|
|
position: relative;
|
|
margin-bottom: 2rem;
|
|
padding-left: 1.5rem;
|
|
}
|
|
|
|
.timeline-dot {
|
|
position: absolute;
|
|
left: calc(-2.5rem - 1px);
|
|
top: 1.5rem;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
background-color: var(--primary);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.timeline-item time {
|
|
font-size: 0.875rem;
|
|
color: var(--secondary);
|
|
display: block;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.timeline-content h2 {
|
|
margin: 0.25rem 0;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.timeline-content p {
|
|
margin: 0.25rem 0 0;
|
|
line-height: 1.5;
|
|
}
|