/* 기본 스타일 */
body {
margin: 0;
background: linear-gradient(to bottom, #1a1a1a, #101010);
color: white;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow-y: scroll;
}
header {
text-align: center;
margin-bottom: 30px;
}
header h1 {
font-size: 2.5rem;
font-weight: bold;
color: #fff;
margin: 0;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
/* 타임라인 컨테이너 */
.timeline-container {
max-width: 600px;
width: 90%;
padding: 20px;
}
/* 타임라인 스타일 */
.timeline {
position: relative;
padding-left: 40px;
border-left: 3px solid #f1c40f;
animation: lineGlow 3s infinite alternate;
}
@keyframes lineGlow {
0% {
border-left-color: #f1c40f;
}
100% {
border-left-color: #e74c3c;
}
}
.event {
position: relative;
margin-bottom: 40px;
}
.event:last-child {
margin-bottom: 0;
}
.event .year {
position: absolute;
left: -30px;
top: 0;
font-size: 1.2rem;
font-weight: bold;
color: #f1c40f;
text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.event p {
background: #333;
padding: 15px;
border-radius: 5px;
margin: 0;
animation: fadeInText 1s ease-in-out;
}
@keyframes fadeInText {
from {
opacity: 0;
transform: translateX(10px);
}
to {
opacity: 1;
transform: translateX(0);
}
}