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

body {
  min-height: 100%;
  display: grid;
  place-items: center;
  background: transparent;
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
}

.container {
  width: 100%;
  display: flex;
  justify-content: center;
  height: 500px;
  gap: 10px;
}

.container > div {
  flex: 0 0 120px;
  border-radius: 0.5rem;
  transition: 0.5s ease-in-out;
  cursor: pointer;
  box-shadow: 1px 5px 15px darkgreen;
  position: relative;
  overflow: hidden;
}

/* === Images === */
.container > div:nth-of-type(1) {
  background: url("nietze.jpg") no-repeat 50%/cover;
}
.container > div:nth-of-type(2) {
  background: url("buddha.jpg") no-repeat 50%/cover;
}
.container > div:nth-of-type(3) {
  background: url("darwin.jpg") no-repeat 50%/cover;
}
.container > div:nth-of-type(4) {
  background: url("socrates.jpg") no-repeat 50%/cover;
}
.container > div:nth-of-type(5) {
  background: url("danbrown.avif") no-repeat 50%/cover;
}
.container > div:nth-of-type(6) {
  background: url("tate.jpg") no-repeat 50%/cover;
}
.container > div:nth-of-type(7) {
  background: url("lao.jpg") no-repeat 50%/cover; /* NEW */
}

/* === Content Overlay === */
.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: linear-gradient(
    0deg,
    rgba(2, 2, 46, 0.6755) 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;
}

/* === Hover Effects === */
.container > div:hover {
  flex: 0 0 250px;
  box-shadow: 1px 3px 15px green;
  transform: translateY(-30px);
}

.container > div:hover .content {
  opacity: 1;
  transform: translateY(0%);
  visibility: visible;
}
