.custom_crafting .preview {
  background: #ddd;
  text-align: center;
}
.custom_crafting .preview .title {
  background: #42a500 none repeat scroll 0 0;
  font-family: "bebas_neueregular";
  font-size: 32px;
  margin: 0;
  padding: 4px 10px;
  text-align: left;
  color: #fff;
}

.custom_crafting .preview #generator-preview .bloc-crafting {
  display: inline-block;
  margin: 20px;
}



.custom-crafting-table {
  background: url(img/custom-crafting-sample.png) no-repeat;
  height: 238px;
  width: 422px;
  padding: 20px;
  position: relative;
  margin: 20px auto;
}


.custom-crafting-table .cell {
  width: 64px;
  height: 64px;
  display: inline-block;
  vertical-align: top;
}

.custom-crafting-table .cell-container {
  position: absolute;
  width: 64px;
  height: 64px;
}

.custom-crafting-table .cell img,
.custom-crafting-table .out img {
  max-width: 64px;
  max-height: 64px;
}
.custom-crafting-table .cell-hover:hover {
  background-color: rgba(255,255,255,0.5);
  cursor: pointer;
}

.custom-crafting-table .cell-remove {
  background: url('img/delete.png') center center no-repeat;
  opacity: 0.0;
}

.custom-crafting-table .cell-remove:hover {
  opacity: 1;
}

.custom-crafting-table .cell-remove-hidden {
  display: none;
}

.custom-crafting-table .cell-option {
  background: url(img/option.png) no-repeat center;
  width: 16px;
  height: 16px;
  margin: 2px;
  padding: 2px;
  z-index: 9999;
}
.custom-crafting-table .cell-option:hover {
  background-color: #fff;
}

.custom-crafting-table .c1 {
  /*background: rgba(255,0,0,0.5);*/
}
.custom-crafting-table .c2 {
  /*background: rgba(0,0,255,0.5);*/
  margin: 0 0 8px 3.5px;
}
.custom-crafting-table .c3 {
  /*background: rgba(0,200,0,0.5);*/
  margin: 0 0 8px 3px;
}


.custom-crafting-table .out {
  width: 64px;
  height: 64px;
  /*background: rgba(255,100,0,0.5);*/
  position: absolute;
  right: 66px;
  top: 84px;
}

.custom-crafting-table .out #slot_cout_quantity {
  color: #fff;
  font-family: 'minecraftiaregular';
  font-size: 32px;
  position: absolute;
  bottom: -10px;
  right: -5px;
  text-shadow: 2px 2px 0px #000;
}




.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  z-index: 9999!important;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 4% auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 90%;
  height: 90%;
  box-sizing: border-box;
  /*transition: all 0.3s ease-in-out;*/
  position: relative;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: 'minecraftiaregular';
}
.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup .close:hover {
  color: #06D85F;
}
.popup .content {
  overflow: auto;
  height: 90%;
  box-sizing: border-box; 
}
.popup .content img {
  border: 4px solid #fff;
  vertical-align: middle;
  margin: 2px;
  border-radius: 1px;
}
.popup .content img:hover {
  border: 4px solid #4EC300;
}


@media screen and (max-width: 700px){
  .popup{
    width: 100%;
    height: 100%;
    margin: 0 auto;
    border-radius: 0;
  }

  .popup h2 {
    font-size: 18px;
  }
  .popup .content img {
    margin: 1px;
  }
}