/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: 'Karla', sans-serif;
    background-color: #0c0c0c;
}

.landing-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    padding: 0 5%;
    position: relative;
    flex-wrap: wrap;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    /* Fade-in effect */
    z-index: 1;
    /* Ensure it is behind the content */
}

.background-container.fade-in {
    opacity: 1;
    /* Show the container with fade-in effect */
}

.background-container.fade-out {
    opacity: 0;
    /* Hide the container with fade-out effect */
}

header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 20px;
    z-index: 2;
    /* Ensure it is above the background */
}

.logo {
    width: 400px;
    height: auto;
    margin-top: -100px;
}

.content {
    max-width: 800px;
    color: white;
    z-index: 2;
    margin-top: 100px;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    /* Add shadow to text */
}

.content h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: left;
    /* Ensure the text is left-aligned */
}

.content p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
    /* Ensure the text is left-aligned */
}

.subscribe-form {
    display: flex;
    flex-direction: row;
    /* Make the input and button align horizontally */
    justify-content: flex-start;
    /* Align items to the left */
    gap: 10px;
    /* Add some space between the input and button */
}

.subscribe-form input[type="email"] {
    padding: 0.75rem;
    font-size: 1rem;
    font-family: 'Karla', sans-serif;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
    /* Set a fixed width to fit average email length */
}

.subscribe-form input[type="email"]::placeholder {
    font-family: 'Karla', sans-serif;
}

.subscribe-form button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: 'Karla', sans-serif;
    color: white;
    background-color: #3F2A76;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
    background-color: #2A2054;
}

.tshirt-image {
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 50%;
    height: auto;
    z-index: 1;
}

@media (max-width: 768px) {
    .landing-container {
        justify-content: center;
        text-align: center;
    }

    .logo {
        width: 250px;
        position: static;
        margin-bottom: 20px;
        padding-bottom: 20px;
        margin-top: -40px;
        transform: none;
    }

    .content {
        max-width: 85%;
        margin-top: 0;
        margin-right: 0;
        text-align: left;
        /* Ensure content is left-aligned on mobile */
    }

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

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

    .subscribe-form {
        flex-direction: row;
        /* Maintain row layout on mobile */
        justify-content: flex-start;
        /* Align items to the left */
    }

    .subscribe-form input[type="email"] {
        width: 220px;
        /* Slightly smaller width for mobile */
    }

    .subscribe-form button {
        width: auto;
    }

    .tshirt-image {
        position: absolute;
        bottom: 20px;
        right: 20px;
        max-width: 40%;
    }
}

@media (max-width: 480px) {
    .content h1 {
        font-size: 1.2rem;
        /* Further shrink heading size on very small screens */
    }

    .content p {
        font-size: 0.65rem;
        /* Further shrink paragraph size on very small screens */
    }
}

#serverResponse {
    margin-top: 10px;
    /* Adjust the margin to give space above the response */
    padding: 10px;
    /* Add padding to make the response text stand out */
    color: white;
    /* Make the response text white */
    font-size: 1rem;
    /* Adjust font size if needed */
}

/* Add transition effect to the button */
.subscribe-form button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: 'Karla', sans-serif;
    color: white;
    background-color: #3F2A76;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* Add transition for transform */
}

.subscribe-form button:hover {
    background-color: #2A2054;
}

/* Add a new class for the animation */
.subscribe-form button.animate-left {
    transform: translateX(-100px);
    /* Move the button slightly to the left */
}

/* Loader styles */
.loader {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    z-index: 9999;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}