/* Loader styles (presýpacie hodiny) */
.loader {
    width: 70px;
    height: 40px;
    outline: 2px solid #fff;
    background:
      radial-gradient(farthest-side, red 90%, #0000) 0 0/8px 8px no-repeat,
      radial-gradient(farthest-side, #000 90%, #0000) 0 0/8px 8px no-repeat,
      linear-gradient(#fff 0 0) 50%/10px 100% no-repeat,
      conic-gradient(from 90deg at 10px 10px, #0000 90deg, #fff 0),
      conic-gradient(from -90deg at 60px 30px, #0000 90deg, #fff 0);
    animation: l9 2s infinite;
    opacity: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 1s ease-out; /* Fade-out efekt */
  }
  
  @keyframes l9 {
    0% { background-position: 50% 100%, 0 0, 50%; }
    12.5% { background-position: 0 100%, 50% 0, 50%; }
    25% { background-position: 0 0, 50% 100%, 50%; }
    37.5% { background-position: 50% 0, 100% 100%, 50%; }
    50% { background-position: 50% 100%, 100% 0, 50%; }
    62.5% { background-position: 100% 100%, 50% 0, 50%; }
    75% { background-position: 100% 0, 50% 100%, 50%; }
    82.5% { background-position: 50% 0, 0 100%, 50%; }
    100% { background-position: 50% 100%, 0 0, 50%; }
  }
  
  /* Skrytie loadera po načítaní obsahu */
  #content {
    display: none;
  }
  
  body {
    font-family: 'Share Tech Mono', monospace;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #fff;
    transition: all 0.5s ease;
  }
  
  /* Svetlý režim */
  body.light {
    background-color: #f0f0f0;
    color: #000;
  }
  
  body.light #intro-header {
    background: linear-gradient(#fff 90%, #f0f0f0);
  }
  
  body.light #intro-text {
    color: #ff4500;
  }
  
  body.light #exercise-selector ul li a {
    color: #000;
    background-color: #f9f9f9;
  }
  
  body.light #exercise-selector ul li a:hover {
    background-color: #ddd;
  }
  
  body.light #exercise-content {
    background-color: #f9f9f9;
  }
  
  /* Svetlý režim pre cvičenia */
  body.light #exercise-selector {
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
  }
  
  body.light #exercise-selector ul li a {
    color: #000;
  }
  
  body.light #exercise-selector ul li a:hover {
    background-color: #ddd;
  }

  body.light #exercise-selector ul li a.selected {
    background-color: #ff4500;
  }
  
  body.light #exercise-content {
    background-color: #f9f9f9;
  }
  
  body.light #exercise-content h2 {
    color: #ff4500;
  }
  
  body.light #exercise-details {
    background-color: #f1f1f1;
  }
  
  /* Tmavý režim pre cvičenia */
  body.dark #exercise-selector {
    background: linear-gradient(to bottom, #212121, #333);
  }
  
  body.dark #exercise-selector ul li a {
    color: white;
  }
  
  body.dark #exercise-selector ul li a:hover {
    background-color: #444;
  }
  
  body.dark #exercise-content {
    background-color: #1f1f1f;
  }
  
  body.dark #exercise-content h2 {
    color: #ff4500;
  }
  
  body.dark #exercise-details {
    background-color: #222;
  }
  
  /* Prepínač témy - tlačidlo ostáva vždy v pravom hornom rohu */
  .theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
  }
  
  .theme-switcher img {
    width: 32px;
    height: 32px;
  }
  
  /* Úvodná stránka */
  #intro-header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(#000 90%, #121212);
  }
  
  #intro-text {
    font-size: 2rem;
    color: #ff4500;
    transition: transform 1s ease;
  }
  
  /* Layout pre cvičenia */
  #main-content {
    display: flex;
    flex-direction: row;
    margin-top: 80px;
    justify-content: space-between;
  }
  
  /* Panel pre zoznam cvičení (desktop) */
  #exercise-selector {
    width: 30%;
    padding: 20px;
    background: linear-gradient(to bottom, #212121, #333);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }
  
  #exercise-selector ul {
    list-style-type: none;
    padding: 0;
  }
  
  #exercise-selector ul li {
    margin-bottom: 10px;
  }
  
  #exercise-selector ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
    background-color: #222;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
  }
  
  #exercise-selector ul li a:hover {
    background-color: #444;
    transform: scale(1.05);
  }
  
  #exercise-selector ul li a.selected {
    background-color: #ff4500;
    color: #fff;
    padding: 12px 10px;
    box-shadow: 0 4px 8px rgba(255, 69, 0, 0.7);
  }
  
  /* Panel pre obsah cvičenia */
  #exercise-content {
    width: 70%;
    padding: 20px;
    background-color: #1f1f1f;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }
  
  #exercise-content h2 {
    color: #ff4500;
  }
  
  #exercise-details {
    background-color: #222;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }
  
  /* Základný štýl pre odkazy */
  a {
    color: #ff4500;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;
  }
  
  a:hover {
    color: #00aaff;
    transform: scale(1.1);
  }
  
  a:focus {
    outline: none;
  }
  
  a:focus-visible {
    outline: 2px solid #ff4500;
  }
  
  /* Úprava pre mobilné zariadenia */
  @media (max-width: 768px) {
    /* Skrytie desktopového selectoru */
    #exercise-selector {
      display: none;
    }
  
    /* Obsah cvičenia zaberá 100% šírku */
    #exercise-content {
      width: 100%;
      margin: 0;
      padding: 10px;
    }
  }
  .arrow {
    position: absolute;
    bottom: 20px;
    cursor: pointer;
    animation: bounce 1.5s infinite;
    z-index: 99;
}
#sipka {
  width: 75px !important;
  
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

  .hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
  }
  
  .hamburger-menu .bar {
    height: 4px;
    width: 100%;
    background-color: #fff; /* Predvolená farba (tmavý režim) */
    border-radius: 4px;
  }
  
  body.light .hamburger-menu .bar {
    background-color: #000; /* Svetlý režim */
  }
  
  /* Slider menu z ľavej strany */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #121212;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
    padding-top: 60px; /* Odstup pod hamburger tlačidlo */
  }
  
  .mobile-menu.active {
    transform: translateX(0);
  }
  
  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-menu ul li {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
  }
  
  .mobile-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
  }
  
  body.light .mobile-menu {
    background-color: #f0f0f0;
  }
  
  body.light .mobile-menu ul li a {
    color: #000;
  }
  
  body.light .mobile-menu ul li a:hover {
    color: #ff4500;
  }
  
  /* Slider menu a hamburger menu sa zobrazujú len na mobilných zariadeniach */
  @media (min-width: 769px) {
    .mobile-menu {
      display: none;
    }
    .hamburger-menu {
      display: none;
    }
  }
  
/* Trieda pre responzívne obrázky */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  border: solid 1px #ff440000;

}

/* Container for ZIP verification elements */
#zip-verification-container {
  margin-top: 20px;
  padding: 20px;
  background-color: #222; /* Dark mode background */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  width: auto;
}

body.light #zip-verification-container {
  background-color: #f9f9f9; /* Light mode background */
}

/* Dropdown (assignment selector) */
#assignment-selector {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  font-family: 'Share Tech Mono', monospace;
  color: #fff;
  background-color: #333;
  border: 2px solid #444;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}

body.light #assignment-selector {
  color: #000;
  background-color: #f0f0f0;
  border-color: #ddd;
}

#assignment-selector:hover {
  border-color: #ff4500;
}

#assignment-selector:focus {
  border-color: #ff4500;
  box-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
}

/* File input */
#zip-file-input {
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  font-size: 1rem;
  font-family: 'Share Tech Mono', monospace;
  color: #fff;
  background-color: #333;
  border: 2px solid #444;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
  box-sizing: border-box; /* Add this line */
}

body.light #zip-file-input {
  color: #000;
  background-color: #f0f0f0;
  border-color: #ddd;
}

#zip-file-input:hover {
  border-color: #ff4500;
}

#zip-file-input:focus {
  border-color: #ff4500;
  box-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
}

/* Verify button */
#verify-button {
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  font-size: 1rem;
  font-family: 'Share Tech Mono', monospace;
  color: #fff;
  background-color: #ff4500;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

body.light #verify-button {
  color: #fff;
  background-color: #ff4500;
}

#verify-button:hover {
  background-color: #e63900;
  transform: scale(1.05);
}

#verify-button:active {
  background-color: #cc3300;
  transform: scale(0.95);
}

/* File input custom styling */
#zip-file-input::file-selector-button {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-family: 'Share Tech Mono', monospace;
  color: #fff;
  background-color: #444;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

body.light #zip-file-input::file-selector-button {
  color: #000;
  background-color: #ddd;
}

#zip-file-input::file-selector-button:hover {
  background-color: #555;
}

body.light #zip-file-input::file-selector-button:hover {
  background-color: #ccc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #zip-verification-container {
    padding: 15px;
  }

  #assignment-selector,
  #zip-file-input,
  #verify-button {
    font-size: 0.9rem;
    padding: 8px;
  }
}

/* CSS for ZIP verification container */
#zip-verification-container {
  display: none; /* Hidden by default */
}

#zip-verification-container.visible {
  display: block; /* Show when the "visible" class is added */
}