#profil{
width:160px; 
display:inline-block;
vertical-align:top;
padding:10px;
margin:15px;



}




#polja{
width:100%; 
padding:8px; 
margin:3px;
border:#E8E8E8 solid 1px;



}



#addbtn{

width:100%; 
padding:4px; 
margin-top:10px;
 background-image: linear-gradient(#FF0000, #C1090D);
color:#FFFFFF;
border:none;


}





#okvir{
display:inline-block;
width:<?php echo $sirinaKF/2; ?>px;
height:<?php echo $visinaKF/2; ?>px;
border:#222222 solid 1px;
background:<?php echo $rgb; ?>;
vertical-align:middle;
line-height:<?php echo $visinaKF/2; ?>px;;
padding:16px;
text-align:right;
}


#krilo{
display:inline-block;
width:100%;
height:100%;

background:<?php echo $rgb; ?>;
padding:20px;
border:#333333 solid 1px;
}

#okvir:hover{
background:rgba(0,0,0,0.02);
}
#krilo:hover{
background:rgba(0,0,0,0.02);
}







#lajsna{
display:inline-block;
width:100%;
height:100%;
box-shadow: inset 1px 1px 1px 1px #999999;

background:url(images/okov.png),url(images/staklo.png);
background-repeat: no-repeat;
background-size: 100% 100%;
 
}

#kvaka{
position:absolute;
width:11px;
top:46%;
left:<?php echo ($sirinaKF/2)-33; ?>px;
display:inline-block;
z-index:99999999999;
}






#farba{
width:50px;
height:48px;
background:#333333;
padding:3px;
margin:10px;
border-radius:5px;
display:inline-block;
vertical-align:top;
font-size:12px;
line-height:34px;
text-align:center;
border:rgba(0,0,0,0) solid 3px;
}

#farba:hover{
border:#D20000 solid 3px;
}















.modal-window {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.25);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.modal-window:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.modal-window > div {
  width: 400px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  padding: 2em;
  background: #ffffff;
}
.modal-window header {
  font-weight: bold;
}
.modal-window h1 {
  font-size: 150%;
  margin: 0 0 15px;
}

.modal-close {
  color: #aaa;
  line-height: 50px;
  font-size: 80%;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 70px;
  text-decoration: none;
}
.modal-close:hover {
  color: black;
}

/* Demo Styles */
html,
body {
  height: 100%;
}

body {
  font: 600 18px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-image: -webkit-gradient(linear, left top, right top, color-stop(0, #7f53ac), to(#657ced));
  background-image: linear-gradient(to right, #7f53ac 0, #657ced 100%);
  color: black;
}

a {
  color: inherit;
}

.container {
  display: grid;
  -webkit-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
          align-items: center;
  height: 100vh;
}

.modal-window div:not(:last-of-type) {
  margin-bottom: 15px;
}

small {
  color: #aaa;
}

.btn {
  background-color: #fff;
  padding: 1em 1.5em;
  border-radius: 3px;
  text-decoration: none;
}
.btn i {
  padding-right: 0.3em;
}
