body {
    background-color: #FBF3CA;
}
.title {
    font-size: 25px ;
}
.container.contact-form {
    background-color: #fdecc9;
    max-height: 250px;
    overflow: auto;
    font-size: 12px;
    padding: 5px;
    width: 400px; /* Set the width of the container */
    margin: 0 auto; /* Center the container */
    margin-bottom: 15px;
    border-radius: 10px;
}

.contact-box.compact {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.contact-box h2 {
    margin-top: 0;
    font-size: 14px;
    margin-bottom: 5px; /* Reduced bottom margin */
}

.contact-box form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 5px;
    margin-bottom: 5px; /* Reduced bottom margin */
}

.contact-box input {
    padding: 4px; /* Reduced padding */
    font-size: 12px;
    height: 25px; /* Set the height of input fields */
}

.contact-box textarea {
    padding: 4px; /* Reduced padding */
    font-size: 12px;
    height: 50px; /* Increased height for textarea */
}
.contact-box button {
    grid-column: span 1;
    padding: 4px 0;
    width: 100px;
}
/*end of paste*/
.contact-info {
    text-align: center;
    margin-top: 0px;
}
.contact-info a {
    font-size: 12px;
    margin: 0 5px;
}

.container {
    padding: 20px;
    border-radius: 10px;
}
nav ul li strong {
    color: #306060;
}
footer {
    background-color: #fdecc9;
    padding: 10px 0;
    text-align: center;
    max-width: 400px !important;
}

/* Media query for mobile devices */
@media (max-width: 767px) {
    /* Adjust container width */
    .container.contact-form {
        width: 100%; /* Full width on mobile */
        height: 100%;
        max-height: 275px;
        background-color: #FBF3CA;
    }

    /* Adjust form to single column layout */
    .contact-box form {
        grid-template-columns: 1fr;
    }

    /* Adjust button width */
    .contact-box button {
        width: 100%; /* Full width button on mobile */
    }

    /* Adjust footer width */
    footer {
        max-width: 100%; /* Full width on mobile */
        background-color: #FBF3CA;
    }

    /* Mobile-specific styles for navigation bar */
    nav ul {
        flex-direction: row; /* Stack nav items horizontally*/
        padding: 0; /* Remove padding */
    }
    .container-fluid {
        flex-direction: column;
    }
    nav ul li {
        width: 100%; /* Full width nav items */
        text-align: center; /* Center-align items */
    }
}