html,
body {
  margin: 0;
  padding: 0;
  background-color: transparent;
  cursor: url('images/pixel-cursor.png'), auto;
}
.page-content {
  padding: 15px;
  box-sizing: border-box;
}
body.index-page
 {
  margin: 0;
  background-image: url("images/sozai/bgchck3.png");
  background-repeat: repeat;
  background-position: 0 0;
  animation: moveDiagonalUp 8s linear infinite;
}

@keyframes moveDiagonalUp {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -232px -222px;
  }
}
body, p, td {
  font-family: courier;
  font-size: 10pt;
  color: #ffffff !important;
  cursor: default;
}
a:link,
a:visited {
  text-decoration: none;
  font-weight: bold;
  color: #9ff8e9;
  cursor: default;
}

a:active {
  text-decoration: none;
  font-weight: bold;
  color: #3C808F;
  cursor: default;
}

a:hover {
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  cursor: default;
}
::selection {
  background: red;
  color: #FFFFFF;
}
img,
a,
button,
iframe,
.layout-wrap,
.title-png,
.top-png,
.ham-gif,
.balloon-gif {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
body,
p,
span,
div,
td,
h1,
h2,
h3,
h4,
a {
  user-select: none;
  -webkit-user-select: none;
}
::-moz-selection {
  background: red;
  color: #FFFFFF;
}
/* scrollbar width */
::-webkit-scrollbar {
  width: 15px;
}

/* background track */
::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  margin: 4px;
}

/* draggable scrollbar */
::-webkit-scrollbar-thumb {
  background: #58c6f1;
  border-radius: 1px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow:
    inset 0 0 4px rgba(255,255,255,0.5),
    0 0 4px rgba(255,182,213,0.4);
}

/* hover effect */
::-webkit-scrollbar-thumb:hover {
  background: #b7e61a;
}
header {
 width:100%;
 text-align:center;
 overflow:hidden;
}
img {
  height: auto;
}
.layout-bg {
  width: 993px;
  height: 724px;
  max-width: none;
  border: 0;
  position: relative;
  z-index: 0;
}
.title-png {
  position: absolute;
  z-index: 6;
  animation: floatChunky 4s steps(3) infinite;
}

@keyframes floatChunky {
  0%   { transform: translateY(0px); }
  25%  { transform: translateY(-4px); }
  50%  { transform: translateY(-8px); }
  75%  { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}
.ham-gif,
.balloon-gif {
  position: absolute;
  z-index: 5;
}
.top-png
{
  position: absolute;
  z-index: 21;
}
main {
  width:100%;
  text-align:center;
}
.layout-wrap {
  position: relative;
  width: 993px;
  height: 724px;
  margin: 0 auto;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
    user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}
.behind-art {
  position: absolute;
  left: 300px;
  top: 0px;
  width: 993px;
  height: 724px;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.main-container {
  position: relative;
  width: 993px;
  height: 724px;
  z-index: 1;
}
iframe[name="iframe01"],
iframe[name="iframe03"],
iframe[name="iframe04"] {
  background: transparent;
  position: absolute;
  z-index: 20;
}
.map-layer {
  position: absolute;
  z-index: 1;
}
h1 {
text-align: center;
padding: 3px;
border-style: solid;
border-color: #660000;
border-width: 0px;
border-radius: 5px;
background-color: #4cc090;
font-size: 11pt;
color: #ffffff;
font-weight: bold;
line-height: 15pt;
width: 95%;
}
h2 {
text-align: center;
padding: 3px;
border-style: solid;
border-color: #e5ebec;
border-width: 0px;
border-radius: 5px;
background-color: #ff9463;
font-size: 11pt;
color: #fff;
font-weight: bold;
line-height: 15pt;
width: 95%;
}
h3 {
text-align: center;
padding: 5px;
border-style: dotted;
border-color: #a79c9c;
border-width: 1px;
background-color: #fff;
font-size: 11pt;
color: #8f6565;
font-weight: bold;
line-height: 10pt;
width: 95%;
}
h4 {
text-align: center;
padding: 15px;
border-style: solid;
border-color: #fff;
border-radius: 12px;
border-width: 1px;
filter: drop-shadow(3px 3px 0 rgba(0,0,0,0.15));
background-color: rgba(255, 255, 255, 0.87);
font-size: 9pt;
color: #808d8a;
font-weight: bold;
line-height: 10pt;
width: 75%;
}
.highlight
	{
  color: #FFF;
  background-image: url("images/sozai/bgstr5.png");
  padding: 2px 4px;
  border: 0px solid #4d00ff;
  box-shadow: 2px 2px 0 #eccee5;
  font-weight: bold;
}
.highlight2
	{
  background: #ccc;
  color: #3C808F;
  padding: 4px 4px;
  border-color:#999;
  border-width:1px;
  border-radius: 7px;
  box-shadow: 2px 2px 0 #ff9eea;
  font-weight: normal;
}
.box1 {
 max-width:298px;
 width:90vw;
 background:#fff;
 border-style:solid;
 border-color:#ccc;
 border-width:1px;
 border-radius: 7px;
 overflow: visible;
 padding:5px;
 text-align:center;
 color:#999;
 font-family:courier;
 font-size:12px;
 z-index: 50;
}

.box1 a {
  position: relative;
  z-index: 51;
  pointer-events: auto;
  cursor: pointer;
}
.box2 {
 max-width:300px;
 width:90vw;
 background:#84edff;
 border-style:solid;
 border-color:#000;
 border-width:0px;
 border-radius: 7px;
 overflow: visible;
 padding:5px;
 text-align:center;
 color:#4897a5;
 font-family:courier;
 font-size:12px;
}
.masonry-grid {
  column-count: 3;
  column-gap: 10px;
  padding: 10px;
}
.masonry-grid .thumb {
  width: 100%;
  display: block;
  margin-bottom: 12px !important;
  break-inside: avoid;
}
.thumb {
  width: 150px;      /* pick your size */
  max-width: 100%;
  height: auto;
  display: block;
}

#siteLightbox {
  display: none;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2147483647 !important;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  padding: 15px;
}

#siteLightbox img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2147483647;
  filter: drop-shadow(0 0 10px rgba(255, 200, 255, 0.6));
}
#lightboxImg {
  pointer-events: none;
}
.lightbox-close {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
}
#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loadingBox {
  border: 2px solid black;
  background: white;
  padding: 12px 18px;
  box-shadow: 4px 4px 0 red;
  font-family: courier, Arial, sans-serif;
  font-size: 10px;
  color: black;
}
.email-form {
  font-family: courier, Arial, sans-serif;
  font-size: 12px;
  color: #000000;
}

.email-form input,
.email-form textarea {
  font-size: 12px;
  font-family: courier, Arial, sans-serif;
  color: #000000;
  background-color: #FFFFFF;
  border: 1px solid #000000;
  box-sizing: border-box;
}

.email-form input[type="text"],
.email-form input[type="email"],
.email-form textarea {
  width: 150px;
  padding: 2px;
}

.email-form input[name="name"],
.email-form input[name="email"] {
  background-color: #fff;
}

.email-form .pink-input {
  background-color: #fff;
}

.email-form textarea {
  resize: none;
}
.email-form input[type="submit"],
.email-form input[type="reset"] {
  background-color: #FFFFFF;
  padding: 1px 6px;
  cursor: pointer;
}

/* SITE LOG / UPDATE HISTORY */

.section-header {
  width: 95% !important;
  margin: 8px auto 0 !important;
  padding: 4px 6px !important;
  box-sizing: border-box !important;

  background: #63d5f7 !important;
  border: 1px solid #000000 !important;
  border-bottom: 0 !important;

  font-family: Courier, Arial, sans-serif !important;
  font-size: 10pt !important;
  font-weight: bold !important;
  color: #ffffff !important;
  text-align: left !important;
  text-shadow: 1px 1px 0 #000000 !important;
}

.content-box {
  width: 95% !important;
  margin: 0 auto 8px !important;
  padding: 6px !important;
  box-sizing: border-box !important;

  background: #ffffff !important;
  border: 1px solid #000000 !important;

  font-family: Courier, Arial, sans-serif !important;
  font-size: 8pt !important;
  color: #333333 !important;
}

.news-tabs {
  display: flex !important;
  gap: 3px !important;
  margin-bottom: 6px !important;
  padding: 4px !important;

  background: #b7e61a !important;
  border: 1px solid #000000 !important;
}

.tab {
  display: inline-block !important;
  padding: 1px 6px !important;

  border: 1px solid #000000 !important;
  color: #222222 !important;

  font-family: Verdana, Arial, sans-serif !important;
  font-size: 7pt !important;
  line-height: 12px !important;

  cursor: pointer !important;
  user-select: none !important;
}

/* tab colors */
.tab.all {
  background: #ffffff !important;
}

.tab.art {
  background: #b7e61a !important;
}

.tab.site {
  background: #63d5f7 !important;
}

.tab.fixes {
  background: #ffde59 !important;
}

/* selected tab */
.tab.active {
  font-weight: bold !important;
  border-color: #000000 !important;
  box-shadow: 2px 2px 0 #ff2b2b !important;
}

/* update list */
.news-list {
  max-height: 100px !important;
  overflow-y: auto !important;
  padding-right: 3px !important;
}

/* each update row */
.news-row {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;

  min-height: 14px !important;
  padding: 2px 0 !important;

  border-bottom: 1px dotted #cccccc !important;
  line-height: 11px !important;
}

/* colored category tags */
.category-tag {
  display: inline-block !important;
  min-width: 42px !important;
  padding: 1px 3px !important;
  box-sizing: border-box !important;

  color: #ffffff !important;
  font-family: Verdana, Arial, sans-serif !important;
  font-size: 7pt !important;
  line-height: 10px !important;
  text-align: center !important;
  font-weight: bold !important;

  border: 1px solid #000000 !important;
  text-shadow: 1px 1px 0 #000000 !important;
}

/* tag colors */
.art-tag {
  background: #b7e61a !important;
}

.site-tag {
  background: #2fc7f0 !important;
}

.fixes-tag {
  background: #ff8c1a !important;
}

.new-tag {
  background: #ff2b2b !important;
}

/* date */
.news-row .date {
  color: #777777 !important;
  font-size: 7pt !important;
  white-space: nowrap !important;
}

/* links inside update box */
.news-row a {
  color: #ff2b2b !important;
  font-weight: bold !important;
  text-decoration: none !important;
}

.news-row a:hover {
  background: #ffde59 !important;
  color: #000000 !important;
}

.news-row.hidden {
  display: none !important;
}


/* pixel speech bubble */

.pixel-speech {
  display: block;
  width: 90%;
  margin: 10px auto;
  padding: 8px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #1f1c1c;
  border-radius: 10px;
  box-shadow: 3px 3px 0 #8f8c8c;
  font-family: courier, Arial, sans-serif;
  font-size: 10pt;
  color: #999;
  line-height: 13px;

  position: relative;
  z-index: 5;
}

.pixel-speech:after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -6px;

  width: 9px;
  height: 10px;

  background: #ffffff;
  border-right: 1px solid #3f3838;
  border-bottom: 1px solid #0f0f0f;

  transform: rotate(45deg);
}


/* stickers */

.pixel-sticker {
  display: inline-block !important;

  background: #ffde59 !important;
  border: 1px solid #000000 !important;
  box-shadow: 1px 1px 0 #000000 !important;

  padding: 1px 5px !important;
  margin: 2px 1px !important;

  font-family: Verdana, Arial, sans-serif !important;
  font-size: 7pt !important;
  color: #000000 !important;
  font-weight: bold !important;
  line-height: 11px !important;

  text-transform: lowercase !important;
  vertical-align: middle !important;
}

/* sticker color options */
.pixel-sticker.yellow {
  background: #ffde59 !important;
}

.pixel-sticker.green {
  background: #b7e61a !important;
}

.pixel-sticker.blue {
  background: #63d5f7 !important;
}

.pixel-sticker.red {
  background: #ff5b5b !important;
}

.pixel-sticker.white {
  background: #ffffff !important;
}



#musicAsk {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 170px;
  background: rgba(99, 155, 255, 0.60);
  border: 2px solid #4b342f;
  box-shadow:
    3px 3px 0 #c77b8b,
    6px 6px 0 #7da6b8;
  padding: 10px;
  font-family: courier, sans-serif;
  font-size: 12px;
  color: #4b342f;
  z-index: 9999;
  image-rendering: pixelated;
}

#musicAsk::before {
  content: "excuse me";
  position: absolute;
  top: -12px;
  left: 10px;
  background: #cccccc;
  color: #4b342f;
  border: 2px solid #4b342f;
  border-radius: 8px;
  padding: 1px 6px;
  box-shadow: 2px 2px 0 #7da6b8;
}
#musicAsk p {
  color: #000000 !important;
  font-family: courier, sans-serif;
  font-size: 12px;
  margin: 4px 0 8px;
}

#musicAsk button {
  background: #ccc;
  border: 2px solid #4b342f;
  box-shadow: 2px 2px 0 #4b342f;
  padding: 3px 8px;
  font-family: courier, sans-serif;
  font-size: 11px;
  color: #4b342f;
  cursor: pointer;
}

#musicAsk button:hover {
  background: #b9dbe6;
}

#musicAsk button:active {
  transform: translate(2px, 2px);
  
  box-shadow: none;
}




.sketchbook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.book {
  display: flex;
  background: #ccc;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 6px 6px 0 #999;
}

.page {
  width: 350px;
  height: 500px;
  background: #fff;
  border: 1px solid #999;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-page {
  border-radius: 10px 2px 2px 10px;
  border-right: 1px solid #999;
}

.right-page {
  border-radius: 2px 10px 10px 2px;
  border-left: 1px solid #999;
}

.page img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sketchbook button {
  font-family: Verdana, sans-serif;
  background: #fff;
  border: 0px solid #ccc;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.closed-book {
  text-align: center;
  cursor: pointer;
}

.closed-book img {
  width: 350px;
  height: 500px;
}

#openSketchbook {
  display: none;
}

#sketchLightbox {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;

  background: rgba(20, 15, 10, 0.82);

  align-items: center;
  justify-content: center;

  backdrop-filter: blur(3px);
}

#lightboxSketch {
  max-width: 92vw;
  max-height: 92vh;
  border: 1px solid #fff3a8;
  border-radius: 10px;
  image-rendering: auto;
  box-shadow:
    0 0 0 1px #3a3330,
    8px 8px 0 rgba(0,0,0,0.35);
}
.top-nav {
  width: fit-content;
  max-width: 95%;
  margin: 0 auto 0px;
  padding: 6px;
  text-align: center;
  background: transparent;
  border: 0px solid #d8c8c0;
  border-radius: 2px;
}

.top-nav a {
  display: inline-block;
  margin: 0px;
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.2;
  background-image: url("images/bg02.gif");
  border: 1px solid #cdb7ae;
  border-radius: 0px;
  color: #5b4741;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  box-shadow: 2px 2px 0 #ccc;
}

.top-nav a:hover {
   background-image: url("images/bg02.gif");
   padding: 5px 8px;
   color: #a8938c;
   box-shadow: 2px 2px 0 #ccc;
}
@media only screen and (max-width: 600px) {
  body.index-page {
    overflow-x: hidden;
  }

  .layout-wrap {
    width: 993px;
    height: 724px;
    transform: scale(0.55);
    transform-origin: top left;
    margin: 0;
  }
}
.img-link img {
  transition: 0.25s ease;
}

.img-link:hover img {
  transform:
    translateY(-5px)
    rotate(-2deg);

  filter: drop-shadow(3px 3px 0 rgba(0,0,0,0.15));
}
body {
  opacity: 1;
  transition: opacity .5s ease;
}

body.fade-out {
  opacity: 0;
}
#siteTransition {
  position: fixed;
  inset: 0;
  background-color: #f6efe860;
  z-index: 99999999;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  pointer-events: none;
}

#siteTransition.active {
  transform: scaleX(1);
}
#doodleCanvas {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
}

#doodleTools {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000000;
  background: rgba(71, 66, 66, 0.459);
  border: 0px solid #000;
  padding: 5px;
}

#doodleTools button {
  width: 18px;
  height: 18px;
  border: 1px solid #000;
  cursor: pointer;
  vertical-align: middle;
  padding: 0;
}

.pattern-swatch {
  background-size: 8px;
  background-repeat: repeat;
  background-position: top left;

  image-rendering: pixelated;
}

#doodleTools button:last-child {
  width: auto;
  font-size: 10px;
  padding: 1px 6px;
}
.codebox {
  width: 200px;
  height: 48px;
  padding: 10px;
  font-family: monospace;
  font-size: 14px;
  resize: none;
  box-sizing: border-box;
}
.codebox-wrap {
  display: inline-block;
  text-align: center;
}

.copy-btn {
  display: block;
  margin-top: 5px;
  margin-left: auto;
  background: #999;
  border: 0px solid #000;
  color: #fff;
  font-family: courier;
  font-size: 12px;
  padding: 2px 8px;
  cursor: pointer;
}

.copy-btn:hover {
  background: #CCC;
}
.download-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  background: #999;
  border: 1px solid #000;
  color: #fff !important;
  font-family: courier;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
}

.download-btn:hover {
  background: #ccc;
  color: #fff !important;
}