.bottom-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    margin-bottom: 0;
}

.main-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1.1em;
    border-radius: 8px;
    background: #bc8a5f;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border: none;
    transition: background 0.2s;
    cursor: pointer;
    margin: 0;
}
.main-btn:hover {
    background: #8b4513;
}
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

body {
    font-family: 'Lora', serif;
    background-color: #f8f9fa;
    color: #343a40;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100vw;
    display: block;
    box-sizing: border-box;
}

h1, h2, h3, .uploader-caption {
    font-family: 'Dancing Script', cursive;
}

h2 {
    font-size: 2.5em;
    color: #495057;
    margin-top: 0;
}

.login-container, .upload-container, .admin-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    width: 100%;
    border: 1px solid #eaeaea;
    text-align: center;
}

.slideshow-body {
    padding: 0;
    overflow: hidden;
    background-image: url('fonback2.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.slideshow-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: transparent;
}

#slideshow {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide img {
    max-width: 90%;
    max-height: 75vh;
}

.uploader-caption {
    margin-top: 20px;
    font-size: 1.8em;
    color: #6c757d;
}

.music-player {
    position: fixed;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 30px;
}

.nav-links {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.nav-links a {
    color: #495057;
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #666;
}

input, select {
    width: 100%;
    padding: 12px;
    background: #fbfbfb;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 8px;
    font-family: 'Lora', serif;
    box-sizing: border-box;
}

button {
    background-color: #8e9aaf;
    color: #fff;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    font-size: 1.1em;
    font-family: 'Lora', serif;
    transition: all 0.3s;
}

button:hover {
    background-color: #7a869a;
    transform: translateY(-2px);
}

.media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.media-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.error { color: #d9534f; background: #f2dede; padding: 10px; border-radius: 5px; }
.message { color: #5cb85c; background: #dff0d8; padding: 10px; border-radius: 5px; }

.top-header, .no-print, .admin-nav, .container, .export-container {
    margin-left: auto !important;
    margin-right: auto !important;
    left: 0;
    right: 0;
    float: none !important;
}

@page {
    size: A4;
    margin: 10mm;
}

@media print {
    html, body {
        width: 210mm;
        height: 297mm;
        margin: 0;
        padding: 0;
        background: #fff !important;
        font-size: 13pt !important;
        line-height: 1.4 !important;
        box-sizing: border-box;
    }
    .export-container {
        width: 180mm;
        min-height: 257mm;
        max-width: 180mm;
        margin: 15mm auto;
        padding: 0;
        box-shadow: none;
        border: none;
        background: #fff !important;
        page-break-after: always;
        page-break-inside: avoid;
        box-sizing: border-box;
    }
    .export-header h1, h2, h3 {
        font-size: 18pt !important;
        margin-bottom: 10px;
    }
    .collage-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8mm !important;
        margin-bottom: 10mm !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .collage-item {
        page-break-inside: avoid;
        break-inside: avoid;
        aspect-ratio: 4/3;
        width: 100%;
        height: 55mm;
        margin: 0;
        padding: 0;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    .collage-item-inner, .collage-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        box-sizing: border-box;
    }
    .message-export-list {
        column-count: 2;
        column-gap: 8mm;
    }
    .message-box {
        page-break-inside: avoid;
        break-inside: avoid;
        min-height: 20mm;
        max-height: 40mm;
        font-size: 12pt !important;
    }
    .btn, .button-row, .instruction-box {
        display: none !important;
    }
    * {
        box-sizing: border-box !important;
    }
}
