body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: rgb(240, 220, 210);
    color: #333;
    margin: 0;
}

.container {
    width: 100%;
    margin: auto;
    max-width: 1200px; /* Keeps it clean on large screens */
}

h1 {
    color: #e63946;
    font-size: 3rem;
    margin-top: 10px;
    font-family: "Great Vibes", cursive;
}

h2{
    font-family: "Parisienne", cursive; 
    font-size: 2rem;   
}

input {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box; /* Prevents overflow */
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    display: block;
    width: 100%;
    padding: 10px;
    height: 60px;
    margin: 10px 0;
    box-sizing: border-box; /* Prevents overflow */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Arial, sans-serif; /* Set the same font as input */
}

.upload-box {
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    box-sizing: border-box;
}

button {
    background: #e63946;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
}

button:hover {
    background: #b72a38;
}

button.uploading {
    background: #b72a38; /* Same as hover color */
    cursor: not-allowed; /* Optional: show it's disabled */
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding: 10px;
}

/* Thumbnails */
.thumbnail {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 100%; /* Default: 1 per row on small screens */
    position: relative;
}

/* Make images responsive while keeping aspect ratio */
.thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Tablet Layout: 2 per row */
@media (min-width: 600px) {
    .thumbnail {
        flex-basis: calc(50% - 5px);
    }
}

/* Desktop Layout: 3 per row */
@media (min-width: 1024px) {
    .thumbnail {
        flex-basis: calc(33.333% - 5px);
    }
}


/* Text overlay */
.thumbnail p {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px;
    font-size: 0.9rem;
    border-radius: 3px;
}
