html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  cursor: url("assets/Normal-Select-resize.png"), auto;
  font-size: calc(16px + 0.390625vw);
}

a {
  cursor:
    url("assets/link.png") 22 13,
    auto;
}

textarea,
input {
  cursor:
    url("assets/textselect.png") 24 24,
    auto;
}

button {
  cursor:
    url("assets/link.png") 22 13,
    auto;
}

.container {
  background-image: url("assets/sparklebackground.gif");
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  overflow-y: auto;
}

#moon {
  image-rendering: pixelated;
  top: 30px;
  left: 30px;
  position: absolute;
  height: 150px;
  z-index: 100;
  height: 15%;
}

/* Grid/grid element styles*/
#main-box {
  padding: 10px;
  margin: 50px;
  margin-top: 5vh;
  min-width: fit-content;
  height: clamp(88vh, 750px, 750px);
  width: 80vw;
  text-align: center;

  background: linear-gradient(
    90deg,
    #00ffff,
    #ff00ff,
    #ffe600,
    #ff00ff,
    #00ffff
  );
  background-size: 400% 400%;
  animation: gradientAnimation 4s linear infinite;

  display: grid;
  grid-template-columns: calc(152px + 2vw) 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr calc(
      152px + 2vw
    );
  grid-template-rows: 35px 35px 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 35px 35px;
  grid-gap: 8px;
  position: relative;
  font-family: "basiic";
}

#gradient-canvas {
  position: absolute;
}

.grid-item {
  background-color: #f8e6ff;
  font-family: "yoster";
}

.side-grid-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
  font-family: "yoster";
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.side-grid-container::-webkit-scrollbar {
  width: 0;
}

.no-overflow {
  overflow: hidden;
}

.side-content-text {
  text-align: left;
  font-family: "basiic";
  padding: 6px;
  font-size: 0.8em;
}

.small {
  font-size: 0.9em;
  padding: 0;
  margin: 3px;
}

.dashed-underline {
  border-bottom: 1px dashed #280053;
  width: fit-content;
}

/* ******************** */

/* Header styles */
.header {
  grid-column: 1 / 11;
  grid-row: 1 / 3;
  position: relative;
  width: 100%;
}

.header-grid-container {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  transform: translateY(-50%);
  font-size: 2.2em;
}

#header-home-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header {
  font-size: 1.5em;
  display: flex;
  justify-content: center;
  text-align: center;
}

.nav-header {
  display: flex;
  justify-content: center;
  font-size: 1em;
}

.header-divider {
  display: flex;
  justify-content: center;
  align-self: center;
  width: 75%;
  image-rendering: pixelated;
  justify-content: center;
  filter: hue-rotate(320deg) brightness(0.5);
  padding: 10px;
}

/* ******************** */

/* Left side of grid */
.divider {
  width: 100%;
  padding: 3px 0;
  box-sizing: border-box;
}

.left-nav {
  grid-column: 1;
  grid-row: 3 / 8;
  position: relative;
  padding: 0;
}

.link-list {
  list-style-type: none;
  margin: 0;
  padding: 8px;
  font-family: "basiic";
}

.link-list-item {
  text-align: left;
}

.link-item {
  text-decoration: none;
  color: black;
  font-size: 0.9em;
}

.link-item:hover {
  text-decoration: underline;
}

.left-nav-rooms {
  grid-column: 1;
  grid-row: 8 / 13;
  position: relative;
  padding: 0;
}

.left-nav-guestbook {
  grid-column: 1;
  grid-row: 13 / 17;
  position: relative;
  padding: 0;
}

/* Snax */
#gummy-container {
  width: 100%;
  height: 100%;
  position: relative;
}

#gummy-container > img {
  pointer-events: none;
}

#gummy-dinos {
  position: absolute;
  width: 45%;
  top: 0;
  left: 0;
  image-rendering: pixelated;
}

#gummy-bears {
  position: absolute;
  width: 55%;
  top: 15%;
  left: 40%;
  image-rendering: pixelated;
}

#gummy-sharks {
  position: absolute;
  width: 40%;
  top: 50%;
  left: 45%;
  image-rendering: pixelated;
}

#gummy-worms {
  position: absolute;
  width: 30%;
  top: 60%;
  left: 0;
  image-rendering: pixelated;
}

/* Guestbook */
#guestbook-link-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

#guestbook-link {
  image-rendering: pixelated;
  width: 100%;
}

#guestbook-gif {
  height: 20px;
}

/* Audio player */
#audio-player-container {
  width: 100%;
  height: auto;
  position: relative;
  padding: 2px 0 8px 0;
  display: flex;
  flex-direction: column;
}

/* Firefox styling is weird */
@-moz-document url-prefix() {
  .styled-range {
    transform: translateY(-50%);
  }
}

.styled-range {
  display: flex;
  position: relative;
  width: 100%;
  padding: 10px 0;
}

input[type="range"] {
  -webkit-appearance: none;
  background: transparent;
  position: absolute;
  width: 100%;
  top: 10px;
  left: 0;
  margin: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
}

.track-range {
  pointer-events: none;
  z-index: 99;
  cursor:
    url("assets/link.png") 22 13,
    auto;
}

.thumb-range {
  z-index: 100;
  cursor:
    url("assets/link.png") 22 13,
    auto;
}

.track-range::-webkit-slider-runnable-track {
  background: white;
  border-radius: 6px;
  overflow: hidden;
}

.track-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: transparent;
  height: 1px;
  width: 1px;
  box-shadow: -600px 0 0 600px #280053;
}

.thumb-range::-webkit-slider-runnable-track {
  background: transparent;
}

.thumb-range::-webkit-slider-thumb {
  position: relative;
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  background-image: url("assets/4ptstarsmall.png");
  image-rendering: pixelated;
  background-size: contain;
  background-repeat: no-repeat;
  top: -7px;
}

/** FF*/
input[type="range"]::-moz-range-progress {
  background-color: #280053;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 2px;
}

.track-range::-moz-range-track {
  background: white;
  border-radius: 6px;
  overflow: hidden;
}

.track-range::-moz-range-thumb {
  background: transparent;
  border: none;
  height: 1px;
  width: 1px;
}

.thumb-range::-moz-range-track {
  background: transparent;
}

.thumb-range::-moz-range-thumb {
  position: relative;
  height: 16px;
  width: 16px;
  background-image: url("assets/4ptstarsmall.png");
  image-rendering: pixelated;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
  top: -7px;
  border: none;
}

#audio-controls {
  width: 100%;
  height: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.audio-controls-img {
  cursor:
    url("assets/link.png") 22 13,
    auto;
  image-rendering: pixelated;
  align-self: center;
  padding: 2px;
  height: 10px;
}

.audio-controls-img:hover {
  transform: scale(1.1);
}

/* #volume-container {
    width: fit-content;
    position: relative;
    margin-left: auto;
    display: flex;
}

#volume-container img {
    padding: 0 5px;
    margin-left: auto;
}

#volume-slider {
    width: 50%;
    position: relative;
    top: 0px;
    left: 0;
}

#volume-slider::-webkit-slider-runnable-track {
    height: 2px;
    width: auto;
    background-color: white;
}

#volume-slider::-webkit-slider-runnable-thumb {
    height: 10px;
    width: 10px;
    background-color: black;
} */
/* ******************** */

#link-gif-container {
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#link-gif {
  position: relative;
  image-rendering: pixelated;
}

#construction-gif {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#construction-gif img {
  height: 50px;
  position: relative;
  image-rendering: pixelated;
}

/* ******************** */

/*********** Main content ************/

.main-content-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
  font-family: "yoster";
  overflow-wrap: break-word;
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}

#main-content-frame {
  height: 100%;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.main-content {
  grid-column: 2 / 10;
  grid-row: 3 / 15;
  position: relative;
  padding: 0;
}

.main-content-text {
  text-align: left;
  font-family: "basiic";
  padding: 10px;
  font-size: 1.1em;
}

.main-content-container::-webkit-scrollbar {
  width: 0;
}

#globe-gif {
  image-rendering: pixelated;
  width: 100%;
  height: auto;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  display: flex;
}

#globe-gif img {
  height: 100%;
}

/*************************************/

/* Right side of grid */
.right-nav-top {
  grid-column: 10;
  grid-row: 3 / 5;
  position: relative;
  padding: 0;
}

.right-nav-mid {
  grid-column: 10;
  grid-row: 5 / 11;
  position: relative;
  padding: 0;
}

.right-nav-bottom {
  grid-column: 10;
  grid-row: 11 / 17;
  position: relative;
  padding: 0;
}

#updates-list {
  list-style-type: none;
  text-align: left;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

#updates-list::-webkit-scrollbar {
  width: 0;
}

.updates-list-item {
  margin: 8px 8px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed #280053;
  font-family: "basiic";
  font-size: 0.8em;
}

.bottom-corner-gif {
  image-rendering: pixelated;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Animation Toggle Switch */
.toggle {
  grid-row: 15/ 17;
  grid-column: 9 / 10;
  position: relative;
  padding: 0;
}

#toggle-animation-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  font-size: 0.8em;
}

/* The switch - the box around the slider */
#animation-toggle {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  top: 3%;
  margin: 5px;
}

/* Hide default HTML checkbox */
#animation-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
#animation-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #00ffff;
}

#animation-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  background-color: white;
}

input:checked + #animation-slider {
  background-color: #ff00ff;
}

/* Footer */
.footer {
  grid-column: 2 / 9;
  grid-row: 15/ 17;
  position: relative;
  padding: 0;
}

.sparkles {
  height: 50px;
  image-rendering: pixelated;
  filter: grayscale(100%);
  padding: 0 20px;
}

#star-container {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.star {
  position: absolute;
  display: block;
  height: 15px;
  z-index: 100;
  transition: opacity 0.5s ease-in-out;
  image-rendering: pixelated;
}

#footer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.8em;
}

.footer-gif {
  object-fit: contain;
  width: 10%;
  max-height: 60px;
  image-rendering: pixelated;
  padding: 0px;
}

/* fonts */
@font-face {
  font-family: "basiic";
  src: url("assets/basiic.ttf");
}

@font-face {
  font-family: "yoster";
  src: url("assets/yoster.ttf");
}

/* responsiveness */

#responsive-nav {
  font-family: "basiic";
  font-size: 0.7em;
  display: none;
}

#fun-stuff-dropdown {
  position: absolute;
  font-family: "basiic";
  display: none;
  background-color: #f8e6ff;
  border: 1px solid #ff00ff;
  border-top: none;
  z-index: 100;
  padding: 3px;
}

#funstuff-link {
  text-wrap: nowrap;
}

@media screen and (min-width: 880px) {
  #fun-stuff-dropdown {
    display: none;
  }
}

@media screen and (max-width: 880px) {
  .left-nav,
  .left-nav-rooms,
  .left-nav-guestbook,
  .bottom-left,
  .bottom-right,
  .right-nav-top,
  .right-nav-mid,
  .right-nav-bottom,
  #moon,
  #star {
    display: none;
  }

  .main-content {
    grid-row: 4 / 15;
  }

  .header {
    grid-row: 1 / 4;
  }

  #responsive-nav {
    display: block;
  }

  .main-content {
    grid-column: 1 / 11;
  }

  .footer {
    grid-column: 1 / 9;
  }

  .toggle {
    grid-column: 9 / 11;
  }

  #main-box {
    margin: 0;
    width: 95vw;
    height: 100vh;

    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  }

  .header-grid-container {
    font-size: 1.8em;
  }
}

@media screen and (max-width: 550px) {
  .header-grid-container {
    font-size: 1.4em;
  }
}

@keyframes starAnimationClockwise {
  0% {
    opacity: 0.5;
    transform: translateX(20px) translateY(-10vh) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(20px) translateY(500px) rotate(360deg);
  }
}

@keyframes starAnimationCounterClockwise {
  0% {
    opacity: 0.5;
    transform: translateX(20px) translateY(-10vh) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(20px) translateY(100vh) rotate(-360deg);
  }
}

.text-list {
  margin: 10px 0;
  margin-bottom: 25px;
}

.text-link {
  color: black;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* about me */
#contact-links-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#contact-links-container img {
  height: 50px;
  padding: 0 10px;
}

#me-container {
  display: flex;
  justify-content: center;
}

#me-container img {
  width: 400px;
}

/*404 page*/
#box-404-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#box-404 {
  width: 80dvw;
  max-width: 550px;
  padding: 25px;
  background: linear-gradient(
    90deg,
    #00ffff,
    #ff00ff,
    #ffe600,
    #ff00ff,
    #00ffff
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

#img-404 {
  width: 80dvw;
  max-width: 550px;
  align-self: center;
  z-index: 1;
}

#canvas-404 {
  position: absolute;
}

#go-home-container {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: "yoster";
}

#go-home-container a {
  text-decoration: none;
}

#go-home {
  color: #f8e6ff;
  text-align: center;
}

#site-warning1 {
  color: #f8e6ff;
  margin-top: 30px;
  text-align: center;
}

#site-warning2 {
  color: #f8e6ff;
  text-align: center;
}

#secret-retro-webring {
  display: none;
}

#my-button {
  image-rendering: pixelated;
  display: flex;
  justify-content: center;
}

#my-button img {
  height: 50px;
}
