/* body */
body {
  font-family: Helvetica, sans-serif;
  background-color: lightgray;
}

body.website {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* nav */
div#header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

nav {
  width: 100%;

  ul {
    list-style-type: none;
    background-color: black;
    text-align: center;
    margin: 0;

    li {
      display: inline-block;
      font-size: large;

      a {
        color: white;
        text-align: center;
        text-justify: center;
        white-space: nowrap;
        padding: 0.45cm;
        line-height: 1.5cm;
      }

      a:hover {
        background-color: gray;
      }
    }
  }
}

/* main */
main {
  align-items: center;
  justify-content: center;
  /* background-color: blueviolet; */
  padding: 5px;
  min-width: 60%;
  max-width: 95%;
}

main#about {
  display: flex;
  flex-wrap: wrap;
}

main#ringing {
  img {
    background-color: black;
  }
}

main#active-blog-post {
  width: 90%;

  iframe {
    width: 100%;
  }
}

/* hidden attribute is silly with flex boxes...
see: https://meowni.ca/hidden.is.a.lie.html */
[hidden] { display: none !important}

/* section */
section {
  justify-content: center;
  padding: 10px;
  width: 100%;
}

section#photos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  img {
    background-color: black;
    width: 300px;
    margin-left: 0.25cm;
    margin-right: 0.25cm;
  }
}

section#about-text {
  width: 45%;
}

/* imgs */
img {
  padding: 4px;
  margin-top: 0.5em
}

img#personal_image {
  width: 300px;
  background-color: black;
  vertical-align: middle;
}

img.align-right {
  float: right;
  margin-left: 20px;
}

img.align-center {
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

/* footer */
div#footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

footer {
  margin: 5px;
}


/* for small screens */
@media screen and (max-width:700px) {
  main#about {
    flex-direction: column-reverse;
  }

  section#about-text {
    width: 95%;
  }

  img.align-right {
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 10px auto
  }
}
