:root {
  --pointer: url('https://bigdogal.neocities.org/cursors/pointer.png'), pointer;
  --default-cursor: url('https://bigdogal.neocities.org/cursors/default.png'), default;
  --wait-cursor: url('https://bigdogal.neocities.org/cursors/progress.png'), wait !important;
  --nw-resize-cursor: url('https://bigdogal.neocities.org/cursors/nw-resize_or_se-resize.png'), nw-resize;
  --w-resize-cursor: url('https://bigdogal.neocities.org/cursors/e-resize_or_w-resize.png'), w-resize;
  --move-cursor: url('https://bigdogal.neocities.org/cursors/move.png'), move;
  --not-allowed-cursor: url('https://bigdogal.neocities.org/cursors/not-allowed.png'), not-allowed;
  --desktop-teal: #008080;
  --Scrollbar: rgb(192, 192, 192);
  --button-face: #dfdfdf;
  --button-shadow: #808080;
  --window-frame: #0a0a0a;
  --border-raised-inner: inset -2px -2px var(--button-shadow),
    inset 2px 2px var(--button-face);
    --border-raised-outer: inset -1px -1px var(--window-frame),
    inset 1px 1px var(--button-highlight);
    --button-highlight: #ffffff;
}

* {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

*::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.wait-cursor {
      cursor: var(--wait-cursor);
}

.resizeablewindow {
  cursor: 
    --nw-resize-cursor;
  }

@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("https://bigdogal.neocities.org/font/pixelRegular-ovyAA.woff") format("woff");
  src: url("https://bigdogal.neocities.org/font/pixelRegular-ovyAA.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("https://bigdogal.neocities.org/font/pixelRegular-ovyAA.woff") format("woff");
  src: url("https://bigdogal.neocities.org/font/pixelRegular-ovyAA.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body{
  font-family: Arial;
  font-size: 16px;
  color: #000000;
  margin: 0;
  cursor: var(--wait-cursor);
  cursor: var(--default-cursor);
  overflow: scroll;
}



a:hover {
  cursor: var(--pointer);
}

a:active {
  cursor: var(--pointer);
}

button:hover {
  cursor: var(--pointer);
}

button:active {
  cursor: var(--pointer);
}

.window-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Page container */
.page-container {
  max-width: 800px;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  text-align: center;
  justify-content: center;

}

/* Header container */
header {
  background: var(--desktop-teal);
  padding: 0;
  margin-right: 12px;
  margin-left: 12px;
  text-align: center;
  position: relative;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  padding-top: 30px;
}

/* Nav */
nav {
  background: #c0c0c0;
  padding: 0.5em 1em;
  border-bottom: 2px solid #808080;
  display: flex;
  justify-content: center;
  margin-right: 12px;
  margin-left: 12px;
  align-items: center;
}



nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1em;
  justify-content: flex-start; 
  flex-wrap: wrap; 
}

nav li {
  margin: 0;
}

button a {
  color: #000000;
}

nav a {
  color: #000000;
  text-decoration: none;
  background: #eeeeee;
  border: 2px outset #ffffff;
  display: block;
  white-space: nowrap;
}

nav a:hover {
  background: #ffffff;
  cursor: var(--pointer);
}

nav a:active {
  border-style: inset;
  cursor: var(--pointer);
}


/* Content Container */
.content-container {  
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: transparent;
  flex: 1; 
  width: 100%;
  max-width: 880px; 
  margin: 0 auto 2em auto; 
  padding: 12px; 
  box-sizing: border-box; 

  
}

.content-container > div {
  font-size: 16px;
}
/*
.left-container { 
  grid-area: left; 
  background: white;
}

.main-container { 
  grid-area: main;
  background: white;
}

.right-container { 
  grid-area: right; 
  background: white;
}

.section-content {
  width: 100%;
  height: auto;
  overflow: visible;
}

.left-container, 
.main-container, 
.right-container { 
  background: white;
  min-height: min-content; 
  overflow: visible; 
}
*/

/* Footer */
footer {
  background: transparent;
  padding: 1em;
  text-align: center;
  margin-top: auto; 
  top-bottom: 20px;
}

footer a{
  color: black;
}

/* Modal */
#pic {
  cursor: var(--pointer);
  transition: 0.3s;
  max-width: 100%;
  height: auto;

}

#pic:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  justify-content: center;
}

/* Modal Content (image) */
.modal-content {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.modal-body {
  text-align: center;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.modal-window {
  position: relative;
  width: min(80vw, 80vh);
  height: min(80vw, 80vh);
  margin: auto;
  box-shadow: inset -1px -1px #0a0a0a,
      inset 1px 1px #ffffff, inset -2px -2px #808080,
      inset 2px 2px #dfdfdf;
  background: #c0c0c0;
  padding: 3px;
  display: flex;
  aspect-ratio: 1 / 1;
  flex-direction: column;
}

.window {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  margin: 0;
  flex-direction: column;
}

.window.show {
  display: flex; /* Show when 'show' class is added */
}

.window-body {
  flex: 1;
  overflow: hidden;
  display: flex;
}

.window-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}


::-webkit-scrollbar {
  width: 16px;
}
::-webkit-scrollbar:horizontal {
  height: 17px;
}

::-webkit-scrollbar-corner {
  background: var(--button-face);
}

::-webkit-scrollbar-track {
  background-image: svg-load("./icon/scrollbar-background.svg");
}

::-webkit-scrollbar-thumb {
  background-color: var(--button-face);
  box-shadow: var(--border-raised-outer), var(--border-raised-inner);
}

::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:horizontal:end:increment,
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment {
  display: block;
}

::-webkit-scrollbar-button:vertical:start {
  height: 17px;
  background-image: svg-load("./icon/button-up.svg");
}
::-webkit-scrollbar-button:vertical:end {
  height: 17px;
  background-image: svg-load("./icon/button-down.svg");
}
::-webkit-scrollbar-button:horizontal:start {
  width: 16px;
  background-image: svg-load("./icon/button-left.svg");
}
::-webkit-scrollbar-button:horizontal:end {
  width: 16px;
  background-image: svg-load("./icon/button-right.svg");
}


/* Device Compatibility */
@media (max-width: 800px) {
  .content-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }

  header {
    margin-top: 30px;
    padding: 8px;
  }
  
  header img {
    max-height: 700px;
  }

  .window {
    margin: 10px;
  }

  nav {
    padding: 0.5em;
  }

  nav ul {
    gap: 0.4em;
  }

  nav button {
    font-size: 12px;
    min-width: 60px;
    padding: 0.4em 0.8em;
    
  }
}

/* Mobile breakpoint */
@media (max-width: 600px) {
  .content-container {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 5px
    
  }

  header {
    margin-top: 30px;
    padding: 5px;
    margin-right: 5px;
    margin-left: 5px;
  }
  
  nav {
    margin-right: 5px;
    margin-left: 5px;
    margin-bottom: 10px;
  }

  header img {
    max-height: 150px;
  }

  .window {
    margin: 8px;
  }

  nav ul {
    gap: 0.3em;
  }

  nav button {
    font-size: 13px;
    min-width: 60px;
    padding: 0.4em 0.6em;
  }

  .modal-content {
    width: 95%;
  }

  .close {
    top: 10px;
    right: 20px;
    font-size: 35px;
  }

  .modal {
    padding-top: 30px;
  }
}

/* Very small mobile */
@media (max-width: 440px) {
  nav button {
    font-size: 12px;
    min-width: 55px;
    padding: 0.3em 0.5em;
  }

  .window {
    margin: 5px;
  }

  header img {
    max-height: 120px;
  }
  
  .content-container {
    grid-template-columns: 1fr; /* Keep 1 column */
  }
}

/* Very small mobile */
@media (max-width: 440px) {
  nav button {
    font-size: 10px;
    min-width: 40px;
    padding: 0.3em 0.5em;
  }

  .window {
    margin: 5px;
  }

  header img {
    max-height: 120px;
  }
  
  .content-container {
    grid-template-columns: 1fr; /* Keep 1 column */
  }
}

/* Very small mobile */
@media (max-width: 400px) {
  nav button {
    font-size: 10px;
    min-width: 35px;
    padding: 0.3em 0.5em;
  }

  .window {
    margin: 5px;
  }

  header img {
    max-height: 120px;
  }
  
  .content-container {
    grid-template-columns: 1fr; /* Keep 1 column */
  }
}


@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .content-container {
    gap: 6px;
  }
  
    a {
    color: #000000; 
  } 
}

@media (max-width: 800px) {
  .page-container {
    margin-top: 30px;
  }
}










