body.index {
     margin: 8px;
}

#cine_umuarama_3d {
    background: url('../img/grid.jpg')-600px -235px;
}

#res_lilian_3d {
    background: url('../img/grid.jpg')-600px -77px;
}

#res_shirley_3d {
    background: url('../img/grid.jpg')-150px -390px;
}

#res_fernando_3d {
    background: url('../img/grid.jpg')-600px -390px;
}

#res_anelyse_3d {
    background: url('../img/grid.jpg')-300px -465px;
}

#res_liz_3d {
    background: url('../img/grid.jpg')-600px -465px;
}

#casa_50 {
    background: url('../img/grid.jpg')-450px -310px;
}

#moradia {
    background: url('../img/grid.jpg')-300px 0;
}

#tcc {
    background: url('../img/grid.jpg')-300px -160px;
}

.menu {
     background-color: #ddd;
     font-size: 1.4em;
 }
 
.menu .flex-item {
     margin-top: 0;
 }

.tijolo {
    display: inline-block;
    overflow: auto;
    width: 150px;
    height: 75px;
    background: url('../img/grid.jpg') 0 0;
    margin: 1px;
}

.tijolo a {
    display: block;
    width: 150px;
    height: 75px;
}

.meio_tijolo {
    width: 72px;
    margin-left: 0;
    margin-right: 0;
}

.meio2, .meio4, .meio5 {
    display: none; 
}

.parede {
    width: 310px;
    margin: 0 auto;
}

.linha {
  display: inline-block;
}

@media all and (min-width: 510px) {
    .parede { width: 470px; }
    .meio1 { display: none; }
    .meio2 { display: inline-block; }
    .mostrar { display: flex; flex-direction: row; }
    .linha {display: inline-block; }
}

@media all and (min-width: 670px) {
    .parede { width: 625px; }
    .meio3 { display: none; }
    .meio4 { display: inline-block; }
    .mostrar { display: flex; flex-direction: row; }
    .linha {display: inline-block; }
}

@media all and (min-width: 830px) {
    .parede { width: 784px; }
    .meio5 { display: inline-block; }
    .mostrar { display: flex; flex-direction: row; }
    .linha {display: inline-block; }
}

@media all and (min-width: 1029px) {
    .mostrar { display: flex; flex-direction: row; }
    .linha {display: inline-block; }
}

@media all and (min-8: 1030px) {
    .mostrar { display: flex; flex-direction: column; }
    .linha {display: none; }
}

  .topo-button {
  display: inline-block;
  font-size: 0.8em;
  text-transform: lowercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #000;
  background-color: #ddd;
  border: 1px solid #666;
  border-radius: 5px;
  box-shadow: 0 2px #888;
  width: 3em;
}

.topo-button a:link, .topo-button a:visited  {
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #666;
  box-shadow: 0 2px #888;
}

.topo-button a:hover {
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #666;
  box-shadow: 0 2px #888;
  font-size: 1.3em;
}

.topo-button a:active {
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #666;
  box-shadow: 0 2px #888;
  font-size: 1.3em;
}
