/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    background-image: url('images/excited_Zamboner.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    color: #212529;
}

body::before {
    content: "ZAMBONER.CA";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1); /* Slightly more transparent */
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    body::before {
        font-size: 5rem; /* Smaller watermark for smaller screens */
    }
}

/* Container Styling */
.container {
    position: relative;
    margin: auto;
    background: rgba(255, 255, 255, 0.85); /* Add background transparency */
    padding: 30px; /* Increased padding */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    max-width: 800px; /* Increased width */
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 95%;
    }
}

/* Headings */
h1 {
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
}

/* Meme Container Styling */
.meme-container {
    position: relative;
    width: 100%;
    max-height: 500px; /* Increased max height */
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    text-align: center;
}

.meme-container img {
    width: 100%;
    height: auto;
}

/* Meme Text Styling */
.meme-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 100%; /* Prevent overflow */
    color: white;
    font-size: 2.5rem; /* Slightly larger text */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
    word-wrap: break-word;
    cursor: grab; /* Show that it's draggable */
}

.meme-text:active {
    cursor: grabbing; /* Change cursor when dragging */
}

.meme-text.top {
    top: 20px; /* Adjusted position */
}

.meme-text.bottom {
    bottom: 20px; /* Adjusted position */
}

/* Form Styling */
form {
    margin-bottom: 20px;
    width: 100%;
}

/* Button Styling */
button {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50px; /* Modern Rounded Buttons */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Social Media Buttons */
button#shareFacebook:hover {
    background-color: #2d4373;
}

button#shareTwitter:hover {
    background-color: #0d95e8;
}

button#shareReddit:hover {
    background-color: #c23d1b;
}

/* Ensure buttons fit in container */
button {
    margin: 5px 0;
}

/* Meme Gallery Thumbnail Styling */
.meme-thumbnail {
    width: 120px; /* Slightly larger thumbnails */
    height: auto;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.meme-thumbnail:hover {
    transform: scale(1.1);
    border-color: #007bff;
}

/* Background Banner */
.background-banner {
    text-align: center;
    padding: 30px 0; /* Reduce padding slightly */
    background: linear-gradient(45deg, #ff9a9e, #fad0c4); /* Add subtle gradient */
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.background-banner h1 {
    font-size: 3rem;
    margin: 0;
}

.background-banner p {
    font-size: 1.5rem;
    margin: 10px 0 0;
}

@media (max-width: 768px) {
    .background-banner h1 {
        font-size: 2rem;
    }

    .background-banner p {
        font-size: 1rem;
    }
}

/* Fixed Footer */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 0;
    font-size: 1.2rem;
    z-index: 1000;
}

.fixed-footer strong:hover {
    color: #ff4500; /* Change color when hovering over "Zamboner.ca" */
    text-decoration: underline;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.fixed-footer + .container {
    margin-bottom: 60px; /* Add margin to prevent footer overlap */
}
