body {
  background: black;
  overflow-x: hidden;
  max-width: 100%;
}

.container > * {
  min-width: 0;
}

.cool-header {
  background-image: url("https://louse.neocities.org/BACKGROUNDS/IMG_5281.jpeg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

#louse {
  display: block;
  margin: auto;
  width: 50%;
  min-width: 200px;
  max-width: 300px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

.wrapper {
  width: 90%;
  max-width: 650px;
  position: relative;
  margin: auto;
  height: 50px;
  margin-bottom: -20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, rgba(0,0,0,0));
  -webkit-mask-repeat: no-repeat;
  mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, rgba(0,0,0,0));
  mask-repeat: no-repeat;
}

@keyframes scrollLeft {
  to {
    left: -200px;
  }
}

.item {
  width: 150px;
  height: 20px;
  background: transparent;
  position: absolute;
  left: max(calc(128px * 8), 100%);
  animation-name: scrollLeft;
  animation-duration: 20s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.item1 { animation-delay: calc(20s / 8 * (8 - 1) * -1); }
.item2 { animation-delay: calc(20s / 8 * (8 - 2) * -1); }
.item3 { animation-delay: calc(20s / 8 * (8 - 3) * -1); }
.item4 { animation-delay: calc(20s / 8 * (8 - 4) * -1); }
.item5 { animation-delay: calc(20s / 8 * (8 - 5) * -1); }
.item6 { animation-delay: calc(20s / 8 * (8 - 6) * -1); }
.item7 { animation-delay: calc(20s / 8 * (8 - 7) * -1); }
.item8 { animation-delay: calc(20s / 8 * (8 - 8) * -1); }

#microwave, #aaaa {
  width: 153px;
  height: auto;
}

.container-padding {
  margin: 15px;
}

.container {
  display: grid;
  height: 100vh;
  width: 100%;
  max-width: 650px;
  margin: auto;
  text-align: center;
  grid-template-columns: 1.5fr 1.5fr 1fr 1.5fr;
  grid-template-rows: auto 1fr 2fr 1fr;
  grid-template-areas: 
    "nav nav content1 content2"
    "nav nav main main"
    "content3 sidebar footer footer"
    "content4 content4 footer footer";
  grid-gap: 0.5em;
}

#nav {
  background-color: transparent;
  grid-area: nav;
}

#nav img {
  max-height: 100%;
  width: auto;
  display: block;
  margin: auto;
}

#teef {
  transform: translateY(-10px);
}

@media (min-width: 651px) {
  #teef {
    clip-path: inset(0px 100px 0px 0px);
  }
}

#main {
  grid-area: main;
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0px;
  row-gap: 4px;
  align-items: flex-start;
}

.blinkie-col {
  display: contents;
}

.stamp {
  object-fit: contain;
  max-width: 99px;
  height: auto;
  display: block;
}

.blinkie {
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

#sidebar {
  background: transparent;
  grid-area: sidebar;
  height: fit-content;
}

#aww-tadpoles {
  min-width: 170px;
  height: auto;
  position: relative;
  transform: translate(-15px, 10px);
  z-index: -4;
}

#content1, .eye-container {
  position: relative;
  background: transparent;
  min-width: 160px;
  grid-area: content1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: 0.5s ease;
  background-color: transparent;
}

.eye-container:hover .overlay {
  opacity: 1;
}

.about-me {
  color: red;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

#crab {
  border-radius: 50%;
}

#content2 {
  background: transparent;
  grid-area: content2;
  border-radius: 50%;
}

/*WIZARD STUFF*/
#content3 {
  position: relative;
  min-height: 180px;
  grid-area: content3;
  overflow: visible;
}

#wizard-group {
  position: relative;
  width: fit-content;
}

.guest {
  position: absolute;
  top: 20px;
  left: -10px;

  z-index: 2;
  color: #FF33FC;
  text-shadow: 2px 2px 2px black;
}

#wizard {
  position: relative;
  right: 15px;
  top: -40px;
  width: auto;
  min-width: 180px;
  max-width: calc(100% - 30px);
  height: auto;
  z-index: 1;
}

#wizard-sparkles {
  position: absolute;
  top: 50px;
  left: 0px;
  z-index: -1;
  
 /* position: relative;
  width: 150px;
  transform: translate(68px, -80px);
  z-index: -1;
  opacity: ;*/
}
/*WIZARD STUFF END*/

#content4 {
  background: red;
  grid-area: content4;
  min-height: 200px;
  padding: 0;
}

#peeps {
  display: block;
  margin: 0;
}

#footer {
  margin-top: 30px;
  display: flex;
  grid-area: footer;
  position: relative;
}

#footer .window {
  position: relative;
  z-index: 1;
}

#bloo-spider {
  display: block;
  position: absolute;
  top: -40px;     /* sits on the title bar */
  left: px;     /* tweak as needed */
  z-index: 10;
  width: 320px;
}

.title-bar-controls button {
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  color: transparent;
  min-height: 23px;
  min-width: 75px;
  padding: 0 12px;
  text-shadow: 0 0 #222;
  background: silver;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
}

.title-bar-controls button:not(:disabled):active {
  box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px grey;
  text-shadow: 1px 1px #222;
}

@media (not(hover)) {
  button:not(:disabled):hover {
    box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px grey;
  }
}

.title-bar-controls button:focus {
  outline: 1px dotted #000;
  outline-offset: -4px;
}

.title-bar-controls button::-moz-focus-inner {
  border: 0;
}

@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("https://files.catbox.moe/1za99g.woff") format("woff"),
       url("https://files.catbox.moe/8fwbkl.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

.window, .title-bar {
  font-family: "Comic Sans MS", Arial;
  -webkit-font-smoothing: none;
  font-size: 11px;
}

.window {
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #ffffff;
  background: blue;
  color: #000;
  padding: 3px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.title-bar {
  background: linear-gradient(90deg, purple, magenta, purple);
  padding: 3px 2px 3px 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-bar-text {
  font-weight: bold;
  color: white;
  letter-spacing: 0;
  margin-right: 24px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.title-bar-controls {
  display: flex;
}

.title-bar-controls button {
  padding: 0;
  display: block;
  min-width: 16px;
  min-height: 14px;
}

.title-bar-controls button[aria-label=Minimize] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/minimize.svg");
  background-position: bottom 3px left 4px;
  background-repeat: no-repeat;
}

.title-bar-controls button[aria-label=Maximize] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/4a2282dd9170cabf730fb5803d1153d86b2e94e3/icon/maximize.svg");
  background-position: top 2px left 3px;
  background-repeat: no-repeat;
}

.title-bar-controls button[aria-label=Close] {
  background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/close.svg");
  background-position: top 3px left 4px;
  background-repeat: no-repeat;
  margin-left: 2px;
}

.window-body {
  margin: 8px;
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.fieldset {
  border: 1px gray solid;
  width: 100%;
  height: 100%;
  box-shadow: white 1px 1px 0px inset, white 1px 1px 0px, white 0px 1px 0px, white 1px 0px 0px;
  margin: 0;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fieldset .speil {
  flex: 1;
}

#cd-player {
  margin: 0;
  flex-shrink: 0;
  min-width: 80px;
  max-width: 15vw;
  aspect-ratio: 1;
  position: relative;
}

#cd-player .CD {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  min-width: 80px;
  max-width: 15vw;
  height: auto;
  z-index: 1;
  animation: spin 4s linear infinite;
}

#cd-player .album-coverrr {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

#stamp, .images {
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

@media only screen and (max-width: 650px) {
  .container {
    gap: 10px;
    max-width: 400px;
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: auto auto auto 150px 150px 100px 100px 100px;
    grid-template-areas:
      "content1 content2"
      "nav nav"
      "nav nav"
      "main content3"
      "main sidebar"
      "footer footer"
      "footer footer"
      "content4 content4";
  }
  .images, #peepers-blinkie, #teef { 
    width: 100%;
  }
  
  #main { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    column-gap: 0px; 
    row-gap: 4px;
    width: 100%; 
    margin-top: -20px;
  }
  
  #main .stamp { 
    width: 100%;
    height: auto; 
    display: block; 
    margin-bottom: 0px; 
  }
  
  #sidebar {
    width: 100%;
    box-sizing: border-box; 
  }
  
  #aww-tadpoles {
    transform: translate(0px, -27px);
  }
  
  .wrapper { 
    overflow-x: hidden; 
  }
  
  .blinkie-col { 
    display: contents; 
  }
  
  .stamp { 
    display: block; 
    margin-bottom: 2px; 
  }
  
  #content3 { 
    margin-top: -50px; 
    transform: translateX(10px); 
  }
  
  #wizard { 
    transform: translate(-20px, -5px); 
    min-width: 200px; 
  }
  
  .guest {
    transform: translate(-20px, 100px);
  }
  
  #footer {
    position: relative;
    padding-top: 20px;
  }
  
  #bloo-spider {
    position: absolute;  
    top: -30px;          
    left: 0;
    width: 100%;     
    height: auto;     
    display: block;
    z-index: 10;
  }
}

@media only screen and (max-width: 350px) {
  .container { 
    width: 100%;
    gap: 15px; 
    grid-template-columns: 1fr 1fr; 
    grid-template-areas: 
      "content1 content2"
      "nav nav" "nav nav"
      "main content3"
      "main sidebar" 
      "footer footer"
      "footer footer" 
      "content4 content4";
  }
  
  #content2 {
    min-width: 100px; 
  }
  
  #main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0px; 
    row-gap: 0px;
  }
  
  #main .stamp {
    width: 100%; 
    height: auto; 
    display: block;
  }
  
  #sidebar { 
    display: flex;           /* enable flex positioning */
    flex-direction: column;  /* stack children */
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
  }
  
  #aww-tadpoles {
    position: relative;
    top: -32px; 
    left: -12px;
    transform: none;
    z-index: 1;
  }
  
  #content3 { 
    max-height: 100px;
    margin-left: -5px; 
  }
  
  #wizard { 
    transform: translate(-35px, 30px);
  }
}