/****** BOOTSTRAP REPLACEMENT ******/
/* Base nav layout (replaces Bootstrap nav-pills) */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  color: #007876;
  text-decoration: none;
  margin: 0 1em;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

/* Dropdown container */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown menu (hidden by default, shown with .show) */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 180px;
  padding: 4px 0;
}

.dropdown-menu.show {
  display: block;
}

/* Box-sizing reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/****** FONTS ******/
.open-sans {
  font-family: 'Open Sans', sans-serif;
}

.open-sans-condensed {
  font-family: 'Open Sans Condensed', sans-serif;
}

.textdropshadow {
  text-shadow: 2px 2px 3px #000;
}

.border-bottom-3 {
  border-bottom: 3px solid;
}

.allcaps {
  text-transform: uppercase;
}

.bold {
  font-weight: 700;
}

.regular {
  font-weight: 500;
}

.light {
  font-weight: 300;
}

.italic {
  font-style: italic;
}

.textwrap {
  word-wrap: normal;
  white-space: normal;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.line-height-2 {
  line-height: 2;
}

.line-height-1 {
  line-height: 1;
}

.text-shadow {
  text-shadow: 1px 1px 1px #333;
}

.title {
  font-size: 1.8rem;
}

.subtitle {
  font-size: 1.5rem;
}

/****** COLORS ******/
.white {
  color: #ffffff;
}

.black {
  color: #000;
}

.highlight {
  background-color: #FFE940;
}

.backlight {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 15px;
}

.johnston {
  border: 4px dashed orange;
}

.johnston-dark {
  border: 4px dashed #333;
}

.border-none {
  border: none;
}

.border-bottom {
  border-bottom: 4px solid;
}

.no-wrap {
  white-space: nowrap;
}

/****** SPACING ******/
.mtb-0 {
  margin-top: 0px;
  margin-bottom: 0px;
}

.mlr-0 {
  margin-left: 0;
  margin-right: 0;
}

.mtb-5 {
  margin-top: 5px;
  margin-bottom: 5px;
}

.mtb-10 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.mtb-15 {
  margin-top: 15px;
  margin-bottom: 15px;
}

.mtb-20 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.mtb-25 {
  margin-top: 25px;
  margin-bottom: 25px;
}

.mb-5 {
  margin-top: 5px;
  margin-bottom: 5px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-25 {
  margin-bottom: 25px;
}

.ptb-0 {
  margin-bottom: 0px;
}

.plr-0 {
  padding-left: 0;
  padding-right: 0;
}

.ptb-5 {
  padding-top: 5px;
  padding-bottom: 5px;
}

.ptb-10 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.ptb-15 {
  padding-top: 15px;
  padding-bottom: 15px;
}

.ptb-20 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.ptb-25 {
  padding-top: 25px;
  padding-bottom: 25px;
}

.pb-5 {
  padding-bottom: 5px;
}

.pb-10 {
  padding-bottom: 10px;
}

.pb-15 {
  padding-bottom: 15px;
}

.pb-20 {
  padding-bottom: 20px;
}

.pb-25 {
  padding-bottom: 25px;
}

.width-100 {
  width: 100%;
}

.maxwidth-100 {
  max-width: 100%;
}

.maxheight-100 {
  max-height: 100%;
}

.video-container {
  text-align: center;
  position: relative;
  padding-bottom: 34.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  max-width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 56%;
  margin-left: 23%;
}

.vertical-center {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.float-lt {
  float: left;
}

.float-rt {
  float: right;
}

.grid-container {
  display: grid;
  grid-gap: 10px;
  align-content: center;
  align-items: center;
  grid-template-columns: 1fr 6fr 1fr;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: ". header  ." ". nav     ." ". content ." ". footer  .";
}

.header {
  grid-area: header;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-areas: ". banner .";
}

.banner {
  grid-area: banner;
}

.navigation {
  grid-area: nav;
  padding: 15px 0;
}

.content {
  grid-area: content;
}

.gallery-grid-container {
  display: grid;
  grid-gap: 10px;
  grid-auto-flow: dense;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
}

.gallery-grid-item {
  height: 0;
  padding-bottom: 100%;
}

.show-grid {
  display: grid;
  text-align: center;
  grid-template-columns: 1fr 6fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: ". info ." ". project .";
}

.show-info {
  grid-area: info;
}

.show-project {
  grid-area: project;
}

.contact-grid {
  display: grid;
  text-align: center;
  justify-items: center;
  align-items: center;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas: "info" "gif";
}

.contact-info {
  grid-area: info;
}

.contact-gif {
  grid-area: gif;
}

.footer {
  grid-area: footer;
  clear: both;
  padding: 20px 0;
  bottom: 0;
  text-align: center;
  width: 100%;
  position: absolute;
}

@media only screen and (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr 10fr 1fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas: ".       header  ." "nav     nav     nav" "content content content" ".       footer  .";
  }
  .header {
    grid-template-columns: 1fr;
    grid-template-areas: "banner";
  }
  .gallery-grid-container {
    grid-template-columns: 1fr 1fr;
  }
  .show-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "info" "project";
  }
}

/* dropdown menu */
.nav-dropdown-toggle,
.dropdown-item {
  border: none;
  background-color: transparent;
  color: #007876;
  padding: 8px 16px;
  text-decoration: none;
  text-align: justify;
  text-align-last: center;
}

.dropdown-item {
  display: block;
  width: 100%;
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.nav-dropdown-toggle.active {
  box-shadow: rgba(0, 0, 0, 0.4) 0 1px 3px;
  color: white;
  background-color: #f48484;
}

/* main nav a tags */
.nav a:hover,
.nav a:focus,
.nav .nav-link.active {
  box-shadow: rgba(0, 0, 0, 0.4) 0 1px 3px;
  transition: all 250ms ease;
  color: white;
  background-color: #f48484;
  text-decoration: none;
}

/* INDEX STYLES */
#gallery-background {
  background-color: #fbd1c0;
  overflow-x: hidden;
}

.gallery-grid-item {
  position: relative;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.4) 0 1px 3px;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-grid-item::after {
  content: "";
  border-radius: 5px;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: rgba(0, 0, 0, 0.4) 0 1px 3px;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-grid-item:hover {
  transform: scale(1.025, 1.025);
}

.gallery-grid-item:hover::after {
  opacity: 1;
}

.gallery-grid-item p {
  border-radius: 5px 5px 0px 0px;
  text-align: center;
  background: black;
  color: white;
  visibility: hidden;
  text-decoration: none;
}

.gallery-grid-item:hover p {
  border-radius: 5px 5px 0px 0px;
  animation: fadein 0.7s;
  visibility: visible;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* SHOW STYLES */
.img-fluid {
  outline: none !important;
}

/* responsive img */
.main-image {
  height: auto;
  max-width: 80%;
  outline: none !important;
  margin-bottom: 1rem;
}

/* responsive video embed */
.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* this centers the title */
/* 4 columns for large devices */
@media only screen and (min-width: 768px) {
  #show-title-div {
    position: absolute;
  }
}

#show-title-div {
  margin-bottom: 1rem;
  text-align: left !important;
}

/* this left-aligns the description */
#project-description {
  margin-bottom: 1rem;
  text-align: left;
}

#contact-background {
  background-color: #b2d2d1;
}

.contact-gif img {
  width: 50%;
  z-index: -1;
  position: relative;
  margin: -20px 0;
}

#social-bar {
  font-size: 2em;
  list-style-type: none;
  padding: 0;
}

#social-bar li,
#social-bar a {
  color: black;
  background: none;
  display: inline;
  padding: 0 5px;
}

#social-bar a:hover {
  color: #f48484;
  transition: 0.5s;
}

html {
  height: 100vh;
}

body {
  background-size: cover;
  min-height: 100%;
  font-family: "Montserrat", sans-serif;
  margin: 0;
  transition: background-color 200ms ease;
}

p {
  font-family: "Open Sans", sans-serif;
  margin-bottom: 0;
}

a {
  text-decoration: none;
  color: #007876;
}

/* HOME PAGE */
#home-background {
  background-image: url("/img/thierry.gif");
}
