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

:root {
	font-size: 16px;
	--color-text: #fff;
	--color-bg: #000;
	--color-link: #fff;
	--color-link-hover: #907030;
	--color-title: #907030;
	--perspective: 1500px;
	--grid-item-ratio: 1.5;
	--grid-width: 100%;
	--grid-height: auto;
	--grid-gap: 2vw;
	--grid-columns: 4;
	--grid-inner-scale: 1;
}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: "Source Sans 3", sans-serif;
	font-optical-sizing: auto;
	font-weight: 200;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
}

a:hover {
	color: var(--color-link-hover);
	outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:not(.card__image):focus {
	/* Provide a fallback style for browsers
	 that don't support :focus-visible */
	outline: none;
	background: lightgrey;
}

a:not(.card__image):focus:not(:focus-visible) {
	/* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
	background: transparent;
}

a:not(.card__image):focus-visible {
	/* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
	outline: 2px solid red;
	background: transparent;
}

.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

main {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.frame {
	position: relative;
	width: 100%;
	padding: 1rem;
	display: grid;
	grid-template-columns: 100%;
	grid-template-areas: 'back' 'prev' 'sponsor';
	grid-gap: 0.5rem;
	justify-items: start;
	align-self: start;
	justify-self: start;
	pointer-events: none;
	align-items: center;
	text-transform: uppercase;
	font-size: 0.85rem;
	background: var(--color-bg-alt);
}

body #cdawrap {
    justify-self: start;
}

.frame a {
	pointer-events: auto;
}

.frame a:not(.frame__title-back) {
	white-space: nowrap;
	overflow: hidden;
	position: relative;
}

.frame a:not(.frame__title-back)::before {
	content: '';
	height: 1px;
	width: 100%;
	background: currentColor;
	position: absolute;
	top: 90%;
	transition: transform 0.3s;
	transform-origin: 0% 50%;
}

.frame a:not(.frame__title-back):hover::before {
	transform: scaleX(0);
	transform-origin: 100% 50%;
}

.frame__title {
	grid-area: title;
	display: flex;
}

.frame__title-main {
	font-size: inherit;
	margin: 0;
	font-weight: inherit;
}

.frame__title-back {
	position: relative;
	display: flex;
	align-items: flex-end;
	margin-bottom: 0.15rem;
}

.frame__title-back span {
	display: none;
}

.frame__title-back svg {
	fill: currentColor;
}

.frame__prev {
	grid-area: prev;
}

.intro {
	height: calc(100vh - 3rem);
    text-align: center;
    place-items: center;
    display: grid;
    margin-bottom: 30vh;
    background: linear-gradient(0deg, transparent, var(--color-bg-alt));
}

.intro__title {
    place-items: center;
    margin: 0;
    line-height: .9;
    display: grid;
    margin-top: 15vh;
    font-weight: 400;
}

.intro__title-pre {
	font-weight: 300;
    font-size: clamp(2rem,8vw,5rem);
    color: var(--color-title);
    text-transform: uppercase;
}

.intro__title-sub {
    font-size: clamp(1.5rem,20vw,8rem);
    max-width: 15ch;
    margin: 0 auto;
}

.intro__info {
	max-width: 15ch;
    opacity: .6;
    margin-bottom: 4rem;
    padding-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    align-self: end;
}

.intro__info::after {
	content: "";
	width: 1px;
	height: 2rem;
	background: #fff;
	position: absolute;
	top: 100%;
	left: 50%;
}

.card-wrap {
	margin-top: 5vh;
	display: grid;
	grid-gap: 2rem;
	grid-auto-flow: row;
	grid-template-columns: 250px;
}

.card__image {
	display: block;
	border-radius: 7px;
	background-size: cover;
	background-position: 50% 50%;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	filter: contrast(0.8);
}

.credits {
	font-size: 10px;
	text-align: center;
	margin: 50vh auto 0;
	padding-bottom: 50vh;
}

.content {
	position: relative;
}

.content--spacing {
	margin-bottom: 100vh;
}

.content__title {
	position: absolute;
	FONT-WEIGHT: 500;
	width: 600px;
	top: 4%;
	left: 51%;
	/* margin: -50vh 0 0 -50vw; */
	/* padding: 0 10vw; */
	/* display: grid; */
	place-items: center;
	text-align: center;
	font-weight: 300;
	font-size: clamp(1.1rem, 11vw, 5.1rem);
}

@media screen and (max-width:1200px) {
	.content__title {
		left: 34%;
	}
}

@media screen and (max-width:800px) {
	.content__title {
		position: absolute;
		top: 4%;
		left: 0;
		right: 0;
		width: 100%;
		padding: 30px;
		place-items: center;
		text-align: center;
		font-weight: 300;
		font-size: clamp(1.2rem, 15vw, 6.5rem);
		background-color: rgba(000, 0, 0, 0.5);
	}
}


.content__title p{
	padding:0;
	Margin: 0;
}

.content__title--center {
	font-size: 4em;
	text-align: center;
	margin: auto;
}

.content__title-btn{
	font-size: 1.8rem;
	font-weight: 400;
	border-bottom: 1px solid #fff;
	padding-top: 100px !important;
	display: inline;
}

.content__title--top {
	align-items: start;
}

.content__title--bottom {
	align-items: end;
}

.content__title--left {
	justify-items: start;
	text-align: left;
}

.content__title--right {
	justify-items: end;
	text-align: center;
}

.content__title-small {
	font-size: 19px;
	font-weight: 400;
	color: #ccc;
}

.grid--3 {
	position: relative;
	height: 100vh;
}

.grid--5 {
	position: relative;
	height: 100vh;
}


.grid {
	display: grid;
	place-items: center;
	padding: 2rem;
	width: 90%;
	perspective: var(--perspective);
}

.grid-wrap {
	height: var(--grid-height);
	width: var(--grid-width);
	display: grid;
	grid-template-columns: repeat(var(--grid-columns),1fr);
	gap: var(--grid-gap);
	transform-style: preserve-3d;
}

.grid__item {
	aspect-ratio: var(--grid-item-ratio);
	width: 100%;
	height: auto;
	overflow: hidden;
	position: relative;
	border-radius: 8px;
	display: grid;
	place-items: center;
}

.grid__item-inner {
	position: relative;
	width: calc(1 / var(--grid-inner-scale) * 40%);
	height: calc(1 / var(--grid-inner-scale) * 50%);
	background-size: cover;
	background-position: 50% 50%;
}

@media screen and (min-width: 53em) {
	.frame {
		grid-template-columns: auto auto auto 1fr;
		grid-template-areas: 'title prev ... sponsor';
		align-content: space-between;
		justify-items: start;
		grid-gap: 2.5rem;
	}
	.frame__demos {
		justify-self: end;
	}

	.content--outro {
		height: 100vh;
		justify-content: center;
	}

	.card-wrap {
		grid-template-columns: repeat(3,250px);
	}

	body #cdawrap {
	    justify-self: end;
	}
}

.slideshow {
	z-index: 100;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
}

.slideshow-slide-credit {
	position: absolute;
	z-index: 10;
	left: 0;
	right: 0;
	bottom: 100px;
	text-align: center;
	color: #999;
	font-size:12px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
  padding-top: 15px;
}

@media screen and (max-width:800px) {
	.slideshow-slide-credit {
		bottom: 140px;
	}
}

.slideshow-slide {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	text-align: center;
	z-index: 10;
}

.slideshow-slide:before {
	content: "";
	display: inline-block;
	margin-right: -5px;
	height: 100%;
	vertical-align: middle;
	max-width: 100%;
}

.slideshow-slide img {
vertical-align: middle;
max-height: calc(100% - 233px);
display: inline-block;
max-width: 80%;
margin-top: -2%;
}

.slideshow-controls {
	position: absolute;
	z-index: 2000000;
	right: 30px;
	bottom: 20px;
}

.slideshow-controls a {
  color: #775307;
  text-decoration: none;
}

.slideshow-controls a:hover {
	color: #73520a;
  text-decoration: none;
}

@media screen and (max-width:800px) {
	.slideshow-controls {
		bottom: 20px;
		z-index: 2000000;
	}
}

.title-slideshow {
  font-size: 30px;
  position: absolute;
  top: 21px;
  left: 0;
  right: 0;
  margin: auto;
  display: none;
  z-index:101;
}

.title-slideshow img {
  max-width: 100%;
}


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

  .title-slideshow img {
    max-width: 80%;
  }


	.title-slideshow {
    top: 42px;
		font-size: 30px;
	}

	.slideshow-slide img {
			display: inline-block;
			max-width: 100%;
			max-height: calc(90% - 250px);
	}
}

.menu {
	position: fixed;
	bottom: 40px;
	height: 40px;
	z-index: 200;
	width: 100%;
	text-align: center;
}

@media screen and (max-width:800px) {
	.menu {
		position: relative;
    bottom: 70px;
    height: 40px;
    z-index: 200;
    width: 100%;
    text-align: center;
    margin: auto;
	}
}

.menu ul {
	width: 100%;
	left: 0;
  right: 0;
  margin-left: -70px;
}

@media screen and (max-width:800px) {
	.menu ul {
		 left: 0;
		 right: 0;
		 text-align: center;
		 margin-left: -25px;
	}
}

.menu ul li {
	display: inline-block;
	margin: auto 1px;
	font-size: 1.2em;
	letter-spacing: 2px;
  margin-left: 70px;
}

@media screen and (max-width:800px) {
	.menu ul li {
		display: inline-block;
		margin: auto 1px;
		font-size: 1em;
		letter-spacing: 2px;

    margin-left: 20px;
	}
}

.menu ul li img {
  vertical-align: bottom;
}


.menu a {
	font-weight: 400;
	text-transform: uppercase;
	color: #efefef;
	text-decoration: none;
	letter-spacing: 1px;
}

.endscreen {
	color: #fff;
	font-size: 50px;
	font-weight: 200;
	left: 0;
	right: 0;
	line-height: 40px;
	position: relative;
	text-align: center;
	top: 3%; */
	width: 500px;
	display: none;
	margin: auto;
	z-index: 101;
}

.endscreen-info {
  padding-top: 33px;
  font-size: 18px;
  line-height: 28px;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 5px;
}

.endscreen a {
	color:#fff;
	opacity: 1;
  text-decoration: none;
}

@media screen and (max-width:800px) {
  .endscreen {
    top: 15%;
    width: 100%;
    padding: 0px;
  }
}

.endscreen a:hover {
	color: #efefef;
	-moz-transition: all 0.2s ease-out;
	-webkit-transition: all 0.2s ease-out;
	-o-transition: all 0.2s ease-out;
	transition: all 0.2s ease-out;
}

.endscreen-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background-size: cover;
  display: none;
  background-image: url("../img/end.jpg");
}

.endscreen-feedback-info {
	font-size: 24px;
	padding-top: 20px;
	line-height: 0px;
	font-weight: 400;
}

.endscreen-feedback-btn {
	border: 1px solid white;
	padding: 10px 20px;
	font-size: 27px;
	line-height: 0px;
}

.contact {
  font-size: 18px;
  margin-top: 5px;
  font-style: italic;
}

@media screen and (max-width:800px) {
  .contact {
  	font-size: 14px;
  }
}

.replay-button {
	display: block;
	padding-top: 0px;
	margin: auto;
	width: 200px;
}

.feedback-btn {
	position: fixed;
	width: 142px;
	top: 30px;
	right: 80px;
	background-color: #fff;
	padding: 16px 30px;
	color: #000;
	text-align: center;
	margin: auto;
	font-family: helvetica, sans-serif;
	font-size: 16px;
	display: block;
	border-radius: 20px;
	z-index: 201;
}

@media screen and (max-width:800px) {
  .feedback-btn {
  	display: none;
  }
}

.feedback-btn a {
  text-decoration: none;
  letter-spacing: 1px;
  display: block;
  width: 100%;
}

.feedback-btn:hover {
background-color: #81551c;
color: #fff;
}

.feedback-container {
	margin: auto;
	text-align: center;
	width: 100%;
	margin: auto!important;
	position: absolute;
	top: 45%;
	-ms-transform: translateY(-70%);
	transform: translateY(-70%);
}

.feedback-title {
	font-size: 40px;
	padding-bottom: 30px;
}

.feedback-container p {
	font-size: 20px;
	font-weight: 400;
}

.feedback-back-to-top-btn {
	border: 1px solid white;
	padding: 10px 20px;
	margin-top: 50px
}
