:root {
  --bg-color: #fffdf7;
  --text-color: #1a1a1a;
  --primary-color: #d4a017;
  --accent-color: #f5e6b3;
  --card-bg: #ffffff;
  --nav-color: #f2c744;
  --button-hover: #b69000;
  --footer-bg: #333;
  --footer-text: #fff;
}

body.dark-mode {
  --bg-color: #1e1e1e;
  --text-color: #f0f0f0;
  --primary-color: #b49000;
  --accent-color: #2c2c2c;
  --card-bg: #2a2a2a;
  --nav-color: #3f3f3f;
  --button-hover: #cfa700;
  --footer-bg: #111;
  --footer-text: #ccc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

header {
  background: var(--primary-color);
  text-align: center;
  padding: 1rem 0;
  position: relative;
}

#logoButton {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
}

#logoButton img {
  height: 150px;
  width: auto;
  display: block;
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.switch {
  width: 70px;
  height: 34px;
  background: #575757;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  position: relative;
  cursor: pointer;
}

.switch .icon {
  font-size: 16px;
  z-index: 2;
}

.switch .slider {
  position: absolute;
  height: 28px;
  width: 28px;
  top: 3px;
  left: 3px;
  background: var(--primary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1;
}

.switch.dark .slider {
  transform: translateX(36px);
}

/* Cursor */


/* Navigace */
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: var(--button-hover);
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
  white-space: nowrap;
  font-size: 1rem;
}

nav a:hover {
  opacity: 0.8;
}

.highlight-bar {
  background: #fceab7;
  height: 6px;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hlavní obsah */
main {
  flex-grow: 1;
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

/* Karusel */
.carousel {
  position: relative;
  perspective: 1600px;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.carousel h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.carousel-images {
  position: relative;
  height: 450px;
  width: 100%;
}

.carousel-images img {
  position: absolute;
  width: 640px;
  height: 450px;
  top: 0;
  left: calc(50% - 320px);
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Ovládací tlačítka */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.control-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: var(--primary-color);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: var(--button-hover);
}

.control-btn img {
  max-width: 24px;
  max-height: 24px;
  display: block;
  pointer-events: none;
}

/* Patička */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

/* Mobilní zařízení */
@media (max-width: 700px) {
  .carousel {
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .carousel-images {
    height: auto !important;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    display: flex;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: none !important;

    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-anchor: none;
    padding-left: 8px;
    /* padding-right bude nastavováno JS podle počtu obrázků */
  }

  .carousel-images::-webkit-scrollbar {
    display: none;
  }

  .carousel-images img {
    position: static !important;
    flex-shrink: 0;
    width: 75vw;
    max-width: 260px;
    height: auto !important;
    margin-right: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    scroll-snap-align: start;
    user-select: none;
    display: block;
  }

  .carousel-controls {
    display: none;
  }

  nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

.facebook-link img {
  height: 24px;          /* výška ikony */
  width: auto;           /* zachování poměru stran */
  vertical-align: middle; /* vertikální zarovnání s textem */
  transition: opacity 0.3s ease;
}

.facebook-link:hover img {
  opacity: 0.7;          /* efekt při najetí myší */
  cursor: pointer;
}
