@font-face {
  font-family: 'Terminal Grotesque';
  src: url('terminal-grotesque-webfont.woff2') format('woff2'),
    url('terminal-grotesque-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

:root {
  --base-font-size: calc(1rem + 1.4vw);
  --blue: #8adbf3;
  --lighter-red: #f47d89;
  --light-red: #f15a69;
  --mid-red: #ef4556;
  ;
  --dark-red: #ee1e40;
  --light-yellow: #fff9b4;
  --med-yellow: #fee25b;
  --dark-yellow: #d4b413;
  ;
}

html {
  background: var(--light-yellow);
  font-family: "Jersey 15", sans-serif;
  font-size: var(--base-font-size);
  line-height: 1.5;
  font-weight: 300;
  overflow-x: hidden;
  color: var(--light-red);
  scrollbar-color: var(--dark-red) var(--med-yellow);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  padding: 0;
}

#content {
  display: none;
  padding-bottom: 5em;

}

#content.loaded {
  display: block;
}

#loadingScreen {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center
}

#loadingVideo {
  height: 2em;
}

/* width */
::-webkit-scrollbar {
  width: 15px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--med-yellow);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--dark-red);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--light-red);
}

h1 {
  font-size: calc(var(--base-font-size) * 1.5);
  margin: 0;
  font-weight: normal;

}

h2 {
  font-size: calc(var(--base-font-size) * 1.2);
  font-weight: normal;
}

h3 {
  font-size: var(--base-font-size);
  font-weight: normal;

}

p,
blockquote,
.project-window ul {
  font-weight: 300;
  font-family: "Terminal Grotesque", sans-serif;

}

.project-window ul li {
  list-style-image: url("images/star-round-sm.png");
  margin-left: 1em;
}

blockquote {
  border-left: 6px solid var(--light-red);
  padding-left: 1em;
}

p.light-yellow-text {
  color: var(--light-yellow)
}

a {
  color: var(--dark-red);
  transition: 1s;
  text-decoration-thickness: 3px;
}

.visually-hidden {
  border: 0;
  padding: 0;
  margin: 0;
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px);
  /* IE6, IE7 - a 0 height clip, off to the bottom right of the visible 1px box */
  clip: rect(1px,
      1px,
      1px,
      1px);
  /*maybe deprecated but we need to support legacy browsers */
  clip-path: inset(50%);
  /*modern browsers, clip-path works inwards from each corner*/
  white-space: nowrap;
  /* added line to stop words getting smushed together (as they go onto seperate lines and some screen readers do not understand line feeds as a space */
}

.header {
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0 2em;
  flex-wrap: wrap;
}

nav {
  display: flex;
  justify-content: center;

}

button {
  background-color: var(--med-yellow);
  border: 3px solid var(--light-red);
  color: var(--light-red);
  border-radius: 0.8em;
  padding: 0.4em 0.8em;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.header img {
  max-width: 80vw;
  height: 100%;
}

.artist-list-container {
  display: flex;
  justify-content: center;
}

ul.artist-list {
  display: none;
}


.header nav ul {
  list-style: none;
  padding-left: 0px;
  gap: 1em 0.5em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li,
.header ul.artist-list li,
.footer-project ul.artist-list li {
  display: block;
}

nav ul li a {
  white-space: nowrap;
  color: var(--med-yellow);
  text-decoration: none;
}

nav ul li a>* {
  text-decoration: none;
}

ul.artist-list li a,
.footer-project ul.artist-list li a {
  white-space: nowrap;
  color: var(--light-red);
}

.footer-project ul.artist-list {
  display: block;
  padding: 0px;

}

ul.artist-list li:not(:last-child) {
  margin-right: 0.3em;
  margin-bottom: 0.6em;
}

.inner-page {
  color: var(--light-red);
  background-color: var(--light-red);
}

.curatorial-page {
  background-color: var(--light-yellow);
}

.curatorial-page nav {
  background: linear-gradient(var(--blue) 40%, #ffffff00);
}

.inner-page nav {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  padding: 1em;
  justify-content: flex-end;
}

.curatorial-main {
  max-width: 30em;
  margin: auto;
  padding: 1em;
}

.inner-page nav a.logo-link {
  height: 100%;
  width: 80vw;
}

.inner-page nav a img {
  max-width: 80vw;
}

main.home-main {
  padding-top: 2em;
  margin: auto;
  display: grid;
  gap: 3em;
}

main.project-main {
  margin: auto;
  gap: 1em;
  display: flex;
  flex-wrap: wrap;
}

.project-section {
  width: 100vw;
}

.project-header {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin: 1em 0;
}

@media screen and (max-width: 700px) {
  .project-header {
    flex-wrap: wrap-reverse;
  }

}

.project-header p,
.project-header h1 {
  font-weight: normal;
  line-height: 1;
  font-size: 1.5rem;
  margin: 0;
  color: var(--light-red);
  background-color: var(--med-yellow);
  border-radius: 1em;
  padding: 0.4rem 0.9rem;
}

.project-header p {
  font-family: "Jersey 15", sans-serif;
}

.exit-button-container {
  display: flex;
  justify-content: flex-end;
  scale: 1.2;
  top: 1.5em;
  right: 5%;
  transition: scale 1s, right 1s;
}

.exit-link.cornered .exit-button-container {
  position: fixed;
  top: 0em;
  right: 0em;
  scale: 0.8;
}

.project-header .exit-link {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

.project-windows {
  gap: 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.project-window {
  background-color: var(--mid-red);
  border-radius: 0.8em;
  padding: 0.6rem 0.9rem;
  max-width: clamp(20em, calc(50% - 3em), 100vw);
  transition: 1s;
}

.unity-game {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#unity-footer {
  padding-top: 1em;
}

#unity-container {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.unity-game p {
  padding: 1em;
}

.full-width-project-window {
  width: 100%;
  max-width: 100vw;
  margin: 0.5em;
}

.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2em;
  padding: 2em 0;
}

.project-window>* {
  background-color: var(--light-yellow);
  border-radius: 0.8em;
  padding: 0.8rem 1.2rem;
}

.project-window>.gallery {
  background-color: transparent;
}

.project-window .yellow-button:first-of-type {
  margin: 1em 0 0.5em 0
}

.project-window .yellow-button {
  margin: 0.5em 0;
}

.project-main section.full-width {
  margin: 0;
}

.project-work {
  background: white;
  max-width: 100%;
}


.project-work>img,
.project-work>.vid-wrapper {
  max-height: 100vh;

}

.project-work>* {
  max-width: 97vw;

  background-color: transparent;
  margin: 0 auto;
}

.project-work>.unity-game {
  max-width: 100%;
  padding: 0;
}

.project-images {
  padding: 4em 0;
  display: flex;
  flex-direction: column;
  gap: 4em;
}

.image-with-text {}

.superhero-title {
  text-transform: uppercase;
  margin-bottom: 0;
}

.superhero-date {
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.03em;
  margin-bottom: 0;
}

.comfortably-wrapper {
  width: 100vw;
}

.comfortably-wrapper iframe {
  width: 100vw;
  height: 100vh;
  border: none;
}

.fullwidth {
  width: 100%;
  padding: 0;
  margin: 0 -0.9rem;
}

section.project-card-section {
  width: 100vw;
}

.project-card-img-container {
  display: flex;
}

.project-card-img-container * {
  width: 100%;
}

.project-card-img-wrapper {
  max-height: 100%;
  overflow: hidden;
  background: #8adbf3;
  border-radius: 1em;
  transition: max-height 0.6s ease-out;
  margin: 0 auto;
  width: 100%;
}

.project-card-img {
  height: 100%;
  margin: auto;
  width: 100%;
  object-fit: cover;
  max-height: 50vh;
  max-width: 100%;
}

.project-card-wrapper h2 {
  color: var(--med-yellow);

}

.project-card-wrapper h2,
.project-card-wrapper h3 {
  font-size: var(--base-font-size);
  margin: 0;
  max-width: 92%;
}

section.project-card-section {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
}



.project-card-section a {
  text-decoration: none;
}

.project-card-wrapper {
  width: 80vw;
  pointer-events: auto;
  background-color: var(--light-red);
  padding: 0.4em 0.8em 0.8em 0.8em;
  border-radius: 1em;

}

.project-overlay {
  position: absolute;
  bottom: 0.8em;
  width: calc(80vw - 2.6em);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 4em 1.3em 0 1.3em;
  border-radius: 0 0 1em 1em;
  background: linear-gradient(#8adbf300, #8adbf391, #8adbf3f0, #8adbf3);
  color: var(--light-red);
  max-width: 100%;
  transition: 0.4s;
  gap: 0.3em;
}

.project-card-wrapper:hover .project-overlay {
  padding: 0em 1.3em 0 1.3em;
  background: linear-gradient(#8adbf100, #8adbf370 30%, #8adbf3c2 50%, #8adbf3 75%);

}

@media screen and (min-width: 1000px) {
  .project-overlay {
    width: calc(60vw - 2.6em);
  }

  .project-work>* {
    max-width: 70vw;
  }

  .project-work>*.fullwidth {
    max-width: 100%;
  }
}

.project-main section {
  margin: 0 5%;
}

.project-intro,
.project-description,
.bio {
  max-width: 90vw;
  margin: 0 auto;
}

.bio {
  padding-top: 1em;
}

.project-main-display {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  margin-bottom: 2em;
  max-width: 100vw;
}

.footer-project {
  padding: 1em;
  margin-top: 6em;
}



.inner-page nav img {
  padding-top: 2em;
}

.click-view-note {
  position: absolute;
  font-weight: bold;
  padding: 0.2em 1em 0.2em 1em;
  margin-top: -5em;
  width: 100%;
  text-align: center;
}

.back-artworks-link {
  color: var(--dark-red);
  position: fixed;
  margin-top: -0.8em;

}

.footer-home {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2em;
}

.back-top-link {
  font-weight: 700;
}

.vid-wrapper {
  /* display: flex;
  justify-content: center;
  align-items: center; */
  padding: 56.3% 0 0 0;
  position: relative;
}

.fullwidth-vid {
  max-width: 100%;
}

.vid-wrapper iframe {
  /* height: 50vh;
  width: 85vw; */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

small,
span.small {
  text-transform: uppercase;
  letter-spacing: calc(var(--base-font-size) * 0.06);
  font-size: calc(var(--base-font-size) * 0.5);
}

hr {
  position: relative;
  border: 0px;
  height: 3.7em;
  opacity: 1;
  background-image: url('images/shine-2.png');
  background-repeat: space;
  background-size: 3.4em;
}

figure,
figure img,
.project-images img {
  max-width: 100%;
  max-height: 100vh;
  text-align: center;
}

.documentation-images {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1em;
}

.documentation-images img {
  width: 100%;
  height: auto;
}

.caption {
  font-size: calc(var(--base-font-size)*0.7);
  padding: 0.5em 0 1em 0;
  opacity: 0.6;
  margin-right: 2em;
  max-width: 90vw;
}

.caption.heavy {
  opacity: 1;

}

.rightalign {
  text-align: right;
  width: 100%;
  display: inline-block;
}

.header img {
  width: 90vw;
}

.red-button {
  background-color: var(--light-red);
  border: 3px solid var(--med-yellow);
  border-radius: 0.8em;
  padding: 0.6em 0.9em;
  text-decoration: none;
  transition: background-color .2s color .2s transform .2s;
  font-family: "Jersey 15", sans-serif;

}

.red-button:hover {
  color: var(--light-red);
  border: 3px solid var(--light-red);
  background-color: var(--light-yellow);
}

.yellow-button {
  display: inline-block;
  background-color: var(--med-yellow);
  border: 3px solid var(--light-red);
  color: var(--light-red);
  border-radius: 0.8em;
  padding: 0.3em 0.8em;
  text-decoration: none;
  font-family: "Jersey 15", sans-serif;
}

.footer-project ul.artist-list {
  display: block;
  padding-left: 0px;
  max-width: 70vw;
}

.footer-project ul.artist-list li {
  display: inline-block;

}

.footer-project ul.artist-list li a {
  display: inline-block;
  background-color: var(--med-yellow);
  border: 3px solid var(--light-red);
  color: var(--light-red);
  border-radius: 0.8em;
  padding: 0.3em 0.8em;
  text-decoration: none;
}

.footer-project {
  text-align: center;

}

.footer-project ul.artist-list {
  margin: 0 auto;
}

@media screen and (min-width: 700px) {
  .fullwidth-vid {
    max-width: 85%;
  }

  .documentation-images img {
    width: 40%;
  }

  ul.artist-list {
    display: block;
    padding-left: 0px;
    max-width: 70vw;
  }

  nav {
    position: relative;
  }


  nav ul li {
    display: inline-block;

  }


  ul.artist-list li {
    display: inline-block;

  }

  ul.artist-list li a {
    display: inline-block;
    background-color: var(--med-yellow);
    border: 3px solid var(--light-red);
    color: var(--light-red);
    border-radius: 0.8em;
    padding: 0.3em 0.8em;
    text-decoration: none;
  }

  ul.artist-list {
    text-align: center;
  }


  .inner-page nav img {
    padding-top: 0;
  }

  .back-artworks-link {
    top: 1em;
    right: 1em;
    margin: 1em;
  }

  .click-view-note {
    font-size: calc(var(--base-font-size) * 0.8);
    transition: 0.3s;
  }

  .click-view-note:hover {
    border-bottom: 0.2em solid #ffec51;
  }


  .project-main,
  .project-main-full {
    padding-top: 0.5em;
  }

  .project-main-display>* {
    max-width: 50vw;
  }

  .project-main-display>noscript>* {
    max-width: 50vw;
  }

  .project-main-display .lightbox-thumb img {
    max-width: 50vw;
  }

  .thin-display {
    width: 100vw;
    margin: 0 auto;
  }

  .thin-display>* {
    max-width: 50vw;
  }

  .inner-page nav {
    justify-content: space-between;
    flex-direction: row;
  }

  .inner-page nav a img {
    max-width: 30vw;
  }

  .caption {
    margin-right: 0;
  }
}


@media screen and (min-width: 1000px) {

  :root {
    --base-font-size: calc(0.67rem + 1vw);
  }

  .header img {
    width: 40vw;
  }

  .inner-page nav a.logo-link {
    width: 60vw;
  }

  .inner-page nav a img {
    max-width: 20vw;
  }

  .artist-list-container {
    margin-top: -2em;
  }

  .project-card-wrapper {
    width: 60vw;
  }


}


@media screen and (min-width: 2000px) {
  html {
    font-size: calc(1rem+0.3vw);
  }
}


.flex-container {
  display: flex;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
}

.dropdown {
  text-align: center;
  margin: 0.2em 0 1em 0;
}

.dropdown .dropbtn {
  transition: 0.5s;
}

.dropbtn a {
  color: var(--light-red);
}

.dropdown-content {
  display: none;
  min-width: 90%;
  margin: 0 auto;
  z-index: 100;
  left: 5%;
  border: 3px solid var(--light-red);
  border-radius: 1rem;
  margin-top: 1em;
  background: var(--med-yellow);

}

.dropdown-content a {
  color: var(--light-red);

}

.dropdown-content ul li {
  list-style-type: none;
  margin-bottom: 0;

}

.dropdown-content ul {
  margin: 0;
  padding: 1em 0;

}

.dropdown-content a {
  float: none;
  text-decoration: none;
  display: block;
  text-align: left;
  padding: 0 1em;
  border-radius: 1em;
}

.dropdown-content a:hover {
  background-color: var(--med-yellow);
}

.dropdown.open .dropdown-content {
  display: block;
}

.open+.dropdown-content {
  display: block;
}

@media screen and (min-width: 2000px) {
  html {
    font-size: calc(1rem+0.3vw);
  }

  .artist-list a:not(:first-child),
  .dropdown .dropbtn {
    display: none;
  }

  .artist-list a.icon {
    float: right;
    display: block;
  }
}



@media screen and (max-width: 700px) {

  /*.artist-list a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }*/
  .artist-list a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 700px) {
  .artist-list a.icon {
    float: right;
    display: block;
  }

  .artist-list.responsive {
    position: relative;
  }

  .artist-list.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .artist-list.responsive a {
    float: none;
    display: block;
    text-align: center;
  }

  .artist-list.responsive .dropdown {
    float: none;
  }

  .artist-list.responsive .dropdown-content {
    position: relative;
  }

  .artist-list.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: center;
  }
}

@media screen and (min-width: 700px) {
  .flex-container {
    display: none;
  }
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2em;
}

.heart-button {
  background-color: var(--med-yellow);
  border-radius: 50%;
  width: 1em;
  height: 1em;
  padding: 0.4em;
  border: 2px solid var(--light-red);
  transition: transform 1s;
  transform-origin: center;
  animation-play-state: paused;
}


.heart-button img {
  max-width: 100%;
  height: auto;
}

.heart-check {
  display: none;
}

.heart-check:checked+label>img,
.heart-check:checked>*+label>img {
  filter: invert(25%) sepia(95%) saturate(1096%) hue-rotate(164deg) brightness(101%) contrast(91%);
}

.heart-check:checked+label,
.heart-check:checked>*+label {
  /*background-color: transparent;*/
}

.exit-button-container:hover,
.heart-button:hover {
  animation: heartbeat 1s linear infinite;
}

.exit-button-container .heart-button {
  pointer-events: none;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.25);
  }

  70% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}