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

body {
  font-family: 'Roboto', sans-serif;
  padding: 0 2rem;
  background-color: white;
}

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 {
  position: relative;
  font-size: 0.875rem;
  text-decoration: none;
  color: #EF6362;
  transition: color 0.5s;
}

.in-text-link:hover {
  font-weight: 800;
  border-bottom: 2px dashed #EF6362;
}

.in-text-link:hover:before {
  content: "";
  position: absolute;
  width: 100%;
  left: 0;
  bottom: -0.25rem;
  border-bottom: 2px dashed #EF6362;
}

/* Styling for the navigation button */

nav ul {
  /*    margin: 0 1rem;*/
  padding: 0;
}

nav li {
  display: block;
  margin: 0;
  padding: 1rem 1rem 0.25rem 0;
}

.button-nav {
  position: relative;
  letter-spacing: 0.0625rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.75rem;
  color: #EF6362;
  -webkit-transition: background-color 0.5s;
  transition: background-color 0.5s;
  text-transform: uppercase;
}

.button-nav:hover {
  font-weight: 800;
}

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

/* Styling for cta buttons */

.cta-button {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.0625rem;
  padding: 0.5rem;
  background: #EF6362;
  color: white;
}

.cta-button:before {
  content: '';
  position: absolute;
  border: #EF6362 dashed 2px;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition-duration: .3s;
}

.cta-button:hover:before {
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
}

/*source: https://codepen.io/IanLunn/pen/hysxc*/

/* Styling for text input field */

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

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

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

/* Styling for heading levels */

h1 {
  font-size: 2rem;
  color: #EF6362;
  text-transform: uppercase;
  font-weight: 800;
}

h2 {
  font-size: 1.25rem;
  color: black;
  text-transform: uppercase;
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  color: black;
  font-weight: 500;
  font-style: italic;
}

h4 {
  font-size: 0.875rem;
  margin-bottom: 0;
  text-transform: uppercase;
}

/* Styling for bulleted lists */

p {
  font-size: 0.875rem;
}

/* Styling for lists */

ul, ol {
  font-size: 0.875rem;
  list-style: square;
  -webkit-padding-start: 1.25rem;
}

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

/* Styling for main nav */

#main-nav, #main-nav ul {
  position: relative;
}

/* Styling for product listing */

.project-panel-wrapper {
  width: 19.375rem;
  min-height: 100vh;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.project-panel-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
}

.project-detail {
  color: #EF6362;
  -webkit-transition: color 0.5s, border 0.5s;
  -o-transition: color 0.5s, border 0.5s;
  transition: color 0.5s, border 0.5s;
}

.project-label-background {
  position: absolute;
  left: 2.5rem;
  top: 0;
  height: 2.5rem;
  width: 25rem;
  -webkit-transform-origin: top left;
  -ms-transform-origin: top left;
  transform-origin: top left;
  background: black;
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}

.project-number {
  position: absolute;
  top: 1.75rem;
  width: 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 0.25rem 0;
  letter-spacing: 2px;
  background: white;
}

.project-name {
  position: absolute;
  width: 20rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  -webkit-transform-origin: top left;
  -ms-transform-origin: top left;
  transform-origin: top left;
  top: 7rem;
  left: 1.85rem;
  -webkit-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  transform: rotate(90deg);
}

.line {
  position: absolute;
  width: 1.5rem;
  top: 15rem;
  border-top: 2px dashed #EF6362;
  -webkit-transform-origin: top left;
  -ms-transform-origin: top left;
  transform-origin: top left;
  left: 1.25rem;
  -webkit-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

.category {
  position: absolute;
  width: 20rem;
  top: 17rem;
  font-size: 0.875rem;
  font-weight: 200;
  text-transform: uppercase;
  -webkit-transform-origin: top left;
  -ms-transform-origin: top left;
  transform-origin: top left;
  left: 1.85rem;
  -webkit-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  transform: rotate(90deg);
}

#intl-coop-panel img {
  height: 118vh;
  -webkit-transform: translate(-18%, 0%);
  -ms-transform: translate(-18%, 0%);
  transform: translate(-18%, 0%);
  -webkit-filter: grayscale(100%) contrast(200%) brightness(150%);
  filter: grayscale(100%) contrast(200%) brightness(150%);
  -webkit-transition: -webkit-filter 0.5s;
  transition: -webkit-filter 0.5s;
  -o-transition: filter 0.5s;
  transition: filter 0.5s;
  transition: filter 0.5s, -webkit-filter 0.5s;
}

#intl-coop-panel:hover img {
  -webkit-filter: grayscale(0%) contrast(100%) brightness(100%);
  filter: grayscale(0%) contrast(100%) brightness(100%);
}

/* #intl-coop-panel:hover .project-name, #intl-coop-panel:hover .project-number {
  color: black;
} */

/* #intl-coop-panel:hover .line {
  border-top: 2px dashed black;
} */

.project-panel-wrapper .overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: lightsteelblue;
  opacity: 0.8;
  -webkit-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  transition: opacity 0.5s;
  mix-blend-mode: multiply;
}

.project-panel-wrapper:hover .overlay {
  opacity: 0;
}

.project-panel-wrapper .blue-img-filter {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #213556;
  mix-blend-mode: lighten;
  -webkit-transition: all ease-in-out 0.5s;
  -o-transition: all ease-in-out 0.5s;
  transition: all ease-in-out 0.5s;
}

.project-panel-wrapper:hover .blue-img-filter {
  background: black;
}

/* source: https://codepen.io/leincetta/pen/pJyrpg */

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

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

.product-detail h3, .product-detail p {
flex: 1 0 auto;
font-weight: 700;
position: absolute;
left: 0rem;
margin: auto;
text-align: center;
width: max-content;
height: fit-content;
}

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

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

/* Website grid */

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

.column-1-of-4 {
  flex: 1 1 25%;
  overflow: hidden;
}

.column-1-of-2 {
  -webkit-flex: 1 1 50%;
  -ms-flex: 1 1 50%;
  flex: 1 1 50%;
  /*    margin: 0 2rem;*/
}

.grid-wrapper .project-listing {
  max-width: 100%;
}

/* Color swatches */

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

#coral {
  background-color: #EF6362;
}

#navy {
  background-color: #213556;
}

#black {
  background-color: black;
}

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

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

#white {
  background-color: white;
}

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

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

/* Process Analysis styling */

.process-analysis img {
  width: 100%;
}

iframe {
  width: 40rem;
  height: 22.5rem;
}

/* Bio styling */

#bio-wrapper p span {
  font-weight: 800;
}

#bio-wrapper .in-text-link {
  display: block;
  width: fit-content;
  margin: 2rem 0;
}

#process-analysis-2-wrapper img {
  width: 75%;
}

/* Templates styling */

#templates-wrapper .grid-wrapper .project-listing {
  max-width: 100%;
}

#templates-wrapper .column-1-of-4:nth-child(2) img {
  transform: translate(-20%, 0%);
}

#templates-wrapper .column-1-of-4:nth-child(3) img {
  transform: translate(-18%, 0%);
}

#templates-wrapper .column-1-of-4:nth-child(4) {
  background-color: #4696CC;
}

#templates-wrapper .column-1-of-4:nth-child(4) img {
  position: absolute;
  width: 50%;
  height: auto;
  top: 50%;
  left: 50%;
}

#templates-wrapper p span {
  font-weight: 800;
}

#templates-wrapper .in-text-link {
  display: block;
  width: fit-content;
  margin: 2rem 0;
}

#templates-wrapper .cta-button {
  display: block;
  width: fit-content;
  height: auto;
  margin: 2rem auto;
}

#templates-wrapper section:nth-of-type(3) h1 {
  text-align: center;
}

#templates-wrapper section:nth-of-type(4) h1 {
  margin: 0;
  text-align: right;
}

#templates-wrapper .column-1-of-2:first-child {
  margin-right: 2rem;
}

#templates-wrapper section:nth-of-type(4) .in-text-link {
  position: relative;
  margin: 2rem 0 2rem auto;
}

#templates-wrapper section:nth-of-type(5) h1 {
  text-align: center;
}

#templates-wrapper section:nth-of-type(5) h2 {
  margin-top: 0;
}

#templates-wrapper section:not(:first-child) img {
  width: 100%;
  margin-bottom: 1rem;
}

#templates-wrapper section:nth-of-type(6) h1, #templates-wrapper section:nth-of-type(6) h2:nth-of-type(2) {
  text-align: center;
}

#templates-wrapper section:nth-of-type(6) h2:nth-of-type(2) {
  position: relative;
  background: white;
  z-index: 9;
  width: 8rem;
  margin: 1rem auto;
}

.divider {
  display: block;
  position: relative;
  top: -1.9rem;
  border: 1px dashed #213556;
  margin: 1rem 6rem;
}

#templates-wrapper section:nth-of-type(6) p {
  margin: 1rem 6rem;
}

#templates-wrapper section:nth-of-type(7) h1, #templates-wrapper section:nth-of-type(7) h2:nth-of-type(2) {
  text-align: center;
}

#templates-wrapper section:nth-of-type(7) .paragraph-wrapper {
  margin: 1rem 6rem;
  padding: 2rem;
  border: 1px dashed #213556;
}

/* Citations styling */

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