body {
  margin: 0;
  background: linear-gradient(180deg, #381777 0%, #2e135f 100%);
  font-family: Arial, Helvetica, sans-serif;
  color: rgb(172, 172, 172);
}

* {
  box-sizing: border-box;
}

.Logo {
  width: 200px;
  height: auto;
  margin-top: 15px;
}

.title {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header {
  flex: 0;
  text-align: center;
  font-size: 60px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 0;
  background: linear-gradient(to bottom, #00e5ff, #4d209f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header2 {
  flex: 0;
  text-align: center;
  font-size: 38px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 10;
  background: linear-gradient(to bottom, #bababa, #3b3b3b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/*-------- Sidebar ----------*/

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  background: #2b3245;
  display: flex;
  position: sticky;
  top: 0;
  bottom: 0;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
  height: 100vh;
  box-shadow: 2px 0 14px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.sidebarLogo {
  width: 200px;
  height: auto;
  border-bottom: 1px solid #4ea1ee;
}

.sidebarMenu {
  width: 100%;
  display: flex;
  flex-direction: column;
  font-size: 24px;
  background: linear-gradient(to bottom, #4fc3f7, #4d209f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebarMenu a {
  position: relative;
  padding: 15px 25px;
  text-decoration: none;
  font-size: 24px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-top: 28px;
  background: linear-gradient(to bottom, #4fc3f7, #4d209f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebarMenu a::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 25px;
  right: 25px;
  height: 1px;
  background: #3670a653;
}

.sidebarMenu a:last-child::after {
  display: none;
}

.sidebarMenu a span {
  background: linear-gradient(to bottom, #4fc3f7, #4d209f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: transform 0.2s ease;
}

.sidebarMenu a:hover span {
  transform: scale(1.05);
}

.content {
  flex: 1;
  padding: 40px;
  padding-bottom: 90px;
}

/*-------- Main / Panels ----------*/

.main {
  display: flex;
  flex-direction: column;
  background: rgba(62, 46, 120, 0.96);
  border-radius: 36px;
  margin: 40px auto;
  max-width: 1200px;
  width: 95%;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

section {
  margin-bottom: 8px;
}

/*-------- Buttons ----------*/

.btn {
  background-color: #4d209f;
  color: #4ea0ee;
  border-radius: 12px;
  padding: 2px 8px;
  margin-right: 120px;
  font-size: 16px;
  font-weight: bolder;
  transition: transform 0.2s ease, color 0.2s ease;
  border: none;
}

.btn:hover {
  cursor: pointer;
  color: #346b9f;
  transform: scale(1.05);
}

.btndiv {
  display: none;
  grid-template-columns: repeat(auto-fill, 40px);
  gap: 6px;
  max-width: 220px;
  margin-bottom: 10px;
  margin-right: 118px;
}

.btndiv.open {
  display: grid;
}

/*-------- Raidbox ----------*/

.raidbox {
  display: grid;
  grid-template-columns: 250px 1fr 200px;
  align-items: center;
  gap: 40px;
}

.raidboxdrops {
  display: flex;
  align-self: center;
  align-items: center;
  color: rgb(172, 172, 172);
}

.raidboxlogo {
  margin-left: 30px;
  margin-right: 60px;
}

.dropinfo {
  margin-left: 90px;
  margin-right: 0;
  color: rgb(172, 172, 172);
}

#filler {
  color: transparent;
}

.raidboxname {
  color: rgb(172, 172, 172);
  margin-right: 60px;
}

.raidboxright {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/*-------- Tooltip ------------*/

.item {
  position: relative;
  display: inline-block;
}

.tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #232a3a;
  box-shadow: 0 0 0 1px rgb(172, 172, 172);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 16px;
  max-width: 200px;
  text-align: center;
  word-wrap: break-word;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 50;
  pointer-events: none;
}

.item:hover .tooltip {
  opacity: 1;
}

/*------ Lines ------*/

hr.grenze {
  margin: 0 26px;
  border: none;
  border-top: 1px solid #4ea0ee;
}

hr.grenze2 {
  margin: 8px 26px;
  border: none;
  border-top: 1px solid #4ea1ee54;
}

/*------ Music / Volume ------*/

.musicPlayer {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #1a0b35;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.32);
    padding: 10px;
    border-radius: 10px;
    color: #00e5ff;
    width: 220px;
    z-index: 999;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.musicPlayer button {
    background: #333;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.bgmVolume2 {
  display: flex;
  justify-content: center;
  align-content: center;
}

.bgmVolume2 h1 {
  color: #00e5ff;
  font-size: 24px;
  transform: scaleX(-1);
}



/*---- Search ----*/

#raidTitle {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 22px;
  color: rgb(172, 172, 172);
}

.searchbardiv {
  display: flex;
  justify-content: end;
}

#openSearch {
  z-index: 10;
  padding: 6px 30px;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
  cursor: pointer;
  background-color: #4d209f;
  color: #4ea0ee;
  border-radius: 15px;
  transition: transform 0.2s ease, color 0.2s ease;
  border: none;
}

#openSearch:hover {
  color: #2e6190;
  transform: scale(1.05);
}

.searchOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 120px;
  z-index: 999;
}

.searchBox {
  width: 90%;
  max-width: 700px;
}

#searchInput {
  width: 100%;
  font-size: 20px;
  z-index: 10;
  padding: 22px 12px;
  margin-top: 12px;
  cursor: pointer;
  background-color: #2e135f;
  color: #4ea0ee;
  border-radius: 15px;
  border: 1px solid rgba(78, 160, 238, 0.35);
  outline: none;
}

#searchInput::placeholder {
  color: #2e6190;
}

#searchResults {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 10px;
}

#searchResults img {
  width: 60px;
  height: 60px;
}

.highlightItem {
  box-shadow: 0 0 25px gold;
  border-radius: 4px;
}

#closeSearch,
#backButton {
  z-index: 10;
  padding: 4px 12px;
  margin-top: 12px;
  font-size: 14px;
  cursor: pointer;
  background-color: #4d209f;
  color: #4ea0ee;
  border-radius: 15px;
  transition: transform 0.2s ease, color 0.2s ease;
  border: none;
}

#closeSearch {
  font-weight: bolder;
}

#closeSearch:hover,
#backButton:hover {
  color: #346b9f;
  transform: scale(1.05);
}

/*----- Typography / Information page -----*/

.groß {
  color: rgb(225, 225, 225);
  font-weight: 700;
  font-size: 32px;
  text-align: left;
  margin: 30px 26px 12px 26px;
  letter-spacing: 0.3px;
}

.info {
  color: rgb(192, 192, 192);
  font-size: 18px;
  line-height: 1.75;
  margin: 0 26px 20px 26px;
  text-align: left;
  display: block;
  max-width: 900px;
}

.infoIntro {
  color: rgb(192, 192, 192);
  font-size: 18px;
  line-height: 1.75;
  margin: 0 26px 24px 26px;
  text-align: left;
  max-width: 900px;
}

.infoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 0 26px 30px 26px;
}

.infoCard {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(78, 161, 238, 0.2);
  border-radius: 18px;
  padding: 18px 20px;
  color: rgb(172, 172, 172);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.infoCard h2 {
  margin: 0 0 14px 0;
  font-size: 24px;
  color: #7edbff;
}

.infoCard h3 {
  margin: 16px 0 6px 0;
  font-size: 17px;
  color: #b7ebff;
  font-weight: 600;
}

.infoCard p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgb(192, 192, 192);
}

.command {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(77, 32, 159, 0.4);
  border: 1px solid rgba(78, 160, 238, 0.35);
  color: #9edfff;
  font-weight: 700;
  font-family: Consolas, Monaco, monospace;
  font-size: 15px;
}

.progressionSteps {
  margin: 0 26px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stepCard {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(78, 161, 238, 0.18);
  border-radius: 18px;
  padding: 18px 20px;
  color: rgb(172, 172, 172);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.stepCard h2 {
  margin: 0 0 10px 0;
  font-size: 23px;
  color: #7edbff;
}

.stepCard p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: rgb(192, 192, 192);
}

.stepCard ul {
  margin: 12px 0 0 18px;
  padding: 0;
}

.stepCard li {
  margin-bottom: 6px;
  color: rgb(192, 192, 192);
  line-height: 1.6;
}

/*----- Footer -----*/

.footer {
  color: rgb(131, 131, 131);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1a202b;
  height: 34px;
  z-index: 9999999999;
  font-size: 14px;
  padding: 0 10px;
}

.footer a {
  color: #67c7ff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/*------------ NPC --------------*/
/* WINDOW */

.craft-window {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  top: 40px;
  animation: popup 0.2s ease;
}

@keyframes popup {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* TITLE BAR */

.craft-title {
  background: linear-gradient(
    rgb(70, 70, 70),
    rgb(45, 45, 45) 15%,
    rgb(45, 45, 45) 50%,
    rgb(0, 0, 0) 50%,
    rgb(0, 0, 0)
  );
  border: 1px solid #888;
  color: #fff;
  text-align: center;
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  padding: 9px;
  position: relative;
}

.craft-title .craft-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

/* CLOSE BUTTON */

.craft-close {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: url("img/close.png");
  background-size: cover;
  cursor: pointer;
}

/* INNER FRAME */

.craft-frame {
  border: 1px solid #555;
  padding: 6px;
  background: rgba(54, 54, 54, 0.817);
}

/* SECTION TITLE */

.craft-section {
  display: flex;
  justify-content: center;
  color: #ffd;
  font-size: 13px;
  margin-bottom: 5px;
  text-align: left;
}

/* SLOT GRID */

.craft-grid {
  display: grid;
  grid-template-columns: repeat(5, 42px);
  gap: 3px;
  justify-content: center;
}

/* ITEM SLOT */

.craft-slot {
  width: 42px;
  height: 42px;
  background: url("img/invi.png");
  background-size: cover;
  position: relative;
  transition: 0.2s;
}

.craft-slot img {
  max-width: 36px;
  max-height: 36px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ITEM AMOUNT */

.craft-amount {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 13px;
  color: white;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.496);
  padding: 1px 3px;
}

/* BUTTONS */

.craft-buttons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.craft-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #008;
  background: linear-gradient(#6af, #28f);
  color: #fff;
  cursor: pointer;
}

.craft-btn:hover {
  background: linear-gradient(#8bf, #49f);
}

.craft-slot.dimmed {
  filter: brightness(0.35);
}

.craft-slot.selected {
  filter: brightness(1.2);
  box-shadow: 0 0 6px gold;
}

#tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: none;
  display: none;
  z-index: 9999;
  pointer-events: none;
}

.npc {
  position: relative;
  display: flex;
  justify-content: center;
}

.npcs {
  display: flex;
  justify-content: center;
}

.NPCwebp {
  width: 700px;
  max-width: 100%;
}

.NPCwebp2 {
  width: 700px;
  max-width: 65%;
}

.titlebar {
  position: absolute;
  top: 110px;
  left: 49%;
  transform: translateX(-50%);
  height: 28px;
}

.minimap {
  align-self: center;
  height: 200px;
  max-width: 100%;
  border: 6px solid ;
  border-color: #2e135f;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/*------------------------------ NPC TOGGLE!! -----------------------------------------*/

.npcGroup{
  display:none;
  animation: npcOpen 0.25s ease;
}

@keyframes npcOpen{
  from{
    opacity:0;
    transform:translateY(-10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.npcToggle{
  cursor:pointer;
  user-select:none;
}


/*----- Team -----*/

.teamMembers {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 26px 30px 26px;
}

.teamCard {
  width: 220px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.teamCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.teamImage {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.teamCard h2 {
  margin: 10px 0 8px 0;
  font-size: 20px;
  color: #e7f9ff;
}

.teamCard p {
  font-size: 14px;
  line-height: 1.6;
  color: rgb(192, 192, 192);
  margin: 0;
}

/*------------ Media ---------------*/

@media (max-width: 1100px) {
  .header {
    font-size: 48px;
  }

  .main {
    width: calc(100% - 30px);
    margin: 20px 15px;
  }
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
  }

  .sidebarMenu {
    align-items: center;
    padding-bottom: 20px;
  }

  .sidebarMenu a {
    margin-top: 18px;
    text-align: center;
  }

  .sidebarMenu a::after {
    left: 40px;
    right: 40px;
  }

  .content {
    padding: 24px 18px 90px 18px;
  }

  .raidbox {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    justify-items: center;
  }

  .raidboxdrops {
    justify-content: center;
  }

  .dropinfo {
    margin-left: 0;
    text-align: center;
  }

  .raidboxlogo {
    margin: 0;
  }

  .raidboxright {
    align-items: center;
  }

  .btn {
    margin-right: 0;
  }

  .btndiv {
    margin-right: 0;
    justify-content: center;
  }

  #searchInput {
    max-width: 350px;
  }

  .infoGrid {
    grid-template-columns: 1fr;
  }

  .teamMembers {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .header {
    font-size: 38px;
    margin-top: 28px;
  }

  .groß {
    font-size: 26px;
    margin-left: 18px;
    margin-right: 18px;
  }

  .info,
  .infoIntro,
  .infoGrid,
  .progressionSteps,
  .teamMembers {
    margin-left: 18px;
    margin-right: 18px;
  }

  .info,
  .infoIntro,
  .stepCard p {
    font-size: 16px;
  }

  .infoCard,
  .stepCard,
  .teamCard {
    padding: 14px;
  }

  .teamCard {
    width: 100%;
    max-width: 320px;
  }

  .titles {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .smallheader {
    flex: unset;
  }

  .footer {
    height: auto;
    min-height: 40px;
    text-align: center;
    padding: 8px 10px;
  }
}