@font-face {
    font-family: 'Kaligrafika';
    src: url('../fonts/Miama.ttf') format('truetype');
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

h2, h3 {
    color: #333;
}

#titlos {
    text-align: center;
    font-size: 52px;
    font-family: 'Kaligrafika', cursive;
    margin-top: 10px;
    margin-bottom: 30px;
    color: #8B5E3C;
}

@media screen and (min-width: 1025px) {
    #titlos {
        font-size: 72px;
    }
}

/* Slideshow */
.slideshow-container {
    width: 90%;
    max-width: 800px;
    position: relative;
    margin: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.slide {
    display: none;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.active {
    display: block;
}

/* Φόρμα ανεβάσματος */
.upload-title {
    text-align: center;
    font-family: 'Kaligrafika', cursive;
    font-size: 32px;
    font-weight: bold;
    margin-top: 40px;  /* Δημιουργεί απόσταση από το slideshow */
    margin-bottom: 20px; /* Προσαρμόζει την απόσταση από τη φόρμα */
}

@media screen and (min-width: 1025px) {
    .upload-title {
        font-size: 40px;
    }
}

form {
    background: white;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    margin: 5px 0;
}

input, textarea {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
}

#fileInput {
    display: none; /* Κρύβουμε το default κουμπί */
}

.custom-file-button {
    background-color: white;
    color: black;
    font-size: 18px;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid black;
    display: inline-block;
    transition: all 0.3s ease;
    margin-bottom:20px;
}

.custom-file-button:hover {
    background-color: black;
    color: white;
}


button {
    background: linear-gradient(45deg, #8B5E3C, #f8c75c, #f1a736, #d68a2e, #8B5E3C);
    color: white;
     padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(139, 94, 60, 0.4), 0 0 25px rgba(139, 94, 60, 0.3);
}

button:hover {
    box-shadow: 0 8px 20px rgba(139, 94, 60, 0.6), 0 0 30px rgba(139, 94, 60, 0.5);
}

/* Preview Εικόνων */
.preview-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.preview-container img {
    max-width: 100px;
    margin: 5px;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.photo {
    margin: 10px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

.petal {
    position: absolute;
    top: -50px; /* Ξεκινάει έξω από την οθόνη */
    width: 30px;
    height: 30px;
    background-image: url('../imgs/petal.png');
    background-size: cover;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

#petal-container {
    position: fixed;  /* Τοποθετεί το container πάνω από την υπόλοιπη σελίδα */
    top: 0;
    left: 0;
    width: 100vw;   /* Καλύπτει όλο το πλάτος του viewport */
    height: 100vh;  /* Καλύπτει όλο το ύψος του viewport */
    overflow: hidden;  /* Κρύβει το overflow μόνο μέσα στο container */
    pointer-events: none;  /* Αποτρέπει την αλληλεπίδραση με τα πετάλατα */
    z-index: -1;  /* Εξασφαλίζει ότι είναι πάνω από τα υπόλοιπα στοιχεία */
    opacity: 0.3;
}

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 10px;
    text-align: center;
    z-index: 9999;
    display: none; /* Αρχικά κρυφό */
}

#loading .hourglass {
    display: inline-block;
    font-size: 40px;
    animation: rotate 3s infinite linear;
}

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

