* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4ec 100%);
    min-height: 100vh;
}

.top-header {
    background: linear-gradient(135deg, #ff5f9e, #ff8fb1);
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255, 95, 158, 0.3);
}

.together {
    background: linear-gradient(135deg, rgba(255, 95, 158, 0.1), rgba(255, 143, 177, 0.1));
    padding: 60px 30px;
    text-align: center;
    border-bottom: 2px solid #ff5f9e;
}

.together h1 {
    font-size: 42px;
    color: #ff5f9e;
    margin: 10px 0;
    font-weight: bold;
}

.together h2 {
    font-size: 22px;
    color: #666;
    margin: 10px 0;
}

#togetherTimer {
    font-size: 28px;
    font-weight: bold;
    color: #ff5f9e;
    margin-top: 20px;
    letter-spacing: 1px;
}

.center-area {
    display: flex;
    justify-content: center;
    padding: 50px 30px;
    min-height: calc(100vh - 200px);
}

.card, .quiz-big {
    background: white;
    padding: 50px 45px;
    border-radius: 25px;
    width: 95%;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

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

.quiz-top {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 30px;
    font-size: 18px;
    color: #ff5f9e;
}

#score, #photoScore {
    background: linear-gradient(135deg, rgba(255, 95, 158, 0.1), rgba(255, 143, 177, 0.1));
    padding: 12px 25px;
    border-radius: 12px;
}

#timer, #photoTimer {
    background: linear-gradient(135deg, #ff5f9e, #ff8fb1);
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 18px;
}

#question, #photoQuestion {
    font-size: 26px;
    color: #ff5f9e;
    margin: 20px 0 30px 0;
    font-weight: bold;
    line-height: 1.4;
}

.options-big {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 25px;
    margin-top: 40px;
}

.option-big {
    padding: 30px;
    background: white;
    border-radius: 18px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s;
    border: 2px solid transparent;
    font-weight: 500;
}

.option-big:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.green { background: #b6f2c2; }
.orange { background: #ffd8a8; }
.blue { background: #cfe4ff; }
.red { background: #ffc1c1; }

.final-score {
    font-size: 120px;
    font-weight: bold;
    margin-top: 30px;
    color: #ff5f9e;
    text-shadow: 0 5px 15px rgba(255, 95, 158, 0.2);
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.score-percentage {
    font-size: 64px;
    font-weight: bold;
    color: #ff8fb1;
    min-width: 150px;
}

.result-message {
    font-size: 24px;
    color: #666;
    margin: 25px 0 35px 0;
    font-weight: 500;
}

.password-section {
    background: linear-gradient(135deg, rgba(255, 95, 158, 0.08), rgba(255, 143, 177, 0.08));
    padding: 35px;
    border-radius: 20px;
    margin: 30px 0;
    border: 2px solid rgba(255, 95, 158, 0.2);
}

.password-section h3 {
    font-size: 28px;
    color: #ff5f9e;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.password-section p {
    font-size: 16px;
    color: #666;
    margin: 10px 0;
}

.password-display {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    align-items: center;
    flex-wrap: wrap;
}

#passwordField {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid #ff5f9e;
    border-radius: 12px;
    background: white;
    color: #ff5f9e;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: monospace;
}

.copy-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff5f9e, #ff8fb1);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 95, 158, 0.4);
}

.password-hint {
    font-size: 14px;
    color: #999;
    margin: 15px 0 0 0;
    font-style: italic;
}

.result-actions {
    display: flex;
    gap: 20px;
    margin-top: 35px;
    justify-content: center;
    flex-wrap: wrap;
}

.result-actions button {
    flex: 1;
    min-width: 160px;
    padding: 18px 35px;
    font-size: 18px;
}

.timeline-link {
    display: inline-block;
    padding: 18px 35px;
    background: linear-gradient(135deg, #ff5f9e, #ff8fb1);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 95, 158, 0.3);
}

.timeline-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 95, 158, 0.4);
}

#resultBox {
    max-width: 900px;
}

#resultBox h1 {
    font-size: 42px;
    color: #ff5f9e;
    margin: 0 0 30px 0;
}

button {
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff5f9e, #ff8fb1);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 95, 158, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 95, 158, 0.4);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.checkbox {
    display: block;
    margin: 25px 0;
    font-size: 16px;
}

.checkbox input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff5f9e;
}

.hidden {
    display: none;
}

/* HOME PAGE STYLES */
#startBox {
    max-width: 600px;
}

#startBox h2 {
    font-size: 36px;
    color: #ff5f9e;
    margin: 0 0 20px 0;
    font-weight: bold;
}

#startBox p {
    font-size: 18px;
    color: #666;
    margin: 15px 0;
}

#startBox button {
    padding: 20px 60px;
    font-size: 20px;
    margin-top: 25px;
    width: 100%;
}

/* VERIFICATION SECTION */
#verifyBox {
    max-width: 650px;
}

#verifyBox .card-header {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

#verifyTimer {
    font-size: 48px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff5f9e, #ff8fb1);
    padding: 25px 50px;
    border-radius: 18px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(255, 95, 158, 0.3);
}

#verifyBox h3 {
    font-size: 32px;
    color: #ff5f9e;
    margin: 25px 0;
    font-weight: bold;
}

#verifyBox > p {
    font-size: 18px;
    color: #666;
    margin: 18px 0;
    line-height: 1.6;
}

#verifyBox b {
    color: #ff5f9e;
}

#answer {
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
    border: 2px solid #ff5f9e;
    border-radius: 15px;
    margin: 25px 0;
    transition: all 0.3s;
    background: white;
}

#answer:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 95, 158, 0.15);
    border-color: #ff8fb1;
    background: #fff5f7;
}

#verifyBox button {
    margin: 12px 8px;
    min-width: 140px;
}

.outline {
    background: white;
    color: #ff5f9e;
    border: 2px solid #ff5f9e;
    box-shadow: none;
}

.outline:hover {
    background: #fff5f7;
    box-shadow: 0 5px 15px rgba(255, 95, 158, 0.2);
}

#hintText {
    font-size: 28px;
    color: #ff5f9e;
    margin-top: 25px;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(255, 95, 158, 0.1), rgba(255, 143, 177, 0.1));
    padding: 20px;
    border-radius: 15px;
}

/* SUCCESS SECTION */
#successBox {
    max-width: 700px;
}

#successBox h2 {
    font-size: 36px;
    color: #ff5f9e;
    margin-bottom: 40px;
}

.nav-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.nav-buttons a,
.nav-buttons button {
    flex: 1;
    min-width: 150px;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border-radius: 15px;
    transition: all 0.3s;
}

.nav-buttons a {
    background: linear-gradient(135deg, #ff5f9e, #ff8fb1);
    color: white;
    display: inline-block;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 95, 158, 0.3);
}

.nav-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 95, 158, 0.4);
}

.nav-buttons button:disabled {
    background: #e0e0e0;
    color: #999;
    box-shadow: none;
    cursor: not-allowed;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    color: #ff5f9e;
    font-size: 16px;
    font-weight: bold;
}

/* RULES PAGE STYLES */
#rulesBox {
    max-width: 950px;
}

#rulesBox h2 {
    font-size: 38px;
    color: #ff5f9e;
    margin: 0 0 40px 0;
    font-weight: bold;
}

.rules {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.rules li {
    background: linear-gradient(135deg, rgba(255, 95, 158, 0.05), rgba(255, 143, 177, 0.05));
    padding: 20px 25px;
    margin: 15px 0;
    border-radius: 15px;
    font-size: 18px;
    color: #333;
    border-left: 5px solid #ff5f9e;
    transition: all 0.3s;
    text-align: left;
}

.rules li:hover {
    background: linear-gradient(135deg, rgba(255, 95, 158, 0.1), rgba(255, 143, 177, 0.1));
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(255, 95, 158, 0.2);
}

.rules li:before {
    content: "✓";
    color: #ff5f9e;
    font-weight: bold;
    margin-right: 15px;
    font-size: 20px;
}

/* SCORING SYSTEM */
.scoring-section {
    background: linear-gradient(135deg, rgba(255, 95, 158, 0.08), rgba(255, 143, 177, 0.08));
    padding: 35px;
    border-radius: 20px;
    margin: 30px 0 40px 0;
    border: 2px solid rgba(255, 95, 158, 0.2);
}

.scoring-section h3 {
    font-size: 24px;
    color: #ff5f9e;
    margin: 0 0 25px 0;
    font-weight: bold;
}

.scoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.score-item {
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.score-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.score-item .points {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.score-item .label {
    font-size: 16px;
    opacity: 0.9;
}

#rulesBox #startQuiz {
    padding: 20px 50px;
    font-size: 18px;
    margin-top: 30px;
}

#rulesBox #startQuiz:disabled {
    opacity: 0.5;
}
#photoTransitionBox {
    text-align: center;
    max-width: 700px;
}

#photoTransitionBox h2 {
    font-size: 42px;
    color: #ff5f9e;
    margin: 0 0 20px 0;
    font-weight: bold;
}

#photoTransitionBox p {
    font-size: 20px;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.5;
}

.photo-start-btn {
    padding: 22px 60px;
    background: linear-gradient(135deg, #ff5f9e, #ff8fb1);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(255, 95, 158, 0.3);
    width: 100%;
}

.photo-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 95, 158, 0.4);
}

/* PHOTO QUIZ LAYOUT */
#photoQuizBox {
    max-width: 1000px;
}

.photo-quiz-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin: 30px 0 40px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-section {
    flex: 1;
    min-width: 320px;
    max-width: 550px;
}

.quiz-photo {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    max-height: 450px;
    border: 3px solid white;
    display: block;
}

/* TIMELINE PAGE STYLES */
#passwordVerifyBox {
    max-width: 600px;
}

#passwordVerifyBox h2 {
    font-size: 36px;
    color: #ff5f9e;
    margin: 0 0 15px 0;
    font-weight: bold;
}

#passwordVerifyBox p {
    font-size: 18px;
    color: #666;
    margin: 10px 0 30px 0;
}

.password-input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.timeline-password-input {
    padding: 18px 20px;
    font-size: 18px;
    border: 2px solid #ff5f9e;
    border-radius: 15px;
    background: white;
    color: #333;
    transition: all 0.3s;
    font-family: monospace;
}

.timeline-password-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 95, 158, 0.15);
    border-color: #ff8fb1;
    background: #fff5f7;
}

#passwordVerifyBox button {
    padding: 16px 32px;
    font-size: 18px;
    width: 100%;
}

.password-error {
    color: #e74c3c;
    font-size: 16px;
    margin-top: 15px;
    display: none;
    font-weight: bold;
}

/* TIMELINE SECTION */
.timeline-section {
    width: 100%;
    max-width: 1200px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-header h2 {
    font-size: 42px;
    color: #ff5f9e;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.timeline-header p {
    font-size: 18px;
    color: #666;
    margin: 10px 0;
}

.scroll-hint {
    font-size: 14px;
    color: #ff5f9e;
    margin-top: 15px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* HORIZONTAL SCROLLING TIMELINE */
.timeline-wrapper {
    background: linear-gradient(135deg, rgba(255, 95, 158, 0.05), rgba(255, 143, 177, 0.05));
    padding: 40px 20px;
    border-radius: 25px;
    overflow: hidden;
    margin: 30px 0;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px;
    cursor: grab;
    user-select: none;
}

.timeline-container::-webkit-scrollbar {
    height: 8px;
}

.timeline-container::-webkit-scrollbar-track {
    background: rgba(255, 95, 158, 0.1);
    border-radius: 10px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff5f9e, #ff8fb1);
    border-radius: 10px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8fb1, #ffb3c1);
}

.timeline-item {
    flex-shrink: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

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

.timeline-card {
    background: white;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    min-width: 320px;
    max-width: 350px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.timeline-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(255, 95, 158, 0.2);
    border-color: #ff5f9e;
}

.timeline-emoji {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.timeline-emoji:hover {
    animation: none;
}

.timeline-card:hover .timeline-emoji {
    animation: rotateScale 0.6s ease-out;
}

@keyframes rotateScale {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1.2) rotate(360deg); }
}

.timeline-date {
    font-size: 14px;
    color: #ff5f9e;
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 24px;
    color: #ff5f9e;
    margin: 15px 0;
    font-weight: bold;
}

.timeline-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 15px 0 0 0;
}

/* TIMELINE FOOTER */
.timeline-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff5f9e, #ff8fb1);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 95, 158, 0.3);
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 95, 158, 0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .timeline-card {
        min-width: 290px;
        max-width: 320px;
        padding: 25px 20px;
    }
    
    .timeline-emoji {
        font-size: 48px;
    }
    
    .timeline-title {
        font-size: 20px;
    }
    
    .timeline-header h2 {
        font-size: 32px;
    }
}
