/* Reset default styles for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: url('backgroundimage.png'); /* Replace with your image path */
    background-size: cover; /* Ensures the image covers the entire background */
    background-position: center; /* Centers the image */
    background-attachment: fixed; /* Keeps the image static while content moves */
    background-repeat: no-repeat; /* Prevents tiling */
    color: #333;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevents scrolling */
}

main {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8); /* White overlay with 80% opacity */
    border-radius: 10px; /* Optional: softens the edges */
}

.logo {
    max-width: 600px; /* Adjust based on your logo’s size */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes extra spacing below the image */
    margin: 0 auto 20px auto; /* Centers the logo and adds spacing below */
}

header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #34495e;
}

.content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #7f8c8d;
}

.email-signup {
    margin-top: 20px;
}

.email-signup p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #7f8c8d;
}

form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

input[type="email"] {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 250px;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus {
    border-color: #ef3833;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #ef3833;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

button[name="subscribe"] {
    background-color: #e74c3c; /* A bold red, adjust to your brand */
    padding: 12px 25px;
    font-weight: bold;
}

button[name="subscribe"]:hover {
    background-color: #c0392b;
}

footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* Media Query for Responsiveness */
@media (max-width: 768px) {
    .logo {
        max-width: 150px; /* Smaller logo for tablets */
    }
    
    header h1 {
        font-size: 2rem;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .content p {
        font-size: 1rem;
    }

    input[type="email"] {
        width: 200px;
    }

    button {
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 120px; /* Even smaller for mobile */
    }
    
    header h1 {
        font-size: 1.8rem;
    }

    .content h2 {
        font-size: 1.3rem;
    }

    .content p {
        font-size: 0.9rem;
    }

    form {
        flex-direction: column;
        align-items: center;
    }

    input[type="email"] {
        width: 100%;
        max-width: 250px;
    }

    button {
        width: 100%;
        max-width: 250px;
        padding: 10px;
    }
}