@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&display=swap");

::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 0;
  height: 8px;
}

body {
  padding: 0;
  margin: 0;
  background-color: #b8b8b8;
  color: white;
  font-family: "DM Mono", monospace;
}


.container {
  width: 100%;
  height: 100vh;
  margin-top: -12rem;
  z-index: 999;
}

.container .gallery {
  width: calc(min(100% - 15px, 900px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header2 {
  text-align: center;
  margin-top: -15rem;
}

.container .gallery .card {
  position: relative;
  height: 400px;
  flex: 1;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  filter: grayscale(80%);
  transition: all 0.8s cubic-bezier(0.25, 0.4, 0.45, 1.4);
}

.container .gallery .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.container .gallery .card .info {
  width: 500px;
  position: absolute;
  z-index: 3;
  padding: 15px;
  bottom: 0;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.25, 0.4, 0.45, 1.4);
  box-shadow: inset 0 -120px 120px -120px black,
    inset 0 -120px 120px -120px black;
}

.main-content {
  position: relative;
  z-index: 2; /* To make sure it’s above the canvas */
}

.container .gallery .card:hover {
  flex: 5;
  filter: none;
}
canvas {
  background-color: transparent;
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
}

.header1 {
  margin: 0 auto;
  text-align: center;
  margin-top: 3rem;
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
  color: rgb(94, 68, 68);
}

.container .gallery .card:hover .info {
  opacity: 1;
}

/* mobile view */

@media only screen and (max-width: 768px) {
  .container .gallery {
    width: 100%;
    margin: 10px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .container .gallery .card {
    height: 200px;
    transition: all 0.8s cubic-bezier(0.25, 0.4, 0.45, 1.4);
  }

  .container .gallery .card .info {
    width: 100%;
    padding: 10px;
  }

  .container .gallery .card:nth-child(3n + 3) {
    grid-column: 1/3;
  }

  .container .gallery .card:hover {}
}


