/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ===================================================== */
/* ---------------- LOGIN PAGE STYLES ------------------ */
/* ===================================================== */

.login-body {
    height: 100vh;
    background-image:
    linear-gradient(rgba(255, 192, 203, 0.6),
    rgba(255, 182, 193, 0.6)),
    url("Assets/websitebackground.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

/* Login Container */
.login-container {
    position: relative;
    width: 350px;
    padding: 40px;
    background: rgba(255, 240, 248, 0.95);
    border: 1px solid rgba(255, 182, 193, 0.5);
    border-radius: 25px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.2);
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: center;
    color: #ff69b4;
}

/* Login Title */
.login-container h1 {
    font-size: 2rem;
    color: #ff69b4;
}

/* Inputs */
.login-container input {
    padding: 14px;
    border: 1px solid #ffb6c1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #ff69b4;
    outline: none;
    transition: 0.3s ease;
}

/* Input Focus */
.login-container input:focus {
    background: white;
    border-color: #ff69b4;
    transform: scale(1.02);
}

/* Buttons */
.login-container button {
    padding: 14px;
    border: none;
    border-radius: 14px;
    background-color: #ff9ecf;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Button Hover */
.login-container button:hover {
    background-color: #ff69b4;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
}

/* Pochacco PNG */
.pochacco {
    width: 120px;
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 182, 193, 0.5));
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-8px); }
    100% { transform: translateX(-50%) translateY(0px); }
}

/* Error Message */
#error-message {
    color: #ff4d6d;
    font-size: 0.9rem;
    margin-top: -8px;
    display: none;
}

/* ===================================================== */
/* ----------------- QUIZ PAGE STYLES ------------------ */
/* ===================================================== */

.quiz-body {
    position: relative;
    height: 100vh;
    background-image:
    linear-gradient(rgba(255, 240, 245, 0.8),
    rgba(255, 224, 230, 0.8)),
    url("Assets/quizpagebackground.jpg");

    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 182, 219, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Navbar Links */
.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s ease;
}

.navbar a:hover {
    color: #5d001e;
}

/* Quiz Main Container */
.quiz-container {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #ffb6c1;
    backdrop-filter: blur(12px);
    border-radius: 25px;
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.15);
    width: 90%;
    max-width: 600px;
    height: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px;
    color: #ff69b4;
    text-align: center;
}

/* Quiz Title */
.quiz-container h2 {
    margin-bottom: 30px;
}

/* Animations */
.cinna-dance, .pochacco-dance {
    position: absolute;
    bottom: 50px;
    width: 220px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 182, 193, 0.4));
    pointer-events: none;
}
.cinna-dance { left: 200px; }
.pochacco-dance { right: 70px; }

.quiz-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

/* Individual quiz links */
.quiz-link {
    color: #ff69b4;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 15px 20px;
    width: 100%;
    border-radius: 15px;
    background: rgba(255, 224, 230, 0.5);
    transition: 0.3s ease;
    border: 1px solid #ffb6c1;
    text-align: left;
    cursor: pointer;
}

/* Hover effect */
.quiz-link:hover {
    background: #ff69b4;
    transform: translateX(8px);
    color: white;
}

/* Red state for incorrect quiz answers */
.quiz-link.wrong {
    background: rgba(255, 105, 105, 0.3) !important;
    border: 1px solid #ff6b6b !important;
    color: #8b0000 !important;
    transform: translateX(0);
}

/* ===================================================== */
/* ------------ PHOTO CATALOGUE STYLES ----------------- */
/* ===================================================== */

.gallery-container {
    background: rgba(255, 240, 248, 0.95);
    border: 1px solid #ffb6c1;
    backdrop-filter: blur(12px);
    border-radius: 25px;
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.2);
    width: 95%;
    max-width: 900px;
    max-height: 75vh;
    margin: 0 auto;
    padding: 30px;
    color: #ff69b4;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.gallery-title {
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.gallery-item {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #ffb6c1;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s ease;
    flex: 1 1 auto;
    height: 220px;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: #ff69b4;
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3);
}

.gallery-item img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    flex-grow: 1;
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(255, 182, 193, 0.9);
    backdrop-filter: blur(6px);
    font-size: 0.85rem;
    color: #5d001e;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===================================================== */
/* ----------------- LIGHTBOX STYLES ------------------- */
/* ===================================================== */

.lightbox-target { cursor: pointer; }

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 240, 245, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active { display: flex; opacity: 1; }

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    border: 1px solid #ffb6c1;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
    object-fit: contain;
}

#lightbox-caption {
    color: #ff69b4;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ff69b4;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-close:hover { color: #5d001e; }

/* ===================================================== */
/* ----------- RETRO MYSPACE / EMO STYLES -------------- */
/* ===================================================== */

.retro-home-body {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(255, 240, 245, 0.9), rgba(255, 224, 230, 0.95)), 
                url('https://www.transparenttextures.com/patterns/black-thread.png');
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    overflow-x: hidden;
}

.space-layout-wrapper {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.space-box {
    background: #fffafa;
    border: 2px solid #ffc0cb;
    padding: 20px;
    margin-bottom: 20px;
    color: #ff69b4;
    font-family: "Courier New", Courier, monospace;
    text-align: left;
}

.space-box h2, .space-box h3 {
    font-size: 1.1rem;
    color: #ff69b4;
    background: #ffecf0;
    padding: 6px 12px;
    margin-top: -20px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffc0cb;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.retro-pic {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border: 1px solid #ffb6c1;
    padding: 4px;
    background: #fffafa;
}

.online-indicator { color: #ff69b4; font-size: 0.85rem; margin-top: 8px; font-weight: bold; }

.mood-text { font-size: 0.85rem; color: #ff8ec5; }

.retro-tag {
    font-size: 0.75rem;
    background: #fff0f5;
    border: 1px dashed #ffb6c1;
    color: #ff69b4;
    padding: 4px 8px;
    text-transform: uppercase;
}

.sub-quote {
    margin-top: 15px;
    font-style: italic;
    color: #ff69b4;
    font-size: 0.85rem;
    border-left: 3px solid #ff8ec5;
    padding-left: 10px;
}

.directory-item {
    display: flex;
    flex-direction: column;
    background: #fffafa;
    border: 1px solid #ffc0cb;
    padding: 12px 16px;
    text-decoration: none;
    transition: 0.2s ease;
}

.directory-item:hover {
    border-color: #ff69b4;
    background: #fff0f5;
    transform: translateX(4px);
}

.dir-title { color: #ff69b4; font-weight: bold; font-size: 1rem; margin-bottom: 4px; }
.dir-desc { color: #ff8ec5; font-size: 0.85rem; }

@media (max-width: 768px) {
    .space-layout-wrapper { grid-template-columns: 1fr; }
}
/* ===================================================== */
/* ----------- RETRO INPUTS, BUTTONS & LISTS ----------- */
/* ===================================================== */

/* Style all text inputs inside your layout boxes */
.space-box input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    color: #ff69b4;
    background-color: #ffffff;
    border: 1px solid #ffc0cb;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Subtle focus effect when clicking inside the text fields */
.space-box input[type="text"]:focus {
    border-color: #ff69b4;
    background-color: #fff0f5;
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.15);
}

/* Style all buttons inside your layout boxes to make them cute */
.space-box button {
    width: 100%;
    padding: 10px 14px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ff69b4;
    background-color: #ffecf0;
    border: 1px solid #ffc0cb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cute hover state for buttons (soft, not blinding pink) */
.space-box button:hover {
    background-color: #ffb6c1;
    color: white;
    border-color: #ff69b4;
}

/* Style the lists so items added via JavaScript look beautiful */
.space-box ul {
    list-style-type: none; /* Removes raw default bullet points */
    margin-top: 10px;
    padding: 0;
}

.space-box ul li {
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #ffffff;
    border: 1px dashed #ffc0cb;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #ff69b4;
    word-break: break-word;
}