/* general */

@font-face {
  font-family: 'Rust';
  src: url('introrustg-base2line-webfont.woff') format('woff');
}

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

.page {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 100%;
  background-color: #222;
}

.section {
  width: 1200px;
}

a {
  font-family: 'Helvetica', 'Arial', sans-serif;
  font-weight: bold;
  text-decoration: none;
}

/* styles links */
a:link,
a:visited {
  color: #BBCADA;
  text-decoration: none;
  weight: 500;
}

a:hover {
  color: #668890;
  text-decoration: underline;
}

.content a:link,
.content a:visited {
  color: #789;
  text-decoration: none;
  weight: 500;
}

.content a:hover {
  color: #566868;
  text-decoration: underline;
}

/* styles text */

/* name */
.logo {
  font-family: 'Helvetica', 'Arial', sans-serif;
  font-size: 3em;
  font-weight: bold;
  text-decoration: none;
  color: #96A0B0;
}

/* use in text body */
h2 {
  font-family: 'Helvetica', 'Arial', sans-serif;
  font-size: 1.5em;
  font-weight: normal;
  text-decoration: none;
  color: #566070;
  margin-top: 20px;
}

/* credit */
h3 {
  font-family: 'Helvetica', 'Arial', sans-serif;
  color: #BBCADA;
  text-decoration: none;
  weight: 500;
  font-size: 1.1em;
}

/*subheading*/
h4 {
  font-family: 'Helvetica', 'Arial', sans-serif;
  color: #566070;
  text-decoration: none;
  weight: 300;
  font-size: .8em;
  margin-top: 5px;
}

p {
  font-family: 'Helvetica', 'Arial', sans-serif;
  weight: 300;
  margin-top: 15px;
  line-height: 1.5em;
}

.last {
  margin-bottom: 20px;
}

/* images */

.photo img {
  width: 100%;
  display: block;
}

.chart {
  width: 50px;
  height: auto;
  display: block;
  margin: 28px 10px 25px 0;
}

.cert img {
  width: 100%;
  display: block;
  margin: 30px 0 12px 0;
}

.headshot {
  float: right;
  width: 20%;
  margin-top: 20px;
  border-radius: 4px;
}

/* header section */
.header-container {
  background-color: #444;
  display: flex;
  justify-content: center;
}

.header {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

/* menu section */
.menu-container {
  font-family: 'Helvetica', 'Arial', sans-serif;
  background-color: #444;
  padding: 10px 20px 10px 20px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}

.menu {
  /* border: 1px solid #fff;  /* For debugging */
  display: flex;
  justify-content: space-between;
  min-width: 330px;
}

/* puts li's in a horizontal line, adjusts margins */
.menu > li {
  display: inline;
  margin-top: 30px;
}

/* use for content where you want text to flow around images */
.flow-container {
  background-color: #eee;
  padding: 0 20px 0 20px;
}

/* content section */
.content-container {
  background-color: #eee;
  padding: 0 20px 0 20px;
  /* display: flex;
  justify-content: left;
  overflow: auto; */
}

/* for content without flow */
.content {
  /* border: 1px solid #fff;  For debugging */
  display: flex;
  flex-direction: column;
}

.il-social{
  width: 30px;
  margin: 30px 0 10px 0;
}

/* styles input form */
.form-container {
  color: #414141;
  background-color: #EEE;
  padding: 0 0 20px 0;
  display: flex;
  flex-direction: column;
}

.input-form {
  /* border: 1px solid #fff;  /* For debugging */
}

/* styles most form elements */
.form-row {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  flex-wrap: wrap;
  margin: 0 20px 40px 20px;
}

/* styles input boxes */
.form-row input[type='text'],
.form-row input[type='email'],
.form-row input[type='name'] {
  background-color: #FFFFFF;
  border: 1px solid #D6D9DC;
  border-radius: 3px;
  max-width: 400px;
  padding: 7px;
  font-size: 14px;
}

/* styles "label" (static text) elements */
.form-row label {
  font-family: 'Helvetica', 'Arial', sans-serif;
  margin-bottom: 7px;
  text-align:  inherit;
  margin-top: 20px;
}

/* styles error messages in response to conditional formatting */
.form-row input[type='text']:invalid,
.form-row input[type='email']:invalid {
  border: 1px solid #D55C5F;
  color: #D55C5F;
  box-shadow: none; /* Removes default red glow in Firefox */
}

/* styles checkboxes */
.form-row .checkbox-label {
  margin-top: 30px;
}

.checkbox-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* styles text field */
.form-row textarea {
  font-family: "Helvetica", "Arial", sans-serif;
  font-size: 14px;
  border: 1px solid #D6D9DC;
  border-radius: 3px;
  min-height: 200px;
  margin-bottom: 10px;
  padding: 7px;
  resize: none;
}

/* styles any instructions for using text field */
.form-row .instructions {
  color: #999999;
  font-size: 14px;
}

/* styles submit button */
.form-row button {
  font-size: 16px;
  font-weight: bold;
  color: #BBCADA;
  background-color: #444;
  border: none;
  border-radius: 3px;
  padding: 10px 40px;
  cursor: pointer;
  width: 150px;
}

.form-row button:hover {
  background-color: #668890;
}

.form-row button:active {
  background-color: #82B593;
}

/* styles non-form text body elements */

ol > li {
  font-family: "Helvetica", "Arial", sans-serif;
  list-style-type: lower-alpha;
  margin: 20px 0 0 30px;
}

.example {
  background-color: #ccc;
  margin: 18px 0 30px 0;
  padding: 10px 20px 20px 20px;
}


/* footer section */
.footer-container {
  color: #ccc;
  background-color: #444;
  padding: 20px;
  display: flex;
  justify-content: space-between;
}

.footer-links {
  height: 150px;
  display: flex;
  justify-content: space-between;
}

.footer-links > a {
  display: inline;
  margin: 0 0 0 20px;
}

.social {
  width: 30px;
  display: flex;
  justify-content: flex-end;
}

.credit {
  color: #BBCADA;
  text-decoration: none;
  weight: 500;
  margin-top: 10px;
}


@media only screen and (max-width: 640px) {

  .menu-container {
    flex-direction: column;
  }

  .menu {
    /* border: 1px solid #fff;  /* For debugging */
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid #111;
  }

  .menu > li {
    margin-top: 7px;
  }

  .headshot {
    width: 25%;
  }

}

@media only screen and (max-width: 450px) {

  .headshot {
    width: 30%;
  }

  .footer-container {
    display: flex;
    flex-direction: column-reverse;
  }

  .footer-links {
    height: 50px;
  }

  .footer-links > a {
    display: inline;
    margin: 0;
  }

}
