@import url('https://fonts.googleapis.com/css?family=Montserrat');

body {
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
  margin: 0px;
  margin-top: 50px;
  padding: 0px;
  background-color: #F7F9FB;
  color: rgb(2, 16, 25);
}

p {
  text-align: justify;
}

h1 {
  font-variant: small-caps;
  font-size: 2.5em;
}

figure {
  margin: 0;
  text-align: center;
}

a, a:visited, a:hover {
  color: rgb(80, 133, 165);
}

.businessname {
  font-weight: bold;
  font-variant: small-caps;
}
.businessname::first-letter {
  color: red;
}

/* Navigation */
#menu {
  position: fixed;
  top: 0px;
  width: 100%;
  background-color: rgba(142, 40, 11, 0.50);
}

#menu > ul {
  margin: 0px;
  padding: 0px;
  list-style: none;
  display: grid;
  height: 50px;
  width: 100%;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: auto;
  grid-auto-flow: column;
  justify-items: stretch;
}

#menu > ul > li {
  text-align: center;
  align-self: center;
}

#menu > ul > li > a, #menu > ul > li > a:visited, #menu > ul > li > a:hover {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

#menuIcon {
  display: none;
  border: none;
  background: none;
  font: inherit;
  outline: inherit;
  cursor: pointer;
  color: white;
}

/* Account for narrower screens*/
@media (max-width: 990px) {

  #menuIcon {
    display: grid;
    height: 50px;
    font-size: larger;
  }

  #menu > ul {
    display: none;
    height: auto;
  }

  #menu > ul {
    grid-template-columns: auto;
    grid-template-rows: repeat(7, 1fr);
  }
}

/* Full page layout */
.fullpage {
  display: grid;
  width: 100%;
  height: 100vh;
  grid-template-columns: 10% auto 10% auto 10%;
  grid-template-rows: 1fr 0px 10% auto 10% 1fr;
}

.withintro {
  grid-template-rows: 1fr 10% 10% auto 10% 1fr;
}

.lefttext{
  grid-template-columns: 10% auto 10% 300px 10%;
}

.righttext {
  grid-template-columns: 10% 300px 10% auto 10%;
}

.withintro > .intro {
  grid-column: 2/5;
  grid-row: 3;
}

.fullpage > .leftheader {
  grid-column: 2;
  grid-row: 3;
}

.fullpage > .leftitem {
  grid-column: 2;
  grid-row: 4;
}

.fullpage > .leftitem > img {
  width: 100%;
}

.fullpage > .rightheader {
  grid-column: 4;
  grid-row: 3;
}

.withintro > .leftheader, .withintro > .rightheader {
  grid-row: 2;
}

.fullpage > .rightitem {
  grid-column: 4;
  grid-row: 4;
}

.fullpage > .rightitem > img {
  width: 100%;
}

.fullpage > .fullpage-footer {
  grid-column: 2/5;
  grid-row: 5;
}

.next {
  width: 100%;
  text-align: center;
  font-size: 3em;
}

#footer {
  margin-left: 10%;
  margin-bottom: 5%;
}

/* Account for narrower screens*/
@media (max-width: 990px) {

  section {
    margin-top: 50px;
  }

  .next {
    display: none;
  }

  #footer {
    margin-left: 50px;
    margin-bottom: 20px;
  }

  .fullpage {
    height: auto;
    grid-template-columns: 50px auto 50px;
    grid-template-rows: 20px auto 0px auto 20px auto 0px auto 20px;
  }
  .withintro {
    grid-template-rows: 20px auto auto auto 20px auto 0px auto 20px;
  }

  .fullpage > .leftheader {
    grid-column: 2;
    grid-row: 2;
  }

  .withintro > .intro {
    grid-column: 2;
    grid-row: 3;
  }

  .fullpage > .leftitem {
    grid-column: 2;
    grid-row: 4;
  }

  .fullpage > .leftitem > img {
    width: 50%;
  }

  .fullpage > .rightheader {
    grid-column: 2;
    grid-row: 6;
  }

  .fullpage > .rightitem {
    grid-column: 2;
    grid-row: 8;
  }

  .fullpage > .rightitem > img {
    width: 50%;
  }

  .fullpage > .fullpage-footer {
    grid-column: 2;
    grid-row: 9;
  }
}

#intro {
  margin-top: -50px;
  background-image: url('../img/main-site-banner.jpg');
  background-size: cover;
  color: white;
}

#intro a, #intro a:visited, #intro a:hover {
  color: rgb(254, 190, 0);
}

#intro > h1 {
  margin: 0px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
}
#intro > .subsection {
  margin: 0px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
}
