/* google font */
@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');

@font-face {
  /* Name your font family */
  font-family: 'NorseBold';
  /* Locate the .ttf file within your directory*/
  src: url('assets/Norsebold.otf');
}

/* css reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* my styling goes here */
body {
  background-color: #FEF9E2;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 20px;
}

.hero-container {
  text-align: center;
  padding: 48px 24px;
}

.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns, minimum 300px, expanding to fill space */
  gap: 30px;
  padding: 20px;
  max-width: 1280px;
  margin: 0 auto; /* Centers the container */
}

.card {
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

/* Image container */
.card .img-container {
  width: 100%;
  height: 265px;
  overflow: hidden;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .img-container img {
  transform: scale(1.1);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Animated underline effect to the recipe title */
.info h2::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #CC9543;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover .info h2::after {
  transform: scaleX(1);
}

.info {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 10px;
}

.info p {
  margin-bottom: 15px;
  color: #333;
}

h1 {
  font-family: "NorseBold";
  text-transform: uppercase;
  font-size: 3rem;
  color: #A77935;
}

.info h2 {
  font-size: 1.5rem;
  margin: 0 0 10px 0;
  color: #333;
  position: relative;
  display: inline-block;
}