/*titels*/
h1 {
  font-family: "Century Gothic", sans-serif;
  color: #fa6432;
  font-weight: bold;
  font-size: 24px;
  line-height: 24px;
  margin-bottom: 2rem;
  margin-left: 1rem;
}
h2 {
  font-family: "Century Gothic", sans-serif;
  color: #fa6432;
  font-weight: normal;
  font-size: 18px;
  line-height: 18px;
  margin-left: 1rem;
}
h3 {
  margin-left: 1rem;
}
h2 a {
  text-decoration: none;
}
p {
  font-family: Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
  margin-left: 1rem;
  margin-right: 1rem;
}
li p {
  margin: 0rem;
}
/*foto*/
figure {
  float: left;
  display: block;
  margin: 0 auto;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
  max-width: 100%;
}
img {
  max-width: 100%;
  border-radius: 0.25rem;
}
.smallfig {
  max-width: 30%;
}
/*body*/
body {
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-column: 1fr;
  grid-row: auto;
  max-width: 62.5rem;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 0.5rem;
  gap: 1rem;
  background-color: #00283c;
}
header {
  padding: 0.5rem;
  background-color: rgba(0, 81, 255, 0.87);
  border-radius: 1rem;
}
main {
  padding: 0.5rem;
  background-color: rgba(0, 81, 255, 0.87);
  border-radius: 1rem;
  color: white;
}
/*navbar*/
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
nav li {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-right: 0.5rem;
  background-color: aqua;
  border: solid rgb(0, 161, 161) 2px;
}
nav li a {
  color: black;
  text-decoration: none;
}
nav ul {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  list-style: none;
}
nav li:hover,
nav li:active {
  background-color: #43a047;
  font-weight: bold;
}
p a {
  color: white;
}

.navbar {
  width: 100%; /* with fixed I must explicitly declare width */
  top: 0; /* position at top of page */
  margin: 0;
  padding: 0;
}
.navbar li,
.navbar .logo {
  padding: 1rem;
}

.nav-icon {
  float: right;
  padding: 1rem;
  background-color: white;
}
li p {
  padding: 0;
}
.toggle {
  display: none;
  position: absolute; /* over the page content instead of pushing it downwards */
  top: 3.15rem; /* underneath the logo instead of on top of it */
  width: 100%; /* full width menu */
  text-align: left;
}
/*article*/
article {
  background-color: aquamarine;
  border-radius: 1rem;
  color: black;
  margin: 0.5rem;
  padding: 0.125rem;
}
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.child {
  flex: 0 0 100%;
  box-sizing: border-box;
}
/*form*/
form {
  margin: 1rem;
}
/*mediaquery*/
@media screen and (min-width: 900px) {
  figure {
    float: left;
    display: block;
    margin: 0 auto;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    max-width: 48%;
  }
  .container {
    justify-content: space-around;
  }
  .child {
    flex: 0 0 50%; /* two per row */
    box-sizing: border-box;
  }
  .child:last-child {
    flex: 0 0 100%;
  }
  .nav-icon {
    display: none;
  }
  .toggle {
    position: static; /* no longer absolute, in the normal flow of the page lay-out */
    display: flex;
    justify-content: flex-start; /* aligns the menu items to the right */
  }
}
