@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Verdana&display=swap');

@font-face {
  font-family: 'Magazine Cutouts';
  src: url('https://wist-net.neocities.org/assets/Magazine-Cutouts-Font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


body {
  background: url('https://wist-net.neocities.org/assets/wistweb_background.png') repeat;
  background-color: #9b8ab4;
  color: #1f132c;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

.page-wrap {
  width: 900px;
  margin: 40px auto;
  background: rgba(255,255,255,0.25);
  outline: 2px solid #5b4c6f;
  border: 1px solid #ffffff;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  padding: 20px;
  border-radius: 12.5px;
}

/* metallic header */
.header {
  width: 80%;
  margin: 0 auto 20px auto;
  padding: 12px;
  border: 2px solid #5b4b6f;
  background: linear-gradient(to bottom, #a596b7 0%, #7f6c96 50%, #5e4d72 100%);
  box-shadow: inset 0 0 15px rgba(255,255,255,0.2), inset 0 0 5px rgba(0,0,0,0.4);
  color: #ece8f5;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 12.5px;
}

.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("http://www.transparenttextures.com/patterns/noise-pattern-with-subtle-cross-lines.png") repeat;
  opacity: 0.2;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.header img {
  border: 2px solid #6b5a85;
  background: #7b6597;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  transition: transform 0.3s ease; 
  border-radius: 25px;
}

.header img.pulse {
  animation-name: pulse;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}




.header-text h1 {
  margin: 0;
  font-size: 14px;
  text-shadow: 1px 1px #46375b;
}

.header-text p {
  margin: 4px 0 0;
  font-size: 9px;
  letter-spacing: 0.5px;
}

/* layout */
.wrapper {
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  gap: 10px;
  align-items: start;
}

/* sidebar buttons */
.sidebar {
  background: rgba(255,255,255,0.4);
  border: 2px solid #7e6699;
  box-shadow: inset 0 0 10px #6b5782;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.sidebar h2 {
  text-align: center;
  border-bottom: 1px solid #5a4672;
  margin-bottom: 8px;
  padding-bottom: 4px; /* adds space between text and border */
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: #3d2e56;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar a {
  display: block;
  padding: 6px 8px;
  background: linear-gradient(to bottom, #b9a6c9 0%, #8f7ba8 50%, #6d5a85 100%);
  border: 2px solid #5c4c70;
  border-radius: 4px;
  color: #f6f3f9;
  text-decoration: none;
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  text-align: center;
  box-shadow: inset 0 0 5px rgba(255,255,255,0.2), 0 0 3px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.sidebar a:hover {
  background: linear-gradient(to bottom, #d4c6e2 0%, #a28fba 50%, #7f6b97 100%);
  box-shadow: 0 0 8px #a78dd2;
  transform: scale(1.02);
}

/* content */
.content {
  background: rgba(255,255,255,0.5);
  border: 2px solid #7e6699;
  box-shadow: inset 0 0 10px #6b5782;
  padding: 10px;
}

/* .post {
  margin-bottom: 15px;
  border-bottom: 1px dotted #5a4672;
  padding-bottom: 5px;
}
*/

.post h3 {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  margin-bottom: 5px;
  color: #37284e;
}

/* update log */
.sidebox {
  background: rgba(255,255,255,0.5);
  border: 2px solid #7e6699;
  box-shadow: inset 0 0 10px #6b5782;
  padding: 10px;
}

.sidebox h3 {
  text-align: center;
  border-bottom: 1px solid #5a4672;
  margin-bottom: 8px;
  padding-bottom: 4px; /* adds space between text and border */
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: #3d2e56;
}


.update-log {
  background: #c7b3da;
  border: 1px solid #5c4c70;
  padding: 5px;
  height: 120px;
  overflow-y: auto;
  font-size: 10px;
  font-family: Verdana, sans-serif;
  line-height: 1.4;
}

.update-log strong {
  color: #3a2856;
}

footer {
  margin-top: auto; /* pushes it to the bottom */
  text-align: center;
  color: #3b2e49;
  font-family: 'Press Start 2P', cursive;
  padding: 10px 0;
  font-size: 10px;
}

.gradient-text {
  position: relative;
  display: inline-block;
  font-weight: bold;
  background: linear-gradient(to bottom, #9176aa, #391f3e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-section {
  margin-top: 20px;
  padding-top: 10px;
}

.blog-section h3 {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: #37284e;
  border-bottom: 1px dotted #5a4672;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.blog-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(to bottom, #b9a6c9 0%, #8f7ba8 50%, #6d5a85 100%);
  border: 2px solid #5c4c70;
  border-radius: 6px;
  text-decoration: none;
  color: #f6f3f9;
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  text-transform: lowercase;
  text-align: center;
  box-shadow: inset 0 0 5px rgba(255,255,255,0.2), 0 0 4px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.blog-card span {
  display: block;
  width: 100%;
  text-align: center;
}

.blog-card:hover {
  background: linear-gradient(to bottom, #d4c6e2 0%, #a28fba 50%, #7f6b97 100%);
  box-shadow: 0 0 8px #a78dd2;
  transform: scale(1.03);
}

.sidebar-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start; /* make sure it stays aligned to top of grid cell */
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .wrapper {
    grid-template-columns: 1fr; /* stack on mobile */
  }
  .sidebar-wrap {
    order: 0;
  }
  .sidebox {
    order: 2;
  }
}

.announcement-bar {
  overflow: hidden;
  margin: 10px auto 20px;
  width: 80%;
  height: 30px;
  display: flex;
  align-items: center;
  position: relative;
  
  border: 2px solid #5b4b6f;
  background: linear-gradient(to bottom, #a596b7 0%, #7f6c96 50%, #5e4d72 100%);
  box-shadow: inset 0 0 15px rgba(255,255,255,0.2), inset 0 0 5px rgba(0,0,0,0.4);
  color: #ece8f5;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  border-radius: 12.5px;
}

.announcement-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("http://www.transparenttextures.com/patterns/noise-pattern-with-subtle-cross-lines.png") repeat;
  opacity: 0.2;
  pointer-events: none;
}

.scroll-text {
  position: absolute;
  white-space: nowrap;
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: #ffffff;
  text-shadow: 1px 1px #46375b;
}

#sound-toggle {
  font-size: 16px;
  margin-left: 10px;
  vertical-align: middle;
}

.rules p {
  font-size: 12px;
  font-family: Verdana, sans-serif;
  color: #1f132c;
  margin: 6px 0;
}

.rules .num {
  display: inline-block;
  background: #fff;
  color: #1f132c;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  text-align: center;
  line-height: 22px;
  font-weight: bold;
  margin-right: 8px;
  font-family: 'Magazine Cutouts', sans-serif;
}

.button {
   display: block;
  padding: 6px 8px;
  background: linear-gradient(to bottom, #b9a6c9 0%, #8f7ba8 50%, #6d5a85 100%);
  border: 2px solid #5c4c70;
  border-radius: 4px;
  color: #f6f3f9;
  text-decoration: none;
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  text-align: center;
  box-shadow: inset 0 0 5px rgba(255,255,255,0.2), 0 0 3px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}




