/* ------------ MENU ------------

1.0 Setup
2.0 Header
3.0 Main
  3.1 Content
  3.2 Result
    3.2.1 Header
    3.2.2 Info
    3.2.3 Input
    3.2.4 Result
4.0 Queries

-------------------------------*/

/*-------------------------------------
1.0  Setup
-------------------------------------*/

body {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 400;
  background-color: #fff;
  color: #222;
}

h1,h2,h3,h4,h5,h6 {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

p {
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
}

a {
  -webkit-transition: 0.2s ease-out;
  transition: 0.2s ease-out;
  text-decoration: none;
}

ul,
ul li {
  margin: 0;
  padding: 0;
  border: 0;
}

ul {
  list-style: none;
}

.row {
  padding: 0;
}


/*-------------------------------------
2.0  Header
-------------------------------------*/

.site-header {
  padding: 30px 0;
  border-top: 4px solid #ed001e;
  background-color: #fff;
}

.site-header h1 {
  width: 295px;
  height: 98px;
  margin: 0 auto 50px;
  background: url(../img/logo.png) no-repeat center;
  background-size: cover;
  text-indent: 9999px;
  overflow: hidden;
  color: transparent;
}

.search-box {
  max-width: 1090px;
  margin: 0 auto;
  font-weight: 300;
}

.search-box:after {
  content: '';
  display: table;
  clear: both;
}

.search-box button,
.search-box input {
  display: block;
  padding: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  float: left;
  background-color: #fff;
  -webkit-transition: 0.2s ease-out;
  transition: 0.2s ease-out;
  font-size: 3em;
  color: #a7a7a7;
}

.search-box button {
  width: 67px;
  height: 70px;
  margin: 0;
  background: url(/app/assets/img/search-icon.png) no-repeat center;
  background-size: cover;
  font-weight: 300;
}

.search-box input {
  width: 84%;
  padding-bottom: 7px;
  margin-left: 1%;
  text-align: center;
}

.search-box button:hover,
.search-box button:focus,
.search-box button:active,
.search-box input:hover,
.search-box input:focus {
  border-color: #ed001e;
  outline: none;
}

::-webkit-input-placeholder {
  color: #d2d2d2;
}

:-moz-input-placeholder {
  color: #d2d2d2;
}

::-moz-input-placeholder {
  color: #d2d2d2;
}

:-ms-input-placeholder {
  color: #d2d2d2;
}


/*-------------------------------------
3.0  Main
-------------------------------------*/

.wrapper {
  width: 100%;
  background-color: #d3ffea;
}

.wrapper:after {
  content: '';
  display: table;
  clear: both;
}

.big-box.content {
  min-height: 90vh;
  padding: 2% 10% 2%;
  background-color: #2bb673;
}

.big-box.result {
  padding: 5% 15% 0;
  background-color: #d3ffea;
}

.big-box {
  width: 50%;
  min-height: 100%;
  float: left;
}


/*---------------------
3.1  Content
---------------------*/

.content-wrapper {
  color: #fff;
}

.content-wrapper h2 {
  margin: 6% 0 3%;
  font-size: 3em;
}

.content-wrapper li {
  padding: 5px 0;
  border-bottom: 1px solid #1c7e4e;
  font-size: 1.2em;
}

.content-wrapper li:hover {
  cursor: pointer;
  background-color: #1c7e4e;
}

/*--- 3.1.1 Breadcrumbs ---*/

.breadcrumbs {
  font-size: 1.1em;
  font-weight: 300;
}

.breadcrumbs span {
  padding: 5px 0;
  color: #34f196;
}

.breadcrumbs span:hover {
  color: #fff;
  cursor: pointer;
  text-decoration: underline;
}

.breadcrumbs span:after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 16px;
  margin: 0 8px;
  background-color: #fcff00;
  position: relative;
  top: 3px;
}

.breadcrumbs span:last-child {
  color: #fff;
  text-decoration: underline;
}

.breadcrumbs span:last-child:after {
  content: '';
  display: none;
}


/*---------------------
3.2  Results
---------------------*/
/*--- 3.2.1 Header ---*/

.result-wrapper h3 {
  padding: 4px 0;
  background-color: #2bb673;
  font-size: 1.4em;
  color: #fff;
  text-align: center;
}

.result-header .sub-title {
  margin-bottom: 30px;
  color: #2bb673;
  text-align: center;
}

/*--- 3.2.2 Info ---*/

.result-info {
  color: #7e7c7c;
}

.result-info .ingredients {
  margin-top: 15px;
}

.result-info span,
.result-result span {
  float: right;
}

/*--- 3.2.3 Input ---*/

.input-box {
  padding: 5px;
  background-color: #2bb673;
}

.input-box:after {
  content: '';
  display: table;
  clear: both;
}

.input-box button,
.input-box input {
  display: block;
  padding: 5px;
  margin: 0;
  border: 0;
  float: left;
}

.input-box input {
  width: 80%;
}

.input-box button {
  width: 20%;
  background-color: #92f936;
}

.input-box button:before,
.input-box button:after {
  content: '';
  display: block;
  width: 40%;
  height: 4px;
  margin: 0 auto 3px;
  background-color: #fff;
}

.input-box button:before {
  margin: 4px auto 5px;
}

.result-input,
.result-result {
  margin-top: 40px;
}

/*--- 3.2.4 Result ---*/

.result-result .title {
  margin-bottom: 5px;
}

.result-result p {
  margin-bottom: 3px;
  color: #2bb673;
}

.result-result p span {
  width: 40px;
  text-align: center;
  color: #fff;
  background-color: #2bb673;
}

/*-------------------------------------
4.0  Queries
-------------------------------------*/

@media (max-width: 1440px) {
  
  .big-box.content {
    padding: 5%;
  }
  
  .big-box.result {
    padding: 5% 10% 0;
  }
  
}

@media (max-width: 990px) {
  
  .search-box button {
    width: 60px;
    height: 63px;
    margin-left: 5%;
  }
  
  .search-box input {
    padding-bottom: 0px;
  }
  
  .big-box.content {
    min-height: 75vh;
    padding: 5% 2% 2%;
  }
  
  .big-box.result {
    padding: 5% 5% 0;
  }
  
  .content-wrapper h2 {
    margin-bottom: 6%;
    font-size: 2.6em;
  }
  
}

@media (max-width: 768px) {
  
  .site-header h1 {
    width: 255px;
    height: 89px;
  }
  
  .search-box {
    max-width: 320px;
  }
  
  .search-box button {
    width: 40px;
    height: 43px;
    margin-left: 0;
  }
  
  .search-box input {
    width: 86%;
    font-size: 2em;
  }
  
  .big-box {
    width: 100%;
    min-height: auto;
    float: none;
  }
  
  .big-box.content,
  .big-box.result {
    padding: 5% 10%;
  }
  
}

@media (max-width: 460px) {
  
  body {
    font-size: 12px;
  }
  
}