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

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #e8f0f2;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

header {
  background-color: #00796b;
  color: white;
  text-align: center;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  display: inline-block;
}

nav a:hover {
  background-color: #004d40;
}

main {
  background: white;
  padding: 20px;
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.flex-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.flex-section .text {
  flex: 1 1 55%;
}

.flex-section .image {
  flex: 1 1 35%;
  display: flex;
  justify-content: center;
}

.flex-section img {
  width: 280px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 2px 2px 5px #aaa;
}

footer {
  background-color: #004d40;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  font-size: 0.9em;
  border-radius: 8px;
}

@media (max-width: 900px) {
  body {
    padding: 15px;
  }

  main {
    padding: 18px;
  }

  .flex-section {
    gap: 16px;
  }
}

@media (max-width: 600px) {

  header {
    padding: 16px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  nav a {
    display: block;
    margin: 4px 0;
    text-align: center;
  }

  main {
    padding: 15px;
  }

  .flex-section {
    flex-direction: column;
    text-align: center;
  }

  .flex-section .text,
  .flex-section .image {
    flex: 1 1 100%;
  }

  .flex-section img {
    width: 90%;
    max-width: 300px;
  }

  footer {
    font-size: 0.85rem;
  }
}
