* {
  box-sizing: border-box;
}


header {
  background: #2d2e3d;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

#search {
  margin-top: 0.5rem;
  padding: 0.5rem;
  width: 80%;
  max-width: 400px;
}

main {
  padding: 1rem;
}

#tips-container {
  width: 100%;
  max-width: 100%;
  padding: 1rem;
}

.tip-card {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.2s;
}

.tip-card:hover {
  background-color: #f9f9f9;
}

.tip-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 12px;
  flex-shrink: 0;
}

.tip-heading {
  margin: 0;
  font-size: 1rem;
  flex: 1;
}

.tip-heading a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.tip-heading a:hover {
  color: #007bff;
}


/*
.tip-card {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  padding: 0.75rem;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.tip-card:hover {
  transform: scale(1.02);
}

.tip-card img {
  width: 80px;
  height: auto;
  margin-right: 1rem;
  border-radius: 6px;
}

.tip-card img.tip-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.tip-heading {
  font-size: 1.2rem;
  color: #333;
  text-decoration: underline;
  margin: 0;
  flex: 1;

  
}
*/  


/* For smooth transitions */
body.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

body.fade-in {
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


@media (max-width: 600px) {
  #search {
    width: 95%;
  }
}
