@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&display=swap');

/* General Styles */

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  height: 100%;
  font-family: "Open Sans", Arial, Helvetica, Sans-serif;
}

.content {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 25px;
}

.portfolio-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: -1;
  background-color: #000;
  width: 100vw;
  height: 100vh;
}

.portfolio-bg img {
  object-fit: cover;
  object-position: left 15%;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

/* Header */

header {
  display: flex;
  width: 100vw;
  padding: 30px;
  background-color: #fff;
}

header > .title {
  flex-basis: 20%;
  font-weight: bold;
  color: #3a3a3a;
  font-size: 1em;
}

/* Home Header */

header.home {
  background-color: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

header.home > .title {
  color: #fff;
}

/* Navigation */

nav.main ul, nav.home ul {
  flex-basis: 80%;
  list-style: none;
  text-align: center;
}

nav.main ul li, nav.home ul li {
  margin-right: 20px;
  display: inline-block;

}

nav.main ul li:last-child, nav.home ul li:last-child {
  margin-bottom: 0;
}

nav.main ul li a, nav.home ul li a {
  text-decoration: none;
}

nav.main ul li a, nav.home ul li a {
  color: #3a3a3a;
  font-weight: 700;
}

nav.home ul li a {
  color: #E2DCCD !important;
}

nav.main ul li a:hover, nav.home ul li a:hover {
  text-decoration: underline;
  transition: 0.3s ease;
}

nav.main ul li a:after, nav.home ul li a:after {
  content: '';
  position: relative;
  height: 1px;
  background-color: rgba(239, 53, 37, 0.4);
  padding: 10px 0;
  margin: 10px 0;
}

/* Mobile Navigation */

#menuToggle {
  display: none;
  position: relative;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle a {
  text-decoration: none;
  color: #3a3a3a;
  transition: color 0.3s ease;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
  -webkit-touch-callout: none;
}

#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #fff;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);,
  background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
  opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}


#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
}

#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

nav.mobile ul, nav.mobile-home ul {
  position: absolute;
  top: 53px;
  width: 100vw;
  height: calc(100vh - 83px);
  padding: 50px;
  background: #ededed;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  transform-origin: 0% 0%;
  transform: translateX(-190%);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

nav.mobile li, nav.mobile-home li {
  padding: 10px 0;
  font-size: 1.5em;
}

#menuToggle input:checked ~ ul {
  transform: translateX(-90%);
}

nav.mobile > #menuToggle span {
  background: #3a3a3a;
}

/* Text Over Image */

section.overlay {
  color: #fff;
  position: relative;
  height: calc(100vh - 83px);
}

section.overlay div {
  position: absolute;
  bottom: 15%;
  left: 0;
  right: 0;
  transform: translateY(30%);
}

section.overlay p {
  margin-bottom: 10px;
}

section.overlay .title {
  font-size: 4em;
}

section.overlay .subtitle {
  font-size: 1em;
}

section.overlay p:last-child {
  margin-bottom: 0;
}

/* Main Content */

article.main h1 {
  margin-bottom: 15px;
}

article.main p {
  margin-bottom: 10px;
  line-height: 1.5;
}

article.main p:last-child {
  margin-bottom: 0;
}

article.main p a {
  text-decoration: none;
  color: inherit;
  font-style: italic;
}

article.main p a:hover {
  text-decoration: underline;
}

article.main ul {
  list-style: none;
  margin-bottom: 10px;
}

article.main ul li {
  margin-bottom: 5px;
}

article.main ul li::before {
  content: '-';
  margin-right: 5px;
}

.table {
  margin: 15px 0;
  overflow-x: auto;
}

.table table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #ddd;
}

th, td {
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #f2f2f2
}

tfoot td:first-child {
  font-weight: bold;
}

ul.social li {
  display: inline-block;
}

ul.social li:first-child::before {
  content: '' !important;
  margin: 0 !important;
}

ul.social li::before {
  content: '\2022' !important;
  margin-left: 3px;
}

article.main ul a {
  text-decoration: none;
  color: #3a3a3a;
}

article.main ul a:hover {
  text-decoration: underline;
}

article.main h2, article.main h3 {
  margin-bottom: 15px;
  font-size: 1.25em;
}
div.skills {
  position: relative;
}

div.skills p {
}

div.skills img {
  width: 250px;
  margin-right: 20px;
  float: left;
}

div.skills h3 {
  margin-top: 60px;
}

div.skills h3:first-of-type {
  margin-top: 0;
}

img.sig {
  width: 100%;
  max-width: 500px;
}

/* Coffee Shop Ordering */

.coffee table {
  width: 100%;
  margin: 10px 0;
}

.placeOrder .orderList {
  display: flex;
  flex-flow: wrap;
}

.placeOrder .orderList .item {
  width: 49%;
  margin-right: 1%;
}

.placeOrder .orderList .item:nth-child(2n) {
  margin-right: 0;
}

.placeOrder .orderList .item select {
  width: 100%;
  margin-bottom: 10px;
  padding: 5px 0 5px 5px;
}

.placeOrder .orderList label {
  display: block;
  margin-bottom: 5px;
}

.coffee button {
  border: 0;
  padding: 10px 15px;
  background-color: #17ABC7;
  color: #fff;
  cursor: pointer;
  text-transform: capitalize;
  font-weight: 500;
}

.currentOrder {
  margin-top: 20px;
}

#basket {
  margin-bottom: 20px;
}

/* Footer */

footer {
  background-color: #3a3a3a;
}

footer p {
  color: #fff;
}

/* Mobile Responsive */

@media screen and (max-width: 820px) {
  body {
    font-size: 12px;
  }
  header {
    display: block;
  }
  header > .title {
    display: inline-block;
    font-size: 1.5em;
  }
  nav.main, nav.home {
    display: none;
  }
  nav.mobile, nav.mobile-home {
    display: inline-block;
    float: right;
  }
  #menuToggle {
    display: block;
  }
  section.overlay .title {
    font-size: 3em;
  }
  section.overlay .subtitle {
    font-size: 1.5em;
  }
}

@media screen and (max-width: 580px) {
  .currentOrder .itemList button {
    display: block;
    margin-bottom: 10px;
  }
  .currentOrder .itemList button:last-child {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 500px) {
  #menuToggle input:checked ~ ul {
    transform: translateX(-87.4%);
  }
}

@media screen and (max-width: 350px) {
  #menuToggle input:checked ~ ul {
    transform: translateX(-82%);
  }
}
