body::-webkit-scrollbar {
  width: 0.2em;
}

body::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb {
  background-color: red;
  outline: 1px solid red;
}

body {
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #000;
  overflow: hidden;
}

header {
  text-align: center;
  position: relative;
  display: flex;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

.logo h1 {
  font-size: 24px;
  color: #000;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  margin-top: 35px;
}

nav ul li {
  display: inline;
  margin-left: 10px;
  margin-right: 10px;
}

nav a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s;
  text-transform: uppercase;
}

nav a:hover {
  color: #333;
  scale: 1.1;
}

main {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-around;
  overflow-y: scroll;
  height: 75vh;
}

.item {
  color: #000;
  border-radius: 10px;
  text-align: center;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.item img {
  margin-top: 10px;
  max-width: 15vw;
  max-height: 14rem;
  transition: transform 0.3s;
  border-radius: 5px;
  justify-self: center;
  align-self: center;
}

.item:hover img {
  transform: scale(1.03);
}

.item h2 {
  margin: 10px 0;
  font-size: 20px;
  color: #333;
  /* Slightly darker gray */
}

.item p {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  padding: 2px 10px;
  font-size: 14px;
  height: 40px;
}

.item a {
  cursor: pointer;
}

.item .background {
  opacity: 0.5rem;
}

footer {
  color: #fff;
  text-align: center;
  height: 10rem;
  padding-top: 1rem;
  overflow: hidden;
}

/* Apply a fade-in effect to the items */
.item {
  color: #000;
  border-radius: 10px;
  min-height: 40vh;
  text-align: center;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.3s, transform 0.3s;
}

.item:hover {
  transform: scale(1.03);
}




.background {
  overflow: hidden;
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  position: absolute;
  z-index: -1;
  background: linear-gradient(45deg, #ff85a2 0%, rgba(225, 5, 34, 0) 70%) repeat scroll 0% 0%,
    linear-gradient(135deg, rgb(225, 5, 152) 10%, rgba(49, 5, 209, 0) 80%) repeat scroll 0% 0%,
    linear-gradient(225deg, rgb(195, 41, 156) 10%, rgba(10, 219, 216, 0) 80%) repeat scroll 0% 0%,
    rgba(0, 0, 0, 0) linear-gradient(315deg, #ff85a2 100%, rgba(9, 245, 5, 0) 70%) repeat scroll 0% 0%;
}

/* Shapes */
.background .shape {
  filter: blur(465px);
  position: absolute;
}

.background .shape:nth-child(1) {
  background-color: #ffb0d8;
  top: -340px;
  width: 300px;
  height: 300px;
}

.background .shape:nth-child(2) {
  left: 100px;
  bottom: -150px;
  background-color: #c26cf3;
  width: 200px;
  height: 210px;
}

.background .shape:nth-child(3) {
  background-color: #87cfdf;
  bottom: -150px;
  right: 100px;
  width: 300px;
  height: 300px;
}

/* Other page styling */
* {
  margin: 0;
  padding: 0;
}

/* Apply a fade-in effect to the items */
.item {
  background-color: #fff;
  color: #000;
  border-radius: 10px;
  display: grid;
  grid-template-rows: auto 3rem 3rem;
  text-align: center;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  opacity: 1;
  transition: opacity 0.3s, transform 0.3s;
}

@media only screen and (max-width: 600px) {
  main {
    grid-template-columns: repeat(1, 1fr);
  }

  .item img {
    max-width: 80vw;
    max-height: 11rem;
  }
}