.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px);
  /* minmax(300px, 1fr)*/
  grid-gap: 30px;
  padding: 20px;
  justify-items: center;
  justify-content: center;
  align-items: start;
}
.box {
  padding: 2em;
}
.item {
  margin-bottom: 2em;
}


/* checkbox-rect2 */
.checkbox-rect2 input[type="checkbox"] {
  display: none;
}
.checkbox-rect2 input[type="checkbox"] + label {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 20px;
  font: 14px/20px "Open Sans", Arial, sans-serif;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.checkbox-rect2 input[type="checkbox"]:hover + label:hover {
  color: rgb(23, 86, 228);
}
.checkbox-rect2 input[type="checkbox"]:hover + label:before { 
  border: 1px solid rgba(0, 0, 0, 0.8);
  box-shadow: 2px 1px 0 rgba(0, 0, 0, 0.7);
}
.checkbox-rect2 input[type="checkbox"] + label:last-child {
  margin-bottom: 0;
}
.checkbox-rect2 input[type="checkbox"] + label:before {
  content: "";
  display: block;
  width: 1.4em;
  height: 1.4em;
  border: 1px solid rgba(0, 0, 0, 0.8);
  border-radius: 0.2em;
  position: absolute;
  left: 0;
  top: 0;
  -webkit-transition: all 0.2s, background 0.2s ease-in-out;
  transition: all 0.2s, background 0.2s ease-in-out;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: -2px -1px 0 rgba(0, 0, 0, 0.7);
  background: transparent;
}
.checkbox-rect2 input[type="checkbox"]:checked + label:before {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.2em;
  background: black;
  box-shadow: 2px 1px 0 rgba(0, 0, 0, 0.7);
}
/* checkbox-rect2 end */
@media (max-width: 700px){
  .checkbox-rect2 input[type="checkbox"] + label:before {
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: -2px -1px 0 rgba(255, 255, 255, 0.7);
  }
  .checkbox-rect2 input[type="checkbox"]:checked + label:before {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: white;
    box-shadow: 2px 1px 0 rgba(255, 255, 255, 0.7);
  }
  .checkbox-rect2 input[type="checkbox"]:hover + label:before { 
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 2px 1px 0 rgba(255, 255, 255, 0.7);
  }
}