body {
    font-family: Arial, sans-serif;
    background-color: rgba(52,53,65,255);
    margin: 0;
    padding: 0;
}

.quiz-container {
    background-color: rgba(0,0,0,255);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin: 20px;
    max-width: 500px;
    margin: 40px auto;
    color: white;
    margin-top: 140px;
    margin-bottom: 250px;
}

h1 {
    color: white;
    margin-bottom: 20px;
}

.question {
    display: none; /* Hide all questions initially */
    margin-bottom: 20px;
}

.question.active {
    display: block; /* Show the active question */
}

button {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 15px;
    font-size: 18px;
    color: white;
    background-color: rgba(122, 168, 155, 255);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
    position: relative; /* Needed for tooltip positioning */
}

button:hover {
    background-color: rgba(92, 138, 125, 255);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.tooltip {
    display: none;
    position: absolute;
    left: 100%; /* Tooltip will appear to the right of the button */
    top: 50%;
    transform: translate(10px, -50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 10;
}

button:hover .tooltip {
    display: block;
}

.hidden {
    display: none;
}

.results-container {
    /*display: none; /* Initially hide the results container */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(52, 53, 65, 0.8); /* Průhledné pozadí */
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.image-hover-effect:hover {
    filter: brightness(120%);
    cursor: pointer;
}

footer {
    background-color: #333;
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px; /* Increased padding for larger navbar height */
    box-sizing: border-box; /* Ensures padding is included in the total width and height */
    z-index: 1000;
    color: white;
}

.navbar {
    background-color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px; /* Increased padding for larger navbar height */
    box-sizing: border-box; /* Ensures padding is included in the total width and height */
    z-index: 1000;
    color: white;
}

.navbar h1 {
    color: white;
}

.navbar a {
    color: white;
    padding: 14px 20px; /* Increased padding for links for better visibility */
    text-decoration: none;
    white-space: nowrap; /* Prevents the text from wrapping */
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

.video-container2 {
    top: 100px;
    position: relative;
    width: 840px; /* šířka videa */
    height: 480x; /* výška videa */
    margin: 50px auto 0; /* níže o 50px, doprostřed */
    color: white;
}

video {
    width: 100%;
    height: 100%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#nazev img {
    vertical-align: middle;
}
ul#answers {
    list-style-type: none; /* Odstraní tečky */
    padding: 0; /* Odstraní vnitřní odsazení */
}

ul#answers li {
    margin-bottom: 10px; /* Přidá mezery mezi tlačítky */
}
.special-button {
    background: linear-gradient(45deg, #6a1b9a, #283593); /* Fialová a modrá barva */
    color: white;
    border: 2px solid #6a1b9a;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.4); /* Stín odpovídající fialové barvě */
    transition: all 0.3s ease;
}

.special-button:hover {
    background: linear-gradient(45deg, #283593, #6a1b9a); /* Opačný přechod při hoveru */
    box-shadow: 0 6px 20px rgba(106, 27, 154, 0.6); /* Intenzivnější stín při hoveru */
}
#explanation {
    font-size: 14px;
    color: #aaa;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

@media (max-width: 800px) {
  .content-container {
    flex-direction: column;
  }
  .video-container2, .quiz-container {
    max-width: 100%;
  }
}
.content-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;  /* Adds space between the video and quiz containers */
  }
  
  .video-container2 {
    flex: 1;
    max-width: 45%;  /* Adjust based on preference */
  }
  
  .quiz-container {
    flex: 1;
    max-width: 25%;  /* Adjust based on preference */
  }