html, body, div, span {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100%;
}

.wrapper {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-auto-columns: 1fr;
  grid-auto-rows: 1fr;
  grid-auto-flow: column;
  justify-items: stretch;
  align-items: stretch;
  grid-gap: 2em;
  padding: 2em;
  position: relative;
}

.wrapper .buttons {
  display: none;
  position: absolute;
  grid-column: start / end;
  grid-row: -2 / -1;
  bottom: 40px;
  z-index: 100;
  background: rgba(0, 0, 0, .7);
  color: white;
  border-radius: 4px;
  line-height: 60px;
  height: 60px;
  padding: 0 1em;
  width: 60%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  transition: .3s background;
}

.wrapper .buttons:hover {
  background: rgba(0, 0, 0, 1);
}

.wrapper .cell {
  position: relative;
  transition: transform .3s;
  background-repeat: no-repeat;
  background-color: transparent;
  background-size: cover;
  background-position: center center;
}

.wrapper .cell:hover {
  transform: scale(1.01);
}

.wrapper .cell:before,
.wrapper .cell:after {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
}

.wrapper .cell:hover:before {
  transition: none;
  opacity: 0;
}

.wrapper .cell:before {
  background-image: url(../images/spinner.png);
  background-repeat: no-repeat;
  background-position: center center;
  animation: 1s infinite lds-dual-ring;
  top: calc(50% - 100px);
  left: calc(50% - 100px);
  width: 200px;
  height: 200px;
  z-index: -1;
  opacity: 1;
  transition: opacity .3s .3s;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.wrapper .cell:after {
  right: 0;
  bottom: 0;
  background-color: white;
  opacity: .3;
  transition: .3s opacity;
  z-index: 3;
  content: none;
}

button {
  background: white;
  border: 1px solid white;
  border-radius: 4px;
  color: black;
  padding: .5em 1em;
  font-size: 16px;
  outline: none;
  cursor: pointer;
}

button:hover {
  border-color: #ccc;
}

button:active {
  background: #ccc;
}

h1 {
  font-family: 'Open Sans Hebrew', serif;
  text-align: center;
  font-size: 100px;
}

a {
  color: black;
  text-decoration: none;
}

iframe {
  width: 100%;
  height: 100%;
}

@media only screen and (max-width: 768px) {
  .wrapper {
    grid-template-columns: 1fr;
    grid-auto-columns: 1fr;
    grid-auto-rows: 1fr;
    grid-auto-flow: row;
  }

  .wrapper .cell:before {
    width: 100px;
    height: 100px;
  }
}