html, body {
    background-color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 200;
    height: 100vh;
    margin: 0;
}
header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    justify-items: center;
    align-items: center;
    font-size: 25px;
}
img {
    max-width: 100%;
    max-height: 100%;
}
a {
    text-decoration: none;
}
h2 {
    display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0;
    margin-inline-end: 0;
    font-weight: bold;
}
.header-side {
    width: 225px;
    display: flex;
    justify-content: space-evenly;
}
.c {
    padding: 0 2rem;
    max-width: 100ch;
    margin: 0 auto;
}
.full-height {
    height: 100vh;
}
.position-ref {
    position: relative;
}
.content {
    text-align: center;
}
.title {
    font-size: 7vw;
}
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;}
.logo-image-container img {
    width: 130px;
    height: 80px
}
.logo-name-container img {
    width: 145px;
    height: 40px
}
.main-image, #main-image {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: black;  /* Black background color */
}
/* Background container with fading effect */
.bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: bottom center;
    transition: opacity 1.5s ease-in-out;
    opacity: 1;
}
/* Add a fading effect when changing images */

.bg.fade-out {
    opacity: 0;  /* Fade out effect (opacity goes to 0) */
}

.bg.fade-in {
    opacity: 1;  /* Fade in effect (opacity goes back to 1) */
}
.over-image-top {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.welcome-message {
    font-size: 30px;
    color: #fff;
    font-family: Arial;
}
.search-form{
    display:absolute;
    justify-content: center;
    align-content: center;
    top: 50%;
    left: 50%;
    flex-direction: column;
}
.form-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: center;
    background-color: rgb(242, 242, 242); /* White background for the form */
    border-radius: 12px; /* Make it pill-shaped */
    width: 1150px;
    height: 75px; /* Increased height for better spacing */
    margin: 0 auto;
}

/* Form Group for Floating Labels */
.form-group {
    position: relative;
    width: 300px;
    display: flex;
    flex-direction: column;
}

/* Floating Labels */
.form-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    background: rgb(242, 242, 242); /* Matches form background */
    padding: 0 5px;
    color: gray;
    transition: 0.3s ease-in-out;
    pointer-events: none;
    font-size: 14px;
    border-radius: 4px;
}

/* Input Fields */
.form-group input {
    font-size: 16px;
    height: 30px;
    border-radius: 8px;
    font-family: Arial, serif;
    border: 1px solid #ccc;
    padding: 10px;
    outline: none;
}

/* Move label up when input is focused or has a value */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: 4px;
    font-size: 12px;
    color: #000;
}
.search-button {
    background-color: #2161c1;
    border: none;
    color: white;
    height: 50px;
    width: 80px;
    text-decoration: none;
    display: inline-block;
    border-radius: 25px;
    font-size: 18px;
}
.search-button:hover {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}
.listings-count {
    background-color: lightgreen;
    text-align: center;
}
/* .sign-in {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: center;
    margin: 25px;
    background-color:rgb(0, 34, 79);
    text-align: center;
    align-content: center;
    color: #fff;
    width: 60%;
    height: 100px;
    font-size: 18px;
    position: absolute;
    border-radius: 25px;
} */
#dropdown { position: absolute;top: 1.5em;right: 1em;background: white;flex-direction: column;z-index: 2; }
#dropdown > a { padding: 0.3em;border: solid 1px black; }
.top-cards { display: grid;grid-template-columns: repeat(auto-fit,minmax(19rem,1fr)); }
.listing-card{ padding: 10px;display: flex;flex-direction: column;text-align: left; }
.listing-card > img { border-top-left-radius: 10px;border-top-right-radius: 10px;box-shadow: -2px -4px 10px lightgrey; }
.listing-card > div{
    border-left: solid 1px black;
    border-bottom: solid 1px black;
    border-right: solid 1px black;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 8px 16px;
    box-shadow: -2px 5px 10px lightgrey;
    position: relative;
}
.listing-card > div > a {
    position: absolute;
    right: 16px;
    top: 16px;
    height:60px;
    width:90px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color:black;
    background-color: #efefef;
    border:solid 2px;
    border-radius:8px;
    text-decoration: none;
}
.text-content { display: flex;flex-wrap: wrap;max-width: fit-content;text-align: left;margin: 0 auto; }
.text-content > div { flex-grow: 1;padding: 0 2em;background-color: #f2f2f2; }
.text-main { max-width: 780px; }
.text-side { flex-grow: 1;width: 300px;max-width: 780px;display:flex;flex-direction: column;align-items: center; }
footer {border-top:solid 1px grey;}
footer > div { display: flex;text-align: left;padding: 0px 20px;max-width: 1208px;margin: 0px auto; flex-wrap: wrap; }
footer > div > div { border-left: solid 1px lightgrey;padding: 0 20px;margin: 20px 0px; }
.pre_defined_search {
    height: 200px;
    display: flex;
}
.pre_defined_search > * {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
.long_term {
    background-color: lightgrey;
}

@media screen and (max-width: 1200px) {
    .form-main {
        display: flex;
        background-color: rgb(242, 242, 242);
        border-radius: 12px;
        flex-direction: column;
        align-items: center;
        height: unset;
        width: unset;
    }
    .form-group {
        padding: 12px
    }
    .search-button {
        margin-bottom: 12px;
    }
}
