body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto min-content;
  grid-template-areas:
    "section-1 section-2 section-3 section-4"
    "footer footer footer footer";
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #fff;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

footer {
  grid-area: footer;
  text-align: center;
  background-color: #4a4a4a;
  color: #f9f9f9;
}

footer a {
  text-decoration: none;
  color: inherit;
}

.section-1 {
  grid-area: section-1;
  background: #f06060;
}

.section-2 {
  grid-area: section-2;
  background: #fa987d;
}

.section-3 {
  grid-area: section-3;
  background: #72cca7;
}

.section-4 {
  grid-area: section-4;
  background: #10a296;
}

.section-1__link,
.section-2__link,
.section-3__link,
.section-4__link {
  text-decoration: none;
  color: inherit;
}

.section-1__box,
.section-2__box,
.section-3__box,
.section-4__box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.section-1__title,
.section-2__title,
.section-3__title,
.section-4__title {
  width: 100%;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.section-1__box:hover .section-1__title,
.section-2__box:hover .section-2__title,
.section-3__box:hover .section-3__title,
.section-4__box:hover .section-4__title {
  padding-bottom: 5vh;
}

.section-1__box:active .section-1__title,
.section-2__box:active .section-2__title,
.section-3__box:active .section-3__title,
.section-4__box:active .section-4__title {
  padding-bottom: 8vh;
}



.loader {
  border: 8px solid #f3f3f3;
  border-radius: 50%;
  border-top: 8px solid #db3434;
  width: 3vw;
  height: 3vw;
  /* Safari */
  /* -webkit-animation: spin 2s linear infinite; */
  animation: spin 2s linear infinite;
}

/* Safari */
/* @-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
} */

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}




/* ----------- Design Responsivo ----------- */

/* ----------- iPhone 6, 6S, 7 and 8 ----------- */

/* Portrait and Landscape */
@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) {
  body {
    min-height: -webkit-fill-available;
  }
}

/* Portrait */
@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
  body {
    min-height: -webkit-fill-available;
    grid-template-rows: repeat(4, minmax(0, 1fr)) min-content;
    grid-template-columns: auto;
    grid-template-areas:
    "section-1"
    "section-2"
    "section-3"
    "section-4"
    "footer";
  }
}

/* ----------- Outros Dispositivos em modo retrato ----------- */

@media only screen and (max-device-width : 360px) and (orientation: portrait)  {
  body {
    grid-template-rows: repeat(4, minmax(0, 1fr)) min-content;
    grid-template-columns: auto;
    grid-template-areas:
    "section-1"
    "section-2"
    "section-3"
    "section-4"
    "footer";
  }
}
