/*
  MAIN STYLESHEET FOR MEALBOX
*/

/* ----

BASIC STYLING

---- */

body {
  font-family: 'Open sans', sans-serif;
  padding: 0em;
  margin: 0em;
  width: 100%;
}

section {
  border-top: none; /* no 1px border underneath the header */
}

section h3 {
  margin-bottom: 0;
}

section p {
  margin-top: 0;
}

/* Styling for Links */
a {
  text-decoration: none;
}

.InText-Link {
  text-decoration: none;
  font-weight: 400;
  color: #cf5c36;
   -webkit-transition: color 0.5s ease-out;
  transition: color 0.5s ease-out;
}

.InText-Link:hover {
  text-decoration: underline;
  color: #aa4c2d;
  opacity: 0.7;
  cursor: pointer;
}

/* Styling for Text Elements */
.tag-line {
  font-family: 'Caveat', cursive;
  font-size: 2.5em;
  margin: auto;
  color: #24272b;
}

.subTag-line {
  color: white !important;
  font-size: 1.3em;
  font-weight: 400;
}

.heading2 {
  font-weight: bold;
  font-size: 1.5em;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #24272b;
}

.heading3 {
  font-weight: 600;
  font-size: 1.2em;
  color: #24272b;
  margin-top: .25rem;
}

.paragraph {
  font-weight: 300;
  width: 100%;
  color: #596068;
}

.title {
  text-align: center;
  margin-top: 2em;
  margin-bottom: 2em;
}

.sub-title {
  text-align: center;
  font-weight: 500;
  color: #24272b;
  margin: 1em 0 2em 0; 
}

.section-title {
  font-weight: 600;
  text-align: left;
  color: #24272b;
  margin: 1em 0; 
}
 
.body {
  font-weight: 300;
  font-size: 0.9em;
  margin-top: 0.5rem;
}

/* Styling for Buttons */
button { 
  color: white; 
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 0.4em;
  border-style: none;
  padding: 0.5rem 1.2rem;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase; /* referred to W3Schools*/
  -webkit-transition: background-color 0.5s ease-out;
  transition: background-color 0.5s ease-out;
}

.default-button {
  background-color: #cf5c36;
}

.default-button:hover {
  background-color: #aa4c2d;
}

/* Styling for Forms */
label {
  font-size: 0.86em; 
  font-weight: 700; 
}

.textInput-field, .dropDown-menu {
  width: 20em;
  border: solid 0.05em #d4d9df;
  border-radius: 0.4em;
  font-size: 0.86em;
  padding: 0.5rem;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  display: block;
  font-family: 'Open sans', sans-serif;
}

.dropDown-menu { 
  width: 7em; 
}

/* ----

PAGES

---- */

/* -- HOME PAGE -- */

/* HEADER */
.header {
  margin: 0;
  padding: 0;
  background-color: #8acb88;
}

.navigation {
  width: 100%;
  padding-right: 1em;
  padding-left: 1em;
  z-index: 1;
  /*position: fixed;*/
}

/* logotype */
.nav-logo {
  left: 0;
  font-size: 1.2em;
  margin: 0.5em 0em;
  padding: 0 1em;
  border: solid 0.18em #fff;
  z-index: 3;
  top: 0;
  color: #FFF;
  font-weight: 600;
  letter-spacing: 3px;
  font-size: 1.5em;
  line-height: 3rem;
  display: inline-block;
}

/* logo img */
.header-logo {
  width: 75px;
  margin-right: 0.5rem;
  float: left;
}

/* links in nav */
.button-nav {
  color: #FFF;
  background-color: #8acb88;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  -webkit-transition: color 0.5s ease-out;
  transition: color 0.5s ease-out;
  z-index: 10;
}

.button-nav:hover, .button-nav:focus {
  color: #cf5c36 ;
}

/*source: http://blog.christopherianmurphy.com/2016/01/responsive-pure-css-menu.html*/
.navigation ul {
  display: flex;
  justify-content: space-between;
  list-style-type: none;
  width: 40%;
  margin-top: auto;
  margin-bottom: auto;
}

.navigation li {
  list-style: none;
  display: inline-block;
  cursor: pointer;
}

nav .wrapper {
  margin: 0 auto;
  max-width: 100%;
  padding: 0 2%;
  align-items: center;
  display: flex;
  justify-content: space-between;
}

/* mobile hamburger menu */
#menu-toggle {
  display: none;
}

.label-toggle {
  display: none;
}

/*Login panel*/
.login-panel {
  background-color: rgba(0,0,0,0.9);
  position: fixed;
  width: 100%;
  height: 100vh;
  z-index: 11;
  margin: 0 auto;
  padding: 2em;
  visibility: hidden;
}

.login-visible {
  visibility: visible;
}

.login-headings {
  color: #fff;
  margin-bottom: 0.6em;
}

.login-component {
  width: 17.5em;
  margin: 9em auto;
  right: 0;
  left:0;
}

.login-button  {
  width: 100%;
  margin: 1em auto;
}

#x-icon {
  top:1em;
  left:1em;
  height: 1em;
  width: 1em;
  cursor: pointer;
}

#x-icon:hover {
  opacity: 0.8;
}

/* Home Sections */
.home-section {
  /*margin-top: 10vh;*/
  height: 78vh;
  text-align: center;
  background-color: black;
}

.home-container {
  /*background-image: url("path/to/img/home-image-2.png");*/
  width: 100%;
  height: 78vh;
  /*background-size: cover;
    background-repeat: no-repeat;*/
  position: relative;
  overflow: hidden;
}

#img-home {
  background-color: #d9d9d9;
  /*height: 100%;*/
  opacity: 0.7;
  margin: 0;
  display: block;
  object-fit: cover;
  /*source: https://stackoverflow.com/questions/12991351/css-force-image-resize-and-keep-aspect-ratio*/
}

.home-content {
  width: 100%;
  position: absolute;
  left: 0;
  top: 30%;
  text-anchor: middle;
  z-index: 10;
}

.home-content h1 {
  color: white;
}

.home-button { /* "ORDER NOW" button, takes user to menu page */
  font-size: 1.1em !important;
  letter-spacing: 0.18em !important;
  margin-top: 5vh;
}

#arrow {
  color: white !important;
  position: absolute;
  width: 100%;
  bottom: 3vh;
  left: 0;
  cursor: pointer;
  padding-top: 0.2em;
  padding-bottom: 3em;
}

#arrow:hover {
  opacity: 0.8;
}

#down-arrow {
  width: 2.5em;
  height: 2em;
  position: absolute;
  bottom: 0;
  margin: auto;
  left: 0;
  right: 0;
  cursor: pointer;
}

/* Who Are We? Section */
.about {
  margin: 0 2.3em;
}

.about-text {
  width: 35%;
  text-align: center;
  margin-bottom: 5vh;
}

.image, .step-text { /* steps */
  /*background-color: #262626;*/
  width: 100%; 
}

/* Menu Section */
.home-menu {
  background-color: #f2f2f2; 
  padding-top: 0.1em;
}

.menu-item {
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.menu-item img {
  overflow: hidden;
  height: 100%;
}

#viewMore-button {
  text-align: center;
}

/* News Section */
.news {
  margin: 0 2.3em;
}

.news-text {
  width: 15em;
  padding-right: 1.5em;
}

.news-text p {
  padding-top: 1em;
}

/* -- MENU PAGE -- */

/*
.item-title-active:hover {
  position: absolute;
  z-index: 2;
  color: white !important;
  top:0;
  padding-top: : 1.9em;
  padding-left: 2em;
}*/

 /*https://stackoverflow.com/questions/38310853/make-a-div-slide-up-on-click-and-hover-using-css3-transitions */
.item-content {
  width: 100%;
 /* visibility: hidden;*/
  transition: bottom 0.5s ease;
  /*display: block;*/
  background: rgba( 0, 0, 0, 0.7);
  bottom: -86%;
  color: #fff;
  height: 100%;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 2em;
  position: absolute;
  transition: all 0.5s ease;
  width: 100%;
}

.menu-item:hover .item-content{
  bottom: 0%;
}

.item-title { /* title of product */
  position: absolute;
  /*background-color: rgba(0,0,0, 0.6);*/
  z-index: 2;
  color: white !important;
  top: 0.5em;
  padding-right: 1em;
  transition: ease 0.5s;
  cursor: pointer;
  word-wrap: break-word;
}

.review-link {
  position: absolute;
  cursor: pointer;
  z-index: 2;
  top: 4.1em;
}

.review-link:hover {
  opacity: 0.8;
}

.item-content p {
  position: absolute;
  z-index: 2;
  color: white;
  top: 6em;
  width: 80%;
}

.item-content button {
  position: absolute;
  z-index: 2;
  bottom: 1em;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.add-item {
  font-size: 1.1em;
  text-align: center;
  width: 70%;
}

 /*https://stackoverflow.com/questions/38310853/make-a-div-slide-up-on-click-and-hover-using-css3-transitions */
.item-reviews{
  width: 100%;
 /* visibility: hidden;*/
  bottom: -100%;
  transition: bottom 0.5s ease;
  /*display: block;*/
  background: rgba( 0, 0, 0, 0.7);
  color: #fff;
  height: 100%;
  left: 100%;
  right: 0;
  margin: 0 auto;
  padding: 2em;
  position: absolute;
  transition: all 0.5s ease;
  width: 100%;
}

.menu-item:hover .item-reviews{
  bottom: 0%;
}

.review-title { /* title of product */
  position: absolute;
  /*background-color: rgba(0,0,0, 0.6);*/
  z-index: 2;
  color: white !important;
  padding-right: 1em;
  transition: ease 0.5s;
  cursor: pointer;
}

.user-reviews {
  position: absolute;
  top: 4em;
  margin: auto;
}

.rating {
  height: 15px;
  width: 80px;
  padding-right: 0.3em;
}

.comment {
  position: block;
  color: white !important;
  margin-bottom: 1.5em;
  padding-right: 2em;
}

.review-back {
  position: absolute;
  z-index: 2;
  top: 0.7em;
  left: 1em;
  text-align: center;
  cursor: pointer;
}

.review-back:hover{
  opacity: 0.8;
}

.back-icon {
  width: 0.688em;
  height: 1.250em;
  margin-bottom: -0.2em;
}

/* -- ACCOUNT PAGE -- */
/*set width for each section of account page*/
.account-info {
  width: 100%;
  margin: 0 auto;
}

.personal-info, .password-info, .payment-details, .account-plan, .past-orders {
  width: 80% !important;
  margin: 0 auto;
}

.section-title {
  width: 100%;
}

.info-description {
  display: block;
  width: 100%;
}

.info-description .body {
  font-size: 0.8em;
  margin-top: -1em;
}

.personal-info #province {
  width: 10em;
}

.payment-details .delete-card {
  justify-content: center;
  align-items: center;
}

/*tables*/
.order-table, .mealPlan-table {
  table-layout: fixed;
  width: 90%;
  text-align: left;
  font-size: 0.86em;
}

.order-table thead, .mealPlan-table thead {
  border-top: 1px solid #eee;
}

.order-table>tbody>tr>td, .order-table>thead>tr>th, 
.mealPlan-table>tbody>tr>td, .mealPlan-table>thead>tr>th {
  padding: 1em;
}

.order-table>tbody>tr>td:last-child, .order-table>thead>tr>th:last-child, 
.mealPlan-table>tbody>tr>td:last-child, .mealPlan-table>thead>tr>th:last-child {
  width: 20%;
}

.order-table>tbody>tr>td, .mealPlan-table>tbody>tr>td {
  border-top: 1px solid #eee;
}

.change-plan {
  font-size: 0.8em;
  margin-left: 1em;
}

/* -- ORDER CONFIRMATION PAGE -- */
/*styling for para in confirm page*/
.confirm-msg {
  width: 50%;
  float: left;
  margin-left: 3em;
  margin-top: 2rem;
}

/* -- FOOD REVIEW PAGE -- */
.food-review {
  width: 100%;
  text-align: center;
  position: relative;
}

.foodReview-container {
  width: 100%;
}

.food-review h1 {
  margin-top: 1em;
}

.food-review select{
  left:0;
  right:0;
  margin: auto;
  width: 30em;
  height: 2.5em;
}

.food-review textarea {
  width: 40em;
  height: 20em;
  margin: auto;
  left:0;
  right:0;
}

.star-container {
  width: 40em;
  margin: auto;
  left:0;
  right: 0;
}

.star-container img {
  margin: auto 0.4em;
}

.full-star-image {
  width: 2.5em;
  position: absolute;
  z-index: 5;
  opacity: 0;
}

.full-star-image:hover {
  /*opacity: 1;*/
}

.star-image {
  position: relative;
  width: 2.5em;
}

#review-submitted {
  text-align: center;
  z-index: 5;
  position: absolute;
  top: 2em;
  left: 0;
  right: 0;
  visibility: hidden;
}

/* -- CONTACT PAGE -- */
.contact {
  margin: auto;
  text-align: center;
}

.contact-container {
  position: relative;
}

.contact h1, h2{
  width: 100%;
  margin: auto;
  padding-top: 1em;
  left:0;
  right: 0;
}

.contact p {
  width: 60em;
  margin: auto;
  line-height: 2em;
  padding: 1em;
  text-align: center;
}

.contactForm label {
  display: block;
  width: 30em;
  margin: auto;
  padding: 0.5em 0;
  text-align: left;
}

.contactForm input {
  margin: auto;
  width: 30em;
}

.contactForm .grid-item {
  padding: 0 !important;
}

#contact-message {
  width: 30em;
  height: 15em;
  margin: auto;
}

#contact-message-title {
  width: 30em;
  padding: 0.5em 0;
  border-radius: 200px;
}

.contactForm button {
  margin: 0 auto 2em;
  width: 30em;
}

#contact-submit {
  z-index: 5;
  position: absolute;
  top: 0;
  margin: auto;
  left: 0;
  right: 0;
  visibility: hidden;
}

/* -- OUR PLANS PAGE -- */
.plan-options .title {
  margin-bottom: 0 !important;
}

.plan-options {
  width: 75%;
  margin: 0 auto;
  margin-bottom: 3em;
}

.plan-description {
  min-height: 8em;
  font-size: 0.86em;
  margin: 1.5rem 0 2rem 0;
}

.plan-table .plan-column {
  width: 23%;
}

.plan-table {
  margin: 0 !important;
  padding: 0 !important;
}

.plan-column {
  text-align: center;
  float: left;
  margin: 0 0.5em;
}

.content-box {
  background-color: white;
  border: 1px solid #eee;
  padding: 2em;
}

.plan-column .heading3 {
  font-size: 1em;
}

.plan-price {
  margin-top: 0.25rem;
  margin-bottom: 0.1rem;
}

/* -- REGISTRATION PAGE -- */

/* step progress bar 
Tutorial: https://www.youtube.com/watch?v=DYevj6UGNWA */

.progress-bar-container {
  width: 100%;
  margin: 0 auto;
}

.progress-bar {
  counter-reset: step;
}

.progress-bar li {
  list-style-type: none;
  float: left;
  width: 33.33%;
  position: relative;
  text-align: center;
  font-weight: 700;
  color: #596068; 
  margin-bottom: 2rem;
  /*border: 1px solid yellow;*/
}

.progress-bar li p {
  color: #d4d9df;
  margin-top: 0.5rem;
}

.progress-bar li:before {
  content: counter(step); /*conuter-rest*/
  counter-increment: step;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  border: 1px solid #d4d9df; 
  display: block;
  text-align: center;
  margin: 0 auto 0.5rem auto;
  border-radius: 50%;
  background-color: #eee; 
  font-size: 1em; /* font size of number */ 
}

/*line*/
.progress-bar li:after {
  content: ' ';
  position: absolute;
  width: 100%;
  height: 7px; 
  background-color: #eee; 
  border: 1px solid #d4d9df; 
  top: 0.8rem; /*half of the w/h of the circle*/ 
  left: -50%;
  z-index: -1;
}

/*this makes the line start at the first circle*/
.progress-bar li:first-child:after {
  content: none;
}

.progress-bar li.active {
  color: white;
}

.progress-bar li.active p {
  color: #cf5c36;
}

.progress-bar li.active:before {
  border-color: #d4d9df;
  background-color: #cf5c36;
}

.progress-bar li.active:after {
  background-color: #cf5c36;
} 

/*select plan*/
.select-plan, .basic-info, .payment-methods, .checkbox-form, .buttons {
  width: 65%;
  margin: 0 auto;
}

.select-plan .plan-description {
  min-height: 10em;
}

/*pre-selected plans in register*/
.pre-selected {
  background-color: #efc88b;
}

.pre-selected .selected-btn {
  background-color: #596068;
}

/* placement of back and next buttons on registration / ordfer pages */
.buttons {
  min-height: 3em;
}

#right-button {
 float: right;
}

#left-button {
  float: left;
}

.basic-info label, .payment-methods label, .personal-info label {  
  width: 100%;  
  display: block;  
  margin-right: -7em; 
}

.basic-info input[type="text"], .payment-methods input[type="text"], 
.basic-info select. .payment-methods select, 
.personal-info input, .personal-info select {  
  float: left;  
  margin-right: 0.5em; 
} 
 
.gutter { 
  margin: 0 -0.3em; 
} 
 
.gutter>.grid-item { 
  padding: 0 0.3em; 
} 
 
.col1of2 { 
  flex-basis: auto; 
  width: 50%; 
}

.col1of4 { 
  width: 25%;
}

#postal-code, #city, #province, #cvv {
  width: 7em;
}

.basic-info {
  padding-bottom: 0.5em;
  border-bottom: 1px solid #eee;
}

.select-plan, .account-plan, .payment-details {
  padding-bottom: 1.5em;
  border-bottom: 1px solid #eee;
}

.method p {
  font-size: 0.76rem;
  font-weight: 600;
}

.method img { /*credit card image */
  min-width: 10rem;
  max-width: 10rem;
  margin-bottom: 0.5em;
}

.exp-date select {
  display: inline;
}

.checkbox-form {
  font-size: 0.86em;
  margin-top: 1em;
}

.checkbox-form input {
  margin-bottom: 0.75em;
  margin-right: 0.75em;
}

/* -- ORDER PAGE -- */
.selected-menu, .shipping-info, .del-time {
  margin: 0 auto;
  width: 65%;
}

.selected-menu, .shipping-info {
  padding-bottom: 1.5em;
  border-bottom: 1px solid #eee;
}

.selected-menu .grid-item {
  padding: 0 !important;
}

.selected-items {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 1em;
}

.selected-items .item-image {
  max-width: 15em;
}

#item-image, #item-description {
  margin-right: 4em;
}

.selected-items h4 {
  text-transform: uppercase;
}

.selected-items p {
  font-size: .85rem;
  color: #596068;
}

.shipping-location {
  margin-left: -2rem;
}

.shipping-location li{
  list-style-type: none;
  margin-bottom: 0.5rem;
}

.shipping-location li input {
  margin-right: 0.86rem;
}

.quantity-field {
  width: 5em;
  text-align: center;
  border: solid 0.05em #d4d9df;
  border-radius: 0.4em;
  font-size: 1em;
  padding: 0.5rem;
  margin-top: 0.3rem;
  display: block;
}

.remove-link {
  font-size: 0.8em;
}

.del-time .dropDown-menu {
  display: inline;
  width: 5em;
}

/* -- ORDER REVIEW PAGE -- */
.review-item {
  width: 100%;
  margin: 0 auto;
}

.review-item, .review-location, .review-time {
  padding-bottom: 0;
  margin-bottom: 1em;
}

.review-plan .plan-table .plan-column {
  width: 100%;
}

.review-plan .content-box {
  background-color: #efc88b;
}

.review-plan .plan-description {
  min-height: 0 !important;
  margin-bottom: 0;
}

.review-menu .selected-items {
  margin: 0;
}

.review-time .dropDown-menu {
  width: 4em;
}

/* -- CONFIMRATION (REGISTER + ORDER) PAGE -- */
.message-container {
  width: 100%;
  margin-bottom: 3em;
}

.message {
  text-align: center;
  max-width: 50%;
  margin: 0 auto;
}

.message-container .heading2 {
  font-weight: 500;
}

.message-container button {
  margin: auto;
  display: block;
}

/* Footer */
.footer {
  border-top: 1px solid #eee;
  padding: 1em 0;
  background-color: #f2f2f2;
  text-align: center;
}

.footer-container {
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2em;
  padding-right: 2em;
}

.legal-container .footer-container {
  height: 1.5em;
}

.legal-footer { 
  background-color: #fff;
  border-top: 1px solid #eee;
  padding: 1em;
  text-align: center;
}

.legal-footer p, .legal-footer a {
  display: inline-block;
  color: #596068;
  font-size: 0.8rem;
  padding-left: 0.3em;
}

.legal-footer a:hover {
  color: #cf5c36;
}

.footer-item:not(:first-child) {
  padding-left: 1em;
}

/* MEDIA QUERIES */
@media (max-width: 85em) {
  .select-plan .plan-table .plan-column {
    min-width: 100%;
  }

  .select-plan .plan-column {
    margin: 0.5em 0;
  }

  .plan-table .plan-column {
    margin-bottom: 1em;
  }

  .select-plan .plan-description {
    min-height: 0em;
  }

  .content-box {
    padding: 1.5em;
  }
}

@media (max-width: 65em){
  /* mobile nav */
  .navigation ul {
    display: block;
    height: 0;
    list-style-type: none;
    opacity: 0;
    text-align: center;
    transition: all 1s ease;
    width: 100%;
    visibility: hidden;
  }

  .navigation li {
    border-bottom: 1px solid #ffffff;
    color: #53354A;
    display: block;
    font-size: 1.5em;
    padding: 2em 0;
  }

  nav #menu-toggle:checked ~ ul {
    opacity: 1;
    height: 100vh;
    visibility: visible;
  }

  nav .label-toggle {
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 20%, transparent 20%, transparent 40%, #ffffff 40%, #ffffff 60%, transparent 60%, transparent 80%, #ffffff 80%, #ffffff 100%);
    cursor: pointer;
    display: inline;
    float: right;
    height: 35px;
    margin-top: 1em;
    width: 35px;
  }
  nav .wrapper {
    display: block;
  }

  .home-section, .home-container {
    height: 89vh;
  }

  .home-content {
    top: 18% !important;
  }

  /* confirmation pages */
  .message {
    max-width: 80%;
  }
}

@media (max-width: 60em) {
  .plan-table .plan-column {
    width: 100%;
  }

  .plan-description {
    min-height: 0em;
  }

  .plan-table .plan-column .image {
    display: none;
  }

  /* order page */
  .selected-menu, .shipping-info, .del-time, .buttons {
    min-width: 80%;
    margin: 0 auto;
  }

  .selected-items .item-image {
    max-width: 100%;
  }

  .selected-items {
    flex-direction: column;
  }

  #item-image, #item-description {
    margin-right: 0;
  }
} 

@media (max-width: 50em){
  /*contat page*/
  .contact p {
    width: 100%;
  }
  
  .contactForm label {
    width: 20em;
  }

  .contactForm input {
    width: 20em;
  }

  #contact-message {
    width: 20em;
  }

  #contact-message-title {
    width: 20em;
  }

  .contactForm button {
    width: 20em;
  }

  /* food review page */
  .food-review h1 {
    width: 100%;
  }

  .food-review select{
    width: 80%;
  }

  .star-container {
    width: 100%;
  }

  .food-review textarea {
    width: 90%;
  }
}