article, aside, details, figcaption, figure, footer, header, hgroup, nav, section, summary {
  display: block; }

audio, canvas, video {
  display: inline-block; }

audio:not([controls]) {
  display: none;
  height: 0; }

[hidden] {
  display: none; }

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%; }

a:focus {
  outline: thin dotted; }

a:active, a:hover {
  outline: 0; }

h1 {
  font-size: 2em; }

abbr[title] {
  border-bottom: 1px dotted; }

b, strong {
  font-weight: 700; }

dfn {
  font-style: italic; }

mark {
  background: #ff0;
  color: #000; }

code, kbd, pre, samp {
  font-family: monospace, serif;
  font-size: 1em; }

pre {
  white-space: pre-wrap;
  word-wrap: break-word; }

q {
  quotes: \201C \201D \2018 \2019; }

small {
  font-size: 80%; }

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline; }

sup {
  top: -.5em; }

sub {
  bottom: -.25em; }

img {
  border: 0; }

svg:not(:root) {
  overflow: hidden; }

fieldset {
  border: 1px solid silver;
  margin: 0 2px;
  padding: .35em .625em .75em; }

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0; }

button, input {
  line-height: normal; }

button, html input[type=button],
input[type=reset], input[type=submit] {
  -webkit-appearance: button;
  cursor: pointer; }

button[disabled], input[disabled] {
  cursor: default; }

input[type=checkbox], input[type=radio] {
  box-sizing: border-box;
  padding: 0; }

input[type=search] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box; }

input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration {
  -webkit-appearance: none; }

textarea {
  overflow: auto;
  vertical-align: top; }

table {
  border-collapse: collapse;
  border-spacing: 0; }

body, figure {
  margin: 0; }

legend, button::-moz-focus-inner, input::-moz-focus-inner {
  border: 0;
  padding: 0; }

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0; }

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }

body {
  box-sizing: border-box;
  font-size: 14px;
  font-family: "Raleway", sans-serif; }

.wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1%; }

input:focus,
button:focus {
  outline: 0; }

i.fa-spinner {
  display: none;
  z-index: 10;
  font-size: 100px;
  color: orange;
  position: fixed;
  top: 30vw;
  top: 40%;
  left: 45vw;
  transform: translateX(-50%); }

.main-welcome-page {
  width: 100%;
  height: 100%; }

#myVideo {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
  transform: translate(-50%, -50%); }

.content {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 75%;
  transform: translate(-50%, -50%);
  z-index: 3;
  border-radius: 5px; }

h1 {
  font-size: 2.5rem;
  letter-spacing: 1.5px;
  margin: 0;
  margin-bottom: 10px;
  line-height: 3.3rem; }
  h1:first-letter {
    text-transform: capitalize; }

.welcome-header {
  color: white; }

.main-welcome-page .overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5); }

.initial-search {
  width: 100%;
  height: 50px;
  position: relative;
  box-shadow: 5px 5px 7px 1px #373636;
  font-size: 1.1rem; }
  .initial-search i {
    background-color: rgba 8, 8, 8, 0.5;
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #999999; }

.initial-search-box {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 5px;
  padding-left: 53px;
  color: #333333; }

nav {
  display: none;
  position: fixed;
  margin-top: 0;
  top: 0;
  width: 100%;
  background: white;
  z-index: 10;
  text-transform: capitalize;
  border-bottom: 1px solid lightgrey; }

.main-menu {
  padding: 10px 1%; }

.main-menu-search {
  border-bottom: 1px solid lightgrey;
  margin: 0; }

.main-menu-options,
.main-menu-submit {
  display: inline-block;
  border-radius: 5px;
  margin-right: 1%; }
  .main-menu-options button,
  .main-menu-submit button {
    padding: 7px 10px;
    border-radius: 5px;
    background: white;
    text-transform: capitalize;
    border: 1px solid lightgrey; }
    .main-menu-options button:hover,
    .main-menu-submit button:hover {
      transition: 0.3s;
      box-shadow: 2px 1px 2px 0px #bcbcbc;
      background-color: darkorange; }
  .main-menu-options input,
  .main-menu-submit input {
    margin-right: 7px; }

.main-menu-options .sub-menu {
  font-size: 0px; }

.main-menu-options button:hover {
  background-color: orange;
  color: white; }

.main-menu-submit .sub-menu {
  font-size: 0px; }

label {
  cursor: pointer;
  display: block;
  padding: 4%; }

ul {
  list-style-type: none; }

.sub-menu {
  padding-left: 0;
  display: none;
  position: absolute;
  margin-top: 10px;
  width: 470px;
  padding: 10px;
  font-size: 0;
  border: 1px solid lightgrey;
  border-radius: 5px;
  background: white; }
  .sub-menu li {
    width: 50%;
    font-size: 1rem;
    display: inline-block; }
    .sub-menu li:first-child {
      display: none; }

.search-bar {
  flex: 2; }
  .search-bar input {
    width: 80%;
    border: none;
    padding: 13px;
    border-radius: 5px;
    border: 1px solid lightgrey; }
    .search-bar input:hover {
      transition: 0.3s;
      box-shadow: 2px 1px 2px 0px #bcbcbc; }

.course-type,
.cuisine-type,
.dietary-restrictions {
  flex: 1; }

.submit button {
  background: orange;
  color: white;
  border: 1px solid lightgrey; }

.recipe-list {
  margin-top: 120px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; }

a {
  flex: 0 1 calc(33% - 20px);
  text-decoration: none;
  margin-bottom: 30px;
  position: relative; }
  a:hover .recipe-overlay {
    display: flex; }

.recipe-container {
  padding-bottom: 15px; }
  .recipe-container h2, .recipe-container h3, .recipe-container h4 {
    color: black;
    text-decoration: none;
    margin: 0;
    padding: 5px 0; }
    .recipe-container h2:active, .recipe-container h3:active, .recipe-container h4:active {
      color: black; }
    .recipe-container h2:visited, .recipe-container h3:visited, .recipe-container h4:visited {
      color: black; }
  .recipe-container h2 {
    padding-top: 10px;
    padding-bottom: 10px; }
  .recipe-container h3 {
    padding: 3px 0;
    font-weight: 500; }
  .recipe-container h4 {
    font-size: 1rem;
    font-weight: 600; }

.star {
  color: orange; }

.img-container {
  width: 100%; }
  .img-container img {
    width: 100%;
    border-radius: 5px; }

.results-count-container {
  flex-basis: 100%; }

.page-results-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px; }

.show-button {
  border-radius: 5px;
  padding: 7px 10px;
  border: 1px solid grey;
  color: #333333;
  background-color: lightgrey; }
  .show-button:hover {
    transition: 0.3s;
    box-shadow: 2px 1px 2px 0px #bcbcbc;
    background-color: white;
    color: grey; }

.recipe-overlay {
  position: absolute;
  display: none;
  flex-direction: column;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(255, 165, 0, 0.95);
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
  text-align: center;
  border-radius: 5px; }
  .recipe-overlay h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    display: inline-block;
    width: 100%;
    position: relative;
    font-family: "Playfair Display", serif; }

.spinner-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.8); }

footer {
  text-align: center;
  font-style: oblique; }

@media only screen and (max-width: 1137px) {
  .search-bar {
    padding: 0; } }

@media only screen and (max-width: 850px) {
  .main-menu-options,
  .main-menu-submit {
    margin-left: 1%; }
  .recipe-list {
    justify-content: space-around; }
  a {
    flex: 0 1 calc(50% - 22px); }
  .main-menu-buttons {
    display: flex; }
  .main-menu-options input {
    margin-right: 13px; }
  .main-menu-options button {
    width: 100%; }
  .main-menu-submit button {
    width: 100%; }
  .search-bar input {
    width: 100%; }
  .page-results-container {
    margin-right: 1%;
    margin-left: 1%; }
  .sub-menu {
    margin-top: 0;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 70px;
    overflow: scroll; }
    .sub-menu button {
      width: 32px;
      right: 33px;
      top: 22px;
      position: absolute; }
    .sub-menu li {
      width: 70%;
      margin-left: 10%; }
    .sub-menu li:first-child {
      display: block; }
    .sub-menu input:hover {
      box-shadow: none; }
  .results-count-container {
    padding-left: 2%; } }

@media only screen and (max-width: 555px) {
  .search-bar {
    width: 100%; }
    .search-bar input {
      width: 100%; }
  .main-menu {
    display: flex;
    flex-wrap: wrap; }
  .main-menu-options,
  .main-menu-submit {
    flex-basis: 48%; }
    .main-menu-options button,
    .main-menu-submit button {
      width: 100%;
      margin-bottom: 10px; }
  i.fa-spinner {
    left: 40vw; }
  .recipe-list {
    margin-top: 170px; }
  a {
    flex-basis: 100%;
    margin: 5% 10%; }
  .page-results-container {
    margin-right: 9%;
    margin-left: 10%; }
  .sub-menu button {
    width: 32px; }
  .results-count-container {
    padding-left: 10%; } }

@media only screen and (max-width: 420px) {
  h1 {
    font-size: 1.75rem;
    line-height: 2rem; } }
