/* reset em size */
html {
  font-size: 16px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

.container {
  display: flex;
  justify-content: center;
}

.container * {
  max-width: 1200px;
}

/* section takes whole page and whole window with content in the center */
.container > section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

main > hr {
  width: 1200px;
}

header {
  width: 100%;
  background-color: var(--yinmn-blue);
  position: fixed;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  width: 100%;
}

nav span a {
  color: var(--mint-cream);
  font-size: 1.5em;
  font-weight: bold;
  /* no link decoration */
  text-decoration: none;
}

nav span a:hover {
  text-decoration: underline;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  padding: 0 1em;
}

nav ul li a {
  color: var(--mint-cream);
  text-decoration: none;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* element with main class is intro section on the page items stacked on top and bigger font size with bold decoration*/
section.main {
  gap: 1rem;
  flex-direction: column;
  text-align: center;
  font-size: 1.25rem;
}

/* about class items font size is bigger. flex display with separate content */
section.about {
  font-size: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
}

/* about class pragraphs should have small gap, padding and border and should be same height*/
section.about p {
  border: 1px solid var(--cambridge-blue);
  padding: 1rem;
  box-shadow: 0 0 5px 0 var(--cambridge-blue);
  background-color: var(--honeydew);
}

/* about class's div element should be flex */
section.about section.content {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 1em;
  flex-direction: column;
}

section.services {
  font-size: 1.5em;
  flex-direction: column;
  gap: 1.25em;
}

section.services section.content {
  text-align: center;
}

.card-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}

.card-list .card {
  border: 1px solid var(--cambridge-blue);
  box-shadow: 0 0 5px 0 var(--cambridge-blue);
  max-width: 450px;
  border-radius: 8px;
  padding: 1em;
  background-color: var(--mint-cream);
}

.card-list .card .card-title {
  font-weight: bold;
  margin-bottom: 1.25em;
}

section.contact {
  text-align: center;
  flex-direction: column;
  gap: 1.25em;
}


/* footer is fixed to the bottom of the page */
footer {
  width: 100%;
  background-color: var(--yinmn-blue);
  height: 3em;
  padding-top: 0.5em;
  position: fixed;
  bottom: 0;
}

footer p {
  color: var(--mint-cream);
  text-align: center;
}
