* {
  margin: 0;
  margin-bottom: 5rem;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  width: 98vw;
  background: black;
  overflow-x: hidden;
}

h1 {
  color: aliceblue;
  font-size: 6rem;
  margin: 2rem;
  padding-top: 5rem;
  text-align: center;
  text-shadow: 0.05rem 0.05rem 0rem red;
  letter-spacing: 0.2rem;
  visibility: hidden;
  user-select: none;
}
.title-text {
  width: 100vw;
}
#ghib-cont {
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding-left: 2rem;
  gap: 3rem;
  z-index: 2;
}

.card {
  width: 100%;
  max-width: 30rem;
  height: auto;
  aspect-ratio: 2 / 3;
  perspective: 1000px;
  position: relative;
  filter: drop-shadow(0.05rem 0.05rem 0rem red);
}

.card:hover {
  cursor: pointer;
  animation: hoverEffect 0.2s forwards;
}

.card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  position: relative;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 0.2rem;
  overflow: hidden;
}

.card-front {
  background-color: black;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0.5rem solid whitesmoke;
  transition: filter 0.3s ease-in-out, zoom .3s ease-in-out;
  user-select: none;
}

.card-front:hover img {
  filter: brightness(108%);
  zoom: 2 ;
}

.card-back {
  transform: rotateY(180deg);
  background-color: rgb(6, 6, 6);
  border: 0.5rem solid whitesmoke;
  color: aliceblue;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.card-back h2 {
  width: 100%;
  border-bottom: 1px solid rgba(245, 245, 245, 0.4);
  padding-bottom: 1rem;
  color: rgb(0, 221, 255);
  font-size: 2.7rem;
  margin-bottom: 2rem;
}

.card-back p {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.card-back div {
  margin: 0;
}
.description {
  border-top: 1px solid rgba(245, 245, 245, 0.4);
  padding-top: 1rem;
  margin-top: 2rem;
  color: rgb(0, 221, 255);
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 98vw;
  background-color: black;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: -1;
}

#welcome-container {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3.5rem;
  text-shadow: 0.05rem 0.05rem 0rem red;
  filter: drop-shadow(0.05rem 0.05rem 1rem black);
  color: whitesmoke;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 1;
  transition: opacity 1s ease-in-out;
  user-select: none;
}

.welcome {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
}

.label {
  width: 12rem;
  color: rgb(0, 221, 255);
  font-size: 1.2rem;
  flex: 1;
  text-align: left;
  margin-bottom: 0.9rem;
}

.value {
  width: 12rem;
  color: whitesmoke;
  font-size: 1.4rem;
  font-weight: 400;
  flex: 1;
  text-align: left;
  margin-bottom: 0.9rem;
}

@keyframes welcomeResize {
  0% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}


/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
  h1 {
    font-size: 4rem;
    margin: 1rem;
  }

  #ghib-cont {
    gap: 2rem;
    padding-left: 0;
  }

  .card {
    max-width: 90vw;
    aspect-ratio: 3 / 4;
    margin-inline: 2rem;
  }

  .card-back h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .card-back p {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  .welcome {
    font-size: 2.4rem;
  }
  .description {
    margin-top: 0.4rem;
  }

  .label {
    width: 20rem;
    font-size: 1.5rem;
  }

  .value {
    width: 12rem;
    font-size: 1.6rem;
    font-weight: 400;
  }
  
}

@media (max-width: 480px) {
  h1 {
    font-size: 3rem;
    margin: 1rem;
  }

  #ghib-cont {
    gap: 1rem;
  }

  .card-back h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .card-back p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .label {
    width: 7rem;
    font-size: 0.9rem;
  }

  .value {
    width: 10rem;
    font-size: 1rem;
    font-weight: 400;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 3rem;
    margin: 1rem;
  }

  #ghib-cont {
    gap: 1rem;
  }

  .card {
    max-width: 100vw;
    aspect-ratio: 2/3;
  }

  .card-back {
    padding: 0.5rem;
  }

  .card-back h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .card-back p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .welcome {
    font-size: 1.3rem;
  }
}
