@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

:root {
  --header-height: 3.5rem;
  --nav-width: 219px;

  --first-color: #1affff;
  --first-color-light: #222;
  --title-color: White;
  --text-color: White;
  --text-color-light: #A5A1AA;
  --body-color: #171616;
  --container-color: #040404;

  --gradient: linear-gradient(to bottom right, #0a0a0a , #121111 80%, #171616);
  --bodytitle-color: #1affff;
  --body-img: url("imgs/Darken_bg.webp");

  --body-font: 'Poppins', sans-serif;
  --normal-font-size: .938rem;
  --small-font-size: .75rem;
  --smaller-font-size: .75rem;

  --font-medium: 500;
  --font-semi-bold: 600;
  --z-fixed: 100;

  --table-colour: rgba(1, 1, 1, 0.7);
  --table-name: rgba(0.7, 0.7, 0.7, 0.7);
  --table-first: rgba(1, 1, 1, 0.7);
}

@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

*, ::before, ::after {
  box-sizing: border-box;
}

html {
    height: 100%;
}

body {
  margin: var(--header-height) 0 0 0;
  padding: 1rem 1rem 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-image: var(--body-img);
  color: var(--text-color);
  height: 100%;
}

h3 {
  margin: 0;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*========== HEADER ==========*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--container-color);
  box-shadow: 0 1px 0 rgba(22, 8, 43, 0.1);
  padding: 0 1rem;
  z-index: var(--z-fixed);
}

.header__container {
  display: flex;
  align-items: center;
  height: var(--header-height);
  justify-content: space-between;
}

.header__img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.header__logo {
  color: var(--title-color);
  font-weight: var(--font-medium);
  display: none;
}

.header__search {
  display: flex;
  padding: .40rem .75rem;
  background-color: var(--first-color-light);
  border-radius: .25rem;
}

.header__input {
  width: 100%;
  border: none;
  outline: none;
  background-color: var(--first-color-light);
  color:White;
}

.header__input::placeholder {
  font-family: var(--body-font);
  color: var(--text-color);
}

.header__icon, 
.header__toggle,
.theme__button {
  font-size: 1.2rem;
}

.header__toggle,
.theme__button {
  color: var(--title-color);
  cursor: pointer;
}

#name, #name2 {
  color:var(--first-color);
}

/*========== NAV ==========*/
.nav {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  padding: 1rem 1rem 0;
  background-color: var(--container-color);
  box-shadow: 1px 0 0 rgba(22, 8, 43, 0.1);
  z-index: var(--z-fixed);
  transition: .4s;
}

.nav__container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 3rem;
  overflow: auto;
  scrollbar-width: none;
}

.nav__container::-webkit-scrollbar {
  display: none;
}

.nav__logo {
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
}

.nav__list, 
.nav__items {
  display: grid;
}

.nav__list {
  row-gap: 2.5rem;
}

.nav__items {
  row-gap: 1.5rem;
}

.nav__subtitle {
  font-size: var(--normal-font-size);
  text-transform: uppercase;
  letter-spacing: .1rem;
  color: var(--text-color-light);
}

.nav__link {
  display: flex;
  align-items: center;
  color: var(--text-color);
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__icon {
  font-size: 1.2rem;
  margin-right: .5rem;
}

.nav__name {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  white-space: nowrap;
}

/* Dropdown */
.nav__dropdown {
  overflow: hidden;
  max-height: 21px;
  transition: .4s ease-in-out;
}

.nav__dropdown-collapse {
  background-color: var(--first-color-light);
  border-radius: .25rem;
  margin-top: 1rem;
}

.nav__dropdown-content {
  display: grid;
  row-gap: .5rem;
  padding: .75rem 2.5rem .75rem 1.8rem;
}

.nav__dropdown-item {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.nav__dropdown-item:hover {
  color: var(--first-color);
}

.nav__dropdown-icon {
  margin-left: auto;
  transition: .4s;
}

/*
.nav__dropdown:hover {
  max-height: 100rem;
}*/

.openDropdown{
  max-height: 100rem;
}

/*
.nav__dropdown:hover .nav__dropdown-icon {
  transform: rotate(180deg);
}*/

.show-menu {
  left: 0;
}

/*===== Active link =====*/
.active {
  color: var(--first-color);
}




/*===== Main content =====*/

.page__title {
  display:flex;
  justify-content: center;
  font-size: 3rem;
  color:var(--first-color);
  text-shadow: 0 0 0.009em white, 0 0 0.09em var(--first-color);
  position: relative;
}

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

.active__page{
  display:block;
}

.inactive__page{
  display:none;
}

.theme__button{
  position: fixed;
  top:18px;
  right:12%;
}

.designer {
  margin-top:25%;
  font-size:0.65rem;
  color: var(--first-color);
  display: none;
}

footer{
  font-size: 0.8rem;
}

.footer{
  margin: 1%;
  color: var(--first-color);
  display: flex;
  justify-content: space-between;
  gap: 2em;
}

.footer-right{
  text-align: right;
}

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

.end_div {
  height: 10px;
}

.topic__body{
  display: flex;
  justify-content: center;
  flex-direction: column;
}

/*Basic mapy*/

.location {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2em;
  margin-bottom: 2em;
}

.maps__title {
  font-size: 2rem;
  color: var(--first-color);
  position: relative;
}

.maps__title::before{
  pointer-events: none;
  content: "";
  position: absolute;
  background-color: var(--first-color);
  top: 45%;
  left: 10%;
  width: 80%;
  height: 100%;

  transform: perspective(2em) rotateX(40deg) scale(1, 0.25);
  filter: blur(0.5em);
  opacity: 0.3;
}

.maps__image {
  width: 600px;
  border: 1px solid var(--first-color);
}

.maps__heading {
  color: var(--first-color);
}

.maps__text-metin_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.maps__text-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 1em;
}

.maps__text-item {
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 0.9em;
}

.maps__text-item > img {
  margin-top: 1em;
  height: 150px;
}

.location__info-container {
  display: flex;
  flex-direction: row;
  gap: 7em;
}

.location__info-container-column {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3em;
}

.container-item {
  text-align: center;
}

/* Tabulky */
.item__name{
  font-size: 1rem;
  color: var(--first-color);
  background: var(--table-name);
  border: var(--first-color) 1px solid;
  border-collapse: collapse;
}

.item__container {
  margin-bottom: 5%;
  margin-inline: auto;
}

table {
  background: var(--table-colour);
  border-radius: 1%;
  font-size: 0.7rem;
  border: var(--first-color) 1px solid;
  border-collapse: collapse;
}

.first-col, .first-row{
  font-weight: bold;
  position: relative;
  color: var(--first-color);
}

.first-col{
  border-collapse: collapse;
  /*border-right: 1px solid var(--first-color);
  border-left: 1px solid var(--first-color);*/
}

.first-row::before{
  pointer-events: none;
  content: "";
  position: absolute;
  background-color: var(--first-color);
  top: 25%;
  left: 25%;
  width: 50%;
  height: 100%;

  transform: perspective(2em) rotateX(40deg) scale(1, 0.25);
  filter: blur(0.7em);
  opacity: 0.3;
}

td, th{
  padding: 8px;
  margin: 5px;
  text-align: center;
  border-collapse: collapse;
}

.item-pic{
  padding: 15px;
  transform: scale(115%);
}

.hwangy, .kingy {
  display:grid;
  grid-template: 1fr 1fr / 1fr 1fr;
}

.hwangy > *:nth-of-type(2){
  margin-left: 3em;
}

.hwangy > *:nth-of-type(4){
  margin-left: auto;
}

.kingy {
  width: 100%;
  margin-bottom: 3em;
}

.kingy > *:nth-of-type(2), .kingy > *:nth-of-type(4) {
  margin-left: auto;
}

.biolog_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4em;
}

.biolog_item {
  width: min(800px, 90%);
  height: 100px;
  border: none;
  background: rgba(1, 1, 1, 0.5);
  box-shadow: 0px 0px 2px 2px var(--first-color);
}

.biolog_item:last-of-type {
  margin-bottom: 5em;
}

.bio_header_txt {
  color: var(--first-color);
  border-radius: 4em;
  font-size: 1.3em;
  padding: 0.5em;
}

.bio_item_txt {
  font-size: 1em;
}

.bio_item_txt_big {
  font-size: 1.4em;
}

.biolog_row th {
  padding-top: 15px;
  padding-inline: 15px;
}

.biolog_table_item {
    padding-inline: 15px;
    min-width: 200px;
    vertical-align: top;
}

.bio_item_translate {
  transform: translateY(-16px);
}

.bonuses_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bonuses_table {
  margin: auto;
}

.bonuses_section:last-of-type {
  margin-bottom: 4em;
}




/* Author */
author:hover {
  cursor: pointer;
  position: relative;
}

author::after {
  content: "Discord: TroubleMaker#4444";
  position: absolute;
  bottom:100%;
  right:0;
  background: black;
  color: white;
  width: 250px;
  font-size: 1rem;
  text-align: center;
  border-radius: 5%;
  display:none;
}

author:hover::after{
  display: block;
}

.upp__item-pic{
  width:30px;
  height:30px;
  margin-left: 5px;
  transform: translateY(30%)
}

.dews__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.dews__uvod {
  margin: auto;
  width: 500px;
}

.dews__heading {
  position: relative;
  color: var(--first-color);
  width: fit-content;
  margin: auto;
  font-size: 3rem;
}

.dews__heading-secondary {
  position: relative;
  color: var(--first-color);
  width: fit-content;
  margin-inline: auto;
  margin-top: 3em;
  font-size: 2em;
}

.dews__heading::before, 
.dews__heading-secondary::before {
  pointer-events: none;
  content: "";
  position: absolute;
  background-color: var(--first-color);
  top: 45%;
  left: 10%;
  width: 80%;
  height: 100%;

  transform: perspective(2em) rotateX(40deg) scale(1, 0.25);
  filter: blur(0.5em);
  opacity: 0.3;
}

.dews__paragraph {
  margin-top: 3em;
  font-size: 0.85em;
  text-align: center;
  line-height: 2em;
}

.dews__highlight {
  color: yellow;
}

.item__img {
  position: relative;
  width: 32px;
  height: 32px;
  transform: translateY(30%);
}


.juice__line {
  position: relative;
  font-size: 0.85em;
}

.dews__juices {
  display: grid;
  grid-template: 1fr 1fr 1fr / 1fr 1fr;
  align-items: center;
  padding: 0.5em;
  margin-left: 2em;
}

.dews__recipe {
  display: none;
}

.juice__line:hover > .dews__stats {
  display: none;
  transition: all 0.2s ease;
}

.juice__line:hover > .dews__recipe {
  display: inline;
  margin-left: 0.3em;
  transition: all 0.2s ease;
}

.runes__wrapper {
  display: block;
  width: 100%;
}

.runes__info {
  margin: auto;
  width: 50%;
}

.runes__heading {
  position: relative;
  font-size: 3rem;
  color: var(--first-color);
  width: fit-content;
  margin: auto;
}

.runes__heading::before, 
.runes__heading-secondary::before {
  pointer-events: none;
  content: "";
  position: absolute;
  background-color: var(--first-color);
  top: 45%;
  left: 10%;
  width: 80%;
  height: 100%;

  transform: perspective(2em) rotateX(40deg) scale(1, 0.25);
  filter: blur(0.5em);
  opacity: 0.3;
}

.qna__heading {
  position: relative;
  font-size: 2rem;
  color: var(--first-color);
  width: fit-content;
  margin: auto;
}

.qna__heading::before, 
.qna__heading-secondary::before {
  pointer-events: none;
  content: "";
  position: absolute;
  background-color: var(--first-color);
  top: 45%;
  left: 10%;
  width: 80%;
  height: 100%;

  transform: perspective(2em) rotateX(40deg) scale(1, 0.25);
  filter: blur(0.5em);
  opacity: 0.3;
}

.runes__paragraph {
  display: block;
  font-size: 0.85em;
  line-height: 3em;
  width: 100%;
  text-align: center;
}

.runes__paragraph:nth-of-type(1) {
  margin-top: 3em;
}

.runes-crafting__img {
  display: block;
  margin-inline: auto;
}

.runes-skalka__img {
  display: block;
  margin: 1em auto 3em auto;
  width: 200px;
}

.runes_table {
  margin-top: 2em;
  margin-bottom: 5em;
  margin-inline: auto;
  gap: 0.5em;
}

.runes_table td {
  width: 7em;
}

.runes_table .first-col {
  width: fit-content;
  text-align: end;
}

.sash__paragraph {
  display: block;
  font-size: 0.85em;
  width: 100%;
  text-align: center;
}

.sash__sance {
  display: inline-block;
  font-size: 0.75em;
  transform: translateY(50%);
}

.sash__spojovani {
  display: block;
  width: fit-content;
  margin: 0.5em auto;
  text-align: center;
}

.helmy_wrapper {
  max-width: 80px;
}

/* loading */
.loading img {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5% calc(50% - 50px);
  width: 100px;
  height: 100px;
}

.qna {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qna_section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.belt_wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quest-name {
  color: var(--first-color);
  width: fit-content;
  margin: auto;
  font-size: 1.5rem;
}

.quest-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.quest-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5em;
}

.quest-highlight {
  font-size: 0.80em;
}

.quest-attribute {
  font-size: 1em;
  margin-top: 0.7em;
  margin-bottom: 0.2em;
}

.quest__heading {
  position: relative;
  color: var(--first-color);
  width: fit-content;
  margin: auto;
  font-size: 2.2rem;
  margin-top: 4em;
  margin-bottom: 2em;
}

.quest__heading::before {
  pointer-events: none;
  content: "";
  position: absolute;
  background-color: var(--first-color);
  top: 45%;
  left: 10%;
  width: 80%;
  height: 100%;

  transform: perspective(2em) rotateX(40deg) scale(1, 0.25);
  filter: blur(0.5em);
  opacity: 0.3;
}

.quest-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.patra {
  display: flex;
  flex-direction: column;
  margin-top: 0em;
  margin-block-end: 3em;
  align-items: center;
  font-size: 0.85em;
  line-height: 1.5em;
  width: 100%;
}

.patra__item {
  text-align: center;
  margin-block: 0.75em;
}

.guild__paragraph {
  display: block;
  font-size: 0.85em;
  line-height: 2em;
  width: 100%;
  text-align: center;
}

.guild_war__paragraph {
  display: block;
  font-size: 0.85em;
  line-height: 3em;
  width: 100%;
  text-align: center;
}

.guild_war__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.95em;
  line-height: 1.8em;
  width: 90%;
}

.guild_war__event {
  display: flex;
  flex-direction: column;
  margin-left: 1em;
}

.guild_war_margin {
  margin-bottom: 0.5em;
}

.guild_war_subheading {
  font-size: 1.7em;
  color: #1affff;
  font-weight: 900;
  margin-top: 0.8em;
  margin-bottom: 0.6em;
}

/* ========== MEDIA QUERIES ==========*/

/* small */
@media screen and (max-width: 350px) {
  .header__search {
    width: 60%;
  }
}

@media screen and (max-width: 768px){
  footer{
  font-size: 0.6em;
  }

  table, th, td, tr{
    font-size: 0.35rem;
    padding: 1px;
    margin: 1px;
  }

  .upp__item-pic{
    width: 10px;
    height: 10px;
  }

  .item-pic{
    padding: 3px;
    width: 32px;
    height: 64px;
  }

  .item__name{
    font-size: 0.5rem;
  }

  .dews__wrapper {
    font-size: 0.75em;
  }

  .bio_item_translate {
    transform: translateY(0);
  }

  .biolog_table_item {
    min-width: 0;
  }

  .runes__heading {
    font-size: 1.5rem;
  }

  .qna__heading {
    font-size: 1.5rem;
  }

  .page__title {
    font-size: 2em;
    max-width: 80%;
    margin: auto;
  }

  .qna_section,
  .page__text {
    font-size: 0.8em;
    max-width: 80%;
    margin: auto;
  }

  .qna {
    gap: 1em;
  }

}

/* mobily */
@media screen and (min-width: 768px) {
  body {
    padding: 1rem 3rem 0 6rem;
  }
  .header {
    padding: 0 3rem 0 6rem;
  }
  .header__container {
    height: calc(var(--header-height) + .5rem);
  }
  .header__search {
    width: 300px;
    padding: .55rem .75rem;
  }
  .header__toggle {
    display: none;
  }
  .header__logo {
    display: block;
  }
  .header__img {
    width: 40px;
    height: 40px;
    order: 1;
  }
  .nav {
    left: 0;
    padding: 1.2rem 1.5rem 0;
    width: 68px;
  }
  .nav__items {
    row-gap: 1.7rem;
  }
  .nav__icon {
    font-size: 1.3rem;
  }

  .nav__logo-name, 
  .nav__name, 
  .nav__subtitle, 
  .nav__dropdown-icon {
    opacity: 0;
    transition: .3s;
  }
  
  .nav:hover {
    width: var(--nav-width);
  }
  
  .nav:hover .nav__logo-name {
    opacity: 1;
  }
  .nav:hover .nav__subtitle {
    opacity: 1;
  }
  .nav:hover .nav__name {
    opacity: 1;
  }
  .nav:hover .nav__dropdown-icon {
    opacity: 1;
  }

}