
/* styles.css */
:root {
  --sunset-orange: #f48a2a;
  --deep-orange: #d66e1d;
  --light-yellow: #fff2c9;
  --dark-text: #2b2b2b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--sunset-orange);
  color: var(--dark-text);
}

/*Header*/

.site-title {
  margin-top: 1rem;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--light-yellow);
}

.header {
  padding: 0;
}

.header_container {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tree_img {
  width: 55%;
  max-width: 800px;
}

/* Wiggle Animation */
@keyframes wiggle {
    0%   { transform: rotate(0deg); }
    15%  { transform: rotate(-5deg); }
    30%  { transform: rotate(4deg); }
    45%  { transform: rotate(-4deg); }
    60%  { transform: rotate(3deg); }
    75%  { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

/* Apply Wiggle on Hover */
.header_div:hover {
    animation: wiggle 0.75s ease-in-out;
}

/*Navigation bar*/

.navbar {
  background: #f87b2d; /* main orange color */
  width: 100%;
  margin: 0 auto;
  border-radius: 6px;
  display: flex;
  
}

.navbar ul {
  display: flex;
  padding: 0.75rem;
  list-style: none;
}

.navbar a {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.5s all;
}

.navbar a:hover {
  background-color: #d66e1d;
}



.section-container {
  width: 100%;
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 1rem;
  background: var(--light-yellow);
  border-radius: 10px;
}

.intro {
  margin-bottom: 1.5rem;
}

/*a links*/

a {
  color: var(--dark-text);
  font-weight: 600;
  text-decoration: none;
}





/*Book section*/

.books h1, h2, h3 {
  margin-bottom: 1rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  width: 100%;
}


.book-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  place-items: center;
  transition: 0.5s all;
}


.book-card img {
  width: 75%;
  height: 150px;          /* fixed height for uniform cards */
  object-fit: cover;      /* prevents image stretching */
}

.book-card:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.book-card a:hover{
  color: var(--deep-orange);
}


/*Photos section*/

.photos h1, h2, h3 {
  margin-bottom: 1rem;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1.5rem;
  width: 100%;
}


.photos-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  place-items: center;
}


.photos-card img {
  width: 75%;
  height: 150px;          /* fixed height for uniform cards */
  object-fit: cover;      /* prevents image stretching */
  border-radius: 50%;   /*makes the images circular  */
  border: 4px solid var(--sunset-orange);
  transition: 0.5s all;
}

.photos-card img:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.photos-card a:hover{
  color: var(--deep-orange);
}


/*Footer*/

.footer {
  text-align: center;
  padding: 1rem;
  color: white;
}

/*Construction styling*/

.construction {
  text-align: center;
  padding: 2rem;
  color: white;
  font-size: 1.5rem;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.construction img {
  width: 75%;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .header_container {
    flex-direction: column;
    text-align: center;
  }

  .tree_img {
    width: 100%;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
  }

  .book-grid, .photos-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
