* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
@font-face {
  font-family: 'Early GameBoy';
  src: url('https://0iichi.neocities.org/fonts/Early%20GameBoy.ttf') format('truetype');
}
/* BODY STUFF */
html, body {
  margin: 0;
  padding: 0;
  background-color: #ffe656;

  background-image: url('https://0iichi.neocities.org/sidebarassets/gardennydone.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;

  font-family: 'Early GameBoy', monospace;
  color: #333;

  cursor: url('https://0iichi.neocities.org/shoppysiteassets/cursor.png'), auto;

  overflow-x: hidden;
  max-width: 100vw;
}
html {
  overflow-y: auto;
}

body {
  overflow-y: visible;
}
a:hover {
  cursor: url('https://0iichi.neocities.org/shoppysiteassets/cursorbeep.png'), pointer;
}

.sidebar {
  position: fixed;
  top: 0;
  pointer-events: none;
  z-index: 100;
}
.sidebar img {
  height: 100vh;
  width: auto;
  display: block;
}
#sidebarleft  { left: 0; }
#sidebarright { right: 0; }

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}


#sitewrap {
  position: relative;
  min-height: 100%;
  z-index: 1; 
}

#page {
  max-width: 900px;
  margin: 0 auto; 
  padding: 0;
}

/*MAIN SHOP SCENE*/
#shoppyaya {
  position: relative;
  width: 100%;
  line-height: 0;

}

#shoppyaya > img.scenebg {
  width: 100%;
  display: block;
}

#shoppyaya a,
#shoppyaya img.sceneel {
  position: absolute;
  display: block;
}

/* hover bounce effect */
#shoppyaya a:not(#hatch):not(#poster):hover img {
  transform: translateY(-4px) rotate(-0.4deg);
  filter: drop-shadow(0 5px 6px rgba(0,0,0,0.25));
}
#shoppyaya a img {
  transition: transform 0.15s ease; 
  width: 100%;
  display: block;
}
#musicplayer {
  position: absolute;
  top: 1%;
  left: -70%;
  width: 408px;
  background: #c0c0c0;
  padding: 4px;
  box-shadow:
    -1px -1px 0 1px #c0c0c0,
    0 0 0 2px #808080,
    -1px -1px 0 3px #ffffff,
    0 0 0 4px #0a0a0a;
}
#musicplayer iframe {
  display: block;
  width: 400px;
  height: 450px;
  border: none;
}

#updatesphone {
  position: absolute;
  top: 165%;
  left: -70%;
  width: 390px;
}
.updatestamp {
  width: 200px !important;
  height: auto;
  position: absolute;
  left: 10px;
  top: -70px;
  right: -15px;
  z-index: 20;
}

#updatesphone img {
  width: 100%;
  display: block;
  image-rendering: pixelated;
}

#updatesscreen {
  position: absolute;
  top: 28%;
  left: 15.5%;
  width: 68.5%;
  height: 48%;
  background: #9bbc0f;
  overflow-y: auto;
  padding: 4px 6px;
  box-sizing: border-box;
  font-family: 'Early GameBoy', monospace;
  font-size: 12px;
  color: #0f380f;
  line-height: 1.2;
  scrollbar-width: none;
}

#updatesscreen::-webkit-scrollbar {
  display: none;
}

.updateentry {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
  padding-bottom: 4px;
  border-bottom: 1px solid #8bac0f;
  box-shadow: 0 1px 0 #c4d896;
  box-shadow: 0 1px 0 #467800;
}
  
.updatedate {
  font-weight: bold;
  color: #306230;
}
.updatetext {
    font-size: 15px;
    font-family: 'VT323';
}

#basketwindow {
  position: absolute;
  top: 1%;
  left: 360%;
  width: 360px;
  background: #fffbe8;
  border: none;
  box-shadow:
    -1px -1px 0 1px #c0c0c0,
    0 0 0 2px #808080,
    -1px -1px 0 3px #ffffff,
    0 0 0 4px #0a0a0a;
  font-family: 'VT323', monospace;
  z-index: 50;
  padding: 0;
}

.saletag {
  position: absolute;
  top: -12px;
  right: -18px;
  width: 120px;
  z-index: 60;
  transform: rotate(12deg);
  image-rendering: pixelated;
}

#basketheader {
  background: linear-gradient(to right, #000080 0%, #1084d0 50%, #000080 100%);
  color: #ffffff;
  text-shadow: 1px 1px 0 #000000;
  font-weight: bold;
  text-align: center;
  font-size: 20px;
  padding: 6px 0;
  border-bottom: 2px solid #000000;
}

#basketitems {
  padding: 2px;
}

.basketitem {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #999;
}

.basketitem img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 6px;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.basketitemtext {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  flex: 1;
  min-width: 0;
}

.basketitemtoprow {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.basketitemname {
  font-weight: bold;
  color: #1a1a1a;
}

.basketitemname::before {
  content: "‣ ";
}

.basketitemprice {
  font-weight: bold;
  color: #1a1a1a;
  white-space: nowrap;
  flex-shrink: 0;
}

.basketitemdesc {
  color: #555;
}

#favalbumwindow {
  position: absolute;
  top: 2%;
  left: 76%;
  width: 23%;
  background: #fff1d4;
  padding: 4px;
  box-shadow:
    -1px -1px 0 1px #c0c0c0,
    0 0 0 2px #808080,
    -1px -1px 0 3px #ffffff,
    0 0 0 4px #0a0a0a;
  z-index: 50;
  font-family: 'VT323', monospace;
}

#favalbumheader {
  background: linear-gradient(to right, #000080 0%, #1084d0 50%, #000080 100%);
  color: #ffffff;
  text-shadow: 1px 1px 0 #000000;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  padding: 10px 0;
  margin-bottom: 4px;
}

#favalbumart {
  width: 100%;
  display: block;
  border: 2px solid #3b3b3b;
}

#favalbumlabel {
  font-size: 15px;
  color: #1a1a1a;
  text-align: center;
  padding: 2px 1px 1px;
  line-height: 0.9;
}
#baskettotal {
  text-align: right;
  padding: 6px 10px;
  font-size: 16px;
  border-top: 2px dashed #3b3b3b;
  color: #1a1a1a;
}
#baskettotal span {
  font-weight: bold;
}

#checkoutbtn {
  display: block;
  margin: 10px;
  background: #c0c0c0;
  padding: 6px;
  text-align: center;
  box-shadow:
    -1px -1px 0 1px #c0c0c0,
    0 0 0 2px #808080,
    -1px -1px 0 3px #ffffff,
    0 0 0 4px #0a0a0a;
}

#checkoutbtn:active {
  box-shadow:
    -1px -1px 0 1px #808080,
    0 0 0 2px #c0c0c0,
    -1px -1px 0 3px #0a0a0a,
    0 0 0 4px #ffffff;
}

#checkoutbtn img {
  max-width: 90%;
  margin: 0 auto;
  display: block;
}

#mtspwindow {
  position: absolute;
  top: 107%;
  left: 385%;
  width: 280px;
  z-index: 50;
}
#mtspwindow img {
  width: 100%;
  display: block;
}

#appletoastbutton, #magistopbutton, #killybutton, #cosmobutton, #bye2button, #sndadvicebutton, #relevantbutton, #kevobutton {
  position: absolute;
}
#appletoastbutton, #magistopbutton, #killybutton, #cosmobutton, #bye2button, #sndadvicebutton, #relevantbutton, #kevobutton img {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
}

#appletoastbutton { top: 107%; left: 14%; }
#magistopbutton { top: 110%; left: 45%; }
#killybutton { top: 110%; left: 60%; }
#cosmobutton { top: 110%; left: 75%; }
#bye2button { top: 124%; left: 45%; }
#sndadvicebutton { top: 122%; left: 14%; }
#relevantbutton { top: 124%; left: 60%; }
#kevobutton { top: 124%; left: 75%; }

#textbox {
  top: 0.3%;
  left: 1%;
  width: 75%;
  position: absolute;
  display: block;
}
#textbox > img {
  width: 100%;
  display: block;
}
#textboxinner {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  padding: 0 12%;  
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #333;
  line-height: 1;
}

#textboxinner .welcom {
  width: 80%;
  display: block;
  margin: 20px auto 0.5px;
}
/* TOP SHELF*/
#cds {
  top: 30.5%;
  left: 1%;
  width: 15%;
}
#leek {
  top: 26.4%;
  left: 7.9%;
  width: 14%;
}
#pocky {
  top: 30.6%;
  left: 22%;
  width: 8%;
}
#cereal {
  top: 27.3%;
  left: 31%;
  width: 16.5%;
}
#sodeerrr {
  top: 28.6%;
  left: 50%;
  width: 7.5%;
}

/*BOTTOM SHELF */
#noodles {
  top: 38.6%;
  left: 0.5%;
  width: 11%;
}
#headfone {
  top: 38%;
  left: 13%;
  width: 16%;
}
#thatfuckingbirdthatihate { 
  top: 39.7%;
  left: 32%;
  width: 12.5%;
}
#popcorn {
  top: 37.3%;
  left: 46%;
  width: 18%;
}

/*BOTTOM HALF*/
#shoppykeepchan {
  top: 24.5%;
  left: 58%;
  width: 42%;
}
#guestbook {
  top: 58.7%;
  left: 62%;
  width: 32%;
}
#nyus {
  top: 52%;
  left: 4%;
  width: 42%;
}
#hatch {
  top: 63%;
  left: 45%;
  width: 40%;
}
#dontpress {
  top: 47%;
  left: 90%;
  width: 9%;
}
#quiznyu {
  top: 83%;
  left: 67%;
  width: 32%;
}

#rescourcebox {
  top: 82.1%;
  left: 0.4%;
  width: 60%;
  height: 15%;
  z-index: 10;
  display: block;
}

#idbadge {
  top: 42%;
  left: 78%;
  width: 6%;
  height: 3%;
}
#poster {
  top: 4%;
  left: 74%;
  width: 25%;
}

/* TOOLTIP */
.tooltip {
  display: none;
  position: absolute;
  left: 110%;
  top: 0%;
  width: 160px;
  background: #ffffff;
  border: 3px solid #3b3b3b;
  box-shadow: 3px 3px 0 #3b3b3b;
  padding: 8px 10px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #1a1a1a;
  z-index: 99;
  pointer-events: none; 
  line-height: 1.3;
}
.tooltip .itemname {
  font-size: 20px;
  font-weight: bold;
  color: #1a1a1a;
  display: block;
  border-bottom: 2px solid #3b3b3b;
  margin-bottom: 4px;
  padding-bottom: 3px;
}
.tooltip .itemdesc {
  font-size: 15px;
  color: #555;
  display: block;
}

#shoppyaya a:hover .tooltip {
  display: block;
}
#rescourcebox:hover .tooltip {
  display: block;
}

#badgeoverlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  justify-content: center;
  align-items: center;
}
#badgeoverlay.open {
  display: flex;
}
#badgeoverlay img {
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated; 
  transform: rotate(-3deg); 
  transition: transform 0.2s ease;
}
#badgeoverlay img:hover {
  transform: rotate(-4deg) scale(1.05); 
}
#badgeclose {
  position: absolute;
  top: 20px; right: 28px;
  font-family: 'VT323', monospace;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}

@keyframes rainbow {
  0%   { color: #ff0000; }
  16%  { color: #ff7d13; }
  33%  { color: #c9b500; }
  50%  { color: #00a838; }
  66%  { color: #00aeff; }
  83%  { color: #9437ff; }
  100% { color: #ff0000; }
}
.rainbowtext {
  animation: rainbow 2s linear infinite;
}

#nightsign {
  position: absolute;
  top: 17%;
  left: 76%;
  width: 23%;
}
#nightsign img {
  width: 100%;
  display: block;
  transition: transform 0.15s ease;
}
#nightsign:hover img {
  transform: translateY(-4px) rotate(-0.4deg);
  filter: drop-shadow(0 5px 6px rgba(0,0,0,0.25));
}
#nightsign p {
  font-family: 'VT323', monospace;
  font-size: 13px;
  animation: rainbow 2s linear infinite;
  margin-top: 4px;
  line-height: 1.2;
}
#mobilefallback {
  display: none;
}

#mobilefallback {
  display: none;
}

@media (max-width: 700px) {

  body {
    background-image: url('https://0iichi.neocities.org/background/aff220b278fc008b4da1fed94a483c0d.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: transparent;
    min-height: 100vh;
  }

  #shoppyaya,
  .sidebar {
    display: none;
  }

  #mobilefallback {
    display: block;
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
  }

  #mobilefallback h1 {
    font-family: 'VT323', monospace;
    font-size: 26px;
    margin-bottom: 14px;
    color: #333;
  }

  #mobilephoneframe {
    width: 100%;
    display: block;
    image-rendering: pixelated;
  }

  #mobilephonescreen {
    position: absolute;
    top: 38%;
    left: 15.5%;
    width: 68.5%;
    height: 41%;

    background: #9bbc0f;
    overflow-y: auto;

    padding: 6px 8px;
    box-sizing: border-box;

    font-family: 'Early GameBoy', monospace;
    color: #0f380f;
    font-size: 10px;
    line-height: 1.3;
    text-align: left;

    scrollbar-width: none;
  }

  #mobilephonescreen::-webkit-scrollbar {
    display: none;
  }

  #mobilephonescreen p {
    margin-bottom: 8px;
  }

  #mobilelinks {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
#mobilelinks a {
  display: block;
  color: #0f380f;
  text-decoration: none;
  font-size: 10px;
  margin-bottom: 8px;
  display: block;
  padding-bottom: 4px;
  margin-bottom: 4px;
  border-bottom: 1px solid #7b9e0f;
}
}