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

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

section h3 {
  margin-bottom: 0;
}

section p {
  margin-top: 0;
}

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

code {
  white-space: pre-wrap;
}

.amita {
  font-family: 'Amita', serif;
}
.open-sans, h3 {
  font-family: 'Open Sans', sans-serif;
}
.khula, p {
  font-family: 'Khula', sans-serif;
}
h1 {
  font-size: 2em;
}
p {
  margin-top: 1em;
  line-height: 1.2em;
}
#components p.tab {
  width: 40%;
}
/*    section#gallery * {
  float: left;
}
section#gallery a {
  width: 20%;
}
section#gallery img {
  height: 10em;
  padding: 1em;
}
section#gallery::after {
    clear: both;
    display: block;
    content: " ";
    visibility: hidden;
}*/


.italic {
  font-style: italic;
}
h3.italic {
  margin-top: 1em;
}
.tab {
  margin-left: 2em;
}
.clear {
  clear: both;
}



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


/* In-text link */
p > a {
  color: #072340;
}
p > a:visited, p > a:hover {
  color: #0B3866;
  font-weight: bold;
}

p > a:hover {
  color: #fff;
  background: #5B899A;
  text-decoration: none;
}

/* Styling for the navigation button */
button[class^='btn-'] {
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
  padding: 0.5em 1.5em;
  border-radius: 0.05em;
  border: 0;
  cursor: pointer;
  font-size: 1em;
}
button[class^='btn-']:hover, button[class^='btn-']:active {
  transform: scale(1.01);
}
.btn-addtocart {
  color: #302215;
  background: #EDE7C2;    
}
.btn-addtocart:hover, .btn-addtocart:active {
  background: #E0DAB5;
}

/* Submit & Reset Forms */
.btn-submit {
  color: #fff;
  background: #5B422C;
}
.btn-submit:hover, .btn-submit:active {
  background: #4E351F;
}
.btn-decrement, .btn-reset {
  color: #fff;
  background: #F59E8C;
}
.btn-decrement, .btn-reset:hover, .btn-decrement, .btn-reset:active {
  background: #E8917F;
}
.btn-increment {
  color: #fff;
  background: #5B899A;
}
.btn-increment:hover, .btn-increment:active {
  background: #4E7C8D;
}

/* Text Input Field & Label */
label {
  display: block;
}
.form-addr {
  width: 50em;
  height: 2em;
  margin-top: 1em;
}


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

/* Headings */
.sg h1, .sg h2, .sg h3 {
  font-family: 'Open Sans', sans-serif;
  margin: 0.3em 0;
  letter-spacing: 0.08em
}

/* Paragraphs */
p {
  font-family: 'Khula', sans-serif;
}
.sg p {
  margin-top: 1em;
  width: 33em;
}

/* Bulleted Lists */
ul.bullet li {
  list-style-type: square;
}

/* Numbered Lists */
ol.number {
  list-style: none;
  counter-reset: li
}

ol.number li::before {
  content: counter(li) ".";
  display: inline-block;
  width: 1.5em;
  margin-left: -1.5em;
  font-size: 0.8em;
  color: #F59E8C;
}

ol.number li {
  counter-increment: li
}

/* 

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

/* Main Navigation */
nav.main a {
  display: inline-block;
  text-decoration: none;
  padding: 0.4em 1.4em;
  margin-right: 0.5em;
  color: #302215;
  background: #fff;
  border-radius: 0.3em;
  border: 1px solid #bcbcbc;
}

.sg nav.main a {
  margin-top: 1em;
}

nav.main a:hover, nav.main a:active {
  background: #F59E8C;
  color: #fff;
}

/* Product Listing */
.flex-grid {
  display: flex;
  flex-flow: row wrap;
  margin: -0.5em;
}

#gallery .flex-grid {
  margin-top: 2em;
}

.gallery-item {
  text-align: center;
  margin-bottom: 1.5em;
}

section#gallery img {
  flex: 1;
}
section#gallery a {
  margin: 1em;
}

/* Grid Structure */
.flex-item {
  display: flex;
  flex: 1;
  background: #bcbcbc;
  border-radius: 0.2em;
  margin: 0.5em;
  height: 50em;
  align-content: center;
  justify-content: center;
  align-items: center;
}



/* Website Colour Swatches */
.swatch {
  display: inline-block;
  width: 5em;
  height: 5em;
  border-radius: 50%;
  text-align: center;
  line-height: 80px;
  color: #444;
}
.c302215 {
  background: #302215;
  color: #f0f0f0;
}
.c5B422C {
  background: #5B422C;
  color: #f0f0f0;
}
.EDE7C2 {
  background: #EDE7C2;
}
.ABA284 {
  background: #ABA284;
}
.FFFFFF {
  background: #FFFFFF;
  border-width: 1px;
  border-style: solid;
  border-color: #bcbcbc;
}
.F59E8C {
  background: #F59E8C;
}
.c5B899A {
  background: #5B899A;
}