/*/!*************************** Positioning********************************!/*/

body {
    display: -webkit-flex; /* Safari 6.1+ */
    /*display: -ms-flex; /* IE 10 */
    display: flex;
    -webkit-flex-direction: column; /* Safari 6.1+ */
    -ms-flex-direction: column; /* IE 10 */
    flex-direction: column;
    -webkit-justify-content: space-between; /* Safari 6.1+ */
    -ms-justify-content: space-between; /* IE 10 */
    justify-content: space-between; /* Header top, footer bottom */
    height: 100vh;  /* Fill viewport height */


}
#working_space {
    -webkit-flex: 1 0 0; /* Safari 6.1+ */
    -ms-flex: 1 0 0; /* IE 10 */
    flex: 1 0 0; /* Grow to fill space */
    overflow-y: hidden; /* Add scrollbar */
    height: 100%; /* Needed to fill space in IE */
}
#header, #footer {
    -webkit-flex: 0 0 auto; /* Safari 6.1+ */
    -ms-flex: 0 0 auto; /* IE 10 */
    flex: 0 0 auto;
}

/*/!*************************** TWO Columns********************************!/*/

.columns {
    padding:0 0 0 0;
    margin: 0 0 0 0;
    text-align: center ;
    height: 100%;


}
#primary {

    width: 100%;
    float: left;
    background: lightskyblue;
}

#secondary {
    width: 0%;
    float: right;
    background: white;
    overflow-y: scroll; /* Add scrollbar */
    z-index: 101;
}

#secondary > img {
    width:250px;
    height:320px;
    margin-left:25px;
    margin-right:25px;
    margin-bottom: 10px;
}


/*/!*************************** Header & Footer********************************!/*/

#footer {
    /*position: absolute;*/
    bottom: 0;
    width: 100%;
    padding: 0 0 0 0;
    z-index: 100;
}

.footer {
    font-size: 16px;
    font-weight: bold;
    color: whitesmoke;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.1% 0 0.1% 0;
    text-align: center ;
    background: #d5d654;
    border-top: solid;
    border-color: black ;
}

#header {
    width: 100%;
    text-align: center ;
    background: #d5d654;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    height: 10%;
    vertical-align: top;
    opacity: 0.8;
}
.logo{
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    max-height: 100%;
    max-width: 100%;
}

/*************************** Second column list elements********************************/
#forex {

    list-style: none;
    text-align: left;
    padding: 0 0 0 1%;
    margin: 0 0;

}

ul {
    list-style:none;
    margin: 0 auto;
    padding: 0;
    display: block;
    max-width:inherit;
    text-align: center;
}
ul li {
    display: inline-block;
    padding: 8px;
    background:white;
    margin:10px;
}
ul li img {
    display: block;
}
a {
    text-decoration: none;
}

#overlay{
    background:rgba(255,255,255,0);
    position: absolute;
    width:50%;
    height:60%;
    top:10%;
    left:30%;
    display:none;
    text-align:center;
}

#overlay img{

    margin-top:10%;
}

#overlay p {
    color:white;
}

/*******************************Manipulation overlay*****************************/
#overlay_manipulation{
    background: #d5d654;
    position: absolute;
    width:30%;
    height:40%;
    top:30%;
    left:2%;
    display:none;
    text-align:center;
    z-index: 10001;

    opacity: 0.9;
    filter: alpha(opacity=90);

}

#mask{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    z-index: 10000;
}

#left {
    width: 10%;
    height: 15%;
    position: absolute;
    top: 20%;
    left: 10%;
    background: white;
    /*display: inline-block;*/
}
#left_icon {
    max-width: 100%;
    max-height: 100%;
}

#right {
    width: 10%;
    height: 15%;
    position: absolute;
    top: 20%;
    left: 25%;
    background: white;
    display: inline-block;
}
#right_icon {
    max-width: 100%;
    max-height: 100%;
}
#up {
    width: 10%;
    height: 15%;
    position: absolute;
    top: 60%;
    left: 25%;
    background: white;
    display: block;
}
#up_icon {
    max-width: 100%;
    max-height: 100%;
}

#down {
    width: 10%;
    height: 15%;
    position: absolute;
    top: 60%;
    left: 10%;
    background: white;
    display: block;
}
#down_icon {
    max-width: 100%;
    max-height: 100%;
}

#r_right {
    width: 10%;
    height: 15%;
    position: absolute;
    top: 50%;
    right: 10%;
    background: white;
    display: block;
}
#r_right_icon {
    max-width: 100%;
    max-height: 100%;
}
#r_left {
    width: 10%;
    height: 15%;
    position: absolute;
    top: 50%;
    right: 30%;
    background: white;
    display: block;
}
#r_left_icon {
    max-width: 100%;
    max-height: 100%;
}

#Yplus {
    width: 10%;
    height: 15%;
    position: absolute;
    top: 40%;
    left: 25%;
    background: white;
    display: block;
}

#Yminus {
    width: 10%;
    height: 15%;
    position: absolute;
    top: 40%;
    left: 10%;
    background: white;
    display: block;
}

#OK{
    width: 15%;
    height: 15%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: white;
    display: block;
}
#OK_icon {
    max-width: 100%;
    max-height: 100%;
}

#NOK{
    width: 15%;
    height: 15%;
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    display: block;
}
#NOK_icon {
    max-width: 100%;
    max-height: 100%;
}

#remove{
    width: 15%;
    height: 15%;
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    display: block;
}

#scaling_plus {
    width: 7%;
    height: 10%;
    position: absolute;
    top: 18%;
    right: 43%;

}

#scaling_minus {
    width: 7%;
    height: 10%;
    position: absolute;
    top: 18%;
    left: 43%;

}

/*******************************Branding overlay*****************************/

#branding{
    width: 15%;
    height: 15%;
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    display: block;
}
#overlay_brand{
    background: #d5d654;
    list-style: none;
    position: absolute;
    width:30%;
    height:auto;
    top:60%;
    left:2%;
    /*display:block;*/
    z-index: 10001;
    opacity: 0.9;
    filter: alpha(opacity=90);
}

#skinGalerija {
    list-style:none;
    margin: 0 0;
    padding: 0;

    white-space: nowrap;
    overflow-y: hidden;

    height: auto;
    }

#canvas {
    border: none;
}

#custom_measure{
    background: #d5d654;
    list-style: none;
    position: absolute;
    width:30%;
    height:15%;
    top:0;
    left:0;
    opacity: 0.9;
    z-index: 10001;
}


.buttons {
    width: auto;
    margin: 2% 0.2% 2% 0.2%;
}

#OK_custom{
    width: 10%;
    height: 30%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: white;
    display: block;
}

#NOK_custom{
    width: 10%;
    height: 30%;
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    display: block;
}

#Xdimension {
     margin: 0 0 0 0;
    width: 40%;
    position: relative;
 }

#Ydimension {
    width: 40%;
    position: relative;
    margin: 0 0 0 0;
}
