html, body {
    font-size: 16px;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    box-sizing: border-box;
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    html, body {
        font-size: 18px;
        margin: 0;
        padding: 0;
        font-family: 'Nunito', sans-serif;
        box-sizing: border-box;    }
} 

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    html, body {
        font-size: 16px;
        margin: 0;
        padding: 0;
        font-family: 'Nunito', sans-serif;
        box-sizing: border-box;    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    html, body {
        font-size: 14px;
        margin: 0;
        padding: 0;
        font-family: 'Nunito', sans-serif;
        box-sizing: border-box;    }
} 

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    html, body {
        font-size: 12px;
        margin: 0;
        padding: 0;
        font-family: 'Nunito', sans-serif;
        box-sizing: border-box;    }
}

.container {
    display: flex;
}

#search-info {
    width: auto !important;
    padding: 12px;
    position: relative;
    max-height: none;
    max-width: 789px;
    min-width: 450px;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    border: thin solid black;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;

}

#search-info .ui-resizable-s, #search-info .ui-resizable-e, #search-info .ui-resizable-se {
    display: none;
}

#search-info > * {
    position: relative;
}

/* Mobile-first: controls are stacked vertically */
#search-controls {
    flex-direction: column;
    display: flex;
    justify-content: flex-start; /* aligns children to the left */
    align-items: center;
}

#draggable-area {
    position: relative;
    width: 100%;
    height: 100%;
}

/* At wider screen widths, controls are arranged horizontally */
@media only screen and (min-width: 600px) {
    #search-controls {
        flex-direction: row;
        display: flex;
        justify-content: flex-start; /* aligns children to the left */
        align-items: center;
    }
}

#teamSelect {
    display: inline-flex;
    width: 200px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

#resetButton {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: inline-flex; /* Change display to inline-flex */
    justify-content: center;
    align-items: center;
    margin-left: 10px; /* Add margin-left */
    margin-bottom: 8px;
    font-size: inherit; /* inherits font size from #search-info */
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    min-width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    max-height: 100%; /* Add max-height */
    overflow: auto; /* Add overflow */
    background-color: rgba(255, 255, 255);
}

.image {
    width: 33%;
}

.image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: none;
    object-fit: cover;
    transition: width .2s;
}


.details {
    flex: 1 1 auto;
    width: 100%;
}

.details h3, .details p {
    transition: transform .2s; /* Animation */
}

@media screen and (min-width: 600px) {
    .image img {
        width: 150px; /* Change scale to width */
    }
}

#close-container {
    position: absolute;
    z-index: 1001;
    right: 10px;
    top: 10px;
}

#close-button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}


#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; /* Make the map fill the entire page */
}

#searchInput {
    display: inline-flex;
    width: 250px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

#info {
    position: relative;
}

.details .row {
    display: flex;
}

.details .column {
    flex: 1;
}

