/* Variables, colors, etc */
:root {
  --black: #1e1c1c;
  --white: #fff;
  --red: #dc2f2f;
  --dark-red: #470E0E;
  --mid-red: #7E1818;
  --heading-color: var(--white);
  --dark-grey: #363636;
  --light-grey: #f8f8f8;
  --light-blue: #328CC1;
  --mid-blue: #083C5D;
  --dark-blue: #1D2731;

  --underline: 2px solid var(--red);
  --heading-font: 'Playfair Display', serif;
  --base-font-size: 1.6em;

  --standard-text-padding: 0.5em 1em;
  --double-border: 6px double var(--white);
}

* {
  /*margin: 0;
  padding: 0;*/
  /* box-sizing: border-box; */
}


.bg-black {
  background-color: var(--black);
}

.bg-light-grey {
  background-color: var(--light-grey);
}

.bg-white {
  background-color: var(--white);
}

.color-black {
  color: var(--black);
}

.color-dark-grey {
  color: var(--dark-grey);
}

.color-light-grey {
  color: var(--light-grey);
}

.color-white {
  color: var(--white);
}

.color-red {
  color: var(--red);
}

body {
  font-family: 'Montsterrat', sans-serif;
  font-weight: 200;
  margin: 0;
  padding: 0;
  background: var(--background-color);
  color: var(--text-main);
  font-size: var(--base-font-size);
  max-height: 100vh;
  overflow: hidden;
}

.loader {
  background-color: var(--dark-grey);
  display: grid;
  align-items: center;
  justify-items: center;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.loader-text {
  transform: rotate(360deg);
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: spin 120s linear infinite;

}

main {
  overflow-y: auto;
  perspective: 2px;
  position: relative;
}

section.header {
  position: relative;
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  background: url('images/photos/header-image.jpeg');
  background-size: cover;
  background-attachment: fixed;
  height: 60vh;
  backdrop-filter: blur(10px);

}

section.header h1 {
  background-image: url('images/photos/grey.gif');
  background-clip: text;
  background-blend-mode: darken;
  -webkit-background-clip: text;
  font-size: 14vw;
  letter-spacing: -0.05em;
  color: rgba(255, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  background-size: cover;
  background-position: center;
  border-bottom: var(--underline);
  margin: 0;
  display: inline;
}

.mobile-logo {
  z-index: 2;
  display: none;
}

.desktop-logo {
  display: grid;
}

.svg-logo-inner-circle {
  fill: var(--black);
  /*stroke: var(--red);
  stroke-width: 1px;*/
}

section.header h2 {
  text-align: center;
  font-size: 4vw;
  z-index: 2;
  margin-top: 0.5em;
}

section.text-section {
  padding: 4em 15vw;
}

section.text-section p+p {
  margin-top: 2rem;
}

section.text-section.bg.bg-black {
  color: var(--light-grey);
}

section.text-section.bg.bg-white {
  color: var(--black);
}

.form {
  padding: 0 4em 4em 4em;
}


.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);

}

.blur {
  backdrop-filter: blur(10px);
}

h1 {
  line-height: 1.2;
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 6rem;
  z-index: 1;
}

h2,
h3 {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 900;
}

h2 {
  margin-bottom: 2rem;
  font-size: 7rem;
}

h3 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2~h3:first-of-type {
  margin-top: 0;
}

h3~p {
  margin-top: 0;
}

h2:first-child {
  margin-top: 0;
}

.underline {
  border-bottom: var(--underline);
}

ol li {
  line-height: 2;
}

p {
  line-height: 1.4;
}

.masonry {
  box-sizing: border-box;
  padding: 0 2em;
  padding-bottom: 4em;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  justify-content: space-evenly;
  gap: 2em;
}

.masonry-item img {

  max-height: 15em;
  max-width: 100%;
  width: auto;
  object-fit: cover;
  vertical-align: center;
}

.masonry .poster-link.masonry-item img {

  border: var(--double-border);
  padding: 0.25em;
  height: 80vh;
  max-height: 80vh;
}

/* Yoinkie! Form Styling */
.form {
  color: var(--white);
  background-color: var(--black);
  width: 60vw;
  margin: auto;
}

.form div {
  margin-top: 2em;
}

label {
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  margin-bottom: 2rem;
  display: inline-block;
  font-size: 2em;
}

input[type="text"],
input[type="email"],
textarea {
  color: white;
  font-size: 2rem;
  font-family: 'Montsterrat', sans-serif;
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid white;
  padding-top: 2;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-bottom: 1px solid var(--red);

}


input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--black) inset !important;
  -webkit-text-fill-color: white !important;
}

input[type="checkbox"] {
  position: relative;
  width: 3em;
  height: 3em;
  min-width: 3em;
  min-height: 3em;
  border: 2px solid var(--white);
  appearance: none;
  outline: 0;
  cursor: pointer;
  transition: background 175ms cubic-bezier(0.1, 0.1, 0.25, 1);
}

input[type="checkbox"]:focus {
  border: 2px solid var(--red);
}

input[type="checkbox"]::before {
  position: absolute;
  content: '';
  display: block;
  top: 0.25em;
  right: 1em;
  width: 0.75em;
  height: 1.5em;
  border-style: solid;
  border-color: var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

input[type="checkbox"]:checked::before {
  opacity: 1;
}

.form-checkbox {
  display: flex;
  align-items: center;
}

.form-checkbox input {
  margin-left: 2em;
}

.submit-button {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 900;
  justify-self: center;
  display: block;
  padding: 0.25em 0.5em;
  margin: auto;
  text-align: center;
  border: 6px double var(--white);
  cursor: pointer;
  outline: none;
}

.submit-button:focus {
  border: 2px solid var(--red);
}

.form-loading-message {
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 3rem;
  display: none;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.form-loading-message p {
  display: block;
  border: 6px double var(--white);
  padding: 0.25em 0.5em;
}

.error {
  color: var(--red);
  margin-top: 0;
}

section.paralax-image {
  background-size: cover;
  background-attachment: fixed;
  min-height: 50vh;
  aspect-ratio: 21/9;
  max-width: 100vw;
  position: relative;

}

.paralax-image.combat {
  background-position: center 25%;
  background-image: url("images/photos/combat-2.min.jpg");
}

.paralax-image.marathon {
  background-image: url("images/photos/marathon.jpg");
}

.paralax-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: var(--standard-text-padding);
}

.quote {
  position: relative;
  margin-bottom: 4em;
}

.quote-text {
  font-weight: bold;
}

.quote-subtitle {
  font-style: italic;
}

.quote:before {
  line-height: 1;
  position: absolute;
  font-family: var(--heading-font);
  content: open-quote;
  font-size: 8rem;
  top: -3rem;
  left: -3rem;
}

.quote:after {
  line-height: 1;
  position: absolute;
  font-family: var(--heading-font);
  content: close-quote;
  font-size: 8rem;
  bottom: -3rem;
  right: -3rem;
}

.videoWrapper {
  padding-top: 4rem;
  position: relative;
}

.videoWrapper iframe {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.project {
  display: grid;
  grid-template-columns: auto 50%;
}

.project .blurb {
  color: var(--light-grey);
  margin-left: 3em;
}

 .project .blurb img {
    display: block;
    max-width: 50%;
    margin: auto;
    padding: 1em 0;
  }

@media screen and (max-width: 900px) {
  h2 {
    font-size: 14vw;
  }

  h3 {
    font-size: 9vw;
  }

  .project {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto;
  }

  .project .blurb {
    color: var(--light-grey);
    justify-self: center;
    margin: 0px;
  }
  .project a {
    justify-self: center;
  }
  section.text-section.videoWrapper {
    padding: 4em 0;
  }
}

@media screen and (max-width: 700px) {


  .mobile-logo {
    z-index: 2;
    display: block;
    filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.8));
    width: 75vw;
    max-height: 80%;
  }

  .desktop-logo {
    display: none;
  }

  .wrap-text {
    transform: rotate(360deg);
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: spin 120s linear infinite;

  }


  section.text-section {
    padding: 4em 7.5vw;
  }

  .form {
    width: 100%;
    padding: 0;
  }
}

@keyframes spin {
  50% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(0deg);
  }
}