/* Importovat proměnné */
@import "./variables.css";

body {
  display: flex;
}

/* Nastavení odkazů */
a {
  text-decoration: none;
  color: var(--text);
  display: block;
}

a:hover {
  color: var(--primary);
}

/* Zabránit vybrat text, použito na hlavní nadpis */
.prevent-select {
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}

/* Základní nastavení sekce */
.section {
  gap: 8rem;
  padding: 4rem;
  display: flex;
  flex-direction: column;
}

/*Nav*/
header {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  padding: 8rem 2rem;
  width: min-content;
  max-width: 20%;
  background: var(--secondary);
  overflow-y: auto;
  transition: flex 0.5s ease, max-width 0.3s ease, padding 0.5s ease;
  transform-origin: left;
  /* Animace se smrští doleva */
}

header img {
  width: 4rem;
  height: auto;
}

nav {
  font: var(--size4);
}

.hideNavbar {
  max-width: 0;
  padding: 8rem 0;
  pointer-events: none;
}

/*Základní nastavení sekcí*/
.sectioncontainer {
  position: relative;
  flex: 1;
  max-width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-behavior: smooth;
  transition: flex 0.5s ease;
}

/*Home sekce*/
.home {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100dvh;
  background: url("../media/Background_2.png") no-repeat center/cover;
}

.home h1 {
  place-self: center;
  text-align: center;
  text-shadow: black 0.25rem 0.25rem 0.75rem;
  font-size: 10rem;
  z-index: 2;
}

.drtikul-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 90%;
  width: auto;
  filter: saturate(0.8);
  z-index: 1;
}

/* Základní nastavení tlačítka */
.button {
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  position: fixed;
  border-radius: 2rem;
  background-color: var(--text);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s, rotate 0.2s, opacity 0.2s;
}

.button:hover {
  transform: scale(1.125);
}

/* Pozice tlačítka pro menu */
.navbutton {
  top: 2rem;
  left: 2rem;
}

/* Profese + Schopnosti sekce */
.abilitysection {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.proffesion {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.proffesion-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  padding: 4rem;
}

.proffesion-details img {
  width: 30%;
}

.proffesion-details p {
  text-align: justify;
  font-size: 1.777rem;
}

.abilities {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.abilities h1 {
  text-align: center;
}

.ability {
  display: flex;
  gap: 4rem;
}

.ability-img img {
  border-radius: 2rem;
  object-fit: contain;
}

.ability-text p {
  font-size: 1.333rem;
  text-align: justify;
}

/* Sekce herních informací */
.gamesection {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gamesection p {
  font-size: 1.333rem;
  text-align: justify;
}

/* Kontakt sekce v footeru */
.contactsection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contact-container {
  display: flex;
  justify-content: space-around;
  font: var(--size3);
  width: 100%;
}

/* Responzivita */
@media screen and (max-width: 1500px) {
  .contact-container {
    flex-direction: column;
  }
}

@media screen and (max-width: 1050px) {

  header,
  .navbutton {
    display: none;
  }
}

@media screen and (max-width: 700px) {
  .section h1 {
    font: var(--size3);
  }

  .proffesion-details {
    padding: 0;
  }
}