/*
  STYLE GUIDE STYLING 
  Default styling for the style guide 
*/

/*
  Import Fonts--------------------------
*/

@font-face {
  font-family: "ProximaNova";
  src: url("../fonts/ProximaNova-Light.otf");
  src: url("../fonts/ProximaNova-LightItalic.otf");
  src: url("../fonts/ProximaNova-Regular.otf");
  src: url("../fonts/ProximaNova-RegularItalic.otf");
  src: url("../fonts/ProximaNova-Semibold.otf");
  }

/*
  SET DEFAULTS ACROSS ELEMENTS ------------------------
*/
* {
  box-sizing: border-box;
}

body {
  font-family: "ProximaNova-Light", sans-serif;
  padding: 0; 
  letter-spacing: 0.025rem;

  /*sit footer at bottom no matter the page size and content amount sourced from: https://medium.com/@paynoattn/flexbox-sticky-footer-d19dab50c34*/
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/*Unstyle default list elements*/
ul, li {
  list-style-type: none;
  margin: 0;
  padding: 0;
  color: rgb(255, 255, 255);
}

.element {
  padding-bottom: 2rem;
  margin-left: 2.3rem;
  margin-right: 2.3rem;
}

.sectionBlock {
  padding: 1.4rem;
}

.middleSection {
  border-color: rgba(253, 188, 73, 0.5);
  border-left-width: 0.15rem;
  border-left-style: solid;
  border-right-width: 0.15rem;
  border-right-style: solid;
  min-width: min-content;
}

.border {
  border: 5px solid #1c1f1e;
  border-radius: 4px;
}

.hidden, section.hidden, div.hidden {
  display: none;
}

/*styling Form Input Placeholder text for all browsers*/
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #B7B8b6;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #B7B8b6;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: #B7B8b6;
}

/*fieldset tag unstyle code from emilbjorklund at https://thatemil.com/blog/2015/01/03/reset-your-fieldset/*/
fieldset {
  border: 0;
  padding: 0.01em 0 0 0;  
  margin: 0;
  min-width: 0;
}

body:not(:-moz-handler-blocked) fieldset {
  display: table-cell;
}

.bodyContent {
  padding: 1.5rem; /* Change this to add padding to the border of the body content*/
}

/*
  TEXT ELEMENTS--------------------------
*/
h1 {
  font-family: 'ProximaNova', sans-serif;
  font-size: 2.25rem;
  margin-top: 1rem;
  margin-bottom:1rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: rgb(42,113,56);
}

h2 {
  font-size: 1.75rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(42,113,56);
}

h3 {
  font-family: 'ProximaNova-Regular', sans-serif;
  font-size: 1.2rem;
  font-weight: 200;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.001rem;
  color: rgb(42,113,56);
}

h4 {
  font-family: 'ProximaNova-Regular', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: rgb(42,113,56);
}

p, li {
  margin-top: 0;
  font-size: 0.9rem;
  line-height: 1.25rem;
  color: rgb(42,113,56);
  letter-spacing: 0.04rem;
}

.fineprint {
  font-style: italic;
  font-size: 0.75rem;
  color: rgba(42, 113, 56, 0.8);
  padding: 0.8rem 0 0 0;
}

.button-margin {
  margin: 1.25rem;
}

.inline-padding {
  padding: 2rem;
}

.h2toh3 {
    font-family: 'ProximaNova-Regular', sans-serif;
    font-size: 1.4rem;
    font-weight: 200;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: rgb(42,113,56);
}

.centerText {
  text-align: center;
}

.centerText > li {
  list-style: none;
}

.link-inText {
  color: rgb(42,113,56);
  background-color: transparent;
  text-decoration: none;
  bottom: 0;
  padding: 0.26rem;
  border-bottom: 4px solid rgba(253, 188, 73, 0.7);
  transition-property: background-color;
  transition-duration: 0.5s;
}

.link-inText:visited {
  color: rgb(253, 188, 37);
  padding: 0.25rem;
  text-decoration: none;
  transition-property: color;
  transition-duration: 0.5s;
}

.link-inText:visited:hover, .link-inText:visited:focus, 
.link-inText:hover, .link-inText:focus {
  background-color: rgba(253, 188, 73, 0.7);
  color: rgb(255, 255, 255);
  padding: 0.25rem;
  text-decoration: none;
}

code {
  background-color: rgba(253, 188, 73, 0.3);
  color: rgb(42, 113, 56);
  padding: 1rem;
  display: block;
  white-space: normal;
  font-size: 0.75rem;
  max-width: 100%;
  min-width: min-content;
}

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

/* Styling for the navigation button */
/* Tutorial: tobiasahlin.com/blog/css-trick-animating-link-underlines/ */
.button-nav {
  margin: 1.25rem 1.2rem 2rem 1.2rem;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 200;
  letter-spacing: 0.1rem;
  background-color: rgb(255, 255, 255);
  align-content: center;
  
  position: relative;
  color: rgb(42,113,56);
  text-decoration: none;
}

.button-nav:hover, .button-nav:focus {
  color: rgb(42,113,56);
}

.button-nav:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: rgb(253, 188, 37);
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out 0s;
}

.button-nav:hover:before, .button-nav:focus:before {
  visibility: visible;
  transform: scaleX(1);
}

.selected:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: rgb(42, 113, 56);
  transform: scaleX(1);
}

a.text-button, label.text-button {
  font-family: 'ProximaNova-Regular', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  color: rgb(42, 113, 56);
  text-decoration: none;
  padding: 0.4rem 0.8rem 0.4rem 0.8rem;
  background-color: rgba(255, 255, 255, 0);
  border: 2.5px solid rgb(42,113,56);
  transition: background-color 0.6s ease;
}

a.text-button:hover, a.text-button:focus, .sub-length-select label:hover, .sub-length-select label:focus {
  color: rgb(255, 255, 255);
  background-color: rgb(42, 113, 56);
  border: 2.5px solid rgb(42, 113, 56);
  text-decoration: none;
  cursor: pointer;
}

p.text-button {
  font-family: 'ProximaNova-Regular', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
  background-color: rgb(42, 113, 56);
  text-decoration: none;
  padding: 0.4rem 0.8rem 0.4rem 0.8rem;
}

.navDisplay {
  display: block;
  flex-wrap: nowrap;
  flex-direction: column;
  align-content: center;
  background-color: rgb(255, 255, 255);
  padding: 2rem;
}

.navDisplay>li {
  list-style: none;
  padding-bottom: 1rem;
}

.button-submitReset {
  font-family: 'ProximaNova-Regular', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
  text-decoration: none;
  padding: 0.4rem 0.8rem 0.4rem 0.8rem;
  margin: 1rem;
  background-color: rgb(42, 113, 56);
  border: 2.5px solid rgb(42, 113, 56);
  transition: 0.6s ease;
  min-width: min-content;
}

.button-submitReset:hover, .button-submitReset:focus {
  color: rgb(255, 255, 255);
  background-color: rgb(253, 188, 73);
  border: 2.5px solid rgb(253, 188, 73);
  text-decoration: none;
  cursor: pointer;
}

.button-submitReset:disabled, .button-submitReset:disabled:hover, .button-submitReset:disabled:hover {
  color: #4D4D4D;
  background-color: #B3B3B3;
  border: 2.5px solid #B3B3B3;
  cursor: default;
}

/*Form Elements*/

input, textarea {
  font-size: 1rem;
  padding: 0.5rem;
  margin-left: 0;
  margin-right: 1rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  border: 2px solid rgb(255, 255, 255);
  max-width: 100%;
  transition-property: border;
  transition-duration: 0.5s;
}

input[type="text"]:hover, input[type="text"]:focus, textarea:hover, textarea:focus {
  border-style: inset;
  border: 2px solid rgb(42, 113, 56);
}


label {
  font-size: 1.12rem;
  color: rgb(42,113,56);
}

.input-radioDefault {
  width: 100%;
  padding-left: 1.1rem;

}

.input-radioDefault>input {
	width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}

.input-radioDefault>label {
  margin-left: 0.6rem;
  margin-right: 1rem;
}

.input-radioDefault>input:hover, .input-radioDefault>label:hover, .input-radioDefault>input:focus .input-radioDefault>label:focus{
  cursor: pointer;
}

/*
  IMAGE ELEMENTS-----------------------
*/
.img-link {
  opacity: 1;
  transition-property: opacity;
  transition-duration: 0.5s;
}

.img-link:hover, .img-link:focus {
  opacity: 0.24;
}

.img-framed {
  max-height: 30rem;
  max-width: 30rem;
}

.resizeImage {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 1.5rem 1.5rem 0 0;
}

.resizeImage-quarter {
  width: 75%;
  height: auto;
}

.resizeImage-half {
  width: 53%;
  height: auto;
}


.resizeImage-third {
  width: 30%;
  height: auto;
}

.responsive {
  max-width: 90%;
  height: auto;
}

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

/*Banner styling*/

/* Tutorials: https://stackoverflow.com/questions/6626314/css-center-item-with-positionrelative */
/* Tutorial: https://www.w3schools.com/howto/howto_css_overlay.asp */
.bannerElement {
  width: 75%;
  height: auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background-color: white; 
  padding: 2rem 0 8rem 0;   /* Adjust this to change spacing between Banner Img & 1st Section */
  z-index: -1;
}

.bannerElement>img {
  object-position: center;
  width: 100%;
  height: 80vh; /* Adjust this for the height of the image */
  object-fit: cover;
}

.logoElement>img {
  width: 40%;
  height: auto;
  opacity: 1;
}


.banner {
  position: relative;
  width: 100%;
  height: auto;
  padding-bottom: 0;
}

/*
.bannerOverlay {
  position: absolute;/*container position must be relative
  top: 60%;
  left: 10%;
  width: 100%;
  height: auto;
} */


/* Text before Plantswap */
.bannerMotto {
  font-family: 'ProximaNova-Light', sans-serif;
  font-size: 1.5rem;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  margin-bottom: 0;
  color: rgb(42,113,56);
  position: absolute;
  left: 8vw;
  top: 6vw;
}

/* Title: Plantswap. */
.bannerTitle {
  font-family: 'ProximaNova-Semibold', sans-serif;
  font-size: 4.5rem;
  text-transform: lowercase;
  margin-top: 0rem;
  position: absolute;
  left: 8vw;
  top: 8vw;
}

/* Media Query for responsive banner */
@media only screen and (max-width: 600px) {
  .bannerMotto {
    font-size: 1.25rem;
    left: 2rem;
    top: 3rem;
  }
  
  .bannerTitle {
    font-size: 4rem;
    left: 2rem;
    top: 4rem;
  }
}


/*NAV STYLING*/
/*V4*/
ul.nav-links, .nav-links>li, ul.nav-links-styleguide, .nav-links-styleguide>li {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.nav-container {
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-end;
  justify-content: center;

  background-color: rgb(255, 255, 255);
}

.nav-logo {
  flex: 0 1 auto;
}

#styleGuideNav, #styleGuideNav .nav-links, #styleGuideNav>.nav-links>li {
  align-items: flex-start;
  text-align: left;
  justify-content: flex-start;
}

#styleGuideNav h2 {
  margin: 1rem 1.2rem;
}

ul.nav-links, ul.nav-links-styleguide {
  flex: 1 1 auto;
  margin-top: 0;
  transition: 0.6s ease;
}

.nav-logo>a>img {
  max-height: 60px;
}

.nav-links>li, .nav-links-styleguide>li {
  margin-bottom: 0.6rem;
  text-align: right;
}

/*mobile collapsing*/
.menu-button, .menu-button-styleguide {
  margin: 0.6rem 0.6rem 1rem 0.6rem;
  text-decoration: none;
}

.menu-button > a, .menu-button-styleguide > a, .menu-button {
  font-family: 'ProximaNova-Regular', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgb(42,113,56);
  background-color: rgba(255,255,255, 0);
  padding: 0.4rem 0.8rem 0.4rem 0.8rem;
  border: 3px solid rgb(42,113,56);
  transition: 0.6s ease;
}

.menu-button > a:hover, .menu-button > a:focus, .menu-button-styleguide > a:hover, .menu-button-styleguide > a.focus, .menu-button:hover, .menu-button:focus {
  color: rgb(255,255,255);
  background-color: rgb(42,113,56);
  text-decoration: none;
}

ul.nav-links.nav-open, ul.nav-links-styleguide.nav-open {
  display: block;
}

@media only screen and (min-width: 787px){
    /*mobile uncollapsing*/
    ul.nav-links {
      display: flex;
    }
    .menu-button {
      display: none;
    }
}

@media screen and (min-width: 787px) { /*non-mobile styling*/
  .nav-container {
    flex-flow: row nowrap;
    position: relative;
    padding: 1rem;
    left: 0;
    top: 0;
    right: 0;
    z-index: 20;
  }

  .nav-links, .nav-links-styleguide {
    flex: 1 1 auto;
    margin-top: 1.2rem;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .nav-links>li.li-navItem, .nav-links-styleguide>li.li-navItem {
    flex: 0 0 auto;
  }
}

section>.nav-container {
  position: relative;
  z-index: 0;
}
/*END NAV STYLING*/

/*ABOUT SECTION*/
.section-padding {
  padding: 1rem;
}

.section-padding > h2, .section-padding>p {
  color: rgb(42,113,56);
  text-align: center;
  flex: 0 1 auto;
}

.section-padding>img {
  max-width: 12rem;
}

.section-padding.grid-container-column {
  padding: 2.4rem 2rem;
}

.paragraph-padding {
  padding: 1.5rem;
}

/*END ABOUT SECTION*/

/*PRODUCTS*/
/*Product Cart*/
#productList.grid-container, #productListAlt.grid-container {
  flex: 1 1 100%;
  flex-flow: row wrap;
  justify-content: space-evenly;
}

.productSpacing {
  padding-bottom: 2rem;
}

a.swap-button {
  font-family: 'ProximaNova-Regular', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  color: rgb(42,113,56);
  text-decoration: none;
  padding: 0.4rem 0.8rem 0.4rem 0.8rem;
  border: 2.5px solid rgb(42,113,56);
  transition: 0.6s ease;
}

/*Product Cards*/
.product-card, #productList .product-card {
  flex: 1 1 auto;
  margin: 1rem;
  min-height: 22rem;
  min-width: 22rem;
  padding: 10px;
  border-style: inset;
  border: 0.5px solid rgb(42,113,56);
  align-content: space-around;
  transition: border .5s ease, padding .5s ease;
}

.product-card:hover {
  cursor: pointer;
}

#cart .product-card:hover {
  cursor: default;
}

.product-card.grid-container-column {
  margin: 1rem;
}

.product-card>img {
  max-width: 15rem;
  max-height: 15rem;
}

.product-card>.text-button {
  font-size: 1rem;
  border-width: 2.5px;
}

.product-card>a {
  margin-bottom: 1.4rem;
}

/* Product card - PLANT SELECT */
#packageSelect .text-button {
  margin: 1rem 1rem 2rem 1rem;
  text-align: center;
}

#packageSelectForm {
  margin: 0;
  background-color: rgba(255,255,255,0);
  border-radius: 0;
  padding: 0;
}

#packageSelectionForm {
  background-color: rgba(0,0,0,0);
}

#packageSelectForm h2, #cart h2{
  text-align: center;
  padding: 0.4rem 1.4rem 0 1.4rem;
}

#packageSelectForm p, #cart p {
  text-align: center;
  padding: 0.2rem 1.4rem 0.4rem 1.4rem;
}

#packageSelectForm .about-text {
  margin: 1rem;
  width: 66vw;
  min-width: 20rem;
  flex: 1 1 auto;
}

#cart .grid-container {
  justify-content: center;
}

#cart a, p.text-button {
  flex: 0 1 auto;
  margin: 1rem;
}

.sub-length-select.grid-container {
  padding: 1.4rem 0rem 2.4rem 0rem;
  align-content: space-between;
  justify-content: center;
  width: 100%;
}

.sub-length-select input[type="radio"] {
  visibility: hidden;
  display: none;
}

.sub-length-select label {
  box-sizing: border-box;
  padding: 0.6rem;
  flex: 0 1 auto;
  min-width: 10rem;
  margin: 1.4rem;
  text-align: center;
}

.month-radio {
  min-width: 4rem;
  flex: 1 1 auto;
  padding: 1rem;
  align-items: center;
}

input[type="radio"]:checked+label{ 
  color: rgb(255, 255, 255);
  background-color: rgb(42, 113, 56); 
}

.product-card.plant-selected {
  border: 5px solid rgb(42, 113, 56);
  padding: 0px;
}

.plant-selected > a.text-button {
  color: rgb(255, 255, 255);
  background-color: rgb(42, 113, 56);
}

/* Product View Padding */

.productView-image {
  height: 100%;
  width: auto;
}

.productView-padding {
  padding: 2rem;
}

a.text-button .productView {
padding-right: 1.5rem;
}


/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/*product modals*/
.productListItem {
  position: relative;
  width: 100%;
  height: auto;
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 4px;
}

.product-text-container {
  padding: 0.3rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  font-family: 'ProximaNova-Light', sans-serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: rgb(42,113,56);
  font-size: 0.9rem;
  margin: 0;
}

.product-list-img{
  width: 100%;
  height: 80%;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  object-fit: cover;
}

.productListItem:hover .overlay {
  opacity: 0.8;
  cursor: pointer;
}

.overlay-text{
  display: flex;
  color: #FFF;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  height: 100%;
}

.overlay {
  position: absolute;/*container position must be relative*/
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity:0;
  background-color: #1c1f1e;
  border-radius: 4px;
  transition: .5s ease;
}

/*.___-blockItem classes currently not being used.*/
.img-blockItem {
  flex-grow: 3;
  flex-basis: 400px; /*best to use pixels here because we're sizing an image*/
}

@media (min-width: 46.0625em) {
  .img-blockItem {
      order: 2;
  }
}
.text-blockItem {
  flex-grow: 1;
  flex-basis: 18rem;
}

.logo {
  justify-content: flex-start;
  flex-grow: 1;
  background-color: #1c1f1e;
}

/*FORM STYLING*/
form {
  margin: 1.2rem;
  margin-bottom: 2rem;
  background-color: rgb(246,230,205);
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
  width: 100%;
  min-width: min-content;
}

form > h2 {
  color: rgb(42,113,56);
  text-align: center;
}

form > .spaced-grid-container {
  flex-flow: row wrap;
}

form > .spaced-grid-container > .grid-item-full, form > .spaced-grid-container > .grid-item-half, form > .spaced-grid-container > .grid-item-third, form > .spaced-grid-container > .grid-item-sixth {
  flex-grow: 1;
  flex-shrink: 1;
  padding: 0.6rem;

  display: flex;
}

form > .spaced-grid-container > div > input, form > .grid-container > div  {
  flex: 1 1 100%;
  max-width: 100%;
}

form > .spaced-grid-container > div > label {
  flex: 0 0 auto;
}

fieldset > .spaced-grid-container {
  flex: 1 1 100%;
  flex-flow: row wrap;
}

textarea {
  width: 50%;
}

#email, #address, #billingFields input, #paymentFields input, #billingFields > div > .grid-item-half, #paymentFields > div > .grid-item-half {
  flex: 1 1 100%;
}

.input-radioDefault > .spaced-grid-container {
  justify-content: flex-start;
}

.radio-item {
  flex: 0 0 auto;
  align-content: flex-start;
  padding: 0.6rem;
}

.checkout-form > .grid-item-full, .checkout-form > .grid-item-half, .checkout-form > .grid-item-third {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
}

.checkout-form > .grid-item-third {
  width: 30%;
}

.checkout-form > div > label {
  padding-right: 1rem;
}

.checkout-form > div > input {
  flex: 1 1 auto;
}

#billingFields.grid-item-half, #paymentFields.grid-item-half {
  flex-basis: 100%;
}

@media screen and (min-width: 974px) {
  #billingFields.grid-item-half, #paymentFields.grid-item-half {
    flex-basis: 50%;
  }
}

/*Checkout styling*/
.checkoutCartElement {
  margin: 1.2rem;
  background-color: rgba(253, 188, 73, 0.3);
  border-radius: 4px;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
}

.checkoutCartElement>h3 {
  color: rgb(42,113,56);
}

.checkoutCartElement>ul {
  width: 100%;
}

.checkoutCartElement>h3 {
  text-align: center;
}

.block.cartItem {
  justify-content: space-between;
  color: rgb(42,113,56);
}

.cartTotal>.cartItemName {
  color: rgb(42,113,56);
  text-transform: uppercase;
  font-weight: 700;
}

.cartTotal>.itemPriceBlock {
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.5rem;
  text-decoration-line: underline;
  text-decoration-style: double;
  color: rgb(247, 143, 73);
}

/*
  GRID BLOCK ELEMENTS -----------------------
*/
/*use block classes on div tags surrounding elements*/
.block {
  display: flex;
  flex-wrap: wrap;
}

.flex-container {
  display: flex;
}

.full-span, .half-span .primary-content, .side-bar, .two-thirds, .thirds, .elementBlockStyling {
  width: 100%;
  padding: 0.25rem;
}

.full-span {
  position: relative;
}

.elementBlockStyling {
  padding: 2rem;
}

.centerContentBlock{
  align-content: center;
  width: 100%;
  margin: 0;
}


@media (min-width:60em){
  .primary-content {
    flex-grow: 2;
    width: 60%;
  }

  .side-bar {
    flex-grow: 1;
    width: 20%;
  }

  .two-thirds {
    width: 66%;
  }

  .half-span {
    width: 50%;
  }

  .thirds {
    width: 33%;
  }
  
}

@media (min-width:1025px){
  .checkoutCartElement {
    
  }
  .elementBlockStyling {
    width: 33%;
    flex-grow: 1;
  }
}

@media (min-width:26rem) {
  .itemPriceBlock {
    width: 33%;
  }
  .cartItemName {
    width: 66%;
  }
}

/*NEW GRID STYLING*/
.grid-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  flex-flow: row wrap; /*specify flex direction and wrap*/
}

.center-flex-content {
  justify-content: center;
}
.grid-item-full, .grid-item-sixth, .grid-item-half, .grid-item-third, .grid-item-ninth {
  box-sizing: border-box;
  flex: 0 1 auto;
  flex-basis: 100%;
}

.spaced-grid-container {
  max-width: 1400px;
  display: flex;
  margin: auto;
  width: 100%;
}

@media screen and (min-width: 517px) {
  .grid-container-column .inline-buttons {
    flex-direction: row;
    justify-content: center;
    }
  } 

.grid-container-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto 0 auto;
  align-items: center;
}


.inline-padding {
  padding: 2rem;
}


.product-modals {
  display: flex;
  justify-content: space-between;
  flex-flow: row wrap;
}

.product-modals > .grid-item-third {
  flex: 0 0 30%;
  margin: 1rem 0 1rem 0;
}

.product-modals > .grid-item-quarter {
  flex: 0 0 20%;
  margin: 1rem 0 1rem 0;
}

.grid-item-quarter{
    box-sizing: border-box;
    flex: 0 1 20%;
 }

@media screen and (min-width: 787px) {
  .grid-item-ninth {
    flex-basis: 11%;
  }
  
  .grid-item-third {
    flex-basis: 33.33%;
  }
  
  .grid-item-half {
    flex-basis: 50%;
  }
  
  .grid-item-sixth {
    flex-basis: 66.66%;
  }
  
  .spaced-grid-container {
    justify-content: space-between;
    display: flex;
  }

  .spaced-grid-container > .grid-item-ninth {
    flex-basis: 10%;
  }

  .spaced-grid-container > .grid-item-third {
    flex-basis: 30%;
  }

  .spaced-grid-container > .grid-item-sixth {
    flex-basis: 60%;
  }
}

/*COLOURED BACKGROUNDS FOR CONTAINERS*/
.bg-primaryColor {
  background-color: rgba(42,113,56,0.5);
  border: 2px solid rgb(255, 255, 255);
}

.bg-secondaryColor {
  background-color: rgb(246,230,205);
  border: 2px solid rgb(255, 255, 255);
}

.bg-tertiaryColor {
  background-color: rgb(255, 255, 255);
  border: 2px solid rgb(255, 255, 255);
}

.bg-white {
  background-color: rgba(255,255,255,1);
}

.gridDemo {
  font-size: 0.8rem;
  text-align: center;
}

.about {
  text-align: center;
}

.about>p {
  padding-bottom: 3rem;
}

/*
  FOOTER STYLING ---------------------
*/
footer {
  background-color: rgb(117,155,123);
  width: 100%;
  align-self: flex-end;
  margin: auto auto 0 auto;
}
.footer-style>.footerHeading {
  font-size: 1rem;
  font-weight: bold;
}

.footer-style>p {
  font: normal normal normal 0.8rem "Lato", Helvetica, sans-serif;
  color: rgb(255, 255, 255);
  padding-top: 0.8rem;
  padding-bottom: 0rem;
  margin: 0;
  text-align: center;
}

.footer-content {
  padding: 1.2rem;
  padding-bottom: 2.4rem;
}

