body,
html {
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

#dialog{
    position: absolute;
    top: 50%;
    left: calc( (100% - 500px)/2 );
    margin: 0 auto;
    padding: 0 20px;
    width: 500px;
    height: auto;
    font-size: 20px;
    line-height: 20px;
    text-align: center;
    background-image: url('images/panel-back.png');
    background-size: auto;
    font-weight: 400;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.25);/*#dedede;*/
    box-shadow: 2px 5px 7px -2px rgba(0, 0, 0, 0.6), 0px -1px 5px 3px rgba(0, 0, 0, 0.15) inset;/*, -1px -1px 2px 2px rgba(0, 0, 0, 0.15) inset;*/
    background-color: #fff;
    z-index: 300;
}

.header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    color: #fff;
    text-shadow: 3px 1px 3px rgba(0, 0, 0, 0.7);
    background-color: #6f8165;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.close-btn{
    position: relative;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 40px; 
}

#dialog p{
    margin-top: 50px;
    color: #000;
}

#dialog button{
    position: absolute;
    bottom: 0;
    left: calc((100% - 100px)/2);
    margin: 0 auto;
    text-align: center;
    height: 40px;
    width: 100px;
    line-height: 16px;
    font-size: 16px;
    color: #fff;
    text-shadow: 3px 1px 3px rgba(0, 0, 0, 0.7);
    background-color: #6f8165;
    border-radius: 5px;
}

.container{
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.menu{
    position: absolute;
    right: 0;
    top: 0;
    /*min-width: 430px;
    width: 30%;*/
    width: 430px;
    height: 620px;
    margin: 0 auto;
    background-image: url('images/panel-back.png');
    background-size: auto;
    border: 3px solid #dedede;
    box-shadow: 0px 20px 10px -15px rgba(0, 0, 0, 0.6), 3px 3px 20px 10px rgba(0, 0, 0, 0.2) inset, -3px -3px 20px 10px rgba(0, 0, 0, 0.2) inset;
    z-index: 10;
    /*border: 1px solid blue;*/
}

.toggle-panel{
    position: relative;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    height: 30px;
    text-align: center;
}

#toggle-panel{
    position: absolute;
    top: -2px;
    left: calc( (100% - 60px)/2 );
    margin: 0 auto;
    padding: 0;
    width: 60px;
    height: 30px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    font-size: 20px;
    line-height: 20px;
    text-align: center;
    background-image: url('images/panel-back.png');
    background-size: auto;
    font-weight: 600;
    color: #4d4d4d;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: #f2f2f2;
    text-shadow: 3px 1px 3px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.25);/*#dedede;*/
    box-shadow: 2px 5px 7px -2px rgba(0, 0, 0, 0.6), 0px -1px 5px 3px rgba(0, 0, 0, 0.15) inset;/*, -1px -1px 2px 2px rgba(0, 0, 0, 0.15) inset;*/
    z-index: 5;
    cursor: pointer;
}

#toggle-panel:hover{
    color: #fff;
}

.building{
    position: absolute;
    top: 0;
    left: 0;
    margin: 0 auto;
    width: 100%;
}

#building-recolor-result {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    /*mix-blend-mode: multiply;*/
    /*mix-blend-mode: color;*/
    mix-blend-mode: multiply;
    /*border: 1px solid blue;*/
}

#background-building {
    position: absolute;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: contain;
    object-fit: cover;       /* Scale the image so it covers whole area, thus will likely crop */
    object-position: center; /* Center the image within the element */
}

.selected-colors{
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: auto;
    background-color: #f2f2f2;
    border: 1px solid black;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 100;
}

.selected-colors ul{
    margin: 5px 10px 10px 10px;
}

.selected-colors li{
    margin: 0 auto;
    min-height: 70px;
    width: 100%;
    text-align: center;
    /*border: 1px solid red;*/
}

.selected-colors img{
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin: 8px 5px 5px 5px;
    /* outside */
    -webkit-box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);
    -moz-box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);
    box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);

}

.selected-colors section{
    min-height: 75px;
    /*min-width: 120px;*/
    width: 100%;
    height: auto;
    margin: 5px 0 0 0;
    padding: 0;
    position: relative;
    text-align: center;
    /*border: 1px solid gray;*/
}

.selected-colors button{
    position: relative;
    bottom: 25px;
    margin: 5px;
    padding: 0 5px;
    color: #000;
    font-size: 14px;
    line-height: 18px;
    height: 20px;
    width: 50px;
    text-align: center;
    border: 1px solid white;
    border-radius: 2px;
    -webkit-box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);
    -moz-box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);
    box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);
}

.recolor_objects{
    position: relative;
    /*float: left;*/
    /*margin-top: 10px;*/
    flex: 0 0 calc(100% - 10px);
    /*width: 310px;*/
    width: 100%;
    height: auto;
    /*min-height: 270px;
    /*border: 1px solid black;*/
}

.color_palette{
    position: relative;
    top: 20px;
    /*float: right;
    width: calc(100% - 310px);
    height: 480px;*/
    width: 100%;
    min-height: 350px;
    height: auto;
    margin-top: 10px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    /*border: 1px solid red;*/
}

.btns-container{
    position: relative;
    left: 0;
    top: 10px;
    margin: 10px;
    width: auto;
    /*border: 1px solid green;*/
}

.btns-container div{
    position: relative;
    width: 50%;
    height: auto;
    margin: 0 auto;
    display: inline;
    text-align: center;
    /*border: 1px solid yellow;*/
}

.btns-container button{
    margin: 0 auto;
    padding: 8px 15px;
    line-height: 16px;
    font-size: 16px;
    color: #000;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0px 1px #fff;
    background: -webkit-gradient(linear, left top, left bottom, from(#fcfff4), color-stop(40%, #dfe5d7), to(#b3bead));
    background: linear-gradient(to bottom, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
    box-shadow: inset 0px 5px 5px white, 0px 3px 6px 1px rgba(0, 0, 0, 0.5);
    border: 1px solid #6f8165;
    cursor: pointer;
}

.btns-container button:hover{
    box-shadow: inset 0px 5px 5px white, 0px 3px 6px 1px rgba(0, 0, 0, 0.6);
}

#previous, #next{
    margin: 0 auto;
    padding: 0;
    width: 20px;
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    color: white;
    text-shadow: 2px 2px #6f8165;
    background: -webkit-gradient(linear, left top, left bottom, from(#fcfff4), color-stop(40%, #dfe5d7), to(#b3bead));
    background: linear-gradient(to bottom, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
    box-shadow: inset 0px 5px 5px white, 0px 3px 6px 1px rgba(0, 0, 0, 0.5);
    border: 1px solid #6f8165;
    cursor: pointer;
}

#previous:hover, #next:hover{
    transform: scale(1.1);
}

#previous{
    position: absolute;
    bottom: calc(50% - 40px);
    left: 0px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

#next{
    position: absolute;
    bottom: calc(50% - 40px);
    right: 0px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.palette_block{
    position: absolute;
    top: 50px;
    left: 20px;
    margin: 0 auto;
    padding: 10px;
    /*padding: 10px 10px 15px 10px;*/
    width:  calc(100% - 40px);
    /*height: 385px;*/
    height: auto;
    min-height: 290px;
    overflow: hidden;
    /*overflow-y: scroll;*/
    border-radius: 10px;
    background: -webkit-gradient(linear, left top, left bottom, from(#fcfff4), color-stop(40%, #dfe5d7), to(#b3bead));
    background: linear-gradient(to bottom, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
    box-shadow: inset 0px 5px 5px white, 0px 3px 6px 1px rgba(0, 0, 0, 0.5);
    border: 1px solid #6f8165;
    /*border: 3px solid #999999;
    box-shadow: inset 0px 0px 3px 5px rgba(0, 0, 0, 0.15);
    background-color: #f2f2f2;*/
}

.pallette_page{
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    width:  100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

/*.palette_page-hidden{
    visibility: hidden;
}*/

/*.pallettecolor-button{
    margin: 5px;
    padding: 0; 
    /*height: 20px;
    width: 100px;
    line-height: 20px;*/
    /*border: none;
    background-color: transparent; 
    cursor: pointer;
}*/

/*#b1, #b2, #b3, #b4, #b5, #b6, #b7, #b8, #b9, #b10, #b11, #b12, #b13, #b14, #b15, #b16, #b17, #b18, #b19, #b20, 
#b21, #b22, #b23, #b24, #b25, #b26, #b27, #b28, #b29, #b30, #b31, #b32, #b33, #b34, #b35, #b36, #b37, #b38, #b39, #b40, 
#b41, #b42, #b43, #b44, #b45, #b46, #b47, #b48, #b49, #b50, #b51, #b52, #b53, #b0{*/
.palettecolor{
    margin: 5px;
    padding: 0 5px;
    color: #000;
    font-size: 14px;
    line-height: 18px;
    height: 20px;
    width: 50px;
    text-align: center;
    border: 1px solid white;
    border-radius: 2px;
    -webkit-box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);
    -moz-box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);
    box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);
    cursor: pointer;
}

button.palettecolor:hover{
    transform: scale(1.1);
}

button:focus{outline: none;}

h3{
    margin: 0 auto;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    line-height: 24px;
    font-size: 24px;
    color: #6f8165;
    -webkit-text-stroke-width: 0.8px; 
    -webkit-text-stroke-color: #31392d;
    text-shadow: 3px 1px 3px #7b8f70;
}

ul{
    margin: 10px;
    padding: 10px;
    height: auto;
    min-height: 70px;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 10px;
    background: -webkit-gradient(linear, left top, left bottom, from(#fcfff4), color-stop(40%, #dfe5d7), to(#b3bead));
    background: linear-gradient(to bottom, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
    box-shadow: inset 0px 5px 5px white, 0px 3px 6px 1px rgba(0, 0, 0, 0.5);
    border: 1px solid #6f8165;
}

li{
    margin-top: 5px;
    min-height: 85px;
    height: auto;
    min-width: 125px;
    width: 25%;
    /*width: 50%;*/
    /*border: 1px solid red;*/
}

.list-item div{
    display: inline-block;  
    vertical-align: middle;  
    margin-right: 10px;
}

/* .list-item-check */
.list-item-check{
    width: 28px;
    height: 28px;
    position: relative;
    /*margin: 10px;*/
    background: #fcfff4;
    background: -webkit-gradient(linear, left top, left bottom, from(#fcfff4), color-stop(40%, #dfe5d7), to(#b3bead));
    background: linear-gradient(to bottom, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
    box-shadow: inset 0px 1px 1px white, 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
}
.list-item-check label {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 4px;
    left: 4px;
    cursor: pointer;
    background: -webkit-gradient(linear, left top, left bottom, from(#222222), to(#45484d));
    background: linear-gradient(to bottom, #222222 0%, #45484d 100%);
    box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px white;
}
.list-item-check label:after {
    content: '';
    width: 16px;
    height: 16px;
    position: absolute;
    top: 2px;
    left: 2px;
    background: #27ae60;
    background: -webkit-gradient(linear, left top, left bottom, from(#27ae60), to(#145b32));
    background: linear-gradient(to bottom, #27ae60 0%, #145b32 100%);
    box-shadow: inset 0px 1px 1px white, 0px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0;
}
  .list-item-check label:hover::after {
    opacity: 0.3;
}
  .list-item-check input[type=checkbox] {
    visibility: hidden;
}
  .list-item-check input[type=checkbox]:checked + label:after {
    opacity: 1;
}

section{
    min-height: 85px;
    /*min-width: 138px;*/
    height: auto;
    position: relative;
    text-align: center;
    /*border: 1px solid gray;*/
}

section:after{
    content:attr(title);
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    color: #000;
    font-size: 18px;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0px 1px #fff; 
}

.list-image{
    width: 50px;
    height: 50px;
    border-radius: 8px;
    /*margin: 8px 5px 5px 5px;*/
    margin-top: 8px;
    /* outside */
    -webkit-box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);
    -moz-box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);
    box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.75);
    /* inside */
    /*-webkit-box-shadow: inset 1px 1px 20px 5px rgba(204,204,204,1);
    -moz-box-shadow: inset 1px 1px 20px 5px rgba(204,204,204,1);
    box-shadow: inset 1px 1px 20px 5px rgba(204,204,204,1);*/
}

.cls-1 { fill: none; }
.cls-2 { clip-path: url(#clip-path); }
.bricks { fill: none; /* blue */ }
.wood-wall { fill: none; /* purple */ }
.side-wall { fill: none; /* green */}
.concrete-slab { fill: none; /* red */ }