@media only screen and (max-width: 500px) {
    body {
        width:100%;
        height: 100%;
        max-height: 100%;
        min-height: 100%;
        position: absolute;
        left: 0;
        top: 0;
    }
    header {
        width: calc(100% - 30px);
        padding: 10px 15px;
    }
    #on-map-controls {
        width: 90%;
        right: 5%;
        gap: 20px;
        top: 10px;
        font-size: 18px;
    }
    #location-search-form {
        flex-grow: 1;
    }
    #location-search {
        width: calc(100% - 40px);
        padding: 0 25px 0 15px;
    }
    .sliding-hidden {
        left: 0 !important;
        bottom: -100vh !important;
    }
    #marker-info-wrap {
        border-bottom-right-radius: 0;
        border-top-right-radius: 20px;
        border-top-left-radius: 20px;
        width: calc(100% - 40px);
        height: auto;
        box-shadow: 1px -3px 4px 2px rgba(0, 0, 0, 0.3);
        bottom: 0;
        top: auto;
        transition:  bottom 0.3s ease-in;
        padding-bottom: 40px;
    }
    .modal {
        width: 80%;
        padding: 20px;
        margin-top: 100px;
    }
    #popup-wrap {
        width: calc(100% - 40px);
        left: 0;
    }
    #credit-text {
        font-size: 12px;
    }
    #about-link {
        right: 15px;
        top: 12px;
        font-size: 12px;
    }
}