* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Ensure body fills full height */
body {
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    color: #1a1a1a;
    min-height: 100vh; /* Ensure full viewport height */
}

/* Make sure background-wrapper takes available space */
.background-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('./images/bg.gif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Main Container */
.container {
    flex: 1;  /* Take available space, pushing footer down */
    max-width: 50%;
    margin: 3rem auto;
    padding: 0rem 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Header Styles */
header h1 {
    font-size: 3vw;  /* Responsive font size */
    color: #EE2536;
    padding-bottom: 10px;
}

header p {
    font-size: 2vw;  /* Responsive font size */
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 30px;
}

/* Button Styles */
.input-container {
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    font-size: 1vw;  /* Responsive font size */
    background-color: #EE2536;
    color: white;
    border: 2px solid #FF4B5C;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2), inset 1px 1px 3px rgba(255, 255, 255, 0.4);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

/* Hover Effect for Button */
button:hover {
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3), 2px 2px 5px rgba(0, 0, 0, 0.1);
}

button:active {
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.4);
}

/* Result Section Styles */
.result {
    margin-top: 30px;
}

#dynamic-text, #dynamic-text-2, #dynamic-text-3 {
    font-size: 2vw;  /* Responsive font size */
    font-weight: bold;
    color: #EE2536;
}

#static-text {
    font-size: 2vw;  /* Responsive font size */
    font-weight: bold;
    color: #1a1a1a;
}

.underline-placeholder {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    width: 100%;
    background-color: #000;
    color: white;
    font-family: 'Arial', sans-serif;
    padding: 10px 0;
    overflow: hidden;
    text-align: center;
    position: relative; /* Fix any content flow issues */
}

/* Scroll Animation for Footer */
footer span {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-marquee 20s linear infinite;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(180%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Mobile View Adjustments */
@media (max-width: 768px) {
    .container {
        max-width: 95%;
    }

    header h1 {
        font-size: 8vw;  /* Adjust for smaller screens */
    }

    header p {
        font-size: 4vw;  /* Adjust for smaller screens */
    }

    button {
        font-size: 4vw;  /* Adjust for smaller screens */
    }

    #dynamic-text, #dynamic-text-2, #dynamic-text-3 {
        font-size: 5vw;  /* Adjust for smaller screens */
    }

    #static-text {
        font-size: 5vw;  /* Adjust for smaller screens */
    }

    footer p {
        font-size: 2vw;  /* Adjust for smaller screens */
    }
}
