body {
  margin: 0;
  overflow-x: hidden;
}

header {
  background-image: url('/res/background/games-main.jpg');
  margin-left: 280px;
  margin-top: 0px;
  margin-bottom: 0px;
  margin-right: 0px;
  padding: 30px;
  flex: 1;
}

h1 {
  font-size: 99px;
  font-family: 'Georgia', serif;
  font-weight: bold;
  text-align: center;
  color:rgb(215, 55, 55);
  margin-top: 20px;
  margin-bottom: 10px;
}

h2 {
  font-size: 40px;
  font-family: 'Times New Roman', Times, serif;
  font-weight: bolder;
  text-align: center;
  color:rgb(255, 0, 0);
  margin-top: 20px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.sidebar {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: url('/res/background/games-main.jpg') no-repeat center center;
  background-size: cover;
  padding: 20px;
  box-sizing: border-box;
  border-right: 0px solid #ccc;
  text-align: center;
  overflow-y: auto;
  z-index: 1000;
}

.logo {
  display: block;
  width: 100px;
  margin: 0 auto 20px;
}

.brand {
  display: inline-block;
  font-family: 'Snell Roundhand', 'Great Vibes', cursive;
  background: rgb(50, 50, 50);
  color: white;
  padding: 5px 15px;
  margin: 0 auto 40px;
  border-radius: 2px;
  font-size: 35px;
  font-weight: bold;
}

.menu a {
  display: block;
  text-decoration: none;
  color: silver;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
}

.dropdown {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.dropdown > a {
  position: relative;
  left: 0px;
}

.arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.3s ease;
  pointer-events: none;
  font-size: 20px;
  font-weight: bold;
  user-select: none;
}

.dropdown.open .arrow {
  transform: translateY(-50%) rotate(180deg);
}

.submenu {
  display: none;
  flex-direction: column;
  margin-left: 15px;
  transition: all 0.3s ease;
}

.dropdown.open .submenu {
  display: flex;
}

.submenu a {
  display: block;
  padding-left: 0px;
  margin-bottom: 5px;
  margin-top: 10px;
  font-size: 15px;
  text-align: center;
  color: silver;

}

.menu-toggle {
  top: 15px;
  background: none;
  z-index: 1001;
  display: none;
  color: white;
}

a {
    text-decoration: none;
    color: whitesmoke;
}

.categories {
    text-align: center;
    color: aliceblue;
    display: flex;
    gap: 20px; /* mezera mezi tlačítky */
    justify-content: center; /* vycentrování */
    margin: 30px 0;
}

.category-button {
    text-decoration: none; /* odstraní podtržení odkazu */
    padding: 12px 25px; /* velikost tlačítka */
    background-color: #ff6600; /* barva tlačítka */
    color: white; /* barva textu */
    font-weight: bold;
    border-radius: 8px; /* zaoblené rohy */
    transition: all 0.3s ease; /* plynulý efekt při hover */
}

.category-button:hover {
    background-color: #e65c00; /* tmavší při najetí */
    transform: scale(1.05); /* mírně zvětšit */
}


@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 250px;
    height: 100vh;
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.95);
    transition: left 0.3s ease;
    z-index: 1000;
  }

.sidebar.open {
    left: 0;
  }

.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:active {
  background: transparent;
  color: #ffffff;
  outline: none;
  box-shadow: none;
  border: none;
}

.brand{
padding-left: 50px;
}

  .menu-toggle {
    display: block !important;
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;   /* 🔥 KLÍČOVÉ */
    right: auto !important;       /* 🔥 KLÍČOVÉ */

    font-size: 24px;
    background: none;
    border: none;
    color: #ffffff;
    z-index: 2000;
  }
}

@media (max-width: 768px) {

  /* Sidebar pro mobil */
  .sidebar {
    left: -300px !important;
    width: 250px !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    transition: left 0.3s ease !important;
  }

  .sidebar.open {
    left: 0 !important;
  }

  /* Hamburger menu */
  .menu-toggle {
    display: block !important;
    font-size: 24px !important;
    top: 10px !important;
    left: 10px !important;
  }

  /* Brand menší padding */
  .brand {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

@media (max-width: 768px) {
  body .menu-toggle {
    position: fixed !important;
    top: 8px !important;
    left: 3px !important;

    margin: 0 !important;
    padding: 8px 10px !important;

    transform: none !important;
    right: auto !important;

    width: auto !important;
    text-align: left !important;

    z-index: 9999 !important;
  }
}
