/*
  STYLE GUIDE STYLING 
  Default styling for the style guide 
*/
body {
  font-family: 'Open sans', sans-serif;
  padding: 0.5em 2em;
}

section:not([id]) {
  margin: 1em 0;
  padding: 0.5em 0;
  border-top: 1px solid #D4D9DF;
}

section h3 {
  margin-bottom: 0;
}

section p {
  margin-top: 0;
}

section code {
  background-color: #EEE;
  padding: 0.5em 0.75em;
}

#page-nav {
  background-color: #8acb88;
}

a {
  text-decoration: none;
}



/* 
  INTERACTIVE ELEMENTS -------------------
*/

/* Styling for the navigation button */
.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 ;
}

/* Styling for the In-text Link */
.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 the button */
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 the Text Input Field and Drop Down Menu*/
.textInput-field, .dropDown-menu {
  width: 20em;
  border: solid 0.05em #d4d9df;
  border-radius: 0.4em;
  font-size: 1em;
  padding: 0.5rem;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  display: block;
}

.dropDown-menu {
  width: 7em;
}

/* 
  TEXT ELEMENTS -------------------
*/

/* Styling for the Headings*/
.heading1 {
  font-family: 'Caveat', cursive;
  font-size: 2.5em;
  color: #24272b;
}

.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;
}

/* Styling for Paragraph*/
.paragraph {
  font-weight: 300;
  width: 100%;
  color: #596068;
}

/* Styling for Price Numbers*/
.price {
  font-size: 0.85em;
  font-weight: 700;
  color: #cf5c36;
}

/* 
  COMBINED ELEMENTS -------------------
*/

/* Styling for Navigation*/
/* 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;
}

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

/*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;
}

.wrapper {
  margin: 0 auto;
  max-width: 100%;
  padding: 0 2%;
}

nav .wrapper {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

/* styling for Progress Step 
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;
} 

/* Styling for Plan Cards */
.plan-description {
  min-height: 4em;
  font-size: 0.86em;
  margin: 1.5rem 0 2rem 0;
}

.content-box {
  background-color: white;
  border: 1px solid #eee;
  padding: 2em;
  text-align: center;
  width: 23%;
}

/* Styling for Product Listing*/
.product-listing {
  width: 100%;
}

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

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

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

.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;
}

.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%;
}
/* */ 
.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;
}

#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: 35em;
  display: block;
}

/* Grid Structure */

* {
  box-sizing: border-box;
}

.grid {
  display: flex;
}

.grid-item {
  flex: 1 1 auto;
  /*border: 1px solid #333333;*/
/*  text-align: center;*/
  padding: 1em;
  margin: 0.5rem 0.5rem;
}

.g-item {
  padding: 1em;
  margin: 0.5rem 0.5rem;
  background-color: #d4d9df;
  color: #596068;
}


@media (max-width: 65em){
  .grid-item{
  flex: 0 1 100%;
  }

  .grid {
    flex-wrap: wrap;
  }
} 
/*end of media query*/

/*Colour Scheme*/

.colours {
  width: 10em;
  height: 10em;
  text-align: center;
  padding-top: 10em;
  margin-right: 1em;
  margin-top: 1em;
}

.colours p {
  padding-right: 50%;

}

#main-green {
  background-color: #8acb88;
}

#light-green {
  background-color: #e4fde1;
}

#dark-green {
  background-color:  #70B481;
}

#orange {
  background-color: #cf5c36;
}

#light-orange {
  background-color: #efc88b;
}

#black {
  background-color: #07080a;
}

#light-black {
  background-color: #24272b;
}

#grey {
  background-color: #596068;
}

#light-grey {
  background-color: #d4d9df;
}


/*-------------Wireframe page---------------*/

/*smartwatch*/
#smartwatch {
  width: 312px;
  height: 390px;
}

#mobile {
  width: 400px;
  height: 710px;
}

#console {
  width: 1189px;
  height: 667px;
}