/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Main Styles */
html {
  /* background-color: rgba(221, 167, 234, 0.847); */
  /* background-color: rgba(239, 129, 189, 0.847); */
  /* background-color: rgba(50, 213, 13, 0.847); */
}

body {
  width: 85%;
  margin: 5% auto;
  background-color: white;
  border: 1.0px solid black;
  box-shadow: 7px 8px rgb(121, 121, 121);
  border-radius: 5px;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  line-height: 1.6;
  cursor: url('assets/images/TRUMPFACTCHECK.png'), auto;
}

/* Tagline Section */
#container-tagline {
  display: block;
  text-align: center;
  margin: 1rem auto;
}

#tagline,
.top-heading {
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: 2rem; /* Default smaller font for mobile */
  color: rgb(149, 90, 245);
  letter-spacing: 0.1em;
  border: 2px dotted black;
  border-radius: 10px;
  text-align: center;
  padding: 1rem;
  margin: 2rem 10%; /* Increased margin for more spacing from the edges */
}

#sub-tagline {
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  font-size: 1.5rem; /* Default smaller font for mobile */
  text-align: center;
  color: rgb(252, 185, 2);
  margin: 0.5rem 10%;
}

/* Mini Bio */
.mini-bio {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  font-size: 1rem;
  color: rgb(48, 47, 47);
  text-align: left;
  margin: 0.5rem 10%;
}

.mini-bio a {
  color: #d73964;
  text-decoration: none;
  font-weight: 400; /* Ensure links aren’t too bold */
}

.mini-bio a:hover {
  color: rgb(118, 184, 164);
}

/* Portfolio Grid */
.listing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4em;
}

.portfolio-img {
  border: 1px solid #eaeaea;
  width: 100%;
  max-width: 375px;
  height: auto;
  margin-bottom: 1rem;
}

.portfolio-info {
  width: 100%;
  text-align: center;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
}

.portfolio-info a {
  text-decoration: none;
  color: none;
}
.portfolio-info p a {
  text-decoration: underline;
  color: black;
}

.portfolio-info h3 {
  color: rgb(252, 185, 2);
  font-size: 1.2rem; /* Default smaller font for mobile */
  margin-top: 0.5rem;
}

.portfolio-info p {
  font-size: 1rem;
  color: rgb(48, 47, 47);
  line-height: 1.5;
}

/* Clearfix */
.clearfix:after {
  content: "";
  display: block;
  clear: both;
}

/* Firework */
.firework {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, red, yellow 10%, blue 20%);
  animation: circular-explosion 0.8s ease-out forwards;
  pointer-events: none; /* Prevent interference with touch events */
}

@keyframes explode {
  0% {
      transform: scale(1);
      opacity: 1;
  }
  100% {
      transform: scale(3);
      opacity: 0;
  }
}

@keyframes circular-explosion {
  0% {
      transform: scale(0);
      opacity: 1;
  }
  100% {
      transform: scale(3);
      opacity: 0;
  }
}

/* Responsive Adjustments */

/* Tablets and Medium Screens */
@media (min-width: 600px) {
  #tagline,
  .top-heading {
    font-size: 2.2rem; /* Medium size for tablets */
  }

  #sub-tagline {
    font-size: 1.6rem; /* Medium size for tablets */
  }

  .mini-bio {
    font-size: 1.3rem;
    padding: 1.5rem;
  }

  .listing {
    grid-template-columns: 1fr 1fr; /* Two-column grid for medium screens */
  }

  .portfolio-info h3 {
    font-size: 1.3rem; /* Adjusted for tablet */
  }
}

/* Desktops and Larger Screens */
@media (min-width: 1024px) {
  body {
    width: 80%;
  }

  #tagline,
  .top-heading {
    font-size: 2.5rem; /* Larger size for desktops */
  }

  #sub-tagline {
    font-size: 1.8rem; /* Larger size for desktops */
  }

  .mini-bio {
    font-size: 1.2rem;
    max-width: 80%;
  }

  .listing {
    grid-template-columns: repeat(3, 1fr); /* Three-column grid for large screens */
  }

  .portfolio-info h3 {
    font-size: 1.2rem; /* Adjusted for larger screens */
  }
}
