﻿/* Global styles for the SnackHub application */
html,
body,
#ApplicationContainer {
    width: 100vw;
    height: 100vh;
}

#ApplicationContainer {
    position: relative;
    overflow: hidden;
}

#app-map {
    position: absolute;
    left: 0;
    top: 4rem;
    right: 0;
    bottom: 0;
}

#vendor-details {
    max-height: 55vh;
    overflow-y: auto;
}

#app-map-overlay {
    /*pointer-events: none;*/
    overflow: hidden;
    position: absolute;
    /*left: 0;*/
    top: 4rem;
    right: 0;
    /*bottom: 0;
    display: flex;
    flex-direction: column;*/
    /*justify-content: space-between;*/
    padding: 3rem;
    width: 30rem;
}

@media only screen and (max-width: 600px){
    #app-map-overlay {
        overflow: visible;
        overflow-y: auto;
        position: absolute;
        width: 100vw;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 0rem;
        max-height: 100vh;
        padding-top: 4rem;
    }

    #vendor-details {
        overflow-y: visible;
        max-height: none;
    }

}

    /*#app-map-overlay .overlay-details {
        pointer-events: all;
        overflow: auto;
        display: flex;
        flex-direction: column;
        flex-basis: 20rem;
        background-color: white;*/
        /*opacity: 0.5;*/
    /*}*/

/*@media (min-width: 768px) {
    #app-map-overlay {
        flex-direction: row;
    }

        #app-map-overlay .overlay-locations {
            display: flex;
            flex-direction: column;
            flex-basis: 18rem;
            align-self: flex-start;
        }

        #app-map-overlay .overlay-details {
            display: flex;
            flex-direction: column;
            flex-basis: 20rem;
        }
}*/


#editor-create-map {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

#editor-edit-map {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.spinner {
    width: 40px;
    height: 40px;
    display: block;
    position: fixed;
    top: calc( 50% - ( 40px / 2) );
    right: calc( 50% - ( 40px / 2) );
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #333;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

@-webkit-keyframes sk-bounce {
    0%, 100% {
        -webkit-transform: scale(0.0)
    }

    50% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes sk-bounce {
    0%, 100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    }

    50% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}

/*Scroll Bar*/

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 0 5px 5px 0;
    background: LightGray;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: SlateBlue;
    border-radius: 0 5px 5px 0;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #424242;
    }