:root{
    --blue :  rgb(90 39 209);
}
body {
  background: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  background: var(--blue);
  color: white;
  padding: 1.5rem 0;
  text-align: center;
}
header h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.2rem;
}
header p {
  font-size: 1.2rem;
  color: #fafcff;
}
.nav-link{
    font-weight: 500;
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid #dbdada;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation2 1s linear infinite;
  }

  @keyframes rotation2 {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
  } 


main {
  flex-grow: 1;
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.tool-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgb(0 0 0 / 0.1);
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}
.tool-card h2 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
label {
  font-weight: 600;
}
select, input[type="text"] {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 0.45rem 0.75rem;
  font-size: 1rem;
}
button#generateBtn {
  width: 100%;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.75rem;
  border-radius: 8px;
}
#memeImage {
  margin-top: 1.8rem;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
}
#statusMessage {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Below sections styling */
section.info-section {
  background: white;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 12px rgb(0 0 0 / 0.08);
}
section.info-section h3 {
  font-weight: 700;
  margin-bottom: 1rem;
}
section.info-section p {
  font-size: 1.05rem;
  color: #495057;
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .tool-card {
    padding: 1.5rem 1.5rem;
  }
  main {
    padding: 1rem 1rem;
  }
}
.thumbnail{
  aspect-ratio: 16 / 9; 
  width: 100%;
  overflow: hidden;
}
.thumbnail img {
  border-radius: 20px;
  object-fit: cover; /* Crop to fill */
  display: block;
  width: 100%;
  height: 100%;
}
.card-img-top{
  aspect-ratio: 16 / 9; 
}