
.writingone {
    font-family: "Bebas Neue", serif;
    font-weight: 400;
    font-style: normal;
}

.writingtwo {
    font-family: "Fjalla One", serif;
    font-weight: 400;
    font-style: normal;
}

/* Contact Box */

body {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../static/apartment-4358755_1280.jpg');
    opacity: 0.9;
    width: 100%;
    min-height: 100vh; /* Use min-height for full viewport height */
    margin: 0; /* Reset default body margin */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
}

#contactbox {
    background-color: #000000;
    color: white;
    border-radius: 25px;
    margin: 20px; /* Adjust margin for better spacing on smaller screens */
    width: 90%; /* Start with a larger percentage for smaller screens */
    max-width: 450px; /* Limit the maximum width on larger screens */
    box-shadow: -2px 2px 15px rgba(0, 0, 0, 0.5);
}

#contactbox h3 {
    font-size: 1.8rem; /* Slightly larger font */
    text-align: center;
    font-weight: bold;
    color: #FFAB00;
    margin-top: 20px; /* Add some top margin */
}

#contactbox h6 {
    font-size: 1.2rem;
    text-align: center;
    font-style: italic;
    color: #FFAB00;
}

.formbox {
    padding: 40px; /* Adjust padding */
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Make children take full width */
}

.formbox .underlineh {
    width: 50px; /* Slightly wider underline */
    height: 4px;
    background: #FFAB00;
    margin: 10px auto 25px; /* Center the underline and adjust spacing */
    border-radius: 5px;
    transition: transform 0.5s ease-in-out; /* Smoother transition */
}

.input-field {
    background: #333; /* Darker background for input fields */
    margin-bottom: 15px; /* Consistent bottom margin */
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 10px; /* Add padding inside the input field */
    overflow: hidden;
}

.input-field i {
    margin-right: 15px;
    color: #ddd; /* Lighter color for icons */
    font-size: 1.2rem;
}

.input-field input {
    width: 100%;
    background: transparent; /* Make input background transparent */
    border: none;
    outline: none;
    color: white;
    font-size: 1rem;
    padding: 8px 0; /* Adjust input padding */
}

.input-field input::placeholder {
    color: #aaa; /* Light color for placeholder text */
}

form p {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 20px;
}

form p a {
    font-style: italic;
    color: #FFAB00;
    text-decoration: none;
}

/* SIGN IN SIGN OUT BUTTONS */
.btn-field {
    display: flex;
    gap: 10px; /* Space between buttons */
}

button {
    border: none;
    border-radius: 10px;
    background-color: #FFAB00;
    color: black;
    font-weight: bold;
    padding: 10px 15px; /* More comfortable padding */
    cursor: pointer;
    transition: background 0.3s ease; /* Smoother hover effect */
    flex-grow: 1; /* Make buttons take equal width */
    font-size: 1rem;
}

button:hover {
    background-color: #e09b00; /* Darker shade on hover */
}

.disable {
    background-color: #555;
    color: #ddd;
    cursor: default;
}

.disable:hover {
    background-color: #555;
}

/* Initially hide the name field for "Sign In" state */
.signin-active .namefield {
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.signup-active .namefield {
    max-height: 60px; /* Adjust as needed for the height of the name field */
    transition: max-height 0.3s ease-in;
}

.signin-active #title {
    content: 'Sign In'; /* Cannot directly change content with CSS */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #contactbox {
        width: 80%;
    }

    .formbox {
        padding: 30px;
    }

    .input-field i {
        margin-right: 10px;
    }

    .btn-field {
        flex-direction: column; /* Stack buttons on smaller screens */
        gap: 15px;
    }

    button {
        width: 100%; /* Full width buttons on smaller screens */
    }
}

@media (max-width: 480px) {
    #contactbox {
        width: 95%;
    }

    .formbox {
        padding: 20px;
    }

    #contactbox h3 {
        font-size: 1.6rem;
    }
}