:root {
  --color-primary: rgb(206 190 152);
  --color-secondary: red;
  --color-dark: black;
  --color-light: rgb(220, 220, 220);
}

html {
  scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
  background: url(imgs/Red_bg.webp) no-repeat fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

main, header, footer {
  max-width: 1200px;
  min-width: 300px;
  margin: auto;
  overflow: hidden;
}

.heading__big {
  color: var(--color-primary);
  font-size: 6em;
  position: relative;
  text-align: center;
  margin-top: 0.5em;
  text-shadow: 0 0 0.009em white, 0 0 0.09em var(--color-primary);
  opacity: 0%;
  transform: translateY(-30%);
}

.logo__img {
  width: 600px;
}

.section {
  margin: 10em auto;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.5em;
  width: fit-content;
  opacity: 0;
  transform: translateX(100px);
  transition: 300ms;
}

.uvod {
  margin-top: 5em;
}

.uvod_buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1em;
  gap:1em;
}

.dc_icon {
  transform: scale(150%);
}

.uvod_img_wrapper {
  margin: auto;
  width: 0px;
  height: 0px;
  background-color: blue;
  position: relative;
}

.uvod_img {
  position: absolute;
  opacity: 0;
}

.uvod_img-left {
  left: -700px;
  width: 450px;
}

.uvod_img-right {
  left: 300px;
}

.separator {
  width: 90%;
  height: 4px;
  border-radius: 100%;
  background-color: var(--color-primary);
  filter: blur(4px);
  transform: scaleX(130%);
  opacity: 0;
  transform: translateX(100px);
  transition: 500ms;
  margin: auto;
}

.show {
  opacity: 1;
  transform: translateX(0);
}

.first {
  opacity: 0;
  transform: translateY(30%);
}

.section__heading {
  color: var(--color-primary);
  text-shadow: 0 0 0.009em white, 0 0 0.09em var(--color-primary);
  font-size: 2.3em;
  position: relative;
  margin: auto;
  margin-bottom: 1em;
  width: fit-content;
}

.section__heading::before {
  pointer-events: none;
  content: "";
  position: absolute;
  background-color: var(--color-primary);
  top: 45%;
  left: 0;
  width: 100%;
  height: 100%;

  transform: perspective(2em) rotateX(40deg) scale(1, 0.25);
  filter: blur(0.5em);
  opacity: 0.3;
}

.mt_icon {
  width: 32px;
  height: 32px;
  margin: 1em auto;
}

.info__span {
  color: var(--color-primary);
  font-size: 1.3em;
  line-height: 1.3em;
  /*background-image: linear-gradient(to top, red, orange);
  background-clip: text;
  color: transparent;*/
}

.obsah__section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1em;
}

.obsah__item {
  text-decoration: none;
  color: var(--color-primary);
  font-size: 1.3em;
  padding: 0.3em;
  border: 1px solid var(--color-primary);
}

.obsah__item:hover {
  transform: scale(110%);
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

.runy__example {
  display: grid;
  grid-template: 1fr / 1fr 1fr 1fr;
  margin-block: 2em;
  gap: 1em;
}

.runy__example--secondary {
  display: grid;
  grid-template: 1fr / 1fr 1fr;
  margin-block: 2em;
  gap: 1em;
}

.rune__crafting {
  margin: 2em auto;
  width: 500px;
}

.rune__zesilko {
  width: 32px;
  height: 32px;
  position: absolute;
  margin-left: 0.5em;
}

.obsidian__skalka {
  margin: 2em auto;
  width: 200px;
}

.mount__img {
  width: 300px;
  margin: 1em auto;
}

/* .mount__img:hover {
  transform: scale(1.3);
} */

.pet_tocka {
  margin-inline: 0.5em;
}

.medaile__img {
  padding: 0.4em;
}

.pet {
  width: 400px;
  margin: 1em auto;
}

.skill_tree__img {
  margin-left: auto;
  margin-right: 5em;
  width: 250px;
  position: relative;
}

/* .skill_tree__img:hover {
  transform: scale(1.2);
} */

.skill-tree__section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.skill-tree__desc {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  text-align: start;
  justify-content: center;
}

.alcha__img {
  width: 200px;
  margin-inline: auto;
  margin-bottom: 1em;
}

/* .alcha__img:hover {
  transform: scale(1.4);
} */

.rosa {
  width: 32px;
  height: 32px;
  margin: 0.4em;
}

.rosa-first {
  margin-top: 1em;
}

.map__section {
  margin-top: 2em;
  display: grid;
  grid-template: 1fr 1fr / 1fr;
  gap: 2em;
  align-items: center;
  justify-items: center;
}

.map__img {
  width: 30rem;
}

/* .map__img:hover {
  transform: scale(1.25);
} */

.switchbot {
  width: 400px;
  margin: 1em auto;
}

.messenger {
  width: 33rem;
  margin: 1em auto;
}

.inventory {
  width: 250px;
  margin: 1em auto;
}

.mount__img {
  width: 250px;
}

.pet__img {
  width: 170px;
}

.spell__colors {
  display: flex;
  flex-direction: row;
  gap: 2em;
  margin-top: 2em;
  margin-inline: auto;
}

.spellcolor {
  width: 250px;
}

.herb_chest {
  margin: auto;
  margin-top: 0.4em;
  width: 32px;
  height: 32px;
}

.wiki_tag {
  text-decoration: none;
  color: var(--color-secondary);
}

.kniha_misi {
  display: block;
  position: relative;
}

.kniha_misi::before {
  content: "";
  position: absolute;
  display: block;
  background-image: url("imgs/kniha_misi.webp");
  top: 100;
  left: 32ch;
  width: 32px;
  height: 32px;
}

.heading_medium {
  color: var(--color-secondary);
  font-size: 1.6em;
  margin-bottom: 0.4em;
}

.wars_block {
  margin-block: 2em;
  display: flex;
  flex-direction: column;
}

.wars_map {
  width: 700px;
  max-width: 80%;
  margin: auto;
  margin-top: 2em;
}

/*Intro animations*/

.intro {
  background-image: url("imgs/Red_bg2.webp");
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-text {
  color: var(--color-primary);
  font-family: "Heebo", sans-serif;
  font-size: 3rem;
}

.hide {
  overflow: hidden;
}

.hide span {
  transform: translateY(100%);
  display: inline-block;
}

/* Slider 1*/

.slideshow {
  width: 100%;
  margin-top: 5em;
  margin-inline: auto;
  display: flex;
}

.slides {
  position: relative; 
  flex-grow: 1;
  height: 12em;
}

.slideshow__slide {
  position: absolute;
  transition: opacity 1s;
  opacity: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.dots {
  text-align: center;
  margin-top: 2em;
}

/* tlaÄŤĂ­tka */
.prev, .next{
  width: 3em;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-primary);
}

.dots__dot {
  cursor: pointer;
  height: 0.6em;
  width: 0.6em;
  background-color: var(--color-primary);;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.5s ease;
}

.active, .dots__dot:hover {
  background-color: var(--color-secondary);
}

/* Slider 2*/

.slideshow2 {
  width: 100%;
  margin-top: 5em;
  margin-inline: auto;
  display: flex;
}

.slides2 {
  position: relative; 
  flex-grow: 1;
  height: 12em;
}

.slideshow__slide2 {
  position: absolute;
  transition: opacity 1s;
  opacity: 0;
  width: 100%;
  height: 100%;
  /* pro jednoduchost */
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.dots2 {
  text-align: center;
  margin-top: 2em;
}

/* tlaÄŤĂ­tka */
.prev2, .next2{
  width: 3em;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-primary);
}

.dots__dot2 {
  cursor: pointer;
  height: 0.6em;
  width: 0.6em;
  background-color: var(--color-primary);;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.5s ease;
}

.active2, .dots__dot2:hover {
  background-color: var(--color-secondary);
}

/* Slider 3*/

.slideshow3 {
  width: 300px;
  margin-top: 5em;
  margin-inline: auto;
  display: flex;
  gap: 3em;
}

.slides3 {
  position: relative; 
  flex-grow: 1;
  height: 12em;
}

.slideshow__slide3 {
  position: absolute;
  transition: opacity 1s;
  opacity: 0;
  width: 100%;
  height: 100%;
  /* pro jednoduchost */
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.dots3 {
  text-align: center;
  margin-top: 6em;
}

/* tlaÄŤĂ­tka */
.prev3, .next3{
  width: 3em;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-primary);
}

.dots__dot3 {
  cursor: pointer;
  height: 0.6em;
  width: 0.6em;
  background-color: var(--color-primary);;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.5s ease;
}

.active3, .dots__dot3:hover {
  background-color: var(--color-secondary);
}

/* Slider 4*/

.mapa__img {
  width: 90%;
  margin: auto;
}

.slideshow4 {
  width: 100%;
  margin-top: 5em;
  margin-inline: auto;
  display: flex;
  justify-content: center;
}

.slides4 {
  position: relative; 
  flex-grow: 1;
  height: 12em;
  max-width: 80%;
}

.slideshow__slide4 {
  position: absolute;
  transition: opacity 1s;
  opacity: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.dots4 {
  text-align: center;
  margin-top: 6em;
}

/* tlaÄŤĂ­tka */
.prev4, .next4{
  width: 3em;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-primary);
}

.dots__dot4 {
  cursor: pointer;
  height: 0.6em;
  width: 0.6em;
  background-color: var(--color-primary);;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.5s ease;
}

.active4, .dots__dot4:hover {
  background-color: var(--color-secondary);
}

.footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 2em;
}

.footer__left, .footer__right {
  display: flex;
  flex-direction: column;
}

.footer--item {
  color: var(--color-primary);
}

.footer--item-left {
  text-align: left;
}

.footer--item-right {
  text-align: right;
}

hr {
  color: var(--color-primary);
  background-color: var(--color-primary);
  border: none;
  height: 2px;
}

.titles__img {
  width: 500px;
  margin-inline: auto;
}

.titles__img,
.inventory,
.messenger,
.switchbot {
  margin-top: 1em;
}

@media only screen and (max-width: 1350px) {

  .uvod_img {
    display: none;
  }

}

@media only screen and (max-width: 900px) {

  .skill-tree__section {
    grid-template-columns: 1fr;
    grid-template-rows: 1.5fr 1fr;
    place-items: center;
  }

  .kniha_misi::before {
    display: none;
  }

  .skill-tree__desc {
    display: flex;
    flex-direction: column;
    gap: 1em;
    text-align: center;
  }
  
  .skill_tree__img {
    margin-inline: auto;
  }

  .runy__example {
    grid-template: 1fr 1fr 1fr/ 1fr;
    place-items: center;
  }

  .messenger {
    max-width: 80%;
    margin: auto;
  }

  .switchbot {
    max-width: 80%;
    margin: auto;
  }

  .map__img {
    max-width: 80%;
    margin: auto;
  }

  .inventory {
    max-width: 80%;
    margin: auto;
  }

  .intro, .intro-text, .hide {
    display: none;
  }

  .heading__big {
    font-size: 4em;
  }

  .info__span {
    font-size: 1em;
    max-width: 80%;
    margin: auto;
  }

  .obsah__item {
    font-size: 1em;
    padding: 0.2em;
  }

  .dots__dot {
    height: 0.5em;
    width: 0.5em;
  }

  .dots2 {
    text-align: center;
    margin-top: 4em;
  }

  .dots4 {
    text-align: center;
    margin-top: 2em;
  }

  .dots__dot2 {
    height: 0.5em;
    width: 0.5em;
  }

  .dots__dot3 {
    height: 0.5em;
    width: 0.5em;
  }

  .dots__dot4 {
    height: 0.5em;
    width: 0.5em;
  }

  .mount__img {
    max-width: 80%;
    margin: auto;
  }

  .pet__img {
    max-width: 80%;
    margin: auto;
  }

  .mapa__img {
    margin: auto;
  }

  .obsah__section {
    grid-template-columns: 1fr 1fr;
  }

  .rosa {
    width: 24px;
    height: 24px;
  }

  .spell__colors {
    flex-direction: column;
  }

  .isko__img {
    max-width: 80%;
    margin: auto;
  }

  .trzka__img {
    max-width: 80%;
    margin: auto;
  }

  .titles__img {
    max-width: 80%;
    margin: auto;
  }

  .rune__crafting {
    max-width: 80%;
    margin: auto;
  }

  .rune__zesilko {
    display: none;
  }

  .logo__img {
    max-width: 80%;
    margin: auto;
  }

  .titles__img,
  .inventory,
  .messenger,
  .switchbot {
    margin-top: 2em;
  }

}

@media only screen and (max-width: 600px) {

  .footer--item {
    font-size: 0.7em;
  }

}

@media only screen and (max-width: 400px) {

  .obsah__section {
    grid-template-columns: 1fr;
  }

  .uvod_buttons {
    flex-direction: column;
  }

  .footer--item {
    font-size: 0.5em;
  }

}#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #8d0707;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: opacity 0.3s, visibility 0.3s;
}

#scrollToTopBtn:hover {
  background-color: #b30000;
}
{
  margin: 0;
  padding: 0;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;
  box-sizing: border-box;
}