* {
  margin: 0px 0px;
  padding: 0px 0px;
  font-family: "Barlow", sans-serif;
}
:root {
  --color-dark: #212121; /* was dark green */
  /* --color-accent-1: #deaa7d */
  --color-accent-1: #6fb9a2;
  --color-accent-2: #6fb9a2; /* was pink */
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  text-align: left;
  color: var(--color-dark);

  /* background-attachment: fixed;

  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)),
    radial-gradient(circle at 0 0, #ebf9cb 0%, #9fd1c0 33%, #d5fcfe 100%); */
}

.serif,
.top-title,
.case-title,
.case-subtitle {
  font-family: "Oceanic-Text-woff2", "Oceanic-Text";
}

/************** inputs and focuses **************/
/* Focusing the button with a keyboard will 
show a dashed black line. */
a:focus-visible,
input:focus-visible {
  outline: 2px solid #3cb95d;
}
/* Focusing the button with a mouse, touch, or 
stylus will show a subtle drop shadow. */
a:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
  outline: none;
}

/************** iframes and video **************/
.figma-container {
  width: 575px;
  height: 475px;
  border: 2px solid #7b32dc;
  position: relative;
}
.figma-container img {
  width: 100%;
  margin: 0;
}
.figma-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.figma-load-btn {
  color: #ffffff;
  background-color: #4a188c;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 1rem;
  cursor: pointer;
}
.figma-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
iframe {
  width: 575px;
  height: 475px;
}
#beta-flow {
  height: 380px;
}
video {
  width: calc(100% - 1rem);
  margin: 1rem 0rem;
  border: 1px solid var(--color-accent-2);
  padding: 0.5rem;
}

/************** typography **************/
.top-title {
  font-weight: 600;
}
a.active-title,
a.active-subtitle,
a.back:hover,
a:link:hover,
a:visited:hover,
.bold,
.case-title,
.case-subtitle,
footer,
.case-small-title {
  font-weight: 500;
}
.nav-title,
.nav-sub,
.caption {
  font-weight: 400;
}
.back-nav,
.content {
  font-weight: 300;
}
.caption {
  font-size: 0.9rem;
  line-height: 1.275rem;
}
.nav-sub {
  font-size: 0.95rem;
  letter-spacing: 0.1px;
}
.nav-title,
.content {
  font-size: 1.1rem;
}
.content {
  line-height: 2rem;
}
.case-small-title {
  font-size: 1.25rem;
}
.nav-title {
  line-height: 1.38rem;
}
.back-nav,
.case-subtitle {
  font-size: 1.4rem;
  line-height: 1.68rem;
}
.case-title {
  font-size: 1.8rem;
  line-height: 2.16rem;
}
.top-title {
  font-size: 3rem;
  line-height: 3.6rem;
}

/************** colors **************/
a.active-title,
.case-title,
.case-subtitle,
.caption {
  /* color: #254f31; */
  color: var(--color-dark);
}
.caption {
  /* color: #8b5560; */
  color: var(--color-dark);
}
.iframe-cap {
  /* color: #246B39; */
  color: #4a188c;
}
.case-small-title {
  color: #246b39;
}
.col-left,
footer {
  /* background-color: var(--color-dark); */
}
a.active-title {
  /* background-color: var(--color-accent-1); */
  background-color: #ffffff;
}
a.back,
a:link,
a:visited {
  color: var(--color-accent-1);
}
a.active-subtitle,
.nav-sub:hover {
  color: #ffffff;
}
a.active-title,
.above-line,
.col-left,
footer {
  color: var(--color-dark);
}
.content {
  color: #0b1e10;
}
.back,
.nav-title {
  background-image: linear-gradient(#ffffff, #ffffff);
  background-size: 0px 100%;
  padding: 0.5rem;
  margin-left: -0.5rem;
  background-repeat: no-repeat;
  transition: 0.4s;
}
.back:hover,
.nav-title:hover {
  background-size: 100% 100%;
  color: var(--color-dark);
}
#study-content,
#study-content-culture {
  /* background-color: rgba(92, 200, 124, 0.05); */
}
.case-image {
  background-color: rgba(92, 200, 124, 0.1);
}
.divider-sub,
.divider-top {
  border-top: 1px solid var(--color-accent-2);
}
.divider-main {
  border-top: 2px solid var(--color-accent-2);
}
.study-section .col-right {
  /* border-bottom: 1px solid var(--color-accent-2); */
}
footer {
  color: var(--color-accent-2);
}

/************** lines and animations **************/
/* .study-section .col-left, */
#nav-menu,
.sub-left,
footer .col-left,
.right-vertical {
  background-repeat: no-repeat;
  background-image: linear-gradient(var(--color-accent-2) 0 0),
    linear-gradient(#5cc87c 0 0);
  transition: background-position 0.3s ease-in-out,
    background-position 0.6s ease-in-out;
}

/* left lines */
footer .col-left,
.sub-left,
.right-vertical {
  background-size: 1px 200%, 1px 200%;
}
footer .col-left,
.right-vertical {
  background-position: 100% 100%, 100% 200%;
}
.sub-left {
  background-position: 0% 100%, 0% 200%;
}

/* top and bottom lines */
#nav-menu
/* .study-section .col-left */ {
  background-size: 200% 1px, 200% 1px;
}
#nav-menu {
  background-position: 100% 0%, -100% 0%;
}
/*
.study-section .col-left {
  background-position: 0% 100%, -100% 100%;
}
*/
/* animations */
footer:hover {
  .col-left,
  .right-vertical {
    background-size: 1px 200%, 1.5px 200%;
    background-position: 100% -100%, 100% 100%;
    transition: background-size 0.3s ease-in-out background-position 0.3s,
      background-size 0.6s ease-in-out background-position 0.6s;
  }
  .copyright {
    color: #5cc87c;
  }
}
/* .study-section .col-left:hover {
  background-size: 200% 1px, 200% 1.5px;
  background-position: -100% 100%, 0% 100%;
  transition: background-size 0.3s ease-in-out background-position 0.3s,
    background-size 0.6s ease-in-out background-position 0.6s;

  #nav-menu,
  .sub-left {
    transition: background-size 0.3s ease-in-out background-position 0.3s,
      background-size 0.6s ease-in-out background-position 0.6s;
  }
  #nav-menu {
    box-shadow: none;
    background-size: 200% 1px, 200% 1.5px;
    background-position: -100% 0%, 100% 0%;
  }
  .sub-left {
    background-size: 1px 200%, 1.5px 200%;
    background-position: 0% -100%, 0% 100%;
  }
} */

/************** grid and flow **************/
body,
footer,
#nav-section,
#study-content,
.study-section,
#study-content-culture {
  display: grid;
}
body {
  grid-template-rows: minmax(600px, auto) 75px;
}
.study-section,
footer {
  grid-template-columns: 300px auto;
}
#nav-section {
  align-self: start;
  position: sticky;
  top: 0;

  background-color: var(--color-dark);
}
#study-content {
  grid-template-rows: 140px auto;
}
#study-content-culture {
  grid-template-rows: 200px auto;
}
#study-content,
#study-content-culture {
  align-items: center;
  padding-left: 2rem;
}
.above-line {
  align-self: self-end;
  margin-bottom: 1.25rem;
}
#footer-copy {
  align-self: center;
}
a.active-title,
.col-left,
.nav-title,
.sub-left {
  float: left;
}

/************** sizing **************/
.main-content,
img,
.top-title {
  width: 600px;
}
.xs-width {
  width: 400px;
  padding-left: 6rem;
}
.small-width {
  width: 500px;
}
.nav-title {
  width: calc(100% - 2rem);
}
.case-image {
  background-size: cover;
  background-repeat: no-repeat;
  display: block;
  height: 200px;
  justify-self: center;
}
img,
.normal-width,
.small-width {
  height: auto;
}

/************** other styling **************/
ul {
  list-style-type: none;
}
a.back:hover,
a:link:hover,
a:visited:hover {
  cursor: pointer;
}
a.back,
a:link,
a:visited {
  text-decoration: none;
}

/************** spacing **************/
.case-title,
.case-subtitle,
.case-small-title {
  padding: 1rem 0rem 1.25rem 0rem;
}
.nav-title {
  padding: 0.6rem 0.5rem 0.6rem 1rem;
}
#overview,
#starting-from-scratch {
  padding-top: 2.25rem;
}
.sub-left,
.caption {
  padding-top: 0.25rem;
}
.above-line,
#nav-menu,
.main-content,
#footer-copy {
  padding-left: 2rem;
}
.right-vertical {
  padding: 0.15rem 1rem 0.15rem 0rem;
}
.right-of-vertical {
  padding-left: 0.85rem;
}
.nav-title {
  margin: 0.5rem 0rem 0.35rem -1rem;
}
.sub-left {
  margin: -0.25rem 0rem 1rem 0.5rem;
}
.nav-sec {
  margin-top: 1rem;
}
.nav-sub-pad {
  padding-bottom: 0.5rem;
}
.nav-sub {
  margin-left: 0.75rem;
}
.nav-sec-sub {
  margin-bottom: 0.25rem;
}
img {
  margin-top: 1rem;
}
.content {
  margin-bottom: 1rem;
}
.case-image,
.caption,
.divider-top,
.divider-main,
.divider-sub {
  margin-bottom: 2rem;
}
.divider-main,
.divider-sub {
  margin-top: 4rem;
}
.divider-bottom {
  margin-top: 8rem;
  margin-bottom: 8rem;
}

/** responsive styling **/
@media only screen and (max-width: 400px) {
  /** footer doesn't show? **/
  /* make sure mobile tap shows nav */
  .above-line,
  #nav-menu,
  .main-content,
  #footer-copy {
    padding-left: 1rem;
  }
  .main-content,
  .top-title,
  img,
  .small-width {
    width: calc(100% - 1rem);
  }
  #beta-flow,
  #visual-add-field,
  #final-flow {
    width: 320px;
  }
  .top-title {
    align-self: end;
    /* margin-left: -16rem; */
    margin-bottom: 0.5rem;
    font-size: 2.1rem;
    line-height: 2.7rem;
  }
  .case-title {
    font-size: 1.4rem;
    line-height: 1.68rem;
  }
  .case-subtitle {
    font-size: 1.1rem;
    line-height: 1.44rem;
  }
  .content {
    font-size: 0.9rem;
    line-height: 1.5rem;
  }

  .col-left,
  #nav-section {
    width: 100%;
  }
  .study-section .nav-title {
    width: calc(100% - 1rem);
  }
  .study-section .active-title {
    left: 8rem;
    width: calc(100% - 10rem);
  }
  .study-section #nav-section:hover {
    .nav-title:hover {
      width: calc(100% - 1rem);
    }
    .active-title {
      left: 6.5rem;
      width: calc(100% - 3rem);
    }
  }
}

/** add some padding on top of title when collapsed, but not on mobile **/
@media only screen and (max-width: 935px) {
  .study-section,
  footer {
    grid-template-columns: none;
  }
  .study-section {
    grid-template-rows: 60px auto;
  }
  #nav-section {
    grid-template-columns: 120px auto;
    height: 80px;
    grid-template-rows: none;
  }
  .main-spacer,
  .main-content,
  .top-title {
    justify-self: center;
    padding-left: 0px;
  }
  footer {
    justify-items: center;
  }
  .col-left {
    float: left;
    align-self: start;
    position: sticky;
    top: 0rem;
    z-index: 1;
  }
  .active-title,
  .back-nav {
    position: absolute;
    transition: none; /* nav element doesn't move between hover */
  }
  .nav-title {
    width: calc(100% - 6rem);
    transition: none;
  }
  .active-title {
    top: 10;
    left: 9.5rem;
    width: calc(100% - 15.5rem);
  }
  /* .divider-top {
        width: 580px;
    } */
  .back-nav {
    top: 2rem;
    left: 0rem;
  }
  #nav-menu {
    background-image: none;
  }
  #study-content,
  #study-content-culture {
    border-top: 2px solid var(--color-accent-2);
  }
  .nav-title,
  .nav-sub {
    content-visibility: hidden;
    display: none;
  }
  .sub-left {
    visibility: hidden;
  }
  .active-title,
  .active-subtitle {
    content-visibility: visible;
    display: unset;
  }
  #nav-section:hover {
    content-visibility: visible;
    height: fit-content;
    background-color: var(--color-dark);
    .back-nav,
    .active-title,
    .active-subtitle {
      position: sticky;
    }
    .back-nav {
      left: -1rem;
      align-self: first baseline;
    }
    .nav-title,
    .nav-sub {
      content-visibility: visible;
      display: unset;
    }
    .nav-title {
      transition: 0.4s;
    }
    .nav-title:hover {
      width: calc(100% - 6rem);
    }
    .active-title {
      left: 8rem;
      width: calc(100% - 6rem);
    }
    .sub-left {
      visibility: visible;
    }
  }
}

@media only screen and (min-width: 936px) and (max-width: 1020px) {
  .top-title {
    font-size: 2.75rem;
    line-height: 3.5rem;
  }
  .main-content,
  img,
  .top-title {
    width: 550px;
  }
  .top-title,
  .main-content {
    padding-left: 1rem;
  }
}

@media only screen and (min-width: 936px) {
  #nav-section {
    top: 24px;
    background-color: var(--color-dark);
    border-radius: 24px;
    margin-left: 24px;
    /* margin-top: 140px; */
    padding: 24px 0;
  }
}

.footer {
  margin-top: 8rem;
  font-size: 16px;
}
.weight-bold {
  font-weight: 600;
}
