* {
  box-sizing: border-box;
  -webkit-font-smoothing: none;
  text-rendering: optimizeSpeed;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  background: url(https://64.media.tumblr.com/be0c8ef0d0978b06c14222e55f779555/tumblr_inline_mvegyn27OZ1rfdbtm.jpg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  image-rendering: pixelated;
  font-family: "DOS", "Courier New", Courier, monospace;
  color: black;
}

main {
  max-width: 960px;
  margin: 60px auto 0 auto;
  font-family: "DOS", "Courier New", Courier, monospace;
  image-rendering: pixelated;

  border-radius: 12px;
}

p,
li,
.navigation-item,
details,
summary,
#music-logo,
#playtime {
  color: black;
  text-shadow: none;
}

details {
  cursor: pointer;
}

header {
  background: url("https://64.media.tumblr.com/7e316cddc45146ed04af5263c3efeccb/tumblr_inline_n25e85M0Jj1qhwjx8.png");
  background-size: cover;
  background-repeat: repeat;
  display: flex;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);

  overflow: hidden;

  position: relative;
  z-index: 10;
  image-rendering: initial;

  width: 50%;
  margin-left: 25%;
  min-height: 150px;

  box-shadow: -8px 0 0 0 #e5e5f7, 8px 0 0 0 #e5e5f7, 0 -8px 0 0 #e5e5f7,
    0 8px 0 0 #e5e5f7, -6px -6px 0 0 #e5e5f7, 6px -6px 0 0 #e5e5f7,
    -6px 6px 0 0 #e5e5f7, 6px 6px 0 0 #e5e5f7, -3px -7px 0 0 #e5e5f7,
    -7px -3px 0 0 #e5e5f7, 3px -7px 0 0 #e5e5f7, 7px -3px 0 0 #e5e5f7,
    -3px 7px 0 0 #e5e5f7, -7px 3px 0 0 #e5e5f7, 3px 7px 0 0 #e5e5f7,
    7px 3px 0 0 #e5e5f7;
}

#header-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 4em;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
    2px 2px 0 #000, 0 0 4px #000;
  margin: 0;
  padding: 0;
  z-index: 10;
}

#content {
  margin-top: -30px;
  position: relative;
  z-index: 5;

  padding: 46px;
  padding-top: 50px;
  background-size: 20px 20px;
  background-image: repeating-linear-gradient(
    0deg,
    #dcd0ff,
    #dcd0ff 1px,
    #e5e5f7 1px,
    #e5e5f7
  );
  image-rendering: initial;

  border-left: 20px solid transparent;
  border-right: 20px solid transparent;

  border-image: none;

  box-shadow: -8px 0 0 0 #e5e5f7, 8px 0 0 0 #e5e5f7, 0 -8px 0 0 #e5e5f7,
    0 8px 0 0 #e5e5f7, -6px -6px 0 0 #e5e5f7, 6px -6px 0 0 #e5e5f7,
    -6px 6px 0 0 #e5e5f7, 6px 6px 0 0 #e5e5f7, -3px -7px 0 0 #e5e5f7,
    -7px -3px 0 0 #e5e5f7, 3px -7px 0 0 #e5e5f7, 7px -3px 0 0 #e5e5f7,
    -3px 7px 0 0 #e5e5f7, -7px 3px 0 0 #e5e5f7, 3px 7px 0 0 #e5e5f7,
    7px 3px 0 0 #e5e5f7;
}

#navigation {
  font-size: 2em;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-shadow: none;
  color: black;
}

.navigation-item {
  padding: 0.1em 0.4em;
  cursor: pointer;
  line-height: 0;
}

.navigation-item img {
  height: 40px;
  width: auto;
  vertical-align: middle;
  max-width: 100px;
  filter: grayscale(0.5);
  transition: filter 0.3s;
}

.navigation-item.active {
  padding: 0.1em 0.4em;
  background: #c1cbf5;
  color: white;
  box-shadow: -8px 0 0 0 #c1cbf5, 8px 0 0 0 #c1cbf5, 0 -8px 0 0 #c1cbf5,
    0 8px 0 0 #c1cbf5, -6px -6px 0 0 #c1cbf5, 6px -6px 0 0 #c1cbf5,
    -6px 6px 0 0 #c1cbf5, 6px 6px 0 0 #c1cbf5, -3px -7px 0 0 #c1cbf5,
    -7px -3px 0 0 #c1cbf5, 3px -7px 0 0 #c1cbf5, 7px -3px 0 0 #c1cbf5,
    -3px 7px 0 0 #c1cbf5, -7px 3px 0 0 #c1cbf5, 3px 7px 0 0 #c1cbf5,
    7px 3px 0 0 #c1cbf5;
}

.navigation-item.active img,
.navigation-item:hover img {
  filter: none;
}

.navigation-item:hover {
  filter: drop-shadow(rgba(70, 87, 175, 0.8) 0 0 4px);
}

.section {
  display: none;
  margin-top: 16px;
  animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

h2 {
  padding: 0.1em 0.4em;
  background: transparent;
  /*box-shadow:   
        -4px 0 0 0 #c1cbf5,
        4px 0 0 0 #c1cbf5,
        0 -4px 0 0 #c1cbf5,
        0 4px 0 0 #c1cbf5,
        
        -3px -3px 0 0 #c1cbf5,
        3px -3px 0 0 #c1cbf5,
        -3px 3px 0 0 #c1cbf5,
        3px 3px 0 0 #c1cbf5,
        
        -1px -3px 0 0 #c1cbf5,
        -3px -1px 0 0 #c1cbf5,
        
        1px -3px 0 0 #c1cbf5,
        3px -1px 0 0 #c1cbf5,
        
        -1px 3px 0 0 #c1cbf5,
        -3px 1px 0 0 #c1cbf5,
        
        1px 3px 0 0 #c1cbf5,
        3px 1px 0 0 #c1cbf5;*/
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: white;
  font-size: 1.5em;
  width: fit-content;
  margin: 8px 0;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000;
}

li {
  margin: 2px 0;
}

li:has(details) {
  list-style-type: none;
}

li > details {
  position: relative;
  left: -14px;
}

.answer {
  margin: 4px;
  padding: 8px 16px;
  border: 1px solid #ff8583;
  border-radius: 0.3em;
}

.answer > p:nth-child(1) {
  margin-top: 0;
}

.answer > p:nth-last-child(1) {
  margin-bottom: 0;
}

#annoyingdog-gif {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100px;
  height: auto;
  z-index: 1000;
  pointer-events: none;
  transform-origin: center;
  animation: moveLeft 60s linear infinite;
}

@keyframes moveLeftInverse {
  0% {
    right: 0;
    transform: scaleX(-1);
  }
  50% {
    right: 100%;
    transform: scaleX(-1);
  }
  50.01% {
    right: 100%;
    transform: scaleX(1);
  }
  100% {
    right: 0;
    transform: scaleX(1);
  }
}

#annoyingdog-gif.inverse-flip {
  animation: moveLeftInverse 60s linear infinite;
}

@keyframes moveLeft {
  0% {
    right: 0;
    transform: scaleX(1);
  }
  50% {
    right: 100%;
    transform: scaleX(1);
  }
  50.01% {
    right: 100%;
    transform: scaleX(-1);
  }
  100% {
    right: 0;
    transform: scaleX(-1);
  }
}

@media (max-width: 960px) {
  header {
    width: 100%;
    margin-left: 0;
    border-radius: 0;
  }

  #content {
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  main {
    margin: 20px 0 0 0;
    max-width: 100%;
    border-radius: 0;
  }

  .navigation-item img {
    height: 30px;
  }
}

.corner-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  width: 50px;
  height: 50px;
  background-image: url("../assets/home.png");
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.corner-button:hover {
  background-image: url("../assets/buttons/home.gif");
}
