html {
    overflow: hidden;
}

#map {
    position: absolute;
    top: 52px;
    bottom: 0;
    width: 100%;
    height: calc(100% - 52px);
    right: 0;
    transition: all 300ms ease;
}

.earthquake {
    background-image: url('../images/qt_marker_center.png');
    background-size: cover;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* Search Form */
#search-list {
    position: relative;
    width: 460px;
    padding-right: 20px;
    height: calc(100% - 52px);
    transition: all 300ms ease;
    overflow: hidden;
}
#search-list .box {
    padding: 0 0 1.25rem;
    width: 440px;
}
#search-list.collapsed {
    width: 0px;
    padding-right: 0px;
}

#search-options {
    padding: 1.25rem 1.25rem 0 1.25rem;
    height: 365px;
    overflow: hidden;
    transition: all 300ms ease;
}
#search-options.collapsed {
    height: 68px;
}
#search-options.collapsed #reset-params {
    visibility: hidden;
}
#search-options .title {
    margin-bottom: 1rem;
}
.form-row {
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    align-items: center;
}
form {
    display: flex;
    flex-direction: column;
    margin-right: 1rem;
}
.select select {
    font-family: 'Outfit', sans-serif;
}
hr {
    background-color: rgb(119, 119, 119);
    margin-bottom: .5rem;
}
#collapse-search {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 20px;
    left: 185px;
    width: 30px;
    height: 20px;
    background-color: white;
    z-index: 1;
    outline: solid 2px grey;
    border-radius: 3px;
    cursor: pointer;
}
#reset-params {
    position: relative;
    top: -347px;
    right: -378px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    z-index: 1;
    cursor: pointer;
    visibility: visible;
}
#collapse-list {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 323px;
    left: 440px;
    width: 20px;
    height: 30px;
    background-color: white;
    z-index: 1;
    border: solid 2px grey;
    border-left: none;
    border-radius: 3px;
    cursor: pointer;
    visibility: hidden;
}
#search-list:hover #collapse-list {
    visibility: visible;
}
#search-prompt {
    position: absolute;
    top: 52px;
    left: 0px;
    width: 440px;
    visibility: hidden;
}
#search-prompt .box {
    padding: 1.25rem;
}
#search-prompt h2 {
    font-size: 1.5rem !important;
}
#search-prompt.list {
    top: 72px;
    left: 20px;
    width: 70%;
    max-width: 600px;
}
#search-prompt.list .box {
    padding: 0.9rem;
}
#search-prompt.list h2 {
    font-size: 1.25rem !important;
}
#search-prompt:hover .box {
    background-color: #eaeaea;
}
#search-prompt .title {
    color: rgb(119, 119, 119);
}
#search-prompt .box {
    /* box-shadow: none; */
    /* border: 2px solid rgb(119, 119, 119); */
}

#quake-list {
    height: calc(100% - 365px);
    overflow-y: auto;
    overflow-x: hidden;
}
#quake-list.full {
    height: calc(100% - 52px);
}

/* Media Queries */
@media screen and (max-width: 440px) {
    #search-list {
        width: 100%;
        padding-right: 0px;
        height: calc(100% - 32px);
    }
    #search-list .box {
        width: 100%;
    }

    #search-options {
        padding-top: .5rem;
        height: 325px;
    }
    #search-options.collapsed {
        height: 52px;
    }
    #search-options h2 {
        font-size: 1.3rem;
    }
    #search-options h2:before {
        content: '\1F814';
        font-size: 2rem;
        margin-right: 1rem;
        position: relative;
        top: 5px;
    }
    label {
        font-size: .8rem;
    }
    .input {
        max-width: 90%;
        font-size: .6rem;
    }
    .select.is-small {
        font-size: .6rem;
    }
    .select select {
        max-width: 90%;
    }
    .select:after {
        right: 1.25rem !important;
    }
    form {
        margin-right: 0;
        max-width: 45%;
    }
    #result-text {
        font-size: .8rem;
        margin-left: .5rem !important;
    }
    #search-btn {
        font-size: .9rem;
    }
    #collapse-search {
        left: 45%;
    }
    #reset-params {
        top: -325px;
        left: 93%;
    }

    #search-prompt {
        width: 100%;
    }
    #search-prompt .box {
        padding: .9rem;
    }
    #search-prompt h2 {
        font-size: 1.25rem;
    }
    #search-prompt.list {
        top: 72px;
        left: 0px;
        width: 100%;
    }

    #quake-list.full {
        height: calc(100% - 36px);
    }

    .mapboxgl-ctrl-top-right {
        top: 80px;
    }
}
@media (hover: none) {
    #collapse-list {
        visibility: visible;
    }
}