body {
    overflow: none;
    font-family: 'Quicksand';
    font-weight: 300;
    font-size: 14px;
    color: #2B2A2A;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure that the body takes up at least the full height of the viewport */
}

header, main, footer, .banner {
    text-align: center; /* Center-align the content */
}

header img, footer img {
    display: block;
    margin: 20px auto; /* Center the logo */
    max-width: 256px; /* Ensure the logo doesn't exceed its container's width */
    height: auto; /* Allow the height to adjust proportionally */
    padding: 0;
}

footer img {
    display: block;
    margin: 1px auto; /* Center the logo */
    max-width: 100%; /* Ensure the logo doesn't exceed its container's width */
    height: auto; /* Allow the height to adjust proportionally */
    padding: 0;
}

/* Adjust the logo size for smaller screens */
@media (max-width: 768px) {
    header img {
        width: 55%; /* Reduce the maximum width for smaller screens */
        max-width: 256px;
    }
}

header {
    background-color: #FFFFFF; /* #F3F1EA */ /*rgba(234, 125, 124, 0.6); /*#EA7D7C;*/
    padding: 10px;
}

.banner {
    font-size: 14px;
    background-color: #ffffff;
    padding: 10px;
    padding-top: 12px;
    overflow: hidden; /* Ensure content overflows are hidden */
}

main {
    background-image: url('/public/static/images/allerliebst-background.jpg');
    background-size: cover;
    background-position-x: center;
    background-position-y: top 7.5%;
    padding: 20px;
    min-height: calc(75vh); /* 100vh -120px Adjust the value based on the height of header and footer */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section {
    position: relative;
}

.main-content {
    color: #fff;
    z-index: 1;
    text-align: center;
}

.signup-form {
    background-color: rgba(255, 255, 255, 0.9);
    padding-top: 20px;
    padding-bottom: 32px;
    padding-left: 30px;
    padding-right: 30px;
    text-align: center;
    max-width: 400px; /* Set a maximum width for the form */
    width: 80%; /* Ensure the form takes full width of its container */
    margin-bottom: 20px; /* Add some space at the bottom */
    margin-top: 20px; /* Add some space at the bottom */
    margin: 20px auto;
}

.newsletter-message {
    display: none;
    background-color: rgba(255, 255, 255, 0.9);
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px;
    text-align: center;
    max-width: 400px; /* Set a maximum width for the form */
    width: 80%; /* Ensure the form takes full width of its container */
    margin-bottom: 20px; /* Add some space at the bottom */
    margin-top: 20px; /* Add some space at the bottom */
    margin: 20px auto;
    /* outline: 20px solid rgba(232, 226, 214, 1);
    border: 2px solid #FFF; */
}

.newsletter-message img {
    display: block;
    margin: 0px auto; /* Center the logo */
    max-width: 100%; /* Ensure the logo doesn't exceed its container's width */
    height: auto; /* Allow the height to adjust proportionally */
    padding: 0;
}

#back:hover {
    text-decoration: solid;
}


.overlay {
    position: absolute;
    bottom: -5.25%;
    left: -11.5%;
    width: 50%;
    /* bottom: -21%; /* Adjust as needed to position the SVG image */
    /* left: -34%; /* Adjust as needed to position the SVG image */
    /* width: 100%; /* Adjust the width of the SVG image */
    /* height: auto; /* Ensure the aspect ratio is maintained */
    /* bottom: -130px; /* Adjust as needed to position the SVG image */
    /* left: -235px; /* Adjust as needed to position the SVG image */
    pointer-events: none; /* Ensure the SVG doesn't interfere with form interactions */
}

/* Adjust overlay position for mobile screens */
@media (max-width: 767px) {
    .overlay {
        bottom: -3%;
        left: -14%;
    }
}

/* Adjust overlay position for mobile screens */
@media (max-width: 767px) {
    .overlay {
        display: none;
    }
}


/*.signup-form h3 {
    width: 100%;
    margin-bottom: 10px;
}*/

.signup-form input {
    width: 40%; /* Adjust the width as needed */
    height: 20px; /* Adjust the height as needed */
    margin: 2px;
    padding: 10px; /* Adjust the padding as needed */
    border: 1.5px solid #F3F1EA;
    background-color:rgba(255, 255, 255, 0.75);
    transition: border-color 0.3s; /* Add transition effect for smoother color change */
    border-radius: 0;
}

@media (max-width: 768px) {
    .signup-form input {
        width: 35%; /* Set width to 80% for screens up to 768px wide */
    }
}

/* Adjust button width for larger screens */
@media (min-width: 768px) {
    .signup-form input {
        width: 40%; /* Set width to 50% for screens larger than 768px wide */
    }
}

.signup-form input:focus {
    border: 1.5px solid rgba(245, 190, 190, 0.9);
    outline: none;
}

::placeholder {
    opacity: 0.6;
    color: #2B2A2A;
}

::-ms-input-placeholder { /* Edge 12 -18 */
    opacity: 0.6;
    color: #2B2A2A;
}

button {
    font-family: 'Quicksand';
    font-weight: 300;
    font-size: 14px;
    color: #2B2A2A;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: #F3F1EA; /*#E8E2D6;*/
    border: none;
    cursor: pointer;
}

/* Adjust button width for smaller screens */
@media (max-width: 768px) {
    button {
        width: 80%; /* Set width to 80% for screens up to 768px wide */
    }
}

/* Adjust button width for larger screens */
@media (min-width: 768px) {
    button {
        width: 60%; /* Set width to 50% for screens larger than 768px wide */
    }
}

button:hover {
    background-color: #F3F1EA;
}

footer {
    background-color: #ffffff;
    padding-top: 20px;
}

.marquee{
    font-family: 'Quicksand';
    font-weight: 300;
    font-size: 14px;
    color: #2B2A2A;
}

/* Adjust font size for smaller screens */
    @media (max-width: 768px) {
    .marquee {
        font-size: 10px;
    }
}

h1 {
    font-size: 32px; /* Set font size based on viewport width with minimum of 24px and maximum of 36px */
}

/* Adjust heading size for smaller screens */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(20px, 6vw, 32px); /* Set font size based on viewport width with minimum of 20px and maximum of 28px for smaller screens */
    }
}
