@import url("https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #100721;
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
}*/

.container {
  width: 100%;
  display: flex;
  justify-content: center;
  height: 500px;
  gap: 10px;
  margin-top: 50px;
}
.container > div {
  flex: 0 0 120px;
  border-radius: 0.5rem;
  transition: 0.5s ease-in-out;
  cursor: pointer;
  box-shadow: 1px 5px 15px #202020;
  position: relative;
  overflow: hidden;
}
.container > div:nth-of-type(1) {
  background: url("sliderx/001.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260") no-repeat 50%/cover;
}
.container > div:nth-of-type(2) {
  background: url("sliderx/002.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260") no-repeat 50%/cover;
}
.container > div:nth-of-type(3) {
  background: url("sliderx/003.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260") no-repeat 50%/cover;
}
.container > div:nth-of-type(4) {
  background: url("sliderx/004.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260") no-repeat 50%/cover;
}
.container > div .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: #02022e;
  background: linear-gradient(0deg, rgba(2, 2, 46, 0.6755077031) 0%, rgba(255, 255, 255, 0) 100%);
  transform: translatey(100%);
  transition: opacity 0.5s ease-in-out, transform 0.5s 0.2s;
  visibility: hidden;
}
.container > div .content span {
  display: block;
  margin-top: 5px;
  font-size: 1.2rem;
}
.container > div:hover {
  flex: 0 0 550px;
  box-shadow: 1px 3px 15px #202020;
  transform: translatey(-30px);
}
.container > div:hover .content {
  opacity: 1;
  transform: translatey(0%);
  visibility: visible;
}


@media screen and (max-width: 510px) {

  .container {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 500px;
    gap: 10px;
    margin-top: 50px;
  }
  .container > div {
    flex: 0 0 80px;
    border-radius: 0.5rem;
    transition: 0.5s ease-in-out;
    cursor: pointer;
    box-shadow: 1px 5px 15px #202020;
    position: relative;
    overflow: hidden;
  }
  .container > div:nth-of-type(1) {
    background: url("sliderx/001.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260") no-repeat 50%/cover;
  }
  .container > div:nth-of-type(2) {
    background: url("sliderx/002.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260") no-repeat 50%/cover;
  }
  .container > div:nth-of-type(3) {
    background: url("sliderx/003.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260") no-repeat 50%/cover;
  }
  .container > div:nth-of-type(4) {
    background: url("sliderx/004.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260") no-repeat 50%/cover;
  }
  .container > div .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: #02022e;
    background: linear-gradient(0deg, rgba(2, 2, 46, 0.6755077031) 0%, rgba(255, 255, 255, 0) 100%);
    transform: translatey(100%);
    transition: opacity 0.5s ease-in-out, transform 0.5s 0.2s;
    visibility: hidden;
  }
  .container > div .content span {
    display: block;
    margin-top: 5px;
    font-size: 1.2rem;
  }
  .container > div:hover {
    flex: 0 0 200px;
    box-shadow: 1px 3px 15px #202020;
    transform: translatey(-30px);
  }
  .container > div:hover .content {
    opacity: 1;
    transform: translatey(0%);
    visibility: visible;
  }


}