/* Nav Bar */

nav {
  width: 64.41%; /* Fits to the main content */
  background-color: #222222;
  border-radius: 0 0 8px 8px; /* Rounds off the bottom corners */
  list-style: none;
  text-align: center;
  height: 46px;
  /* Sticks it to the top */
  position: fixed;
  top: 0;
  z-index: 10;
}

nav li {
  display: inline; /* 1 line */
}

nav a:hover {
  color: #D69750; /* Makes the links go orange */
}

nav a {
  padding: 0px 20px; /* Distance between items */
  color: white;
  text-decoration: none;
  margin-top: -30px; /* Moves it to the very top */
}

/* Banner Box */

#banner-box {
  display: grid;
  grid-template-columns: 75% 25%;
}

.banner {
  margin-top: 50px; /* Replace where nav bar would be */
  /* Goes across the area */
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  border-radius: 5px;
}

.logo {
  /* Goes in top-right area */
  margin-top: -8px;
  grid-column: 2;
  grid-row: 1;
}

/* Main Content Styling */

#content {
  /* Makes the spaces on the left and right */
  max-width: 65%;
  margin-left: auto;
  margin-right: auto;
  /* Cool looking border */
  border-left: outset 3px;
  border-right: inset 3px;
  /* Makes the borders go to the top and bottom of the page */
  margin-top: -10px;
  margin-bottom: -10px;
}

main {
  /* Makes a space around the edges */
  padding: 1em;
}

/* Styling elements */

h1, h2, h3, h4, h5, h6 {
  font-family: Open Sans,Arial,sans-serif;
}

p {
  font-family: Helvetica,Times New Roman,serif;
  line-height: 130%;
  font-size: 105%;
}

#menu .shadow {
  box-shadow: 2px 60px 20px -35px rgba(120, 120, 120, 1); /* Shadow effect */
  border-radius: 3px;
}

/* Seperated for phone compatability */

.shadow {
  box-shadow: 2px 60px 20px -35px rgba(120, 120, 120, 1); /* Shadow effect */
  border-radius: 3px;
}

/* Footer */

footer {
  /* Puts them in their spots */
  padding-left: 100px;
  padding-right: 100px;
  display: grid;
  grid-template-columns: 70% 30%;
  
  background-color: #222222;
  color: white;
}

footer a {
  text-decoration: none;
  color: white;
}

footer a:hover {
  color: #D69750; /* Makes the links go orange */
}

#copyright {
  margin-left: -80px;
  grid-column: 1/-1;
}

/* Styling CSS goes here */
/* Home CSS */

#home-intro-paragraph {
  text-align: center;
}

/* Makes the page selection */

#menu {
  padding-top: 20px; /* Spacing between menu and the intro paragraph */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  text-align: center;
  grid-gap: 10px;
}

#menu a {
  color: black;
  text-decoration: none;
}

#menu h3 {
  padding-top: 15px
}

/* Decides how the things are split up */

@media only screen and (min-width: 1750px) {
  #contact-me-box {
    grid-column: 5 / 6;
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media only screen and (min-width: 1527px) and (max-width: 1749px) {
  #contact-me-box {
    grid-column: 1 / -1;
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media only screen and (max-width: 1526px) and (min-width: 1158px) {
  #forms-box {
    grid-column: 1 / 3;
    grid-row: 2/3;
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
  }
  
  #contact-me-box {
    grid-column: 2 / 4;
    grid-row: 2/3;
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media only screen and (min-width: 789px) and (max-width: 1157px) {
  #contact-me-box {
    grid-column: 1 / -1;
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
  }
}
 
/* Child Pages CSS */

#description-grid {
  display: grid;
  grid-template-columns: 66% 34%;
  grid-template-rows: auto;
}

.therapy-title, .therapy-description {
  grid-column: 1/2;
}

.therapy-description-img {
  grid-column: 2/3;
  grid-row: 3/4;
  margin-left: auto;
  margin-right: auto;
}

.forms-img {
  grid-row: 3/4;
  margin-bottom: 30px;
}

#form .therapy-description {
  margin-top: -8px;
}

#form h4 {
  grid-column: 1/2;
  grid-row: 3/4;
  margin-top: -5px;
}

#downloads {
  grid-column: 1/2;
  grid-row: 3/4;
  margin-top: 18px;
}

#downloads li a {
  text-decoration: none;
}

#downloads li a:hover {
  text-decoration: underline;
}

/* Contact Me */
/*
#contact-me #description-grid {
  grid-template-columns: 50% 50%;
}

.contact-me-img {
  grid-column: 2/3;
  grid-row: 4/5;
  margin: auto;
  padding-top: 10px;
}
*/
/* Form */
/*
#feedback {
  background-color: antiquewhite;
  padding: 0.5em;
  display: none;
}

.moveDown {
  margin-top: 3em;
}

#contact-me form {
  width: 90%;
  grid-column: 2/3;
  grid-row: 2/4;
  
  margin: 0 auto;
  padding: 1em;
  border: 1px solid #CCC;
  border-radius: 0.5em;
}

#use-this {
  font-size: 90%;
}

#contact-me main ul {
  list-style: none;
  padding: 0;
}

#contact-me form li + li {
  margin-top: 1em;
}

#contact-me label {
  display: inline-block;
  max-width: 90px;
  text-align: right;
}

#contact-me input {
  width: 75%;
  
  font: 1em sans-serif;
  box-sizing: border-box;
  border: 1px solid #999;
}

#contact-me textarea {
  width: 100%;
  height: 100%;
  
  font: 1em sans-serif;
  box-sizing: border-box;
  border: 1px solid #999;
  vertical-align: top;
  height: 5em;
}

#contact-me input:focus, textarea:focus {
  border-color: #000;
}

#contact-me button {
  margin-left: 0.5em;
}
*/
/* 404 */

#error-page {
  margin-top: 50px;
  text-align: center;
  margin-bottom: 20px;
}

#error-page a {
  padding: 7px;
  background-color: antiquewhite;
  border: solid 1px #222222;
  color: black;
  text-decoration: none;
  border-radius: 5px;
}

#error-page a:hover {
  color: #46a7d8;
}

/* Phone Friendly Time */

@media only screen and (max-width: 440px) {
  nav {
    height: 138px;
    position: relative;
  }
  nav li {
    line-height: 2.5em;
  }
}

@media only screen and (max-width: 1120px) {
  nav {
    width: 100%;
    left: 0px;
  }
}

@media only screen and (max-width: 750px) {
  nav {
    height: 92px;
  }
  nav li {
    line-height: 2em;
  }
}

@media only screen and (max-width: 1250px) {
  #banner-box {
    /* Moves logo over */
    display: grid;
    grid-template-columns: 65% 35%;
  }
}

@media only screen and (max-width: 900px) {
  .logo {
    /* Removes logo for if screen gets too small */
    width: 0px;
  }
}

/* Banner Box and 404 Phone with Nav Bar */

@media only screen and (max-width: 750px) {
  .banner {
    margin-top: 96px;
  }
  #error-page {
    margin-top: 96px;
  }
}

@media only screen and (max-width: 440px) {
  .banner {
    margin-top: 0px;
  }
  #error-page {
      margin-top: 0px;
  }
}

@media only screen and (max-width: 1100px) {
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  #copyright {
    margin-left: 0px;
  }
}

@media only screen and (max-width: 700px) {
  footer {
    padding-top: 5px;
    padding-bottom: 5px;
    display: block;
    
    margin-bottom: -30px; /* For some reason it stops going to the bottom at this point so I have to redo that */
  }
}

@media only screen and (max-width: 520px) {
  #content {
    max-width: 100%;
  }
}

@media only screen and (max-width: 820px) {
  main #description-grid {
    display: block;
  }
  .shadow {
    box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 255);
  }
}

@media only screen and (max-width: 1120px) {
  #contact-me main #description-grid {
    display: block;
  }
  #contact-me .shadow {
    box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 255);
  }
}