:root {
    --primary-color: #d4a373; /* Elegant gold/tan */
    --text-color: #333;
    --bg-color: #fefae0;
    --success-color: #ccd5ae;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 500px;
    width: 100%;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

header p {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background 0.3s;
    background-color: #faedcd;
}

.upload-area:hover {
    background-color: #f0e4c8;
}

.upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-btn .icon {
    font-size: 3rem;
}

#preview-container img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    margin-top: 10px;
}

.hidden {
    display: none;
}

.gallery-link-container {
    margin-top: 20px;
}

.gallery-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.input-group {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    resize: vertical;
    font-family: inherit;
    min-height: 80px;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

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

#status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
}

#status-message.success {
    background-color: var(--success-color);
    color: #4a5d23;
}

#status-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #999;
}

/* Modern Theme Variation */
.theme-modern {
    background: #1a1a1a;
    color: #f0f0f0;
    border-radius: 0;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.theme-modern header h1 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #007bff;
    font-weight: 900;
}

.theme-modern .upload-area {
    border: 1px solid #333;
    background-color: #222;
}

.theme-modern button {
    background-color: #007bff;
    border-radius: 0;
}
.join-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1.2rem;
    text-align: center;
}

.join-error {
    color: #721c24;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}
