html {
  box-sizing: border-box;
  height: 100%;
}

*,
*::after,
*::before {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: lemonchiffon;
  font-family: 'Arimo', sans-serif;
}

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

header {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  align-items: center;
  background-color: darkcyan;
}

header nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.photo-row {
  display: flex;
  justify-content: center;
  gap: 3rem; 
  margin-bottom: 2rem;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  margin: 2rem auto;
}

.intro .text {
  flex: 1;
  margin-right: 2rem;
}

.intro .image {
  flex: 1;
}

.intro img {
  width: 100%;
  border-radius: 8px;
}

footer {
  display: flex;
  justify-content: space-between;
  background-color: darkcyan;
  padding: 1rem;
}

h1 {
  text-align: center;
}

header h1:hover,
header nav ul li a:hover {
  text-decoration: underline;
  background-color: orange;
  padding: 0.5rem;
  color: darkcyan;
}

main h2 {
  text-align: center;
  text-decoration: underline;
  margin-top: 3rem;
  margin-bottom: 1.5rem; 
}

main p {
  text-align: justify;
  margin-bottom: 2rem; 
  line-height: 1.5rem;
}

footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .intro {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .intro .text {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .photo-row {
    flex-direction: column;
    align-items: center;
  }

  footer {
    flex-direction: column;
    align-items: center;
  }

  footer ul {
    align-items: center;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.5rem;
  }

  main {
    padding: 1rem;
  }

  .intro {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  main p {
    font-size: 1rem;
  }

  .photo-row img {
    width: 100%;
    height: auto;
  }
}