@font-face {
  font-family: 'Disket Mono';
  src: url('../fonts/disket-mono-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Disket Mono';
  src: url('../fonts/disket-mono-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Cutive Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/cutivemono/v21/m8JWjfRfY7WVjVi2E-K9H6RMTm663A.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cutive Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/cutivemono/v21/m8JWjfRfY7WVjVi2E-K9H6RCTm4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  overflow: hidden;
  font-family: 'Cutive Mono', monospace;
  background-color: #000;
}

#ribbon {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #000;
  overflow: hidden;
}

canvas {
  display: block;
}

.page-content {
  width: 100%;
  height: 100%;
  display: flex;
  place-content: center;
  place-items: center;
}

#text {
  font-weight: 100;
  font-size: 48px;
  color: #fafafa;
  position: absolute;
}

#text .dud {
  color: #757575;
}

#display {
  width: 70vw;
  height: 70vh;
  margin: auto;
  border-radius: 12px;
  padding: 2em;
  background-color: RGBA(255, 255, 255, 0.015);
  backdrop-filter: blur(5px);
  box-shadow: 0px 0px 15px 0px RGBA(255, 255, 255, 0.15);
  transition: transform 600ms;
  transform: translate3d(0, 130vh, 0);
}

#display.up {
  transform: translate3d(0, 0, 0);
}

/* ESQUINAS
#display::before {
  content: '';
  width: 200px;
  height: 200px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: -10px -10px 10px 0px RGBA(255, 255, 255, 0.1);
  z-index: 5;
  display: none;
}

#display::after {
  content: '';
  width: 200px;
  height: 200px;
  position: absolute;
  bottom: 0;
  right: 0;
  box-shadow: 10px 10px 10px 0px RGBA(255, 255, 255, 0.1);
  z-index: 5;
  display: none;
}
*/
#display .menu, #display .subtext {
  position: relative;
  height: calc((100% - 128px) / 2);
  width: 100%;
}

#display .header {
  top: 0;
  display: flex;
  place-items: center;
  place-content: end;
  text-align: right;
}

#display .menu{
  gap: 1em;
  display: flex;
  place-content: center;
  place-items: center;
  flex-wrap: wrap;
}

/*
#display .header .logo {
  transition: transform 0.6s ease;
  opacity: 0.5;
}

#display .header .logo:hover {
  transform: rotateY(360deg);
  opacity: 0.5;
}
*/

#display .header .logo {
  position: relative;
  height: 128px;
  width: 128px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

#display .header .logo:hover {
  transform: rotateY(180deg);
  & .front {
    opacity: 0;
  }
  & .back {
    opacity: 0.5;
  }
}

#display .header .logo .front, #display .header .logo .back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#display .header .logo .front {
  opacity: 0.5;
}

#display .header .logo .back {
  opacity: 0;
  transform: rotateY(180deg);
}

#display .header .logo img {
  height: 100%;
}

#display .menu .button {
  backdrop-filter: blur(3px);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
  height: 8vw;
  min-height: 140px;
  position: relative;
  width: calc(100% / 7);
}

#display .menu .button:hover{
  transition: transform 250ms;
  transform: scale(1.05);
  background-color: rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

#display .menu .button:last-of-type {
  margin-right: 5px;
}

#display .menu .button .button-content {
  display: flex;
  flex-direction: column;
  height: calc(100% - 20px);
  justify-content: space-evenly;
  padding: 10px;
}

#display .menu .button .button-content i,
#display .menu .button .button-content span {
  color: whitesmoke;
  text-align: center;
}

#display .menu .button .button-content .icon {
  font-size: 3.5em;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
  color: #ffffff6e;
  transition: transform 0.6s ease;
}

#display .menu .button:hover .button-content .icon{
  transform: rotateY(360deg);
}

.sep {
  border: 0;
  width: 3em;
  height: 1px;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.4);
}

#display .subtext {
  bottom: 0;
  color: #fff;
  opacity: 0;
}

#display .subtext:after {
  z-index: 0;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
#display .subtext > div {
  z-index: 2;
  position: relative;
}
#display .subtext .subtext__container {
  padding-left: 15px;
}
#display .subtext .subtext__title {
  font-family: "Cutive Mono", monospace;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
#display .subtext .subtext__text {
  font-family: "Cutive Mono", monospace;
  font-size: 1em;
  white-space: pre-line;
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  #text {
    font-size: 32px;
  }

  #display {
    height: 75vh;
    padding: 1em;
  }

  #display .menu, #display .subtext {
    height: calc((100% - 82px) / 2);
  }

  #display .header .logo {
    width: 82px;
    height: 82px;
  }

  #display .menu {
    margin-top: 1em;
    margin-bottom: 1em;
  }

  #display .menu .button {
    min-height: 100px;
  }

  #display .menu .button .button-content .icon{
    font-size: 2em;
  }

  #display .menu .button {
    width: 95%;
  }

  #display .menu {
    gap: 10px;
  }

  #display .menu .button:nth-child(2),
  #display .menu .button:nth-child(3) {
    width: 46%;
  }
}