body {
  font-family: "poppins", sans-serif;
}
.container {
  display: flex;
  flex-direction: column;
  max-width: 90%;
  margin: 0 auto;
  padding: 0 16px;
}
header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 64px 0px;
}
header .nombre {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 32px;
}
header .nombre h1 {
  margin: 0;
}
header .navbar {
  width: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .navbar img {
  width: 25px;
  height: 25px;
}
header .navbar a {
  text-decoration: none;
  color: black;
}
header .navbar a:hover {
  text-decoration: underline;
}
.lateraler {
  width: 80px;
  height: 100vh;
  background-color: white;
  position: fixed;
  top: 0;
  right: -160px;
  z-index: 2;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s;
}
.lateraler .navcol {
  height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.lateraler .navcol img {
  width: 25px;
  height: 25px;
}
.lateraler .navcol a {
  text-decoration: none;
  color: black;
}
.lateraler .navcol a:hover {
  text-decoration: underline;
}
.openlateraler {
  transform: translateX(-160px);
}
header .hamb {
  height: 50px;
  width: 50px;
  display: none;
}
header .hamb .bar1,
.bar2,
.bar3 {
  background-color: black;
  height: 4px;
  width: 36px;
  margin: 3px;
  border-radius: 10px;
}
header .hamb:hover {
  cursor: pointer;
}

.galeria {
  display: grid;
  grid-template-areas:
    "a b c i i e"
    "g h h i i e"
    "g h h d d f";
  gap: 16px;
}
#cubos {
  grid-area: a;
}
#escombro {
  grid-area: b;
}
#ventana {
  grid-area: c;
}
#pasillo {
  grid-area: d;
}
#llave {
  grid-area: e;
}
#suelo {
  grid-area: f;
}
#puerta {
  grid-area: g;
}
#pale {
  grid-area: h;
}
#estanteria {
  grid-area: i;
}

.galeria .proyecto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.galeria .proyecto {
  position: relative;
}
.galeria .proyecto .superpuesto {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.3);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  font-size: 36px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transition: all 0.2s ease;
}
.galeria .proyecto .superpuesto:hover {
  opacity: 1;
  cursor: pointer;
}
footer {
  text-align: center;
  padding: 64px;
}

@media only screen and (max-width: 1100px) {
  .container {
    max-width: 100%;
  }
  header .nombre {
    font-size: 10px;
  }
  header {
    padding: 16px 24px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
    background-color: white;
    width: 100%;
  }
  .galeria {
    margin-top: 125px;
    grid-template-areas:
      "a b c"
      "d e f"
      "g h i";
  }
  .galeria .proyecto .superpuesto {
    font-size: 24px;
  }
}

@media only screen and (max-width: 768px) {
  header .navbar {
    display: none;
  }
  header .hamb {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .galeria {
    grid-template-areas:
      "a b"
      "c d"
      "e f"
      "g h"
      "i i";
  }
  .galeria .proyecto .superpuesto {
    font-size: 20px;
  }
}

.animatebar1 {
  animation: flipbar1 1s;
  animation-fill-mode: forwards;
}
.animatebar2 {
  animation: fadebar2 1s;
  animation-fill-mode: forwards;
}
.animatebar3 {
  animation: flipbar3 1s;
  animation-fill-mode: forwards;
}

@keyframes fadebar2 {
  from {
    transform: scaleX(1);
    opacity: 1;
  }
  to {
    transform: scaleX(0);
    opacity: 0;
  }
}
@keyframes flipbar1 {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(45deg) translate(4px, 10px);
  }
}
@keyframes flipbar3 {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(-45deg) translate(4px, -10px);
  }
}
