/* Updated to use design brief colors and fonts from the MMORPG design */
@import url("https://fonts.googleapis.com/css2?family=Prata&family=Roboto:wght@300;400;500;700&family=PT+Serif+Caption:ital@0;1&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* New color palette from design brief */
  /* Removed red accent color, using only gold and beige palette */
  --bgColor1: #1a1a1a;
  --bgColor2: #2a2520;
  --bgColor3: #1f1f1f;
  --mainColor: #d29b61;
  --mainColorDark: #e4d5b8;
  --bgColorLight1: #ffffff;
  --borderColor1: #d29b6150;
  --txtColor1: #e4d5b8;
  --txtColor2: #ffffff;
  --txtColor3: #d29b61;
  --shadowGold: 0 0 20px rgba(210, 155, 97, 0.3);
}

::selection {
  background-color: var(--mainColor);
  color: var(--bgColor1);
}

::-webkit-scrollbar {
  width: 10px;
  background-color: var(--bgColor1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--mainColor), var(--mainColorDark));
  border-radius: 10px;
}

/* Updated body with new fonts and colors */
/* Removed red/orange gradient from body background */
body {
  background-color: var(--bgColor1);
  background-image: radial-gradient(circle at 20% 50%, rgba(210, 155, 97, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(210, 155, 97, 0.03) 0%, transparent 50%);
  padding-top: 80px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--txtColor1);
}

.loading {
  user-select: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/loading.gif);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30%;
  background-color: var(--bgColor1);
  z-index: 9999;
}

.container {
  width: 1400px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Prata", serif;
  font-weight: normal;
  color: var(--txtColor2);
}

.content .mytitle {
  font-family: "Prata", serif;
  font-size: 36px;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  color: var(--mainColorDark);
  text-transform: uppercase;
}

.content .mytitle:after,
.content .mytitle:before {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mainColor), transparent);
}

.content .mytitle:before {
  bottom: -20px;
  width: 60px;
}

/* Redesigned navbar with fantasy MMORPG aesthetic */
.navbar {
  background: linear-gradient(180deg, var(--bgColor2) 0%, var(--bgColor1) 100%);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--mainColor);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(210, 155, 97, 0.1);
}

/* Align navbar to the left with proper spacing */
.navbar .container {
  display: flex;
  justify-content: space-between;
  height: 80px;
  width: 1400px;
  align-items: center;
  gap: 0;
  padding: 0 20px;
}

.navbar .navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar .navbar-nav:first-child {
  flex: 1;
  justify-content: flex-start;
}

.navbar .navbar-nav:last-child {
  justify-content: flex-end;
}

.navbar .container ul {
  list-style: none;
  color: var(--txtColor1);
}

.navbar .container ul li a {
  text-decoration: none;
  color: var(--txtColor1);
  transition: all 0.3s ease;
}

.navbar .container ul li:hover > ul.dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.navbar .container ul li ul.dropdown {
  color: var(--txtColor1);
  visibility: hidden;
  opacity: 0;
  position: absolute;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* Enhanced logo styling */
.navbar .navbar-nav .navbar-logo {
  display: flex;
  align-items: center;
  height: 80px;
  cursor: pointer;
  user-select: none;
  margin-right: 30px;
}

.navbar .navbar-nav .navbar-logo img {
  height: 55px;
  width: 220px;
  filter: drop-shadow(0 0 10px rgba(210, 155, 97, 0.3));
}

.navbar .navbar-nav .navbar-logo h1 {
  font-family: "Prata", serif;
  font-size: 32px;
  text-transform: uppercase;
  color: var(--mainColorDark);
  text-shadow: 0 0 20px rgba(210, 155, 97, 0.5);
}

/* Enhanced navigation links */
.navbar .navbar-nav li a {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: block;
  padding: 28px 20px;
  text-transform: uppercase;
  position: relative;
  letter-spacing: 1px;
}

.navbar .navbar-nav li a:before {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mainColor), transparent);
  transition: transform 0.3s ease;
}

.navbar .navbar-nav li a:hover:before {
  transform: translateX(-50%) scaleX(1);
}

.navbar .navbar-nav li a.item-dropdown {
  cursor: pointer;
}

.navbar .navbar-nav li a span.arrow-down {
  margin-left: 5px;
  clip-path: polygon(50% 100%, 100% 0, 0 0);
  background-color: var(--mainColor);
  display: inline-block;
  width: 8px;
  height: 5px;
  transition: all 0.3s ease;
}

/* Removed red gradient from "new" badge, using only gold */
.navbar .navbar-nav li a span.new {
  position: absolute;
  top: 18px;
  right: 10px;
  transform: rotate(15deg);
  background: linear-gradient(135deg, var(--mainColor), var(--mainColorDark));
  color: var(--bgColor1);
  font-size: 9px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(210, 155, 97, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: rotate(15deg) scale(1);
  }
  50% {
    transform: rotate(15deg) scale(1.1);
  }
}

.navbar .navbar-nav li a:hover span.arrow-down {
  background-color: var(--mainColorDark);
  transform: translateY(2px);
}

.navbar .navbar-nav li a:hover {
  color: var(--mainColorDark);
}

/* Enhanced dropdown styling */
.navbar .navbar-nav li ul {
  z-index: 1030;
  width: auto;
  background: linear-gradient(180deg, var(--bgColor2), var(--bgColor1));
  border: 1px solid var(--mainColor);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(210, 155, 97, 0.2);
  margin-top: 10px;
}

.navbar .navbar-nav li ul li {
  width: 180px;
  background-color: transparent;
  border-bottom: 1px solid var(--borderColor1);
}

.navbar .navbar-nav li ul li:last-child {
  border-bottom: none;
}

.navbar .navbar-nav li ul li a {
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.navbar .navbar-nav li ul li a:before {
  display: none;
}

.navbar .navbar-nav li ul li a:hover {
  background: linear-gradient(90deg, transparent, rgba(210, 155, 97, 0.2), transparent);
  padding-left: 30px;
  color: var(--mainColorDark);
}

.navbar .navbar-nav li img,
.navbar .navbar-nav li i {
  width: 28px;
  height: 28px;
  padding: 0px 20px;
  margin-left: 20px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 1.5em;
  text-align: center;
  line-height: 1.5em;
  color: var(--txtColor1);
  transition: all 0.3s ease;
}

.navbar .navbar-nav li img:hover,
.navbar .navbar-nav li i:hover {
  color: var(--mainColor);
  transform: scale(1.1);
}

/* Enhanced account section */
.navbar .navbar-nav li.account .logedin {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar .navbar-nav li.account .logedin img {
  margin: 0 10px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--mainColor);
  box-shadow: 0 0 15px rgba(210, 155, 97, 0.4);
}

.navbar .navbar-nav li .splitter {
  display: block;
  padding: 3px 0;
  font-size: 30px;
  margin-left: 80px;
  color: var(--borderColor1);
  opacity: 0.5;
  cursor: default;
  user-select: none;
}

.navbar .navbar-nav li.account {
  position: relative;
  cursor: pointer;
  margin-right: 25px;
}

.navbar .navbar-nav li.account span {
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

.navbar .navbar-nav li.account i {
  line-height: 1.8em;
  width: unset;
}

.navbar .navbar-nav li.account ul {
  top: 90px;
  right: 20px;
  width: 220px;
  padding-bottom: 18px;
}

.navbar .navbar-nav li.account ul:before {
  content: "";
  display: inline-block;
  width: 100%;
  height: 120px;
  background: linear-gradient(180deg, var(--bgColor2), var(--bgColor1));
  border-bottom: 2px solid var(--mainColor);
}

.navbar .navbar-nav li.account ul div {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  margin-bottom: -60px;
  transform: translateY(-180%);
  border-radius: 50%;
  background-size: cover;
  border: 3px solid var(--mainColor);
  box-shadow: 0 0 20px rgba(210, 155, 97, 0.5);
}

.navbar .navbar-nav li.account ul div h1 {
  transform: translateY(250%) translateX(-40px);
  width: 150px;
  text-align: center;
  cursor: default;
  font-weight: normal;
  display: flex;
  justify-content: center;
  font-size: 16px;
  color: var(--mainColorDark);
}

.navbar .navbar-nav li.account ul div h1 .emoji {
  width: 0px;
  height: 28px;
  margin-bottom: unset;
  transform: unset;
  border-radius: unset;
  background-size: 32px;
  background-position: 8px 3px;
}

.navbar .navbar-nav li.account ul li {
  width: 100%;
  text-transform: capitalize;
}

.navbar .navbar-nav li.account ul li a {
  text-transform: capitalize;
}

.navbar .navbar-nav li.account.change-server:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 61%;
  width: 1px;
  height: 1px;
  box-shadow: 0 0 15px 10px var(--mainColor);
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50px;
  transition: opacity 0.9s;
  opacity: var(--myOpacity, 0);
}

/* Enhanced download button */
.navbar .navbar-nav li.download {
  margin-right: 40px;
}

.navbar .navbar-nav li.download a {
  background: linear-gradient(135deg, var(--mainColor), var(--mainColorDark));
  border-radius: 25px;
  width: 140px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  margin-top: 0;
  padding: 0;
  color: var(--bgColor1);
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(210, 155, 97, 0.4);
  transition: all 0.3s ease;
}

.navbar .navbar-nav li.download a:before {
  display: none;
}

.navbar .navbar-nav li.download a:hover {
  background: linear-gradient(135deg, var(--mainColorDark), var(--mainColor));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(210, 155, 97, 0.6);
}

/* Redesigned footer with fantasy aesthetic */
/* Blend footer with background */
/* Improved footer blending with smooth gradient */
.footer {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(26, 26, 26, 0.1) 5%,
    rgba(26, 26, 26, 0.2) 15%,
    rgba(42, 37, 32, 0.4) 30%,
    rgba(42, 37, 32, 0.7) 50%,
    var(--bgColor2) 70%,
    var(--bgColor1) 100%
  );
  padding: 150px 0 0;
  border-top: none;
  box-shadow: none;
  position: relative;
  margin-top: 150px;
}

.footer:before {
  content: "";
  position: absolute;
  top: -150px;
  left: 0;
  right: 0;
  height: 300px;
  /* background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(26, 26, 26, 0.02) 10%,
    rgba(26, 26, 26, 0.05) 20%,
    rgba(26, 26, 26, 0.1) 30%,
    rgba(26, 26, 26, 0.15) 40%,
    rgba(26, 26, 26, 0.25) 55%,
    rgba(42, 37, 32, 0.4) 70%,
    rgba(42, 37, 32, 0.6) 85%,
    var(--bgColor2) 100%
  ); */
  pointer-events: none;
  z-index: -1;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 60px;
  border-bottom: 1px solid rgba(210, 155, 97, 0.15);
}

.footer-section h3 {
  font-family: "Prata", serif;
  font-size: 28px;
  color: var(--mainColorDark);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-section h4 {
  font-family: "Prata", serif;
  font-size: 18px;
  color: var(--mainColor);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-tagline {
  font-family: "PT Serif Caption", serif;
  font-size: 14px;
  color: var(--txtColor1);
  opacity: 0.8;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  color: var(--txtColor1);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 15px;
}

.footer-links li a:before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--mainColor);
  transition: all 0.3s ease;
}

.footer-links li a:hover {
  color: var(--mainColorDark);
  padding-left: 20px;
}

.footer-links li a:hover:before {
  left: 5px;
}

.footer .social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer .social a {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--bgColor2), var(--bgColor1));
  border: 2px solid var(--mainColor);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--txtColor1);
  font-size: 1.2em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer .social a:hover {
  color: var(--mainColorDark);
  border-color: var(--mainColorDark);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(210, 155, 97, 0.4);
  background: linear-gradient(135deg, var(--bgColor1), var(--bgColor2));
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 40px;
}

.footer .copyright p {
  text-align: center;
  font-family: "PT Serif Caption", serif;
  font-size: 13px;
  color: var(--txtColor1);
  opacity: 0.7;
}

/* Responsive footer */
@media screen and (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media screen and (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Responsive */
@media screen and (max-width: 1450px) {
  .container {
    width: 1260px;
  }

  .navbar .navbar-nav:first-child > li > a {
    padding: 28px 15px;
  }
}

@media screen and (max-width: 1376px) {
  .container {
    width: 1190px;
  }

  .navbar .navbar-nav .navbar-logo img {
    width: 200px;
  }
}

@media screen and (max-width: 1290px) {
  .container {
    width: 1120px;
  }

  .navbar .navbar-nav .navbar-logo img {
    width: 180px;
  }

  .navbar .navbar-nav:first-child > li > a {
    padding: 28px 12px;
  }

  .navbar .navbar-nav li a span.new {
    top: 18px;
    right: 5px;
  }
}

@media screen and (max-width: 1162px) {
  .container {
    width: 960px;
  }

  .navbar .navbar-nav .navbar-logo img {
    width: 160px;
  }

  .navbar .navbar-nav li a {
    font-size: 13px;
  }

  .navbar .navbar-nav:first-child > li > a {
    padding: 28px 10px;
  }

  .navbar .navbar-nav:last-child li.download a {
    width: 120px;
    font-size: 12px;
  }

  .navbar .navbar-nav li .splitter {
    margin-left: 20px;
  }

  .navbar .navbar-nav li.account span {
    font-size: 13px;
  }

  .navbar .navbar-nav li.account {
    margin-right: 15px;
  }

  .navbar .navbar-nav li.account i {
    font-size: 1.2em;
  }
}

@media screen and (max-width: 1024px) {
  .container {
    width: 820px;
  }

  .navbar .navbar-nav .navbar-logo img {
    width: 140px;
  }

  .navbar .navbar-nav li a {
    font-size: 11px;
  }

  .navbar .navbar-nav:first-child > li > a {
    padding: 28px 8px;
  }

  .navbar .navbar-nav:last-child li.download a {
    width: 110px;
    height: 40px;
    line-height: 40px;
    font-size: 11px;
  }

  .navbar .navbar-nav li.account span {
    font-size: 11px;
  }

  .navbar .navbar-nav li ul li {
    width: 150px;
  }

  .navbar .navbar-nav li.account ul {
    width: 180px;
  }
}
