@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sacramento&display=swap');

/* General Styles */
body {
    font-family: 'Work Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #828282;
    margin: 0;
    padding: 0;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bg7.jpg') no-repeat center center fixed;
    background-size: 150%;
    background-position-x: -7rem;
    filter: opacity(65%);
    z-index: -1;
    pointer-events: none;
}

.wrapper {
    position: relative;
    z-index: 1;
}

header {
    background: rgba(247, 247, 247, 0.9); 
    text-align: center;
    padding: 50px 0;
    border-bottom: 1px solid #eaeaea;
}

header h1 {
    font-family: 'Sacramento', Arial, serif;
    font-size: 50px;
    margin: 0 0 10px;
    color: #8cd599;
}

header h2 {
    font-size: 20px;
    margin: 0 0 10px;
    color: #000;
}

.container, .galeria {
    padding: 50px 20px;
    text-align: center;
}

.upload-section, .gallery-section {
    margin: 0 auto;
    max-width: 800px;
}

.upload-section h2, .gallery-section h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.7);
}

#uploadForm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#fileInput {
    display: none;
}

#fileInputLabel {
    background: #8cd599;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 20px;
}

#fileInputLabel:hover {
    background: #76c482; 
}

button[type="submit"] {
    background: #8cd599;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

button[type="submit"]:hover {
    background: #76c482;
}

.loader {
    position:fixed;
    left: 47%;
    transform: translateX(-50%);
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #9B5351;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.upload-message {
    font-size: 22px;
    font-weight:bold;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0c4715;
    color: #ffff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 20px;
    z-index: 9999;
}
