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

body {
    font-family: 'Karma', sans-serif;
    padding: 2rem;
    background-color: rgba(243, 228, 195, 0.3);
}

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

section[id]:first-of-type {
    margin-top: 5rem;
}

section h3 {
    margin-bottom: 0;
}

section p {
    margin-top: 0;
}

nav a:hover,
nav a:focus {
    text-decoration: none;
}

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


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

/* Styling for in-text link */

.in-text-link {
    text-decoration: none;
    color: #829075;
}

.in-text-link:hover {
    color: #829075;
    font-style: italic;
}


/* Styling for the navigation button */

nav ul {
    margin: 0;
    padding: 0;
}

nav li {
    display: inline-block;
    margin: 0;
    padding: 1rem;
    background-color: #F3E4C3;
}

.button-nav {
    display: inline-block;
    position: relative;
    font-weight: 700;
    letter-spacing: 0.0625rem;
    text-transform: uppercase;
    color: #829075;
    text-align: center;
    text-decoration: none;
    -webkit-transition: background-color 0.5s;
    transition: background-color 0.5s;
    padding: 0;
}

.button-nav:hover:before {
    content: "";
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -0.25rem;
    border-bottom: 2px solid #829075;
}

/* Styling for submit and reset buttons */

.submit-reset-button {
    display: block;
    width: fit-content;
    text-decoration: none;
    letter-spacing: 0.0625rem;
    text-transform: uppercase;
    background: #829075;
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #829075;
}

.submit-reset-button:hover {
    background: white;
    color: #829075;
    transition: color 0.5s, background 0.5s;
}

/* Styling for text input field */

.input-field-label {
    font-weight: bolder;
}

#text-input-field {
    display: block;
    font-size: 1rem;
    height: 2rem;
    width: 15rem;
    border: 1px solid;
}


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

/* Styling for heading levels */

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1rem;
    font-weight: 700;
}

/* Styling for heading levels */

p {
    font-size: 0.875rem;
}


/* Styling for bulleted lists */

ul {
    font-size: 0.875rem;
    padding: 1rem;
}


/* Styling for numbered lists */

ol {
    font-size: 0.875rem;
    padding: 1rem;
}


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

/* Styling for main nav */

#main-nav, #main-nav ul {
    display: inline-flex;
    width: 100%;
}

#main-nav li {
    flex: 1 0 auto;
    text-align: center;
}

#main-nav li:nth-child(3) {
    flex: 9 0 auto;
}

/* Styling for product listing */

.product-listing {
    display: block;
    width: 30%;
}

.product-listing img {
    width: 100%;
}

.product-detail {
    display: inline-flex;
    width: 100%;
}

.product-detail h3 {
    flex: 1 0 auto;
}

.product-listing h3:last-child {
    text-align: right;
}

/* Website grid */

.grid-wrapper {
    display: inline-flex;
    width: 100%;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.column-1-of-3 {
    flex: 0 1 30%;
    margin: 0 1rem;
}

.column-1-of-3 h3:nth-child(2) {
    text-align: right;
}

.placeholder {
    display: block;
    width: 100%;
    border: 1px solid black;
}


/* Color swatches */

.colour-swatch {
    display: inline-block;
    height: 4rem;
    width: 4rem;
    border: 1px solid black;
}

#black {
    background-color: black;
}

#cream {
    background-color: #F3E4C3;
}

#green {
    background-color: #829075;
}

/* Citations styling */
#citations p{
    line-height: 2rem;
}

#citations {
    border-top: 0.15em solid #333;
}


/* Wireframe styling */
#smartphone {
    border-top: 0.15em solid #333;
}
