@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  background-color: #ffe6d4;
  font-family: "PT Sans", Arial, Helvetica, sans-serif;
}

main {
  padding: 2.5rem 4rem;
  max-width: 1250px;
  margin: 0 auto;
}

main ul {
  list-style: decimal;
  margin-left: 20px;
}

main ul li {
  margin: 1.3rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Baloo 2", Arial, Helvetica, sans-serif;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 5.5rem;
}

h2 {
  font-size: 3rem;
  font-weight: 600;
}

.hero {
  display: grid;
  justify-content: center;
  justify-items: center;
}

#image-container {
  margin: 4rem 0;
  width: 80vw;
  max-width: 300px;
}

#image-container img:hover {
  transform: scale(1.05) rotate(4deg);
  transition: transform 0.3s ease-in-out;
}

.gallery {
  margin-top: 2.6rem;
}

.gallery-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 4rem;
  justify-items: center;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  border: 0.5px solid #999;
  transition: transform 0.2s ease-in-out;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

footer {
  background-color: #fff;
  padding: 1rem 4rem;
  display: flex;
  justify-content: center;
  font-size: 1.2rem;
}

a {
  text-decoration: none;
  color: #000;
}

@media (min-width: 768px) {
  html {
    font-size: 75%;
  }
  .hero {
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (min-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

nav {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}


.nav-links {
  display: inline-flex;
  position: relative;
  justify-content: center;
  list-style: none;
  background-color: rgba(255, 255, 255, 0.4 );
  backdrop-filter: blur(10px);
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.nav-links a {
  margin: 1rem 1.5rem;
  display: inline-block;
  color: slateblue;
  font-weight: bold;
}

.nav-links a:hover {
    transform: scale(1.05);
}

.history-content {
  max-width: 90ch;
  margin: 0 auto;
  line-height: 1.6;
  padding: 2rem;
}

.history-content p {
    margin-bottom: 1.5rem;
}