/* FONTS */

@font-face {
  font-family: "blackletterhplhs";
  src: url("../fonts/blach___-webfont.woff2") format("woff2"),
    url("../fonts/blach___-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "tfu_tfuregular";
  src: url("../fonts/tfutfu__-webfont.woff2") format("woff2"),
    url("../fonts/tfutfu__-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "vhs_gothicregular";
  src: url("../fonts/vhs-gothic-webfont.woff2") format("woff2"),
    url("../fonts/vhs-gothic-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "black_forestregular";
  src: url("../fonts/black_forest-webfont.woff2") format("woff2"),
    url("../fonts/black_forest-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "momstypewriterregular";
  src: url("../fonts/momt___-webfont.woff2") format("woff2"),
    url("../fonts/momt___-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

html {
  background-image: url(../images/SceneZoom-min.gif);
  background-size: 100%;
}

body {
  width: 50%;
  margin: 0 auto;
}

#navigation {
  position: absolute;
  z-index: 0;
  font-family: "vhs_gothicregular";
  font-size: 1rem;
  color: rgb(205, 205, 205);
  line-height: 36px;
  list-style: none;
  background-color: rgba(0, 0, 0, 0.982);
  width: 215px;
  left: 50px;
  top: 450px;
  margin: 0 0 10px 0;
  border: 5px solid rgba(83, 6, 6, 0.982);
  box-sizing: border-box;
}

.nav {
  list-style: none;
}

a {
  color: rgb(205, 205, 205);
  text-decoration: none;
}

.underline-link {
  position: relative;
  color: rgb(205, 205, 205);
  text-decoration: none;
}

.underline-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease, left 0.3s ease;
}

.underline-link:hover::after {
  width: 100%;
  left: 0;
}

h1 {
  font-family: "blackletterhplhs";
  text-align: center;
  text-shadow: rgba(197, 197, 197, 0.447) 2px 3px;
  background-color: rgba(115, 8, 8, 0);
  color: rgba(255, 255, 255, 0.141);
  background-image: url(../images/scratches2.png);
  background-size: 79%;
  font-size: 5rem;
  margin-top: 5px;
  padding: 5px;
  margin-bottom: 0;
}

h2 {
  text-align: center;
  font-family: "tfu_tfuregular";
  text-decoration: dashed;
  color: rgb(0, 0, 0);
  text-shadow: rgba(152, 14, 14, 0.447) 4px 5px;
  font-size: 2.8rem;
  margin: 0px;
  margin-bottom: -5px;
  animation: vertical-shaking 2.5s infinite alternate-reverse;
}

h3 {
  text-decoration: underline;
  margin: 0%;
  font-size: 2em;
  padding-top: 10px;
  padding-left: 30px;
}

#contentDiv {
  color: white;
  margin: 10px;
  padding: 10px;
  text-align: center;
  font-family: "momstypewriterregular";
  line-height: 30px;
  height: 550px;
  overflow-y: auto;
}

.myButtons {
  margin-left: 10px;
  background-color: black;
  color: white;
  font-family: "momstypewriterregular";
}

#hsText {
  position: absolute;
  right: 0px;
  bottom: 30px;
  pointer-events: none;
  animation: shakeDiagonal 0.2s infinite;
}

#shadow {
  position: absolute;
  right: 0px;
  bottom: 0px;
  pointer-events: none;
}

#jello {
  position: absolute;
  left: 0px;
  z-index: 1;
  pointer-events: none;
}

.main {
  border: 20px solid rgb(67, 9, 9);
  background-color: black;
  position: relative;
  top: 15px;
  height: 90%;
  box-shadow: rgba(95, 14, 14, 0.54) 0px 5px 10px 10px;
}

@keyframes vertical-shaking {
  0% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(5px);
  }
  50% {
    transform: translateY(-5px);
  }
  75% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes shakeDiagonal {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-4px, -4px);
  }
  40% {
    transform: translate(4px, 4px);
  }
  60% {
    transform: translate(-4px, 4px);
  }
  80% {
    transform: translate(4px, -4px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* GENERIC SCALING / CONTAINER FOR BETTER MOBILE */

.contContainer {
  all: unset; /* Remove any default styles */
  display: contents; /* Makes it disappear in layout flow */
}

@media (max-width: 768px) {
  body {
    transform: scale(0.95);
    transform-origin: top center;
  }

  /* Optional tweaks */

  h2 {
    display: none;
  }

  html {
    background-size: 300%;
  }

  #jello,
  #shadow,
  #hsText {
    display: none;
  }

  #navigation,
  .center {
    transform: none;
  }

  #navigation {
    position: absolute;
    left: 0px;
    width: 130px;
  }

  main,
  section,
  article {
    padding: 1rem;
  }

  img,
  video {
    max-width: 100%;
    height: auto;
  }
}

.contContainer {
  max-width: 100%;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}
