/* Map Maker */
#container {
    height: 80vh;
    width: 100vw;
}

.map-maker {
    height: 100%;
    width: 100%;
    position: relative;
}


.map-maker--map-container,
.map-maker-container {
    width: 100%;
    height: 100%;
}

.map-maker__large .descriptionWrapper {
    width: calc(100% - 379px); 
}

.map-maker__medium .descriptionWrapper {
    width: calc(100% - 379px); 
}

.map-maker__small .descriptionWrapper {
    width: calc(100% - 379px); 
}

.map-maker__large .map-maker-container--editor {
    width: calc(100% - 379px); 
    height: 100%;
    float: left;
    background: #448dbd;
    padding: 40px 70px;
    /* padding-top: 70px; */
    /* padding-bottom: 70px; */
    box-sizing: border-box;
}

.map-maker__large .map-maker-container--sidebar {
    /* padding-top: 70px; */
    width: 319px;
    float: right;
}

.map-maker__medium .map-maker-container--editor {
    width: 100%;
    height: calc(100% - 179px);
    background: #448dbd;
    padding: 30px;
    /* padding-top: 20px; */
    padding-bottom: 20px;
    box-sizing: border-box;
}

.map-maker__medium .map-maker-container--sidebar {
    /* padding-top: 20px; */
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
}

.map-maker__medium .map-maker-container--sidebar div {
    height: 80px;
    padding: 0;
    padding-left: 0px;
    overflow-y: hidden;
    padding-right: 20px;
    overflow-x: scroll;
}

.map-maker-container--editor h4 {
    font-family: 'Lato', sans-serif;
    color: white;
    display: inline;
    padding-right: 40px;
}

.map-maker-container--sidebar div {
    height: 100%;
    max-height: 600px;
    overflow-y: scroll;
    background: white;
    padding: 18px;

}

/* width */
.map-maker-container--sidebar div::-webkit-scrollbar {
    width: 10px;
}

/* Track */
.map-maker-container--sidebar div::-webkit-scrollbar-track {
    background: #fff;
}

/* Handle */
.map-maker-container--sidebar div::-webkit-scrollbar-thumb {
    background: #f5f4f0;
}

/* Handle on hover */
.map-maker-container--sidebar div::-webkit-scrollbar-thumb:hover {
    background: #e1e1e0;
}

.map-maker-container--sidebar .map-maker--img {
    border: solid;
    border-width: 1px;
    border-color: #f7f6f3;
    margin: 10px;
}

.map-maker__medium .map-maker--img {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
}

/* button, */
.map-maker-container--sidebar select {
    display: block;
    box-sizing: border-box;
    outline: none;
    border: none;
    border-radius: 30px;
    background: #1d4d7b;
    color: white;
    font-family: 'Lato', sans-serif;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align-last: center;

    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 40px;
    padding-right: 40px;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.map-maker-container--sidebar select {
    margin-top:0px;
    font-weight: 900;
    background-image: url("/wp-content/plugins/acf-map-maker/assets/graphics/icons/svg/arrow_down.svg");
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: center right 35px;
}

.map-maker__medium .map-maker-container--sidebar select {
    margin-left: 0px;
    margin-bottom: 20px;
}

.map-maker__medium button {
    margin-bottom: 20px;
}

/* button {
    background: rgba(0, 0, 0, 0);
    border: solid;
    border-width: 1px;
    transition: background .25s;
    transition: color .25s;
    border-color: white;
}

html:not(.touch) button:hover, 
button.active {
    background-color: white;
    color: #448dbd;
} */


.map-maker-container--sidebar select span {
    font-weight: 400;
}

.map-maker-container--sidebar .ui-selectmenu-button .ui-selectmenu-icon.ui-icon.ui-icon-triangle-1-s {
    background-image: url("http://code.jquery.com/ui/1.12.1/themes/base/images/ui-icons_ffffff_256x240.png") !important;
}

.ui-selectmenu-open {
    margin-top: 20px;
}

.map-maker--img {
    /*border: solid;*/
    width: 70px;
    height: 70px;
    box-sizing: border-box;
    cursor: grab;
    z-index: 0;
}

.ui-draggable-dragging {
    cursor: grabbing;
}

table {
    border-spacing: 0;
}

.map-maker--map {
    padding: 40px 40px 0px 0px;
    empty-cells: inherit;
    background: white;
    background-size: cover;
    border: none;
    margin: 0;
    border-collapse: inherit;
    border-spacing: inherit;
    display: inherit;
}

.map-maker--map td {
    border-left: solid;
    border-top: solid;
    border-width: 1px;
    margin: 0px;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    border-color: #575757;
    background-size: contain;
    border-bottom: none;
    padding: 0;

}

.map-maker--map tr:last-child td {
    border-bottom: solid;
    border-width: 1px;
}

.map-maker--map td:last-child {
    border-right: solid;
    border-width: 1px;
}

.map-maker--map tr td:first-child {
    border-bottom: none;
    border-top: none;
    border-left: none;
}

.map-maker--map tr:last-child td {
    border-bottom: none;
    border-left: none;
    border-right: none;
}


/* ************************************************************** */


body {
    padding: 0px;
    margin: 0px;
    background: #f5f4f0;
}

body,
html {
    width: 100%;
    height: 100%;
    padding: 0px;
    margin: 0px;
}

.mapMakerImgToolbarContainer {
    position: absolute;
    box-sizing: border-box;
    margin-left: -8px;
    margin-top: -8px;
    border: solid;
    border-color: #044d7f;
    border-width: 8px;
    border-radius: 9px;
    text-align: center;
}

.imgToolbar {
    width: 101%;
    height: 25px;
    background: #044d7f;
    position: absolute;
    bottom: -1px;

}

.imgToolbar-element {
    background: #448dbd;
    width: 25%;
    padding: 3px;
    margin-right: 2px;
    margin-left: 2px;
    display: inline-block;
    border-radius: 100px;
    margin-top: 3px;
    cursor: pointer;
    max-width: 21px;
}


/* ************************************************************** */


/* button {
    display: block;
    box-sizing: border-box;
    margin-bottom: 5px;
} */



.button__container {
    /* border:1px solid red !important; */
    position: relative;
    display: inline-block;
    right: 0px;
    margin-left: 5px;
}

.button__header {
    /* border:1px solid rgb(255, 136, 0) !important; */
    height: 20px;
}



.paper-size__container {
    /* border:1px solid yellow !important; */
    position: relative;
    display: inline-block;
    top: 0px;
    left: 0px;
    margin-right: 10px;
}

.paper-size__header {
    /* border:1px solid rgb(255, 136, 0) !important; */
    position: relative;
    height: 20px;
    top: -10px;
    left: 10px;
    
    color: white;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
}





/* ************************************************************** */
/* Background Image Selection */
/* ************************************************************** */
/*#region */

.bg-selection__container {
    /* border:1px solid blue !important; */
    position: relative;
    display: inline-block;
}

.bg-selection__elements > div {
    display: inline-block;
    width: 44px;
    height: 44px;
    margin-right: 5px;
    margin-bottom: 2px;
    background-size: cover;
    
    border: solid;
    border-radius: 22px;
    border-color: white;
    border-width: 1.5px;
    cursor: pointer;
}

.bg-selection__header {
    /* border:1px solid rgb(255, 136, 0) !important; */
    position: relative;
    height: 20px;
    top: -10px;
    left: 0px;
    color: white;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
}



/*#region backgrounds  */

/* Colors */
.bg-sand {
    color: #575757;
    background: #a09777;
}

.bg-rock {
    color: #575757; 
    background: #6b8f83;
}

.mm-bg-white {
    color: #575757;
    background: white;
}

.bg-sand td, .bg-rock td, .mm-bg-white td {
    color: #575757;
    border-color: #575757;
}

/* Images */
.bg-fantasy-world-1 {
    color: white;
    background-image: url("/wp-content/plugins/acf-map-maker/assets/graphics/backgrounds/fantasy-world-1.png");
}
.bg-fantasy-world-2 {
    color: white;
    background-image: url("/wp-content/plugins/acf-map-maker/assets/graphics/backgrounds/fantasy-world-2.png");
}
.bg-in-the-nature-1 {
    color: white;
    background-image: url("/wp-content/plugins/acf-map-maker/assets/graphics/backgrounds/in-the-nature-1.png");
}
.bg-in-the-nature-2 {
    color: white;
    background-image: url("/wp-content/plugins/acf-map-maker/assets/graphics/backgrounds/in-the-nature-2.png");
}
.bg-my-community-1 {
    color: white;
    background-image: url("/wp-content/plugins/acf-map-maker/assets/graphics/backgrounds/my-community-1.png");
}
.bg-my-community-2 {
    color: white;
    background-image: url("/wp-content/plugins/acf-map-maker/assets/graphics/backgrounds/my-community-2.png");
}
.bg-my-community-3 {
    color: white;
    background-image: url("/wp-content/plugins/acf-map-maker/assets/graphics/backgrounds/my-community-3.png");
}
.bg-space-1 {
    color: white;
    background-image: url("/wp-content/plugins/acf-map-maker/assets/graphics/backgrounds/space-1.png");
}
.bg-space-2 {
    color: white;
    background-image: url("/wp-content/plugins/acf-map-maker/assets/graphics/backgrounds/space-2.png");
}

.bg-galaxy {
    color:white;
    background-image: url("/wp-content/plugins/acf-map-maker/assets/graphics/backgrounds/galaxy.png");
}
.bg-park {
    color:white;
    background-image: url("/wp-content/plugins/acf-map-maker/assets/graphics/backgrounds/park-background.png");
}

.bg-fantasy-world-1 td, .bg-fantasy-world-2 td,
.bg-in-the-nature-1 td, .bg-in-the-nature-2 td,
.bg-my-community-1 td, .bg-my-community-2 td, .bg-my-community-3 td,
.bg-space-1 td, .bg-space-2 td,
.bg-galaxy td, .bg-park td {
    color: white;
    border-color: white;
}

/*#endregion backgrounds */


/*#endregion */



.map-maker-container-footer {
    margin-top: -85px;
}

.map-maker__medium .map-maker-container-footer {
    margin-top: -95px;
}

.hover-droppable-img {
    background-size: contain;
    width: 100%;
    height: 100%;
    -webkit-filter: grayscale(100%);
    /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
    opacity: .35;
}


.map-maker.map-maker--view-only .map-maker-container-header,
.map-maker.map-maker--view-only .map-maker-container-footer,
.map-maker.map-maker--view-only .map-maker-container--sidebar {
    display: none;
}

.map-maker-container-header {
    /* border:1px solid rgb(255, 0, 255) !important; */
    position: relative;
    padding-bottom: 10px;
}

.map-maker.map-maker--view-only .map-maker-container--editor {
    width: 100%;
    padding: 0px;
    background: rgba(0, 0, 0, 0);
}

.map-maker.map-maker--view-only .map-maker--img {
    cursor: default;
}


html {
  -webkit-tap-highlight-color:transparent;
}