
html, body{
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  margin: 0;
  height: 100%;  
}

#drop-zone{
  border: 3px #00bb00 dashed;
  border-radius: 10px;
  height: 150px;
  width: 350px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;    
}

#drop-zone p{
  margin: 3px;
}

.cont{
  /* display: flex; */
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* ---------------PANEL -------------- */
#panel{
  display: flex; 
  flex-direction: column; 
  width: 300px;
  height: 100%;
  font-weight: 700;
  position: absolute;  
  top: 0;
  left: 0;
  overflow: visible;
  background-color: #00bb00;
  color: white;
  transition:  .2s;
  z-index: 2;
  user-select: none;
}
@media (max-width: 768px){
  #panel{
    width: 100%; 
    left: -100%;
  }
}

#panel-x{
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 0; 
  width: 30px;
  height: 30px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  
}
/* @media (max-width: 768px){
  #panel-x{
    display: flex;
  }
} */

#panel #label{
  background-color: #008800;
  position: absolute;
  writing-mode: vertical-lr;
  text-orientation: upright;
  width: 25px;
  right: -25px;
  top: 20px;
  padding: 5px 0 10px 0;
  border-radius: 0 10px 10px 0;
  z-index: 1;
  cursor: pointer;
}

#panel .logo img{
  height: 40px;
  margin: 5px;
}

#panel .logo a{
  color: white;
  text-decoration: none;
  font-family: Tahoma;
  font-weight: 700;
  font-size: 40px;
  display: flex;
  align-items: center;
  margin: 5px 5px 5px 5px;
}

#panel h1{
  font-size: 16px;
  margin: 0 5px 8px 5px;
}

#panel input[type=range]{
  appearance: none;
  height: 3px;
  background-color: black;
}

#panel input[type=range]::-webkit-slider-thumb {
  appearance: none;
  background-color: #00ee00;
  width: 15px;
  height: 15px;
}


/* --------------- CONTROLS ------------- */
#controls{
  display: flex;
  align-items: center;
  padding-left: 5px;
}

.btn-ctrl{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 5px;
  width: 30px;
  height: 30px; 
  background-color: #00bb00;
  cursor: pointer;
  font-weight: bold;
  padding: 5px;
}

.btn-ctrl img{
  width: 30px;
  height: 30px;
}

.btn-ctrl:hover{
  background-color: #00ee00;
}


/* --------------- LAYERS --------------  */

#layers{
  flex: 1;
  white-space: nowrap;
  overflow: auto;
}

#layers ul{
  padding-left: 0.2em;
}

#layers>ul>li{
    display: inline;
    font-weight: bold;
  }

#layers li{
  display: flex;  
  align-items: center;
  list-style: none;
  font-size: 14px;
  font-weight: normal;
}

li.disabled {
  pointer-events: none; 
  opacity: 0.6;         
}

#layers .btn_vis{
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: inherit;
    background-image: url("svg/icon-eye-open.svg");
    background-size: cover;
    height: 1.5rem;
    width: 1.5rem;
    cursor: default;
    position: relative;
}

.btn_vis::before {      /*przekreślenie*/
    content: "";
    position: absolute;   
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: white;
    transform: rotate(-45deg);
  }

  .btn_vis.crossed::before {
    opacity: 0; /* Ukrywamy przekreślenie przez zmianę przezroczystości */
  }

#layers input[type=color]{
    flex-shrink: 0;
    height: 1.7rem;
    width: 1.7rem;
    border-radius: 0px;
    margin-right: 5px;
    border: none;
    background-color: inherit;
}

/* ---------------- BTNs ZOOM ----------------*/
#cont-btn-zoom{
  display: flex;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);  
  z-index: 1;
}

.btn-zoom{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  font-size: 20px;
  font-weight: 700;
  background-color:grey;
  color: white;
  cursor: pointer;
  margin: 0 2px 0 2px;
  border: 1px solid #eeeeee;
  user-select: none;
}

.btn-zoom img{
  width: 25px;
  height: 25px;
}

.btn-zoom-plus{
  border-radius: 0 8px 8px 0;
}

.btn-zoom-minus{
  border-radius: 8px 0 0 8px;
}

/* --------------- WYNIK --------------  */

#wynik{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eeeeee;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
  }

#wynik svg{
  width: 80%;
  position: absolute;
}

.dragover{
  background-color: gold;
}

/* --------------- Price FORM --------------  */

#price-form{
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 440px;
  height: 100%;
  position: absolute;
  top: 0px;
  right: -440px;
  background-color:  #00bb00;
  color: white;
  font-size: 14px;
  font-weight: normal;
  transition: 0.2s;
  padding:  5px;
  user-select: none;    
}
@media (max-width: 768px){
  #price-form{
    right: -100%;
    width: 100%;
  }
}

#price-form-x{
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 0; 
  width: 30px;
  height: 30px;
  font-weight: 700;
  font-size: 18px;
  background-color: #00bb00;
  cursor: pointer;
}

#form{
  overflow: auto;
}

div.formularz{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 3px;
}

#form h3{
  margin: 10px 0px 8px 0px;
}

.formularz select{
  width: calc(46% + 8px);
  padding: 2px;
  text-align: center;
}
@media (max-width:768px){
  .formularz select{
    width: 100%;
  }
}

.formularz input{
  width: 46%;
  padding: 2px;
  text-align: center;
}
@media (max-width:768px){
  .formularz input{
    width: 100%;
  }
}

.formularz label{
  width: 46%;
  min-width: 160px;
}
@media (max-width:768px){
  .formularz label{
    width: 100%;
  }
}


textarea.uwagi{
	width: calc(100% - 6px); 
	height: 120px;
}

.btn-price{
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  background-color: orange;
  font-size: 18px;
  margin: auto;
  cursor: pointer;
  border: none;
  user-select: none;  
}

.btn-price-position{
  position: absolute;
  bottom: 15px;
  right: 15px;
}
@media (max-width: 768px){
  .btn-price-position{
    left: 50%;
    transform: translateX(-50%);
  }
}

.btn-price:hover{
  background-color: yellow;
}

.btn-frame{
  border: 4px orange solid;
  width: 280px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

#price-form #label-price{
  background-color: #008800;
  position: absolute;
  writing-mode: vertical-lr;
  text-orientation: upright;
  box-sizing: border-box;
  font-weight: 700;
  font-size: 15px;
  width: 25px;
  left: -25px;
  top: 20px;
  padding: 5px 0px 10px 5px;
  border-radius: 10px 0 0 10px;
  z-index: 1;
  cursor: pointer;
}

#mail-status{
  display: none;
  position: absolute;
  right: 15px;
  bottom: 5px;
  width: calc(100% - 30px);
  height: 240px;
  background-color: #00bb00;
  border: black solid 1px;
  box-shadow: 0px 0px 8px 5px  rgba(0,0,0, 0.5) ;
  justify-content: center;
}

#mail-status-body{
  display: flex;
  flex-direction: column;
  padding: 25px;
  font-size: 16px;  
  align-items: center;
  text-align: center;
}

#mail-status-x{
  background-color: inherit;
  font-size: 20px;
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0px;
  right: 0px;
  cursor: pointer;
}

#mail-status-x:hover{
  background-color: #00ee00;
}

#mail-status img{
  width: 90px;

}


.grecaptcha-badge {
  bottom: 90px !important;
  }

/* --------------------------------------------- LOADER --------------------------- */
div.loader.white{
  --color: white;
  margin: auto;
  margin-top: 20px;
}

div.loader{
  --size:  90px;          /* Size of element */
  --sizeA: 12px;          /* Size of bigger dot */
  --sizeB: 4px;           /* Size of small dots */
  --color: #00bb00;          /* Color of element */
  --speed: 1.5s;          /* Duration of animation */
  
    /* border-radius: 50%; */
  width: 1px;
  height: 1px;
  background-color: var(--color);
  position: relative;
  animation-name: skok;
  animation-duration: var(--speed);
  animation-iteration-count: infinite;
}

@keyframes skok{
  0%{box-shadow:  calc(-0.5 *var(--size)) calc(var(--sizeA)/-2)  0px var(--sizeA) var(--color),  
                  calc(-0.25*var(--size)) 0px                    0px var(--sizeB) var(--color),        
                  0px                     0px                    0px var(--sizeB) var(--color),            
                  calc( 0.25*var(--size)) 0px                    0px var(--sizeB) var(--color),            
                  calc( 0.5 *var(--size)) 0px                    0px var(--sizeB) var(--color);
               }
  20%{box-shadow: calc(-0.5 *var(--size)) 0px                    0px var(--sizeB) var(--color),  
                  calc(-0.25*var(--size)) calc(var(--sizeA)/-2)  0px var(--sizeA) var(--color),        
                  0px                     0px                    0px var(--sizeB) var(--color),            
                  calc( 0.25*var(--size)) 0px                    0px var(--sizeB) var(--color),            
                  calc( 0.5 *var(--size)) 0px                    0px var(--sizeB) var(--color);
              }
  40%{box-shadow: calc(-0.5 *var(--size)) 0px                    0px var(--sizeB) var(--color),  
                  calc(-0.25*var(--size)) 0px                    0px var(--sizeB) var(--color),        
                  0px                     calc(var(--sizeA)/-2)  0px var(--sizeA) var(--color),            
                  calc( 0.25*var(--size)) 0px                    0px var(--sizeB) var(--color),            
                  calc( 0.5 *var(--size)) 0px                    0px var(--sizeB) var(--color);
              }
  
  60%{box-shadow: calc(-0.5 *var(--size)) 0px                    0px var(--sizeB) var(--color),  
                  calc(-0.25*var(--size)) 0px                    0px var(--sizeB) var(--color),        
                  0px                     0px                    0px var(--sizeB) var(--color),            
                  calc( 0.25*var(--size)) calc(var(--sizeA)/-2)  0px var(--sizeA) var(--color),            
                  calc( 0.5 *var(--size)) 0px                    0px var(--sizeB) var(--color);
              }
  
  80%{box-shadow: calc(-0.5 *var(--size)) 0px                    0px var(--sizeB) var(--color),  
                  calc(-0.25*var(--size)) 0px                    0px var(--sizeB) var(--color),        
                  0px                     0px                    0px var(--sizeB) var(--color),            
                  calc( 0.25*var(--size)) 0px                    0px var(--sizeB) var(--color),            
                  calc( 0.5 *var(--size)) calc(var(--sizeA)/-2)  0px var(--sizeA) var(--color);
               }
  100%{box-shadow:calc(-0.5 *var(--size)) calc(var(--sizeA)/-2)  0px var(--sizeA) var(--color),  
                  calc(-0.25*var(--size)) 0px                    0px var(--sizeB) var(--color),        
                  0px                     0px                    0px var(--sizeB) var(--color),            
                  calc( 0.25*var(--size)) 0px                    0px var(--sizeB) var(--color),            
                  calc( 0.5 *var(--size)) 0px                    0px var(--sizeB) var(--color);
  }
}

