/***

Eggramen site CSS, version 3: "questerpest beta". Name added retroactively after completion of v5.

Feel free to borrow bits and pieces of code wherever. 
This isn't very well coded, though; if you're looking for a windowed style, you should probably check v4.

***/


body {
  background: #98e9f4 url(rd.jpg) no-repeat fixed;
  background-attachment: fixed;
  background-position:center;
	background-size: cover;
  color: #111123;
  font-family: 'Open Sans', 'Helvetica', sans-serif;
  font-size: 15px;
  overflow-x: auto; /*this was causing issues*/
}

h1 {
  color: #045086;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 24px;
  text-shadow: 1px 1px 0px #ffffff;
  border-bottom: 2px dashed #70c3e8;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.main-chat {
  background: #ffffff;
  border: 2px solid #70c3e8;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.main-chat iframe {
  border-radius: 6px;
}

.box-inner {
  background-image: url('/images/rd logo.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 120px;
}

/*used on lists, such as the credits page*/

.biglist {
  font-size: 15px;
  text-align:left;}
  
.smalllist {
  font-size: 14px;
  text-align:left;
  margin-right:10px;}


/*used for landing page*/

.message { /*message box*/
text-align:center;
margin: 0 0 auto;
  margin-top: 125px;
  margin-bottom: 20px;
  width: 400px;
  border: 3px #0783b9 solid;
  border-radius: 5px;
  text-align: center;
  background: #aae6ff;
  border-top: 4px #1894ca solid;
  }
  
.innerbox {
  /*message contents go in this one*/
  text-align:center;
  padding-bottom: 30px;
  padding-top: 30px;
  padding-left: 20px;
  padding-right: 20px;
  }
  
.weirdbox {
  display: flex;
  gap: 2px;
  margin: 0;
}
.message-title-short { /*box top/header line*/
  margin-right: -100px;
  float: left;
  margin-left: 0px;
  padding-left: 10px;
  padding-right: 300px;
  padding-top: 1px;
  padding-bottom: 5px;
  background: #1894ca;
  text-align: left;
  color:#ffffff;
  margin-top: -1px;
  }
  
.message-title-long { /*box top/header line*/
  
  margin-right: -100px;
  float: left;
  margin-left: 0px;
  padding-left: 10px;
  padding-right: 250px;
  padding-top: 1px;
  padding-bottom: 5px;
  background: #1894ca;
  text-align: left;
  color:#ffffff;
  margin-top:-1px;
  }
  
.weird {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 2px;
  font-size: 12px;
}

.weird a {
  color: #ffffff;
  text-decoration: none;
}

.weird:hover {
  background: rgba(255, 255, 255, 0.4);
}

.normal { /*buttons for message*/
  margin: 2%;
  margin-left: 2%;
  margin-right: 2%;
  padding: 1%;
  padding-left: 2%;
  padding-right: 2%;
  border-radius: 3px;
  background: #1894ca;
  display: inline-block;
  text-align: center;
  font-size:14px;
  color:#ffffff;
  }
  

a {
  color: #045086;
}

small {
  font-size: 10px;
  }

midsmall {
  font-size: 13px;
  }
  
.box { /*main*/
  text-align: left;  
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 40px;
  width: 900px;
  border: 3px #1894ca solid;
  border-radius: 5px;
  background: #aae6ff;
  border-top: 4px #1894ca solid;
  
  /* NEU & WICHTIG: */
  overflow: hidden;       /* Zwingt .box dazu, gefloatete Elemente wie .side komplett zu umschließen */
  height: auto;           /* Baut die Höhe dynamisch auf */
  min-height: 650px;      /* Grundhöhe für leere/kurze Seiten */
  padding-bottom: 30px;   /* Schöner Puffer unten im Kasten */
}
  
.box-title {
  background: linear-gradient(to right, #1894ca, #3498db);
  color: #ffffff;
  padding: 6px 12px;
  font-weight: bold;
  font-size: 13px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border-bottom: 1px solid #0783b9;

  /* NEU: Richtet Titel links und X/- Buttons rechts sauber auf einer Linie aus */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
  
.side {
  float: left;            /* NEU: Verlässt die absolute Positionierung */
  width: 150px;
  margin: 20px 0 20px 25px;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
}
    
.box-inner {
  text-align: left;
  padding-bottom: 30px;
  padding-top: 30px;
  margin-left: 200px;     /* Hält den Haupttext rechts von der Sidebar */
  padding-left: 20px;
  padding-right: 20px;
}
    
.footer {
  clear: both;
  margin-top: 40px;
  padding: 20px 10px 15px 10px;
  background-color: transparent; /* Verhindert den harten dunklen Balken */
  color: #045086;                 /* Dunkelblau nur für die Schrift */
  font-size: 13px;
  text-align: center;
  
  /* Dezent verläufe Regenbogen-Trennlinie oben */
  border-top: 3px solid;
  border-image: linear-gradient(90deg, #ff4141, #ff9900, #ffff33, #00e676, #00b0ff, #9c27b0) 1;
}

.footer a {
  color: #045086;
  font-weight: bold;
  text-decoration: underline;
}

.footer a:hover {
  color: #1894ca;
}

/* Platzierung & Effekte für die 88x31 Buttons */
.footer-buttons {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-buttons img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 3px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-buttons img:hover {
  transform: translateY(-2px); /* Leichtes Anheben beim Drüberfahren */
  filter: brightness(1.1);
}

/* Kleine Überschriften in der Sidebar */
.side h4 {
  color: #045086;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 15px 0 5px 0;
  border-bottom: 1px solid #70c3e8;
}
  .side img:hover, .card-frame:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease-in-out;
}
  .sidecon { /*sidebar buttons*/
  background: #1894ca;
  text-align: left;
  color:#ffffff;
    padding:10px;
    padding-top:7px;
    padding-bottom:7px;
    border-radius:5px;
    list-style-type:none;
    margin: 0 auto;
    margin-left:-35px;
    margin-right:5px;
    margin-top:15px;
    margin-bottom:15px;
    }
  .sidelist {
      list-style-type:none;
    }
  .sidecon a{
    color:#ffffff;
    }
  
  .subcon { /*currently unused*/
    text-align:left;
    margin-left:-50px;
    list-style-type:none;
    font-size:13px;
    }
    .subcon a {
      color:#111123;
    }
    
  .bar {
    text-align:center;
    margin-left:-10px;
    margin-top:25px;
    margin-bottom:25px;
    }
      
    .ramen {
      text-align:center;
      font-size:11px;
      margin:0 auto;
      margin-top:-15px;
      }
      
  .shift {
    margin-left:25px;}
    
    .songlist {
      font-size:14px;
      margin-left:25px;}
      
    .song {
      margin-left:0px;}
      
      
      .lyrics {
    font-size:13px;
    }
    
    .shift2 {
      margin-left:50px;}
    
    
    
    .word {
      letter-spacing:0.5px;
      min-width:160px;
      font-style:italic;
      display: inline-block;
      }
      
    .conlang-quote {
      font-style: italic;
      font-size: 17px;
      }        
      
      
        @media(max-width:950px) {
      .box {
        font-size:16px;
        width:700px;
        }
      .box-title {
        min-width:640px;
        }
        .bar img {
          max-width:350px;}
        .lyrics {
          font-size:14px;}
    }
    
    @media(max-width:750px) {
      .box {
        font-size:17px;
        width:550px;
        }
      .box-title {
        min-width:490px;
        }
      .box-inner {
        margin-left:140px;
        }
        .bar img {
          max-width:150px;}
        .side {
          font-size:15px;
          width:120px;
          margin-left:10px;
          }
        .lyrics {
          font-size:15px;
          }
        .word {
          min-width:140px;}
    }
    
    @media(max-width:600px) {
      .box {
        min-width:150px;
        max-width:530px;
        margin-left:0;
        margin-right:5px;
        
        }
        .box-inner {
          margin-left:100px;
          }
      .box-title {
        min-width:85%;}
        .side {
          font-size:13px;
          width:90px;
          margin-left:1%;
          margin-right:1%;
          }
        .footer {
          padding-top:-5px;}
          
        .word {
          min-width: 130px;}
      }
      
    @media(orientation: portrait){      
      body {
        font-size: 20px
      }
      .normal {
        font-size: 18px;
        }
      .box-title {
        width: 90%;
        margin-right: 0px;
        }
      .box {
          width: 95%;
          margin: 0 auto;
          margin-top: 30px;
      }
      .message {
          width: 85%;
      }
      }
      
/* 1. Bild im Polaroid-Rahmen flexibel und unverzerrt halten */
figure {
  display: inline-block;
  padding: 12px;
  background-color: #e0f7ff; /* Wolken-Hellblau */
  /* Regenbogen-Linie oben und unten, cyanfarbene Ränder an den Seiten */
  border-top: 5px solid #ff4141;
  border-bottom: 5px solid #00b0ff;
  border-left: 3px solid #80d8ff;
  border-right: 3px solid #80d8ff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 15px auto;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

figcaption {
  color: #1a5276;
  font-family: monospace;
  font-size: 0.95rem;
  margin-top: 8px;
  text-align: center;
}

/* 2. Textlesbarkeit & Abstände verbessern */
.content-bereich {
  padding: 20px;       /* Gibt dem Text Luft zu den Rändern */
  line-height: 1.6;    /* Mehr Zeilenabstand */
  font-size: 15px;
}

/* 3. Buttons aufwerten (Glossy Web 2.0-Effekt) */
.sidebar a, .button {
  display: block;
  padding: 8px 15px;
  margin-bottom: 8px;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  background: linear-gradient(to bottom, #3498db, #1d6fa5); /* Verlauf */
  border: 1px solid #144e75;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.sidebar a:hover {
  background: linear-gradient(to bottom, #4aa3df, #237cb8);
}

hr.rainboom {
  border: none;
  height: 4px;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
  margin: 20px 0;
}
a {
  position: relative;
  text-decoration: none;
  color: #0077cc;
}
a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff);
  transition: width 0.3s ease-in-out;
}
a:hover::after {
  width: 100%;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #e0f7ff;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(#ff4141, #ff9900, #ffff33, #00e676, #00b0ff);
  border-radius: 5px;
}

.pony-schwebend {
  position: fixed;   /* Fixiert das Bild relativ zum Browserfenster */
  
  /* NEU: Position oben links festlegen */
  top: 20px;          /* Abstand zum OBEREN Rand */
  left: 20px;         /* Abstand zum LINKEN Rand */
  
  /* ALTE Werte löschen oder auskommentieren:
     bottom: 20px;
     right: 20px; 
  */

  width: 80px;        /* Größe deines GIFs */
  height: auto;       /* Hält das Seitenverhältnis */
  z-index: 9999;      /* Liegt über dem anderen Inhalt */
  pointer-events: none; /* Verhindert, dass man es anklickt */
  
  /* Schwebe-Effekt */
  animation: schwebenWackeln 3s ease-in-out infinite;
}

#dragPony {
  position: fixed;        /* Bleibt beim Scrollen im Sichtfeld */
  top: 20px;              /* Startposition oben */
  left: 20px;             /* Startposition links */
  width: 80px;            /* Gewünschte Breite */
  height: auto;           /* Seitenverhältnis beibehalten */
  z-index: 9999;          /* Liegt über allen anderen Elementen */
  
  cursor: grab;           /* Zeigt die "Greifen"-Hand beim Drüberfahren */
  user-select: none;      /* Verhindert das Blausarkieren der Grafik */
  -webkit-user-drag: none;/* Verhindert das Standard-Bild-Ziehen des Browsers */
  
  /* Sanfte Übergänge für Größenänderungen */
  transition: transform 0.1s ease;
}

/* Optional: Klick-Effekt via CSS */
#dragPony:active {
  cursor: grabbing;       /* Zeigt die geschlossene Hand beim Drücken */
  transform: scale(0.95);  /* Wird beim Anklicken minimal kleiner */
}

.zentriert {
  display: block;       /* Wichtig: Verwandelt das Bild in einen Block */
  margin-left: auto;    /* Schiebt das Bild von links in die Mitte */
  margin-right: auto;   /* Schiebt das Bild von rechts in die Mitte */
  max-width: 100%;      /* Verhindert, dass das Bild über den Rand hinausragt */
  height: auto;         /* Hält das Seitenverhältnis stabil */
}

.badge {
  display: inline-block;
  margin: 4px;
  border: 1px solid #70c3e8;
  border-radius: 4px;
}

.card-frame {
  display: inline-block;
  background-color: #ffffff;
  padding: 10px;
  border: 3px solid #70c3e8; /* Helles Blau */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  margin: 15px auto;
  max-width: 300px;
}

.card-frame img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.card-frame figcaption {
  background-color: #e0f7ff;
  color: #1a5276;
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 6px 10px;
  margin-top: 8px;
  border-radius: 6px;
  text-align: center;
  border: 1px dashed #70c3e8;
}