:root {
  --header-image: url('https://sadhost.neocities.org/images/layouts/wp.jpeg');
  --body-bg-image: url('bg.gif');
  --content: #43256E;
}

@font-face {
  font-family: Nunito;
  src: url('https://sadhost.neocities.org/fonts/Nunito-Regular.ttf');
}
@font-face {
  font-family: Nunito;
  src: url('https://sadhost.neocities.org/fonts/Nunito-Bold.ttf');
  font-weight: bold;
}
@font-face {
  font-family: Nunito;
  src: url('https://sadhost.neocities.org/fonts/Nunito-Italic.ttf');
  font-style: italic;
}
@font-face {
  font-family: Nunito;
  src: url('https://sadhost.neocities.org/fonts/Nunito-BoldItalic.ttf');
  font-style: italic;
  font-weight: bold;
}

body {
  font-family: 'Nunito', sans-serif;
  margin: 0;
  background-color: #08031A;
  background-size: original;
  color: #fceaff;
  background-image: var(--body-bg-image);
}

* {
  box-sizing: border-box;
}

.mailform {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 94%;
  margin: 0 auto;
}

.mailform input,
.mailform textarea {
  background-color: #ffffff; /* weiß */
  border: 1px solid #ED64F5;
  color: #13092D; /* dunkler Text */
  font-family: inherit;
  padding: 6px;
  font-size: 14px;
}

.mailform textarea {
  resize: vertical;
}

.mailform button {
  background-color: #13092D;
  color: #ED64F5;
  border: 1px solid #ED64F5;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 14px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  display: block;
  cursor: pointer;
}

.mailform label {
  font-weight: bold;
  color: #ED64F5;
  margin-top: 10px;
  display: block;
}

.form-status {
  color: #ED64F5;
  font-style: italic;
  text-align: center;
  margin-top: 10px;
}





#prin-animation {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 99999;
  display: none;
  pointer-events: none;
}

#prin-animation video {
  display: block;
  width: auto;
  height: auto;
}

.card-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-height: 613px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ED64F5;
  background-color: #13092D;
  margin-top: 10px;
}

.card-gallery img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #ED64F5;
  background-color: #241445;
  image-rendering: pixelated;
}

.card-gallery img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px #ED64F5;
  z-index: 2;
}



@font-face {
  font-family: 'PredatorFont';
  src: url('predator.ttf') format('truetype');
}

.divider {
  display: block;
  max-width: 100%;
  height: 10px;
  image-rendering: pixelated;
  margin: 12px 0 10px 0; /* ↑ Abstand oben leicht erhöht */
  object-fit: none;
  overflow: hidden;
}

.banner-section {
  margin-top: 20px; /* Abstand zu Pog bleibt erhalten */
}

.banner-section p {
  margin-bottom: 2px; /* verringert Abstand zum unteren Divider */
  margin-top: 0;
  text-align: center;
}


.banner-heading {
  color: #ED64F5;
  font-size: 16px;
  margin: 4px 0 6px 0;
  text-align: center; /* <– das zentriert den Text */
}

.banner-grid {
  display: flex;
margin-top: 0; /* direkt unter "Empfehlungen" */
  flex-direction: column;
  gap: 6px;
  align-items: center;
}


.banner-grid img {
  width: 110px !important;
  height: auto;
  image-rendering: pixelated;
  display: block;
}


#username-input {
  background-color: #13092D;
  border: 1px solid #ED64F5;
  color: #fceaff;
  padding: 6px;
  font-family: inherit;
}

.predator-clock {
  font-family: 'PredatorFont', monospace;
  font-size: 17.5px;
  color: #ED64F5;
  text-align: center;
  padding: 12px 0;
  line-height: 1;
  display: block;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;    
}

.pog-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  border: none;
  background: none;
  padding: 0;
}

.pog-face {
  height: 99px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pog-bubble {
  background-color: #13092D;
  border: 1px solid #ED64F5;
  border-radius: 8px;
  padding: 10px;
  color: #ED64F5;
  width: 140px;
  min-height: 90px;
  font-style: italic;
  line-height: 1.4;
  box-sizing: border-box;
  margin-bottom: 8px;
  overflow-wrap: break-word;
  white-space: pre-wrap;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#prin-hinweis {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  z-index: 9999;
  cursor: none;
}

#prin-hinweis:hover {
  cursor: url('ohr.png'), auto;
}




#matrix-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#connect-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#container {
  max-width: 1160px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terminal-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 10px auto;
}

.terminal-overlay {
  position: absolute;
  top: 21px;
  left: 48%;
  transform: translateX(-50%);
}

#terminal {
  width: 96px;
  height: 83px;
  background: black;
  display: block;
}

.pc-light {
  position: absolute;
  top: 1.8%;
  left: -0.8%;
  width: 100%;
  height: auto;
  opacity: 0;
  pointer-events: none;
}

.terminal-wrapper.light-on .pc-light {
  opacity: 1;
}

.livevideo-box {
  text-align: center;
}

.quote-box {
  text-align: center;
}

.quote-frame {
  image-rendering: pixelated;
  display: block;
  margin-bottom: 6px;
}


.quote-text {
  font-style: italic;
  font-size: 12px;
  line-height: 1.4;
  color: #fceaff;
}



.download-savegames {
  text-align: center;
   overflow-y: auto;
   max-height: 500px;
}

.download-savegames-grid {
  margin: 0 auto;
  border-collapse: collapse;
}

.download-savegames-item {
  padding: 9px 9px;     /* DAS ist der Abstand */
  text-align: center;
  vertical-align: top;
}

.download-savegames-cover {
  width: 105px;
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
}

.download-savegames-title {
  margin: 6px 0 4px 0;
  font-size: 12px;
  font-weight: bold;
  color: #ED64F5;
}

.download-savegames-button {
  width: 70px;
  image-rendering: pixelated;
}

.calendar-box {
  text-align: center;
}

.calendar-head {
  font-weight: bold;
  margin: 5px 0;
  color: #ED64F5;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-size: 13px;
}

.calendar-dayname,
.calendar-day,
.calendar-empty {
  background-color: #13092D;
  border: 1px solid #ED64F5;
  color: #fceaff;
  padding: 4px 0;
  border-radius: 2px;
}

.calendar-empty {
  background: none;
  border: none;
}

.today {
  background-color: #ED64F5;
  color: #13092D;
  font-weight: bold;
}

.center-img {
  display: block;
  margin: 10px auto;
}

#container a {
  color: #ED64F5;
  font-weight: bold;
}

#header {
  width: 100%;
  background-color: #5e4e8c;
  height: 150px;
  background-image: var(--header-image);
  background-size: 100%;
}

#navbar {
  height: 40px;
  background-color: #13092D;
  width: 100%;
}

#navbar ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style-type: none;
  justify-content: space-evenly;
}

#navbar li {
  padding-top: 10px;
}

#navbar li a {
  color: #ED64F5;
  font-weight: 800;
  text-decoration: none;
}

#navbar li a:hover {
  color: #a49cba;
  text-decoration: underline;
}

#flex {
  display: flex;
  gap: 10px;
}

aside {
  background-color: #241445;
  width: 210px;
  padding: 20px;
  font-size: smaller;
overflow-x: hidden;
}

main {
  background-color: #43256E;
  flex: 1;
  padding: 20px;
  order: 2;
  min-width: 0;
  overflow-x: hidden;
}


#leftSidebar {
  order: 1;
}

#rightSidebar {
  order: 3;
  background-color: #241445;
  font-size: smaller;
}

.prin-zone {
  position: absolute;
  z-index: 9999;
  pointer-events: auto;
}


.castle-container {
  position: relative;
  display: inline-block; /* wichtig! */
  width: 100%;
  max-width: 800px; /* optional */
}

.castle {
  width: 100%;
  height: auto;
  display: block;
}

.fackel {
  position: absolute;
  width: 22%;
  height: auto;
  image-rendering: pixelated;
  pointer-events: none;
}

.fackel-links {
  top: 69%;
  left: 8.5%;
}

.fackel-rechts {
  top: 69%;
  left: 63.5%;
}

footer {
  background-color: #13092D;
  width: 100%;
  height: 40px;
  padding: 10px;
  text-align: center;
}

#rightSidebar audio {
  width: 100%;
  max-width: 180px;
}

#rightSidebar select {
  width: 100%;
  max-width: 180px;
}

h1, h2, h3 {
  color: #ED64F5;
}

h1 {
  font-size: 25px;
}

strong {
  color: #ED64F5;
}

.box {
  background-color: #13092D;
  border: 1px solid #ED64F5;
  padding: 10px;
}

.nerd-clock {
  font-family: monospace;
  color: #ED64F5;
  background-color: #13092D;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  border: 1px solid #ED64F5;
}

#rightSidebar .calendar-box {
  padding-top: 20px;
}

.pokedex-wrapper {
  position: relative;
  width: 600px;
  margin: 0 auto;
  font-family: monospace;
}

.pokedex-bg {
  width: 100%;
  height: auto;
  display: block;
}

.pokedex-display {
  position: absolute;
  top: 30%;
  left: 10.5%;
  width: 31.5%;
  height: 30%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#pokedex-image {
  width: auto;
  height: auto;
  transform: scale(2);
  transform-origin: center center;
  image-rendering: pixelated;
  filter: none;
}

.gray-filter {
  filter: grayscale(100%);
}

.pokedex-nav-button {
  position: absolute;
  height: 6%;
  top: 78%;
  background-color: #13092D;
  color: #00ff00;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  z-index: 3;
}

.pokedex-left { left: 32.5%; }   
.pokedex-right { right: 53.5%; } 

.pokedex-version-buttons {
  position: absolute;
  bottom: 35.5%;
  left: 73%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 2;
}

.pokedex-version-buttons button {
  font-size: 10px;
  padding: 3px 5px;
  background-color: #241445;
  color: #fceaff;
  border: 1px solid #ED64F5;
  cursor: pointer;
}

.pokedex-info-box {
  position: absolute;
  bottom: 50.5%;
  left: 60.5%;
  width: 32%;
  height: 16.5%;
  background: black;
  color: #00ff00;
  font-size: 11px;
  padding: 4px;
  border: 1px solid #00ff00;
  line-height: 1.4;
  white-space: pre-line;
  overflow-wrap: break-word;
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 1;
}

.pokedex-number-box {
  position: absolute;
  bottom: 7.3%;
  left: 13%;
  width: 17%;
  height: 10.5%;
  background: black;
  color: #00ff00;
  font-size: 13px;
  font-weight: bold;
  padding: 2px 4px;
  border: 1px solid #00ff00;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 1;
}

.pokedex-name-box {
  position: absolute;
  bottom: 69%;
  left: 60.5%;
  width: 17%;
  height: 4.7%;
  background: black;
  color: #00ff00;
  font-size: 13px;
  font-weight: bold;
  padding: 2px 4px;
  border: 1px solid #00ff00;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 1;
}


.cover-scroll {
  width: 620px;
  overflow-x: auto;
  white-space: nowrap;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cover-scroll::-webkit-scrollbar {
  height: 8px;
}

.cover-scroll::-webkit-scrollbar-thumb {
  background-color: #ED64F5;
  border-radius: 4px;
}

.cover img {
  width: auto;
  height: auto;
  margin-right: 6px;
  max-width: none;
}

#gameEmbedArea {
  margin-top: 20px;
  text-align: center;
}

#calendar-img {
  margin-top: 5px;
}

.about-table {
  width: 100%;
  max-width: none;
  margin: 20px 0;
  border-collapse: collapse;
  border: 1px solid #ED64F5;
  background-color: transparent;
  color: #fceaff;
}

.about-table td {
  padding: 6px 20px;
}

.about-table td:first-child {
  font-weight: bold;
  white-space: nowrap;
  padding-right: 40px;
}

#topBar {
  width: 100%;
  height: 30px;
  padding: 10px;
  font-size: smaller;
  background-color: #13092D;
}

.centered-element {
  display: block;
  margin: 0px auto;
}

#leftSidebar > * + *,
#rightSidebar > * + * {
  margin-top: 20px;
}

@media only screen and (max-width: 800px) {
  #flex {
    flex-wrap: wrap;
  }

  aside {
    width: 100%;
  }

  main {
    order: 1;
  }

  #leftSidebar {
    order: 2;
  }


  #navbar ul {
    flex-wrap: wrap;
  }
}
