@import "../styles/normalize.css";

* {
  box-sizing: border-box;
}
body, html {
  width: 100%;
  height: 100%;
}
.wrapper  {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container {
  width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 15px;
}

.block {
  margin: 50px 30px;
}

.block-link {
  display: inline-block;
  width: 320px;
  height: 200px;
  position: relative;
  /* box-shadow: 0 0 15px rgba(0, 0, 0, .1); */
}
.block-link::after {
  content: 'open in new tab';
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .4);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity .3s;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.block-link:hover::after {
  opacity: 1;
}

.block-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ez-sites {
  height: 90%;
  margin: 3% 0;
  object-fit: contain;
}

.block-text {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-top: 15px;
  line-height: 26px;
  text-align: center;
  max-width: 320px;
}

@media screen and (max-width: 780px) {
  .block {
    margin: 20px 30px;
  }
}

@media screen and (max-width: 600px) {
  .block {
    margin: 0px 20px 20px;
  }
  .block-link {
    width: 240px;
    height: 140px;
  }
  .block-text {
    margin-top: 5px;
    max-width: 240px;
    font-size: 17px;
    line-height: 22px;
  }
}