/* === GLOBAL === */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* === HEADER === */
header {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 420px 0;
    background-image: url('img/civicgut.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* === NAVIGATION === */
nav {
    background-color: #444;
    text-align: center;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.5s ease;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #666;
}

/* === CONTAINER === */
.container {
    width: 80%;
    margin: 20px auto;
}

/* === GENERATION BOX === */
.generation {
    display: flex;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.generation img {
    width: 250px;
    border-right: 2px solid #ddd;
    object-fit: cover;
}

.description {
    padding: 20px;
    flex: 1;
}

.description h2 {
    margin-top: 0;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* === GENEZA === */
#geneza {
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden {
    display: none;
}

.show-geneza {
    display: block;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* === DARK MODE === */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode nav {
    background-color: rgba(34, 34, 34, 0.8);
    backdrop-filter: blur(4px);
}

.dark-mode nav a {
    color: #ddd;
}

.dark-mode nav a:hover {
    background-color: rgba(51, 51, 51, 0.6);
}

.dark-mode .generation,
.dark-mode #geneza {
    background: rgba(30, 30, 30, 0.7);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* === DARK MODE TOGGLE === */
.toggle-wrapper {
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
}

.switch {
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #888;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.switch::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

#darkToggle {
    display: none;
}

#darkToggle:checked + .switch {
    background-color: #ddae15;
}

#darkToggle:checked + .switch::after {
    transform: translateX(20px);
}

@media (max-width: 769px) {
    .generation {
      flex-direction: column;
    }
  
    .generation img {
      width: 100%;
      border-right: none;
      border-bottom: 2px solid #ddd;
    }
  
    .description {
      padding: 15px;
    }
  }


/* te rozwijaniue */

/* === DROPDOWN === */
.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown > a {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #444;
    min-width: 160px;
    z-index: 1;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 6px;
    overflow: hidden;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #666;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Dark mode compatibility */
body.dark-mode .dropdown-content {
    background-color: rgba(34, 34, 34, 0.9);
}

body.dark-mode .dropdown-content a:hover {
    background-color: rgba(51, 51, 51, 0.6);
}
