@charset "UTF-8";
:root,
.mode-light {
  --th-header-color: #f1f1f1; 
  --nth-child-color: #f7f7f7;
  --highlight-bg: #90ee90;
  --holiday-bg: #ff3535;
  --today-bg: #3993ff;
  --font-color: #333333;
  --font-color-muted: rgba(51, 51, 51, 0.87);
  --border-color: rgba(0, 0, 0, 0.1);
  --accent-color: #007BFF; 
  --button-color: rgba(0, 0, 0, 0.6);
  --button-reset-color: rgba(187, 0, 0, 0.8);
  --button-hov-color: rgba(47, 79, 79, 0.8);
  --button-reset-hov-color: rgba(255, 0, 0, 0.8);
  --font-mod-color: #333333;
  --weekend-bg: #f0f0f0;
  --today-font-color: #2c2c2c;
  --holiday-bg-hover: rgba(252, 0, 0, 0.8);
  --event-list-bg: #f9f9f9;
  --chart-background: #e0e0e0;
  --text-background: #f0f0f0;
  --text-bar-color: #000000;
  --bg-color-weather: #f8f9f5;
  --text-color-weather: #333333;
  --border-color-weather: #cccccc;
  --alert-warning-color-weather: #d4a017;
  --alert-severe-color-weather: #a52a2a;
  --font-family-main-weather: serif;
  --highlight-color-weather: #e0e0e0;
  --hover-color-weather: #d9d9d9;
}  

.dark-active {
  color-scheme: dark;
  --th-header-color: #262626; 
  --nth-child-color: #181818;
  --highlight-bg: #557c55;
  --holiday-bg: #ff3535;
  --today-bg: #3993ff;
  --font-color: #f0f0f0;
  --font-h-color:  #f2f2f2;
  --font-color-muted: rgba(240, 240, 240, 0.87);
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-color: #3C91E6;
  --button-color: rgba(105, 105, 105, 0.8);
  --button-hov-color: rgba(169, 169, 169, 0.8);
  --font-mod-color: #595959;
  --weekend-bg:  #5d5d5d;
  --today-font-color: #fffefe;
  --holiday-bg-hover: rgba(252, 0, 0, 0.8);
  --event-list-bg: #222222;
  --chart-background: #333333;
  --text-background: #050505;
  --text-bar-color: #ffffff;
  --bg-color-weather: #2d2d2d;
  --text-color-weather: #e0e0e0;
  --border-color-weather: #555555;
  --alert-warning-color-weather: #ffb107;
  --alert-severe-color-weather: #ff4444;
   --font-family-main-weather: serif;
  --highlight-color-weather: #444444;
  --hover-color-weather: #555555;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  display: block;
  margin: 20px auto;
}

@media (max-width: 768px) {
  .table-container {
    padding: 0px;  
  }

  .scrollable-table {
    overflow-x: auto;
    display: block;
  }


  .scrollable-table table {
    width: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
}

.article-body {
  display: inline-block;
  width: 100%;
}

.scrollable-table {
  width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  max-height: 900px;  /* Nastavite maksimalno višino tabele */
  position: relative;  /* Potrebno za sticky */
}


.scrollable-table table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.scrollable-table th, 
.scrollable-table td {
  padding: 10px;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.scrollable-table thead th {
  position: sticky !important;
  top: 0;
  background-color: var(--th-header-color);  /* Ozadje glave */
  border-bottom: 2px solid var(--border-color);
  z-index: 2;
}

/* Dodaten stil za boljšo berljivost */
.scrollable-table tbody tr:nth-child(even) {
  background-color: var(--nth-child-color); 
}

.month-table {
    width: 100%;
    border-collapse: collapse;  /* Zbriše morebitne robove med celicami */
}

@media only screen and (max-width: 768px) {
    /* Dodatna prilagoditev za majhne zaslone */
    .month-table {
        width: auto;  /* Omogoči, da tabela raste glede na vsebino */
    }
}

thead th {
  position: sticky !important;
  top: 0;
  background-color: var(--th-header-color);  /* Ozadje glave */
  z-index: 2;  /* Prepreči prekrivanje drugih elementov */
}

table {
  width: 100%; /* Prilagodljivo širini nadrejene vsebine */
  border-collapse: collapse;
  font-size: 16px;
  background: var(--t4-main-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

th, td {
  padding: 15px;
  text-align: center;
  border: 1px solid var(--border-color);
  color:  var(--font-color-muted);
  transition: background-color 0.3s ease, color 0.3s ease;
  word-wrap: break-word;
  transition: background-color 0.3s ease, color 0.3s ease;
}

th {
  background-color: var(--th-header-color);  /* Ozadje glave */
  font-size: 1.0em;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--border-color);
}

  th:hover {
  background-color: rgba(0, 0, 0, 0.2); 
  cursor: pointer;
} 

.highlight {
  background-color: var(--highlight-bg);
  font-weight: bold;
  color: var(--font-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Prilagoditve za manjše zaslone */
@media (max-width: 768px) {
  table {
    font-size: 14px;
  }
  .table-container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  table {
    font-size: 12px;
  }
  th, td {
    padding: 10px;
  }
  .table-container {
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
}

.litr-modul {
    position: relative; 
    left: auto;
    max-width: 400px;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Blago senčenje */
}

/* Osnovni slog za kontejner modulov */
.modules-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    margin-top: 100px;
}

/* Slog za posamezne module */
.moj_modul {
    position: relative;
    flex: 1 1 calc(30% - 20px); /* Dinamična širina, 3 moduli v vrsti */
    height: auto;
    min-height: 300px; /* Za minimalno višino */
    margin: 10px; /* Razmik med moduli */
    border: 2px solid #007BFF; /* Barva obrobe */
    border-radius: 8px; /* Zaobljeni robovi */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Blago senčenje */
    overflow: visible; /* Nastavimo na visible, da se vsebina ne skrije */
    font: small-caps bold 14px/1.5 "Helvetica Neue", Arial, sans-serif;
}

/* Prilagoditev za mobilne naprave */
@media (max-width: 768px) {
    .moj_modul {
        flex: 1 1 calc(100% - 20px); /* En modul na vrstico na manjših napravah */
    }
}

/* Slog za posamezne module */
.moj_modul_a {
    position: relative;
    flex: 1 1 calc(50% - 20px); /* Dinamična širina, 2 modula v vrsti */
    height: auto;
    max-width: 48.5%;
    min-height: 300px; /* Za minimalno višino */
    margin: 10px; /* Razmik med moduli */
    border: 2px solid #007BFF; /* Barva obrobe */
    border-radius: 8px; /* Zaobljeni robovi */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Blago senčenje */
    overflow: visible; /* Nastavimo na visible, da se vsebina ne skrije */
    font: small-caps bold 14px/1.5 "Helvetica Neue", Arial, sans-serif;
}

/* Prilagoditev za mobilne naprave */
@media (max-width: 768px) {
    .moj_modul_a {
        flex: 1 1 calc(100% - 20px); /* En modul na vrstico na manjših napravah */
        max-width: 100%;
    }
}

body {
    position: relative; /* Dodano za gotovost */
}

.text-popup-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80vw; /* Privzeto za večje zaslone */
    max-height: 80vh;
    padding: 20px;
    background: rgba(255, 255, 255, 1.0);
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
    font: message-box !important;
    line-height: 1.5;
    z-index: 9999;
    text-align: left !important;
    color: #000000;
    overflow: auto; /* Omogočen drsnik za presežno vsebino */
}

/* Prilagoditve za manjše zaslone */
@media (max-width: 768px) {
    .text-popup-box {
        width: 90%;
        max-width: 90vw; /* Skoraj celotna širina zaslona */
        max-height: 70vh; /* Fiksna višina, ki ne preseže 70% višine zaslona */
        padding: 15px; /* Manjši padding */
        font-size: 14px; /* Prilagodljiva velikost pisave */
        top: 15%; /* Rahlo navzgor od središča */
        transform: translate(-50%, 0); /* Centriranje vodoravno */
    }
}

@media (max-width: 480px) {
    .text-popup-box {
        width: 90%;
        max-width: 95vw; /* Širina blizu celotnega zaslona */
        max-height: 65vh; /* Fiksna višina za optimalen prikaz */
        padding: 10px; /* Manjši padding za boljši izgled */
        font-size: 12px; /* Velikost pisave za manjše zaslone */
        border-radius: 4px; /* Zaobljeni robovi so ohranjeni */
        top: 10%; /* Pomik rahlo navzgor */
        transform: translate(-50%, 0); /* Vodoravno centriranje */
    }
}


#closePopupBtn, #closePopupBtn1, #closePopupBtn3, #closePopupBtns, #closePopupBtnss, #openPopupBtn4 {
    margin-left: 50%; 
    transform: translateX(-50%); 
    max-width: 100%; 
    padding: 10px;
    box-sizing: border-box; 
}

button {
  padding: 7px;
  background-color: var(--button-color);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  margin: 3px;
}

button:hover {
  background-color: var(--button-hov-color);
}

 #timeShiftNotification {
        font-size: 0.90em;  /* Nastavi velikost pisave na 85% privzete velikosti */
        font-family: Arial, Helvetica, sans-serif;
        font-style: normal;
        font-variant: normal;
        font-weight: normal;
    }
    
     #liveTime {
        font-size: 1.10em;  /* Nastavi velikost pisave na 85% privzete velikosti */}

.nav-buttons {
  margin-bottom: 10px;
}

.nav-buttons {
  display: flex; /* Uporaba Flexbox tudi za gumbe */
  justify-content: center; /* Horizontalno poravnani gumbi */
  gap: 10px; /* Razmik med gumbi */
}

#currentMonth {
  display: flex; /* Uporaba Flexbox tudi za gumbe */
  justify-content: center; /* Horizontalno poravnani gumbi */
}

.sun-container {
  position: relative;
    border: 1px solid var(--border-color);
  max-width: 450px;
  height: 30px;
  margin: auto;

}

.sun {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: yellow !important;
  top: calc(50% - 10px);
  transition: left 1s ease-in-out;

}
 

.sunrise, .sunset {
  position: absolute;
  top: calc(50% - 5px);
  font-size: 14px;
  font-weight: bold;
  margin-left: 5px;
  margin-right: 5px;
  background: none !important;

}

.sunrise {
  left: 0;
    background: none !important;

}

.sunset {
  right: 0;
    background: none !important;

}
.centered {
  text-align: center; /* Središčenje besedila */
 
}

 .container-a {
      max-width: 400px;
      margin: 0 auto;
      padding: 20px;
      border: 1px solid #ccc;
      border-radius: 5px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    label {
      display: block;
      margin-bottom: 5px;
      font-weight: bold;
    }
    input[type="date"] {
      width: 150px;
      padding: 8px;
      margin-bottom: 10px;
      border: 1px solid #ccc;
      border-radius: 3px;
    }
    
#t4-section-2 {
   padding: 0px 0 100px 0;
}
.col-xl, .col-xl-auto, .col-xl-12, .col-xl-11, .col-xl-10, .col-xl-9, .col-xl-8, .col-xl-7, .col-xl-6, .col-xl-5, .col-xl-4, .col-xl-3, .col-xl-2, .col-xl-1, .col-lg, .col-lg-auto, .col-lg-12, .col-lg-11, .col-lg-10, .col-lg-9, .col-lg-8, .col-lg-7, .col-lg-6, .col-lg-5, .col-lg-4, .col-lg-3, .col-lg-2, .col-lg-1, .col-md, .col-md-auto, .col-md-12, .col-md-11, .col-md-10, .col-md-9, .col-md-8, .col-md-7, .col-md-6, .col-md-5, .col-md-4, .col-md-3, .col-md-2, .col-md-1, .col-sm, .col-sm-auto, .col-sm-12, .col-sm-11, .col-sm-10, .col-sm-9, .col-sm-8, .col-sm-7, .col-sm-6, .col-sm-5, .col-sm-4, .col-sm-3, .col-sm-2, .col-sm-1, .col, .col-auto, .col-12, .col-11, .col-10, .col-9, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3, .col-2, .col-1 {
  position: relative;
  width: 100%;
  padding-right: 1px;
  padding-left: 1px;
}

@media screen and (max-width: 600px) {
    .centered-content-a table {
        font-size: 14px;
        line-height: 1.4;
    }
}
@media screen and (max-width: 600px) {
    .centered-content-a table tr {
        border-bottom: 1px solid #ccc;
    }
}
@media screen and (max-width: 600px) {
    .centered-content-a table td, .centered-content-a table th {
        padding: 8px;
    }
}
@media screen and (max-width: 600px) {
    canvas {
        margin: 20px auto;
        width: 100%; /* Prilagoditev širine */
        height: auto; /* Prilagajanje višine, če je potrebno */
    }
}
@media screen and (max-width: 600px) {
    canvas {
        font-size: 20px; /* Manjša velikost pisave */
    }
}
@media screen and (max-width: 600px) {
    canvas {
        background-size: contain; /* ali '100% 100%', odvisno od potreb */
    }
}
/* Stili za pokončno orientacijo */
@media screen and (orientation: portrait) {
    canvas {
        margin: 20px auto;
        width: 100%;
        height: auto;
    }
}

/* Stili za vodoravno orientacijo */
@media screen and (orientation: landscape) {
    canvas {
        margin: 20px auto;
      /*  width: 100%;  Ali druga primerna vrednost */
        height: auto; /* Prilagoditev višine za ohranjanje razmerja */
    }
}

  #offcanvas-menu {
    display: flex;

}
#offcanvas-menu .site-name {
margin-left: 25px; /* Dodajte nekaj prostora med ikono in tekstom */
 margin-top: 14px !important;
color: #ccc !important;   
}

@media (min-width: 990px) {
    #offcanvas-menu .site-name {
        display: none;
    }
}

#christmas-message { 
    color:white !important;
    font-weight: bold;
    background: red !important;
    padding-top: 0px;
    padding-left: 10px;
}
#new-year-message { 
    color:white !important;
    font-weight: bold;
    background: red !important;
    padding-top: 0px;
    padding-left: 10px;
}


/* Prilagodljivost za slike */
.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Prilagodljivost za videoposnetke */
.responsive-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 0 auto;
}
.txt-apod {
    text-align: justify;
     width: 90%;
}

table tr.trenutni-praznik td {
        background: red !important; 
        font-weight: bold; /* Poudarek trenutnega praznika */
        color: black !important;
    }
    
    .lit-color {
  color: red !important;
}
.container-xxl { margin-top: 00px; }


.t4-footnav .t4-row > div, .t4-footnav .row > div {
    padding-left: 1rem; 
}

.t4-footnav .row > div {
  padding-top: 0rem !important;
  padding-bottom: 1rem !important;
}
.navbar-brand.logo-text .site-name {
 color: #747a78;
}

.gt_container-ex9ytg .gt_switcher .gt_selected {
  z-index: 1 !important;
}

.moduletable > h3, .moduletable > .h3 {
  color: var(--font-mod-color) !important;
}

.item-page {
    margin-top: 50px !important;
}
h1, h2, h3, h4, h5 {
    color: var(--font-h-color);
}
.error {
color: red;
}
/* Omeji širino spustnega polja na velikost zaslona */
#selectForm select {
    width: 100;
    max-width: 200px; /* Polje se raztegne največ na širino zaslona */
    white-space: pre-wrap; /* Prelomi dolge vrstice */
    word-break: break-word; /* Razbije dolge besede v nove vrstice */
    overflow-wrap: break-word; /* Za boljšo podporo v različnih brskalnikih */
}

/* Poskrbi, da bo dropdown meni prilagojen */
#selectForm option {
    white-space: pre-wrap; /* Prelomi dolge vrstice */
    word-wrap: break-word; /* Razbije zelo dolge besede */
    word-break: break-word; /* Razbije dolge besede v nove vrstice */
    overflow-wrap: break-word; /* Doda podporo za različne brskalnike */
}

/* Dodatne prilagoditve za manjše zaslone */
@media (max-width: 600px) {
    select {
        font-size: 14px; /* Manjša pisava za boljšo preglednost */
    }
}
.reset {
    padding: 7px;
  background-color: var(--button-reset-color) !important;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px
}
.reset:hover {
    background-color: var(--button-reset-hov-color) !important;
}
joomla-alert[type="danger"] {
 position: relative;
 z-index: 5;
}
.login-wrap {
    margin-top: 100px;
}

joomla-alert   {
 position: relative;
 z-index: 5;
}
input {
   padding: 8px;
  margin-top: 4px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;

}
canvas {
    background: url('/images/planets/starfield.png') repeat;
      background-size: cover;
      animation: starfield 200s linear infinite;
      display: block;
      margin: 0 auto;
      touch-action: none;
    }

    @keyframes starfield {
      0% { background-position: 0 0; }
      100% { background-position: -1000px 1000px; }
    }

    .p-controls {
      position: relative;
      top: 0px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 0, 0, 0.6);
      padding: 12px;
      border-radius: 10px;
      width: fit-content;
      margin-bottom: 10px;
    }

    .controls button {
      margin: 4px;
      padding: 6px 10px;
      font-size: 14px;
    }

    #speedDisplay {
      font-weight: bold;font-weight: bold;
    margin-top: 10px;
    color: white;
    background-color: #333;
    padding: 6px 12px;
    border-radius: 5px;
    display: inline-block;
    }
    
    #simDateDisplay {
      font-weight: bold;font-weight: bold;
    margin-top: 10px;
    color: white;
    background-color: #333;
    padding: 6px 12px;
    border-radius: 5px;
    display: inline-block;
    }
   
#statusIndicator {
    font-weight: bold;
    margin-top: 10px;
    color: white;
    background-color: #333;
    padding: 6px 12px;
    border-radius: 5px;
    display: inline-block;
}


@media (max-width: 768px) {
  canvas {
    width: avto !important;
    height: avto !important;
  }

  .controls {
    flex-wrap: wrap;
    font-size: 12px;
    padding: 8px;
  }

  .controls button {
    margin: 2px;
    padding: 4px 6px;
    font-size: 12px;
  }

  #statusIndicator {
    font-size: 14px;
    bottom: 10px;
  }
}
#rezultat {
  padding: 16px;
  margin-top: 20px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}
.rezultat-nizka { background-color: #f8d7da; color: #721c24; }
.rezultat-normalna { background-color: #d4edda; color: #155724; }
.rezultat-visoka { background-color: #fff3cd; color: #856404; }
.rezultat-debelost { background-color: #f5c6cb; color: #721c24; }

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#monthlyCalendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 0.9em;
}
.calendar-day {
  padding: 6px;
  text-align: center;
  min-height: 30px;
   border: 1px solid var(--border-color);
  color:  var(--font-color-muted);
  transition: background-color 0.3s ease, color 0.3s ease;
  word-wrap: break-word;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.calendar-header {
  font-weight: bold;
  background-color: var(--th-header-color);  /* Ozadje glave */
}
/* .calendar-day.today {
  border: 2px solid #007bff;
  background-color: var(--holiday-bg);
  font-weight: bold;
} */

.custom-checkbox {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 1em;
  user-select: none;
  display: inline-block;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-checkmark {
  position: absolute;
  left: 0;
  top: 2px;
  height: 18px;
  width: 18px;
  background-color: #eee;
  border-radius: 4px;
  border: 1px solid #ccc;
  transition: background-color 0.2s;
}

.custom-checkbox:hover .custom-checkmark {
  background-color: #dceaff;
}

.custom-checkbox input:checked ~ .custom-checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

.custom-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .custom-checkmark:after {
  display: block;
}

.custom-checkbox .custom-checkmark:after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.saturday {
  background-color: #e0f7fa; /* svetlo modra */
}

.sunday {
  background-color: #ffe0e0; /* svetlo rdeča/roza */
}

.today {
  background-color: var(--today-bg);
  font-weight: bold;
  color: var(--font-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.holiday {
  background-color: var(--holiday-bg);
  color: var(--font-color);
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.holiday:hover {
  background-color: var(--holiday-bg-hover);
  cursor: pointer;
} 

.special-day {
  background-color: #c3e6cb;
  color: #155724;
}
.weekend {
  background-color: var(--weekend-bg);
}
.today-full-moon {
  background-color:  #3594ff;
  font-weight: bold;
} 

.a-container {
   display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; 
}
.a-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: sans-serif;
  padding-top: 10px;
}

.a-controls label {
  font-weight: bold;
  white-space: nowrap;
}

#timeSlider {
  -webkit-appearance: none;
  width: 200px;
  height: 6px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  transition: background 0.3s ease-in-out;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}

#timeSlider:hover {
  background: #ccc;
}

#timeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #007BFF;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: -5px; 
}

#timeSlider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #007BFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

#timeSlider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #007BFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

#sliderValue {
  min-width: 60px;
  text-align: center;
  font-weight: bold;
  line-height: 1;
  position: relative;
  top: -1px;
}

  .slider-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  @media (max-width: 600px) {
    .slider-container {
      flex-direction: column;
      align-items: flex-start;
    }
  }

#solarSystem, #timeSlider {
  pointer-events: auto !important;
  touch-action: pinch-zoom;
}

#solarSystem {
  touch-action: none;
}
.zodiak-item {
    margin-bottom: 10px;
}
.zodiak-item img:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}
.zodiak-container {
    font-family: Arial, sans-serif;
    margin: 20px auto;
    position: relative;
}

.zodiak-item img {
    margin-right: 10px;
}

.zodiak-container .tooltip {
    position: absolute;
    background-color: rgba(238, 238, 238, 0.95);
    color: #000;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    z-index: 9999;
    max-width: 90vw;
    overflow-wrap: break-word;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    margin: 0 5px; /* Varnostna meja od robov */
}
.zodiak-container .tooltip.visible {
    opacity: 1;
    transform: scale(1);
}
.event-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
}
.event-card {
    background:  var(--event-list-bg);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-left: 4px solid #007bff;
}
.event-card h5 {
    margin: 0 0 10px;
    font-size: 1.1em;
}
.event-card p {
    margin: 0 0 10px;
    line-height: 1.5;
}
.event-form {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.event-form label {
    font-weight: bold;
}
.event-form input[type="number"],
.event-form select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 80px;
}
.event-form select {
    width: 120px;
}
.event-links {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 20px;
}
.event-links li {
    background: none;
    border: none;
    padding: 2px 0;
    margin: 0;
}
.event-links li::before {
    content: "•";
    color: #007bff;
    margin-right: 8px;
}
.event-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
}
.wiki-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('https://upload.wikimedia.org/wikipedia/en/8/80/Wikipedia-logo-v2.svg') no-repeat center;
    background-size: contain;
    margin-right: 5px;
}
form {
    margin-bottom: 20px;
}
form label {
    margin-right: 10px;
    font-weight: bold;
}
form input[type="date"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
@media (max-width: 600px) {
    .event-form {
        flex-direction: column;
        align-items: flex-start;
    }
    .event-form input[type="number"],
    .event-form select,
    .event-form button {
        width: 100%;
        max-width: 200px;
    }
    .event-form label {
        margin-bottom: 5px;
    }
}
.zastavica {
    margin-right: 5px;
}

body.site-logistics .sday-x canvas.canvas-chart {
    width: 95%;
    max-width: 300px;
    max-height: 45px;
    margin: 5px auto;
    background-color: var(--chart-background) !important;
    background-image: none !important;
    animation: none !important;
    color: var(--text-bar-color) !important;
}


#weatherInfo img {
  width: 40px;
  height: 40px;
}

#cityInput {
  width: 80%;
  padding: 8px;
 margin-bottom: auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
}

#errorMessage {
  color: #a52a2a;
  font-size: 1em;
  margin: 10px 0;
  display: none;
}

#cityTimeDate, #weatherInfo, #minutelyForecast, #hourlyForecast, #uvIndex, #weatherAlerts {
   margin-top: 5px;
  color: var(--text-color);
  display: flex;
}

.ui-autocomplete {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: var(--bg-color-weather);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
  font-family: var(--font-family-main);
  color: var(--text-color-weather);
}

.ui-menu-item:hover {
  background: var(--hover-color-weather);
}

.ui-state-active {
  background: var(--highlight-color-weather);
  color: var(--text-color-weather);
}

#weatherAlerts { color: var(--alert-warning-color-weather); }
#weatherAlerts { color: var(--alert-severe-color-weather); }

.holiday-info {
  font-family: var(--font-family-main);
  max-width: 600px;
  margin: 0 auto;
}

.holiday-info h3 {
  color: var(--text-color-weather);
}

.holiday-info hr {
  border-top: 1px solid var(--border-color-weather);
}

#dailyForecastTable,
#hourlyForecastTable {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-family-main, Arial, sans-serif);
  background: var(--bg-color-weather);
  color: var(--text-color-weather);
  box-sizing: border-box;
  display: block;
  white-space: nowrap; 
  overflow-x: auto; 
  overflow-y: auto; 
  touch-action: pan-x pan-y; 
  table-layout: fixed;
  max-height: 400px; 
}

#dailyForecastTable th,
#dailyForecastTable td,
#hourlyForecastTable th,
#hourlyForecastTable td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-color-weather);
  width: auto;
}

#dailyForecastTable th,
#hourlyForecastTable th {
  background: var(--bg-color-weather);
  cursor: pointer;
  position: sticky; 
  top: 0;
  z-index: 1;
}

#dailyForecastTable th:hover,
#hourlyForecastTable th:hover {
  background: var(--hover-color-weather);
}

#dailyForecastTable img,
#hourlyForecastTable img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

#hourlyForecastDialog .ui-dialog-content,
#dailyForecastDialog .ui-dialog-content {
  padding: 0;
  overflow: hidden; 
}

.ui-dialog {
  max-width: 90%;
  margin: 0 auto;
  box-sizing: border-box;
  background: var(--bg-color-weather);
}

.ui-dialog .ui-dialog-buttonpane {
  background: var(--bg-color-weather);
}

#dailyForecastDialog {
  background: var(--bg-color-weather);
  border: 1px solid var(--border-color-weather);
  border-radius: 10px;
  padding: 15px;
  font-family: var(--font-family-main-weather);
  color: var(--text-color-weather);
}

#dailyForecastDialog .ui-dialog-titlebar {
  background: var(--bg-color-weather);
  border-bottom: 1px solid var(--border-color-weather);
  font-family: var(--font-family-main-weather);
  color: var(--text-color-weather);
}

#dailyForecastDialog .ui-dialog-buttonpane {
  background: var(--bg-color-weather) !important;
  border-top: 1px solid var(--border-color-weather);
}

#dailyForecastDialog .ui-button {
  font-family: var(--font-family-main-weather);
  background: var(--bg-color);
  border: 1px solid var(--border-color-weather);
  color: var(--text-color-weather);
  border-radius: 5px;
}

#dailyForecastDialog .ui-button:hover {
  background: var(--hover-color-weather);
}

#dailyForecastContent table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  color: var(--text-color-weather);
}

#dailyForecastContent th,
#dailyForecastContent td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color-weather);
}

#dailyForecastContent th {
  background: var(--bg-color-weather);
  font-weight: bold;
  text-align: left;
  cursor: pointer;
}

#dailyForecastContent th:hover {
  background: var(--hover-color-weather);
}

#dailyForecastContent td {
  background: var(--bg-color-weather);
}

#dailyForecastContent tr:hover {
  background: var(--hover-color-weather);
}

#dailyForecastContent tr.ui-state-highlight {
  background: var(--highlight-color-weather) !important;
}

#dailyForecastContent th:nth-child(1),
#dailyForecastContent td:nth-child(1) {
  width: 35%;
  word-wrap: break-word;
  text-align: left;
}

#dailyForecastContent th:nth-child(2),
#dailyForecastContent td:nth-child(2) {
  width: 15%;
  text-align: center;
}

#dailyForecastContent th:nth-child(3),
#dailyForecastContent td:nth-child(3) {
  width: 20%;
  text-align: center;
}

#dailyForecastContent th:nth-child(4),
#dailyForecastContent td:nth-child(4) {
  width: 20%;
  text-align: left;
}

#dailyForecastContent th:nth-child(5),
#dailyForecastContent td:nth-child(5) {
  width: 10%;
  text-align: center;
}

#dailyForecastDescription, #hourlyForecastDescription {
  color: var(--text-color-weather);
}

#hourlyForecastTable th:nth-child(1),
#hourlyForecastTable td:nth-child(1) { /* Ura */
  width: 15%;
}
#hourlyForecastTable th:nth-child(2),
#hourlyForecastTable td:nth-child(2) { /* Ikona */
  width: 10%;
}
#hourlyForecastTable th:nth-child(3),
#hourlyForecastTable td:nth-child(3) { /* Temperatura */
  width: 15%;
}
#hourlyForecastTable th:nth-child(4),
#hourlyForecastTable td:nth-child(4) { /* Opis */
  width: 20%;
}
#hourlyForecastTable th:nth-child(5),
#hourlyForecastTable td:nth-child(5) { /* Dež */
  width: 10%;
}
#hourlyForecastTable th:nth-child(6),
#hourlyForecastTable td:nth-child(6) { /* Veter */
  width: 15%;
}
#hourlyForecastTable th:nth-child(7),
#hourlyForecastTable td:nth-child(7) { /* Vlažnost */
  width: 15%;
}

.buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

@media screen and (max-width: 600px) {
  #dailyForecastTable th,
  #dailyForecastTable td,
  #hourlyForecastTable th,
  #hourlyForecastTable td {
    padding: 4px;
    font-size: 12px;
  }

  #dailyForecastDescription, #hourlyForecastDescription {
    font-size: 12px;
  }

  #dailyForecastTable img,
  #hourlyForecastTable img {
    width: 20px;
    height: 20px;
  }

  #hourlyForecastTable th:nth-child(1),
  #hourlyForecastTable td:nth-child(1) { /* Ura */
    width: 15%;
  }
  #hourlyForecastTable th:nth-child(2),
  #hourlyForecastTable td:nth-child(2) { /* Ikona */
    width: 10%;
  }
  #hourlyForecastTable th:nth-child(3),
  #hourlyForecastTable td:nth-child(3) { /* Temperatura */
    width: 15%;
  }
  #hourlyForecastTable th:nth-child(4),
  #hourlyForecastTable td:nth-child(4) { /* Opis */
    width: 20%;
  }
  #hourlyForecastTable th:nth-child(5),
  #hourlyForecastTable td:nth-child(5) { /* Dež */
    width: 10%;
  }
  #hourlyForecastTable th:nth-child(6),
  #hourlyForecastTable td:nth-child(6) { /* Veter */
    width: 15%;
  }
  #hourlyForecastTable th:nth-child(7),
  #hourlyForecastTable td:nth-child(7) { /* Vlažnost */
    width: 15%;
  }
  
    .alert-warning {
      color: #ff9800;
      font-weight: bold;
    }
    .alert-severe {
      color: #d32f2f;
      font-weight: bold;
    }
    
  .buttons-row {
    flex-direction: column;
    gap: 5px; 
    margin-top: 5px;
  }

  .ui-dialog {
    max-width: 100%;
    top: 10px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 5px;
  }

  .ui-dialog .ui-dialog-content {
    max-height: calc(100vh - 150px) !important;
    overflow: hidden; 
    -webkit-overflow-scrolling: touch;
  }

  .ui-dialog .ui-dialog-titlebar {
    font-size: 14px;
    padding: 8px;
  }

  .ui-dialog .ui-dialog-buttonpane {
    padding: 5px;
  }

  .ui-dialog .ui-dialog-buttonpane button {
    font-size: 12px;
    padding: 5px 10px;
  }

  #hourlyForecastTable,
  #dailyForecastTable {
    max-height: 300px; 
  }
}