body {
    font-family: 'Playfair Display', serif;
    background: #f5f0fa url('gray-floral.png') repeat;
    margin: 0;
    padding: 0;
    color: #2d0031;
}

.container {
    max-width: 600px;
    margin: 2em auto;
    padding: 2em;
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(75, 0, 130, 0.15);
}

h1, h2 {
    text-align: center;
    color: #4b0082;
}

form {
    text-align: center;
}

input[type="password"],
input[type="text"] {
    padding: 0.5em;
    margin: 0.5em 0;
    width: 80%;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

button {
    padding: 0.6em 1.2em;
    background: #6a0dad;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 1em;
    transition: background 0.3s ease;
}

button:hover {
    background: #55008c;
}

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 1em;
    flex-wrap: nowrap;
    justify-content: space-between;
    flex-direction: row;
    flex: 0 1 auto;
    flex-grow: 1;
    overflow: hidden;
    flex-wrap: nowrap;
}

.tab-button {
    flex: 1 1 auto;
    min-width: 0; /* allow shrinking */
    padding: 0.3em 0.6em;
    font-size: 0.85em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* ✅ Mobile-specific override to allow wrapping */
@media (max-width: 600px) {
    .tabs {
        flex-wrap: wrap; /* allow the row to wrap onto multiple lines */
    }

    .tab-button {
        white-space: normal;   /* allow the text to wrap */
        text-overflow: unset;
    }
}

.tab-button.active {
    background: #6a0dad;
    color: white;
}


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.photo-row {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
    margin-top: 1em;
}

.photo-row img {
    max-width: 100%;
    width: 300px;
    border-radius: 8px;
}

.photo-caption a {
    text-decoration: none;
    font-size: 14px;
}

.photo-caption a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin: 0.5em 0;
    padding: 0.5em;
    background: #f3f3f3;
    border-radius: 6px;
}

a {
    color: #6a0dad;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .tabs button {
        flex: 1 1 100%;
    }
}

.admin-link {
    font-size: 0.8em;
    color: #6a0dad;
    text-decoration: none;
    margin-left: 10px;
}
.admin-link:hover {
    text-decoration: underline;
}

.site-footer {
    margin-top: 3em;
    text-align: center;
    font-size: 0.95em;
    color: #666;
}

.footer-links {
    margin-bottom: 0.5em;
}

.footer-link {
    display: inline-block;
    min-width: 80px;
    padding: 0.4em 0.6em;
    margin: 0 0.5em;
    text-decoration: none;
    color: #6a0dad;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-contact a {
    color: #6a0dad;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.registry-link {
    text-align: center;
    margin-top: 2em;
}

.registry-link a {
    font-size: 1.1em;
    text-decoration: none;
    color: #6a0dad; /* Or your preferred link color */
}

.registry-link a:hover {
    text-decoration: underline;
}

.success-message {
    color: green;
    text-align: center;
    margin-top: 1em;
    font-weight: bold;
}

.flip-number {
    display: inline-block;
    background: #222;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.2),
    inset 0 2px 0 rgba(0, 0, 0, 0.4);
    position: relative;
}

.flip-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.numbers-section {
    text-align: center;
    margin-top: 1.5em;
}

.numbers-section p {
    margin: 0.3em 0;
}

.thank-you-section {
    background: linear-gradient(135deg, #f5e6ff 0%, #e6d5f5 100%);
    border: 2px solid #6a0dad;
    border-radius: 12px;
    padding: 2em;
    margin-bottom: 2em;
    text-align: center;
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.2);
}

.thank-you-title {
    color: #4b0082;
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.thank-you-message {
    color: #2d0031;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
}


