@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Raleway:wght@100&display=swap');
@import url("reset.css");

/* GLOBAL STYLES */
html {
  border: solid #000;
  border-width: 0 30px;
}
body {
  --header-height: 8vh;
  display: grid;
  grid-template-rows: 1fr auto;
  font-family: 'Open Sans', helvetica, arial, sans;
  min-height: 100vh;
}
.content-container {
  display: grid;
  margin-top: var(--header-height);
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Raleway', helvetica, sans;
  font-weight: 100;
}
h1 {
  font-size: 7vw;
  margin-top: 0;
}
h2 {
  font-size: 2em;
}
h4 {
  color: #999;
  font-weight: bold;
  text-transform: uppercase;
}
a {
  color: #6397b5;
}
p {
  line-height: 1.5;
  margin: 0.75em 0;
}

/* HEADER STYLES */
.header {
  --header-background-color: #000;
  align-items: center;
  background-color: var(--header-background-color);
  color: #fff;
  display: flex;
  justify-content: space-between;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
}
.header-logo {
  display: block;
  height: var(--header-height);
  text-align: center;
  width: var(--header-height);
}
.header-logo:hover,
.header-logo:active {
  background-color: #ed6e2f;
}
.header-logo img {
  height: calc(var(--header-height) - 1vh);
  margin-top: 0.5vh;
}
.header-nav {
  display: flex;
  list-style: none;
  padding-right: 30px;
}
.header-nav > li ~ li {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  margin-left: 1rem;
  padding-left: 1rem;
}
.header-nav > li > a,
.drop-trigger {
  color: #fff;
}
.nav-links {
  font-size: 0.8rem;
}
.nav-links > li > a,
.drop-trigger,
.show-mobile-menu {
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links > li > a:hover,
.nav-links > li > a:active {
  color: #ed6e2f;
}
.header-nav > li:first-child a {
  color: #ed6e2f;
}
.header-nav > li:first-child a:hover {
  color: #fff;
}

/* DROPDOWN STYLES */
.dropdown {
  position: relative;
}
.dropdown:hover .drop-menu {
  display: block;
}
.dropdown:hover .drop-trigger:after {
  border-color: #ed6e2f transparent transparent;
}
.drop-trigger {
  display: inline-block;
  padding-right: 1.5rem;
  position: relative;
}
.drop-trigger:after {
  border: 0.25rem solid;
  border-color: #fff transparent transparent;
  content: "";
  height: 0;
  position: absolute;
  right: 0;
  top: 0.3em;
  width: 0;
}
.drop-menu {
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
  display: none;
  list-style: none;
  padding-top: 1em;
  position: absolute;
  right: 0;
  z-index: 9;
}
.drop-menu:before {
  border: 0.5em solid;
  border-color: transparent transparent #fff;
  content: "";
  height: 0;
  position: absolute;
  right: 1.5rem;
  top: 0;
  width: 0;
}
.drop-menu li {
  background-color: #fff;
}
.drop-menu li ~ li {
  border-top: 1px dotted rgba(0,0,0,0.1)
}
.drop-menu li:first-child {
  border-radius: 5px 5px 0 0;
  color: #999;
  font-size: 0.5em;
  padding: 1em 1em 0.25em;
  text-align: right;
  text-transform: uppercase;
}
.drop-menu li:last-child {
  border-radius: 0 0 5px 5px;
}
.drop-menu a {
  color: #333;
  display: block;
  font-weight: normal;
  padding: 0.5em 2em 0.5em 1em;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}
.drop-menu a:hover {
  background-color: rgba(0,0,0,0.1);
}
/* HIDE IN THE FOOTER */
.footer .dropdown:hover .drop-menu,
.footer .drop-trigger:after {
  display: none;
}
.footer .drop-trigger {
  padding-right: 0;
}
/* MOBILE MENU */
.mobile-menu-check,
.show-mobile-menu {
  display: none;
}

/* FOOTER STYLES */
.footer {
  background-color: #000;
  padding: 7vh 0;
  text-align: center;
}
.footer-logo img {
  width: 50px;
}
.footer-nav li {
  display: inline-block;
  margin: 2em 1em 0;
}
.footer-nav a {
  color: #ccc;
}
.footer h3 {
  color: #fff;
  padding-top: 1.5em;
  text-transform: uppercase;
}
.footer h3 span {
  color: #aaa;
}
.footer .social-list {
  margin-top: 1.5em;
}

/* COLUMN STYLES */
.col-three {
  display: grid;
  grid-template-columns: minmax(auto, 15em) 1fr minmax(auto, 20em);
}
.col {
  padding: 2em;
}
.col-three .col ~ .col {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}
.col-two {
  display: grid;
  grid-template-columns: 1fr 20em;
}

/* PAGE STYLES */
.page {
  margin: 5vh auto;
  max-width: 980px;
  width: 85vw;
}
.page h1 {
  font-size: 3em;
  margin-bottom: 1rem;
  text-align: center;
}
.page h2 {
  margin-bottom: 0.5em;
}
.page h4 {
  margin-bottom: 1em;
}

/* HERO STYLES */
.full-hero {
  align-content: center;
  background-color: #c7dbfc;
  background-size: cover;
  color: #fff;
  display: grid;
  height: calc(100vh - var(--header-height));
  text-align: center;
}
.full-hero:after {
  border: 10px solid;
  border-color:#fff transparent transparent;
  bottom: 2vh;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  transform: translate(-50%, 0);
  width: 0;
}
.hero-home {
  background-image: url(/images/shark.jpg);
  background-position: center top;
}
.hero-home h1 {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.25em;
  text-transform: uppercase;
}
.hero-home .social-link {
  background-color: rgba(255, 255, 255, 0.8);
  color: #557c83;
}
.hero-home .social-link:hover {
  background-color: #000;
  color: #fff;
}
.half-hero {
  background-position: center;
  background-size: cover;
  height: calc(50vh - var(--header-height));
}

/* SOCIAL STYLES */
.social-link {
  background: rgba(150, 150, 150, 0.5);
  border-radius: 50%;
  box-sizing: border-box;
  color: #fff;
  display: inline-block;
  font-family: helvetica, arial, sans;
  font-size: 1.6em;
  font-weight: bold;
  height: 1.5em;
  line-height: 1;
  padding-top: 0.25em;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  width: 1.5em;
}
.social-list {
  list-style: none;
  padding: 0;
  text-align: center;
}
.social-list > li {
  display: inline-block;
  margin: 0 0.5em;
}

/* HOMEPAGE STYLES */
.home-callout {
  align-items: center;
  background-color: #000;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr minmax(auto, 45em);
  padding: 7vh 0;
}
.home-callout h3 {
  color: inherit;
  margin-top: 1em;
}
.callout-title {
  font-size: 5.75vw;
  text-align: right;
  text-transform: uppercase;
}
.callout-copy {
  font-size: 0.8rem;
  padding: 0 3vw;
}
.home-section {
  margin: 4rem auto 0;
  max-width: 980px;
  width: 90vw;
}
.home-section:last-child {
  margin-bottom: 4rem;
}
.home-section h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.home-section h4 {
  margin-bottom: 0.5em;
  text-align: center;
}
.home-section .blog-post {
  margin: auto;
  width: 75%;
}

/* BIO STYLES */
.bio-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  margin: auto;
  max-width: 960px;
}
.bio-box {
  font-size: 1rem;
  margin: 4rem 0 0;
  padding: 0 1em;
}
.bio-avatar {
  position: relative;
  text-align: center;
}
.bio-avatar img {
  width: 80%;
}
.bio-avatar h3 {
  bottom: 1vh;
  color: #fff;
  font-size: 1.2em;
  position: absolute;
  text-transform: uppercase;
  width: 100%;
}
.bio-box .social-link {
  display: block;
  margin: 0.5em auto;
}
.bio-copy {
  font-size: 0.8em;
}
.bio-copy a {
  color: green;
}

/* GALLERY STYLES */
.gallery-thumbs {
  box-sizing: border-box;
  height: calc(100vh - var(--header-height));
  overflow: scroll;
}
.gallery-thumbs > div {
  cursor: pointer;
}
.gallery-thumbs .current {
  cursor: default;
}
.gallery-thumbs img {
  box-sizing: border-box;
  box-shadow: 0 0 0 5px transparent;
  margin: 0 0 10px;
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
  width: 100%;
}
.gallery-thumbs img:hover {
  opacity: 1;
}
.gallery-thumbs .current img {
  box-shadow: 0 0 0 5px #ed6e2f;
  opacity: 1;
}
.gallery-photo {
  position: relative;
}
.gallery-photo img {
  width: 100%;
}
.gallery-info {
  font-size: 0.8rem;
}
.gallery-info h3 {
  margin-bottom: 1em;
}

/* BLOG STYLES */
.blog-post ~ .blog-post {
  border-top: 1px dotted rgba(0, 0, 0, 0.1);
  margin-top: 2em;
  padding-top: 2em;
}
.blog-post .post-header {
  font-size: 0.8rem;
}
.post-header {
  margin-bottom: 1.5em;
  text-align: center;
}
.post-header img,
.post-header .social-link {
  margin-right: 0.5em;
}
.post-header img {
  border-radius: 50%;
  height: 2.5em;
  vertical-align: middle;
}
.posts-image {
  background-position: center;
  background-size: cover;
  height: 6em;
  margin-bottom: 1.5em;
}
.blog-recent {
  text-align: right;
}
.blog-title-list {
  list-style: none;
  padding: 0;
}
.blog-title-list li ~ li {
  margin-top: 1.5em;
}
.blog-title-list span {
  color: #999;
  display: block;
  font-size: 0.8em;
  font-style: italic;
  margin-top: 0.5em;
}
.pull-left {
  float: left;
  margin: 2em 2em 2em -2%;
}
.pull-right {
  float: right;
  margin: 2em -2% 2em 2em;
}
.post-aside {
  background-color: rgba(0, 0, 0, 0.01);
  float: right;
  margin: 0 0 2em 2em;
  padding: 2em;
}
.post .post-header {
  margin-bottom: 2.5em;
}
.post-content,
.post-footer {
  margin: auto;
  max-width: 40em;
  width: 85vw;
}
.post-content {
  font-size: 1.1rem;
}
.post-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-style: italic;
  font-size: 0.8em;
  margin-top: 3em;
  padding-top: 2em;
}

/* PALINDROME STYLE */
.palindrome {
  align-content: flex-start;
  background: #a5c9e5;
  background: radial-gradient(ellipse at center, #a5c9e5 0%, #7292b0 100%);
  display: grid;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
}
.palindrome-content {
  background-color: #f6f4f0;
  border: 20px solid #fff;
  box-sizing: border-box;
  margin: 4em 0;
  padding: 2em 3em;
  text-align: center;
  width: 45em;
}
.palindrome-content h1 {
  font-family: "Open Sans", sans-serif;
  font-size: 2em;
  margin-bottom: 1em;
}
.palindrome-content h2 {
  font-size: 1.5em;
  margin-bottom: 1em;
}
form {
  margin-bottom: 1.5em;
}
textarea {
  border: 1px solid #a5c9e5;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  height: 12em;
  outline: none;
  padding: 1em;
  resize: none;
  width: 35em;
}
.form-submit {
  background-color: #7292b0;
  border: 0;
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.1);
  color: #fff;
  display: block;
  margin: 2em auto 0;
  outline: none;
  padding: 1em 2em;
  text-transform: uppercase;
}
.form-submit:active {
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}
.result {
  color: #fff;
  padding: 1.5em 2em;
  text-align: center;
}
.result-success {
  background-color: #7292b0;
}
.result-fail{
  background-color: #e67642;
}

@media (max-width: 800px) {
  html {
    border: none;
  }

  /* HEADER STYLES */
  .nav-links a {
    font-size: 3.25vw;
  }

  /* MOBILE MENU */
  .show-mobile-menu {
    display: block;
    line-height: var(--header-height);
    padding: 0 1.5em;
    position: relative;
  }
  .header-nav {
    background-color: #444;
    display: initial;
    height: auto;
    left: 0;
    max-height: 0;
    overflow: hidden;
    padding-right: 0;
    position: absolute;
    text-align: center;
    top: var(--header-height);
    transition: all 0.3s ease-in-out;
    width: 100vw;
    z-index: 9;
  }
  .header-nav li {
    margin-top: 1em;
  }
  .header-nav > li ~ li {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
  }
  .header-nav li:last-child {
    margin-bottom: 1em;
  }
  .header-nav li:first-child a {
    color: #fff;
  }
  .header-nav>li:first-child a:hover {
    color: #ed6e2f;
  }
  /* HIDE DROPDOWN IN THE NAV MENU */
  .header-nav .dropdown:hover .drop-menu,
  .header-nav .drop-trigger:after {
    display: none;
  }
  .header-nav .drop-trigger {
    padding-right: 0;
  }
  .mobile-menu-check:checked ~ .header-nav {
    max-height: 1000px;
  }
  .mobile-menu-check:checked ~ .show-mobile-menu:after {
    background-color: var(--header-background-color);
    color: #ed6e2f;
    content: "CLOSE";
    left: 0;
    position: absolute;
    text-align: center;
    width: 100%;
  }

  /* HOMEPAGE STYLES */
  .home-callout {
    grid-template-columns: auto;
  }
  .callout-title {
    text-align: center;
  }
  .callout-copy {
    padding: 0 5vw;
  }
  .home-section .blog-post {
    width: 100%;
  }

  /* BIO STYLES */
  .bio-box {
    font-size: 1.1rem;
    padding: 0;
  }

  /* GALLERY STYLES */
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery .col {
    padding: 1em;
  }
  .gallery .col ~ .col {
    border-left: none;
  }
  .gallery .gallery-thumbs {
    height: auto;
    white-space: nowrap;
    width: 100vw;
  }
  .gallery-thumbs > div {
    display: inline-block;
  }
  .gallery-thumbs img {
    height: 7vh;
    margin: 0 10px 0 0;
    width: auto;
  }

  /* BLOG STYLES */
  .blog-cols {
    grid-template-columns: 1fr;
  }
  .blog-recent,
  .post-aside {
    display: none;
  }
  .blog-previews {
    padding: 0;
  }
  .post-content img {
    float: none;
    width: 100%;
  }
  .post .half-hero {
    display: none;
  }

  /* PALINDROME STYLES */
  h1 {
    font-size: 1.5em;
  }
  .palindrome-content {
    border-width: 1em;
    margin: 1.5em 0;
    padding: 1em;
    width: 90vw;
  }
  textarea {
    height: 15em;
    padding: 0.5em;
    width: 100%;
  }
  .form-submit {
    margin-top: 1em;
  }
  .result {
    padding: 0.5em 1em;
  }
}
