@import url("https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  place-items: center;
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
}

.container {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  height: 400px;
  gap: 10px;

  > div {
    flex: 0 0 120px;
    border-radius: 0.5rem;
    transition: 0.5s ease-in-out;
    cursor: pointer;
    box-shadow: 1px 5px 15px #e898f1;
    position: relative;
    overflow: hidden;

    &:nth-of-type(1) {
      background: url("../img/fadas/azul.jfif")
        no-repeat 50% / cover;
    }
    &:nth-of-type(2) {
      background: url("../img/fadas/laranja.jfif")
        no-repeat 50% / cover;
    }
    &:nth-of-type(3) {
      background: url("../img/fadas/rosa.jfif")
        no-repeat 50% / cover;
    }
    &:nth-of-type(4) {
      background: url("../img/fadas/roxo.jfif")
        no-repeat 50% / cover;
    }
    &:nth-of-type(5) {
      background: url("../img/fadas/verde.jfif")
        no-repeat 50% / cover;
    }
    &:nth-of-type(6) {
      background: url("../img/fadas/vermelho.jfif")
        no-repeat 50% / cover;
    }

    .content {
      font-size: 1.5rem;
      color: #fff;
      display: flex;
      align-items: center;
      padding: 15px;
      opacity: 0;
      flex-direction: column;
      height: 100%;
      justify-content: flex-end;
      background: rgb(2, 2, 46);
      background: linear-gradient(
        0deg,
        rgba(2, 2, 46, 0.6755077030812324) 0%,
        rgba(255, 255, 255, 0) 100%
      );
      transform: translatey(100%);
      transition: all 0.5s ease-in-out, transform 0.5s 0.2s;
      visibility: hidden;

      span {
        display: block;
        margin-top: 5px;
        font-size: 1.2rem;
      }
    }
    

    &:hover {
      flex: 0 0 350px;
      box-shadow: 1px 3px 15px #7645d8;
      transform: translatey(-30px);
    }

    &:hover .content {
      opacity: 1;
      transform: translatey(0%);
      visibility: visible;
    }
  }
}
@media screen and (max-width: 768px) {
  .container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    height: fit-content;
    position: relative;
    gap: 10px;
    margin-bottom: 30px;
  
    > div {
      flex: 0 0 80%;
      border-radius: 0.5rem;
      transition: 0.5s ease-in-out;
      cursor: pointer;
      box-shadow: 1px 5px 15px #e898f1;
      position: relative;
      overflow: hidden;
      height: 100px; /* Adicione essa linha para definir a altura inicial */
  
      &:hover {
        flex: 0 0 80%;
        height: 400px; /* Adicione essa linha para definir a altura final */
        box-shadow: 1px 3px 15px #d845c9;
        transform: translatey(-30px);
      }
  
      &:hover .content {
        opacity: 1;
        transform: translatey(0%);
        visibility: visible;
      }
    }
  }
}


h1{
  font-family: "Montserrat";
  color: #E9678F;
  text-align: center;
}