/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */
@font-face {
    font-family: 'STAMPWRITER-KIT';
    src: url('STAMPWRITER-KIT.woff2') format('woff2'),
        url('STAMPWRITER-KIT.woff') format('woff'),
        url('STAMPWRITER-KIT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background-color: black;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  
  transition: opacity 0.5s ease;
}

.page.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
}

.page.muse,
.page.mun,
.page.rules {
  overflow: hidden;
}


.scrollbox:hover ~ .bigimg {
  opacity: 0;  /* fades out */
}

#home {
  flex-direction: column;
  justify-content: center;
  align-items: center;
width: 15em;
  height: 15em;
  padding-left: 4em;
  padding-right: 4em;
  text-align: center;
  display: flex;
}
#container {
  height: 47vh;
  width: 42vw;
  margin: auto;
  display: flex;
  flex-direction: row;
  position: relative;
}
.links {
  display: flex;
  flex-direction: row;
  gap: 2em;
  font-size: 1.5em;
  margin-top: 1em;
  position: relative;
  z-index: 100;
  text-shadow:
    -1px 0 black,
     1px 0 black,
     0 -1px black,
     0  1px black,
    -2px -2px black,
     2px  2px black,
     -1px 0 black,
     1px 0 black,
     0 -1px black,
     0  1px black,
    -2px -2px black,
     2px  2px black,
     -1px 0 black,
     1px 0 black,
     0 -1px black,
     0  1px black,
    -2px -2px black,
     2px  2px black,-1px 0 black,
     1px 0 black,
     0 -1px black,
     0  1px black,
    -2px -2px black,
     2px  2px black,-1px 0 black,
     1px 0 black,
     0 -1px black,
     0  1px black,
    -2px -2px black,
     2px  2px black,-1px 0 black,
     1px 0 black,
     0 -1px black,
     0  1px black,
    -2px -2px black,
     2px  2px black;
}

a {
  color: #859186;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  transform-origin: center;
}

a:hover {
  color: #560713;
    transform: scale(1.2);
}


.scrollbox {
  background-color: #859186;
  font-size: 1rem;
  width: 24em;          /* was 20vw */
  height: 17em;      /* was 30vh */
  padding: 0.3em;       /* convert padding 5px → ~0.3em */
  margin-left: 4em;
  margin-top: 6em;
  scrollbar-color: black #859186;
  z-index: 0;
  position: relative;
}

.bigimg {
  height: 45vh;
  width: auto;
  float: right;
  position: absolute;
  margin-left:22em;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.title {
  font-size: 4em;
  font-family: 'STAMPWRITER-KIT';
  color: #560713;
  z-index: 200;
  position: absolute;
    text-shadow:
    -1px 0 black,
     1px 0 black,
     0 -1px black,
     0  1px black,
    -2px -2px black,
     2px  2px black,
     -1px 0 black,
     1px 0 black,
     0 -1px black,
     0  1px black,
    -2px -2px black,
     2px  2px black,
     -1px 0 black,
     1px 0 black,
     0 -1px black,
     0  1px black,
    -2px -2px black,
     2px  2px black,-1px 0 black,
     1px 0 black,
     0 -1px black,
     0  1px black,
    -2px -2px black,
     2px  2px black,-1px 0 black,
     1px 0 black,
     0 -1px black,
     0  1px black,
    -2px -2px black,
     2px  2px black,-1px 0 black,
     1px 0 black,
     0 -1px black,
     0  1px black,
    -2px -2px black,
     2px  2px black;
     transform: rotate(0);
  transition: all 0.3s ease;
}

.title:hover {
  transform: rotate(-5deg);
  transition: all 0.3s ease;
}
.crosshair {
  position: absolute;
  width: 8em;
  height: auto;
  margin-top: 19.5em;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
@media (max-width: 768px) {
#container {
  flex-direction: column;
  width: auto;
  height: 90vh;
}
.bigimg {
  visibility: hidden;
  height: 0;
}
.title {
  font-size: 3em;
  text-align: center;
}
.scrollbox {
  width: 80vw;
  margin: auto;
  padding: 5px;
  margin-top: 8em;
}
#home {
  width: 60vw;
  padding: 0;
}
.crosshair {
  visibility: hidden;
  height: 0;
}
.links {
 gap: 1em;
 font-size: 1em;
 text-align: center;
 margin: auto;
 margin-top: 1em;
 width: 80vw;
 height: 1em;
}
#home {
  margin: auto;
  max-width: 100vw;
  text-align: center;
}
}