/* Basic Reset */
body, html {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    width: 100%;
    height: 100%;
    font-family: 'Arial';
    box-sizing: border-box;
}

/* Header styles */
header {
    background-color: #0056b3;
    padding: 10px; 
    width: 100%;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

header h1 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 2em;
    line-height: 1.2;
}


header h1 .subtitle{
    font-size: 0.75em;
    color: #fff;
    font-weight: normal;
    margin-inline: 40px;
}

header h2 {
    margin-top: 5px;
    margin-bottom: 0px;
    padding: 0;
    color: #fff;
    font-size: 2em;
    line-height: 1.2;
}

header h2 .and-style{
    font-size: 0.75em;
    color: #fff;
    font-weight: normal;
}

header h2 .main-title-style {
    font-size: 1em;
    font-weight: bold;
    margin-top: 20px; /* Increased margin above .main-title-style */
    margin-bottom: 20px; /* Increased margin below .main-title-style */
    color: #f96705;
}

/* Main content area */
main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-text {
    width: 100%;
    max-width: 475px;
    font-size: 1em; 
    color: #333; 
    line-height: 1.6; 
    text-align: justify;
    margin-top: 20px;
    margin-bottom: 20px; 
    /* padding: 0 20px; */
    color: #666666; 
}

.container {
    width: 100%;
    margin: 0 auto; /* Center the container horizontally */
    max-width: 500px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.205);
    background-color: #fff;
    margin-bottom: 10px;
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box; /* Includes padding in the width calculation */
    text-align: justify;
    color: #666666; /* Text color */
}

.txt{
    border-radius: inherit;
    box-shadow:unset;
    /* padding: 20px; */
    /* padding-: 20px; */
    padding-bottom: 0px;
    margin-bottom: 0px;
    margin-top: 0px;
    padding-top: 0px;
    text-align: justify;

}
.txt-final{
    margin-top: 20px;
    text-align: justify;
}
/* Input fields and select boxes */
.input-field, .select-field, .btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 2px solid #0056b3;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Button styling */
.btn {
    background-color: #0056b3;
    color: white;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: #004494;
}

/* Map container styling */
.map-container {
    width: 100%;
    height: 300px;
    margin-top: 20px;
    padding: 0;
    margin: 0 auto; /* Center the map container if needed */
    margin-top: 10px;
    box-sizing: border-box;
    overflow: hidden; /* Prevents content from overflowing */
}

/* Results container styling */
.results-container {
    width: 100%;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
    color: #333;
    font-size: 16px;
    text-align: left;
    white-space: pre-wrap;
    box-sizing: border-box;
}

.final-text {
    width: 100%;
    margin: 0 auto; /* Center the container horizontally */
    max-width: 475px;
    font-size: 1em; /* Adjust font size as needed */
    color: #666666; /* Text color */
    line-height: 1.6; /* Line height for readability */
    text-align: justify; /* Center align the text */
    margin-top: 20px; /* Space below the paragraph */
    margin-bottom: 20px; /* Space below the paragraph */
    padding: 0 20px; /* Padding to align with the container padding */
}


/* Footer styling */
footer {
    background-color: #868686;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 1em;
    font-family: Calibri;
    width: 100%; /* Ensures the footer takes up full width */
    padding: 0;
    box-sizing: border-box; /* Includes padding in the width calculation, if padding is needed */
    margin: 0 auto;
    
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    
}

footer p {
    margin: 5px 0;
}

.footer-links {
    margin: 5px 0 10px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-links a, .social-media a {
    margin: 0 10px;
}

.social-media {
    margin-top: 25px;
}

.social-media img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.donate-button-container {
    text-align: center;
    margin: 20px 0;
}

#donateButton {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

#donateButton img {
    width: 150px;
    height: 75px;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    header, footer, .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.5em; /* Slightly smaller to fit better on smaller screens */
    }

    header h1 .subtitle {
        font-size: 0.65em;
    }

    .map-container{
        padding: 10px;
        height: 200px

    }
    .container, .results-container {
        padding: 10px;
    }
    .txt{
        padding-left: 20px;
        padding-right: 20px;
        margin-bottom: 0px;
        text-align: justify;
    }

    #donateButton img {
        width: 100px; /* Smaller to fit better on mobile devices */
        height: 50px;
    }

    .social-media img {
        width: 24px; /* Smaller icons for less screen real estate */
        height: 24px;
    }
}