html {
    font-display: fallback;
}

html, body {
    background-color: var(--color-background);
}

body {
    font-family: "circe-slab-a-narrow", serif;
    font-weight: 400;
    font-style: normal;
    color: var(--color-text);
    background-color: var(--color-background);
    color: var(--color-text);
}

::selection {
  background-color: var(--color-muted-alpha);
}

button, .call-to-action {
    font-family: "proxima-nova", sans-serif;
    font-weight: 500;
    font-style: normal;
}

h1, h2, h3, h4, h5 {
    color: var(--color-accent-2);
    font-size: 2rem;
    font-family: mostra-nuova, sans-serif;
    font-weight: 700;
    font-style: normal;
}

h1 {
    font-weight: 800;
}

.container {
  display: flex;
}

.container.home, .container.bio {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container.top {
    display: flex;
    flex-direction: row;
     flex-wrap: nowrap;
     justify-content: space-around;
     padding: 1rem;
     min-height: 100vh;
}

.container.top .container {
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
  justify-content: space-around;
  flex-direction: column;
  flex-wrap: nowrap;
}

.container.top .container img.coin.large {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    animation: coin-flip 1.1s ease-out forwards;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes coin-flip {
  0% {
      transform: rotateX(80deg) translateY(100%) scale(0.8);
      opacity: 0.1;
  }
  100% {
      transform: rotateX(0deg) translateY(0) scale(1);
      opacity: 1;
  }
}

.container.top .container.left {
    flex: 1 2 50%;
    overflow: hidden;
}

.container.top .container.right {
    flex: 2 1 50%;
    display: flex;
    align-items: center;
  justify-content: space-around;
  flex-direction: column;
  flex-wrap: nowrap;
}

h1.logotype {
  font-size: 24rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  line-height: 1;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  text-shadow: 0.03em 0.03em 0.1em var(--color-dark-drop-shadow);
  margin-bottom: -0.1em;
}

h1.logotype span.djt span {
  display: inline-block;
}

h1.logotype.animate span.djt .initials {
    animation: bounce 0.30s ease-in-out 8 alternate forwards;
    animation-delay: 0.5s;
}

h1.logotype.animate .who {
    animation: shake-rotation 0.90s ease-in-out 2 alternate forwards;
    animation-delay: 0.5s;
    transform-origin: center;
    z-index: 10;
}

h1.logotype.animate span.djt .question {
    animation: shake-rotation 0.90s ease-in-out 2 alternate forwards;
    animation-delay: 0.5s;
    transform-origin: center;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-0.05em);
  }
}

h1.logotype.animate span.djt .initials:nth-child(odd) {
  animation-duration: 0.23s;
}

h1.logotype.animate span.djt .initials:nth-child(even) {
  animation-duration: 0.30s;
}

@keyframes shake-rotation {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2deg);
  }
  75% {
    transform: rotate(-3deg);
  }
}

h1.logotype .who {
  font-size: 31.25%;
  color: var(--color-accent-1);
  margin-bottom: -0.32em;
}

h1.logotype .djt {
  font-size: 1em;
  color: var(--color-accent-2);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

h1.logotype .question {
  font-size: 1em; /* Same as DJT */
  color: var(--color-accent-1);
}

.intro-text {
  display: block;
  line-height: 1.5;
  text-align: center;
  font-size: 1.5em;
  color: var(--color-text);
}

.container.home .call-to-action {
    display: block;
    font-size: 1.75em;
    text-align: center;
  color: var(--color-accent-2);
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 1em;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.9) translateY(0px);
    text-shadow: 0px 0px 0px rgba(255, 255, 255, 0.75);
  }
  50% {
    transform: scale(1.1) translateY(0.2em);
    text-shadow: 0px 0px 0.2em rgba(255, 255, 255, 0.75);

  }
}

.container.home .call-to-action .down-arrow {
    color: var(--color-text);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
  text-shadow: 0px 0px 0px rgba(255, 255, 255, 0.75);
}

.corkboard {
    background: url('/images/cork-board-bg.jpg') repeat top left;
}

.container.corkboard {
    flex: 1 0 auto;
    min-height: 50vh;
    width: 100%;
    padding: 2rem 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.container.bio .container.corkboard {
    align-items: center;
    justify-content: space-evenly;
}

.container.bio .bio-text {
 font-size: 3em;
    color: var(--color-primary);
    text-shadow: 1px 1px 3px var(--color-dark-drop-shadow);
    display: block;
    width: 50vw;
    text-align: left;
}

.photograph {
    position: relative;
  background-color: #FCF9FA;
  border-radius: 6px;
  box-shadow: 1px 4px 8px rgba(11, 11, 11, 0.85);
  padding: 14px 14px;
  display: inline-block;
  height: fit-content;
  width: fit-content;
  margin: 2rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
   transform: rotate(var(--rotation, 0deg));
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
}

.photograph .pushpin {
  transform: rotate(calc(-1 * var(--rotation, 0deg)));
}
.photograph:hover .pushpin {
  transform: 
    rotate(calc(-1 * var(--rotation, 0deg)))
    rotateX(8deg)
    translateY(3px);
}
.photograph:hover {
  transform: 
    rotate(var(--rotation, 0deg))
    rotateX(-8deg)
    translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.8);
}

.photograph::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.photograph:hover::after {
  opacity: 1;
}

.photograph img {
    width: 300px;
  height: auto;
  display: block;
  margin-bottom: 15px;
}

.photograph .caption {
  font-family: shantell-sans-informal, sans-serif;
  font-weight: 700;
  font-style: normal;
  text-align: center;
  margin: 0;
  font-size: 1.75em;
  color: #333;
}






/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
 h1.logotype {
	font-size: 8rem;
 }
 .container.top {
	display: flex;
	flex-direction: column;
 }
 .container.top .container img.coin.large {
    width: auto;
    height: 100%;
 }
 @keyframes coin-flip {
  0% {
      transform: rotateX(80deg) translateY(0) scale(0.8);
      opacity: 0.1;
  }
  100% {
      transform: rotateX(0deg) translateY(0) scale(1);
      opacity: 1;
  }
}
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
 h1.logotype {
	font-size: 12rem;
    }
 .container.top {
     display: flex;
     flex-direction: column;
 }
 .container.top .container img.coin.large {
    width: auto;
    height: 100%;
 }
 @keyframes coin-flip {
  0% {
      transform: rotateX(80deg) translateY(0) scale(0.8);
      opacity: 0.1;
  }
  100% {
      transform: rotateX(0deg) translateY(0) scale(1);
      opacity: 1;
  }
}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
 h1.logotype {
	font-size: 16rem;
    }

 .container.top {
	display: flex;
	flex-direction: column;
    }
 .container.top .container img.coin.large {
    width: auto;
    height: 100%;
 }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    h1.logotype {
	font-size: 20rem;
    }
    .container.top {
	display: flex;
	flex-direction: row;
    }
 .container.top .container img.coin.large {
    display: block;
    width: 100%;
    height: auto;
 }
 @keyframes coin-flip {
  0% {
      transform: rotateX(80deg) translateY(100%) scale(0.8);
      opacity: 0.1;
  }
  100% {
      transform: rotateX(0deg) translateY(0) scale(1);
      opacity: 1;
  }
}
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
 h1.logotype {
	font-size: 24rem;
    }
}
