:root {
    --primary-color: #77dd77;
    --secondary-color: #b2e2b2;
    --accent-color: #ff6961;
    --text-color: #555;
    --background-color: #fdfdfd;
    --white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
}

h1, h2, h3 {
    font-family: 'Great Vibes', cursive;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }

a { text-decoration: none; color: inherit; }

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: inline-block;
    margin: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    background-color: #6bc96b;
}

.btn-secondary {
    background-color: #ccc;
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-block;
    margin: 10px;
}

/* Login Form */
.login-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 2px solid var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Timeline */
.timeline-container {
    width: 100%;
    max-width: 800px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 40px;
}

.timeline-item::after {
    content: '♥';
    position: absolute;
    top: 25px;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    font-size: 14px;
}

.timeline-item:nth-child(odd)::after {
    right: -15px;
}

.timeline-item:nth-child(even)::after {
    left: -15px;
}

.timeline-content {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-color);
}

.timeline-content img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

.date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Question Page */
.hidden {
    display: none;
}
#success-message {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    padding: 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
        text-align: left;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after {
        left: 5px;
    }
}
