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

body {
    font-family: 'Source Sans Pro', sans-serif;
    padding: 2rem;
    background-color: #eaf1f7;

}

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: #3057D5;
    transition: color 0.5s;
}

.in-text-link:hover {
    color: #899da3;
    font-weight: 700;
}


/* Styling for the navigation button */

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

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

.button-nav {
    display: inline-block;
    position: relative;
    font-weight: 700;
    letter-spacing: 0.0625rem;
    text-align: center;
    text-decoration: none;
    color: white;
    -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 white;
}

/* Styling for Product Information Accordian */

code span {
    display: block;
    height: 1rem;
}

.product-info-accordion {
    background-color: #4B83AD;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: color 0.75s, background-color 0.75s;
}

.active,
.product-info-accordion:hover {
    background-color: #3057D5;
}

.product-info-accordion:after {
    content: '\002B';
    color: white;
    font-weight: bold;
    float: right;
}

.active:after {
    content: "\2212";
}

.product-info-panel {
    padding: 0 1.125rem;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.product-info-panel p {
    padding: 1rem 0;
}


/* Styling for cta buttons */

.cta-button {
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.0625rem;
    padding: 0.5rem;
    color: #3057D5;
    border: 2px solid #3057D5;
}

.cta-button:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: #3057D5;
    transition: height 0.3s;
}

.cta-button:hover {
    color: #fff;
}

.cta-button:hover:after {
    top: 0;
    height: 100%;
}

/* Styling for text input field */

.input-field-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

#text-input-field {
    display: block;
    font-size: 1rem;
    padding: 0.15rem;
    border: 1px solid;
    color: #899da3;
}


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

/* Styling for heading levels */

h1 {
    font-size: 4rem;
    color: #3057D5;
}

h2 {
    font-size: 2.75rem;
    color: #3057D5;
}

h3 {
    font-size: 1.75rem;
    color: #102c34;
    font-weight: 100;
}

/* Styling for bulleted lists */

ul {
    list-style: square;
}

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

/* Styling for main nav */

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

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

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

/* Styling for product listing */

.product-listing {
    position: relative;
    display: block;
    width: 22%;
}

.product-listing img {
    width: 100%;
    opacity: 0.25;
    transition: opacity 0.5s;
}

.product-listing img:hover {
    opacity: 1;
}

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

.product-detail h3, .product-detail p {
    flex: 1 0 auto;
    color: white;
    font-weight: 700;
    position: absolute;
    left: 0rem;
    margin: auto;
    text-align: center;
    width: max-content;
    height: fit-content;
    text-shadow: 2px 2px #102c34;
}

.product-detail h3 {
    top: 0rem;
}

.product-detail p {
    top: 2.5rem;
}

/* Website grid */

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

.column-1-of-4 {
    flex: 0 1 22%;
    margin-right: 2rem;
}

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


/* Color swatches */

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

#black {
    background-color: black;
}

#super-dark-grey {
    background-color: #102c34;
}

#mid-grey {
    background-color: #899da3;
}

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

#white {
    background-color: white;
}

#dull-blue {
    background-color: #4B83AD;
}

#vivid-blue {
    background-color: #3057D5;
}

/* Citations styling */

#citations p {
    line-height: 2rem;
}
