@font-face {
  font-family: 'Euphoric Heavy Regular';
  src: url('../fonts/Euphoric\ Heavy\ Regular.otf');
}

:root {
  --lilac: #B4BAE1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Euphoric Heavy Regular';
  overflow-x: hidden;
  width: 100vw;
}

#tooltip {
  font-family: 'Orbitron';
  font-weight: 500;
  letter-spacing: 1px;
  position: absolute;
  padding: .5em;
  font-size: 16px;
  color: white;
  border-radius: 8px;
  background: var(--lilac);
  width: 200px;
  z-index: 6;
  pointer-events: none;
}

#tooltip::before {
  content: '';
  width: 99%;
  height: 12px;
  display: block;
  position: absolute;
  left: 2px;
  top: 1px;
  z-index: 3;
  border-radius: 8px;
  background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 8%, rgba(255,255,255,0) 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(8%,rgba(255,255,255,0.7)), color-stop(100%,rgba(255,255,255,0)));
  background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0.7) 8%,rgba(255,255,255,0) 100%);
  background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0.7) 8%,rgba(255,255,255,0) 100%);
  background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0.7) 8%,rgba(255,255,255,0) 100%);
  background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,0.7) 8%,rgba(255,255,255,0) 100%);
}

#tooltip.hide {
  display: none;
  opacity: 0;
  transition: opacity .3s ease .3s;
}


.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  grid-gap: 1px;
  background:  var(--lilac);
}

.box {
  background: white;
  padding: 4em;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 200px;
}

.box.end {
  background-color: var(--lilac);
  justify-content: flex-end;
  align-items: flex-end;
}

.box.end p {
  color: white;
  margin-right: 1em;
}


.box:hover img {
  filter: drop-shadow(0 0 1rem var(--lilac));
  transform: rotate(3deg);
}

.box.img .caption {
  display: none;
}

.box video {
  width: 100%;
}

.box.header {
  grid-row: 1 / 2;
  grid-column: 1 / 3;
  background:  var(--lilac);
  color: white;
  display: flex;
  flex-direction: column;
}

.header p {
  font-size: 22px;
  letter-spacing: 1px;
  animation-name: glow;
  animation-duration: 3s;
  animation-direction: alternate-reverse;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 2px white;
  }
  
  100% {
    text-shadow: 0 0 8px white;
  }
}

.header p.small {
  font-size: 13px;
  margin-top: .6em;
}

.box.text.definition,
.box.video {
  background: var(--lilac);
  padding: 1em 2em;
  display: flex;
  flex-direction: column;
}

.box.text.definition p,
.video-caption {
  color: white;
  line-height: 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  font-family: 'Orbitron';
}

.video-caption {
  line-height: 18px;
  margin-top: 2em;
  text-align: right;
}

.box.text.definition .source {
  margin-top: 1em;
  align-self: flex-end;
  text-align: right;
}

.box.text.definition a,
.video-caption a {
  color: white;
  text-shadow: 1px 1px black;
}

.video-caption a {
  font-size: 12px;
}

.box.text.char {
  grid-row: 5 / 6;
  grid-column: 3 / 5;
  padding-right: 3em;
  text-align: right;
}

.box.mpio {
  min-height: 100vh;
  grid-column: 3 / 5;
  grid-row: 1 / 3;
}

.box.fujifilmblue {
  grid-row: 6 / 8;
  grid-column: 1 / 3;
}

.box.img.sharp {
  grid-row: 12 / 13;
  grid-column: 3 / 5;
}

.box.img.walkmanmz {
  grid-row: 13 / 15;
  grid-column: 3 / 5;
}

.box.img.wide {
  grid-row: 13 / 14;
  grid-column: 1 / 3;
}

.box.img.fujifilmpurple {
  grid-row: 10 / 11;
  grid-column: 1 / 3;
}

.box.img.yepppurple {
  grid-column: 1 / 2;
  grid-row: 12 / 13;
}

.box.gif {
  display: flex;
  flex-direction: column;
}

.img-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.img-container.h-50 {
  height: 50%;
}

.img-container.h-60 {
   height: 60%;
}

.img-container.h-70 {
  height: 70%;
}

.img-container.h-90 {
  height: 90%;
}

.img-container.w-80 {
  width: 80%;
}

.img-container.w-90 {
  width: 90%;
}

img {
  max-height: 400px;
  max-width: 300px;
}

.img-container img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.box.fill img {
  max-height: 100%;
  max-width: 100%;
}

.bean-blue .one { display: block; }
.bean-blue .two { display: none; }
.bean-blue:hover .one { display: none; }
.bean-blue:hover .two { display: block; }

.mpio img {
  transform: rotate(32deg)!important;
}

.box.links {
  grid-column: 3 / 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--lilac);
  color: white;
}

.links p {
  font-size: 26px;
}

.box.links li {
  list-style-position: inside;
  margin: .5em 0;
  transition: transform .5s ease;
}

.box.links li:hover {
  transform: translateX(4px);
}

.box.links li::marker {
  text-shadow: 1px 1px black;
}

.box.links a {
  font-family: 'Orbitron';
  font-size: 15px;
  font-weight: 600;
  color: white;
  letter-spacing: 1px;
  text-decoration: none;
  text-shadow: 1px 1px 10px black;
}

@media screen and (min-width: 2000px) {
  .grid-container {
    width: 70%;
    margin: 0 auto;
    border-right: 1px solid var(--lilac);
  }
}