.hidden {
  display: none;
}

#hidden {
  display: none;
}


/* Koda za toaste */

.toast {
  font-size: 1.2em; /* Increase font size */
  padding: 20px 25px; /* Increase padding */
}

/* White progress bar */
.toast-progress {
  background-color: white !important;
}

/* Koda za "Coming Soon" pop-up */

body.popupInvulnerable .overlay .betaCodePopup .loginPopup {
    pointer-events: none;
}

 .popupInvulnerable .popup-open{
  pointer-events: none;
}

/* New Dark Overlay for Pop-ups */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
  z-index: 998;
}

/* Display the dark overlay when the popup is open */




#popupContainer, #loginPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 999;
  }

  #popupContent, #betaCodePopup, #loginPopup {
    max-width: 400px;
    margin: 0 auto;
  }

  
  #closePopupBtn, #submitBetaCodeBtn, #loginRedirectBtn {
    background-color: #3498db;
    color: #ffffff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  #loginPopupContent {
    font-size: 90%;
  }

  #betaCodeInput {
    width: 8cm;
    height: 1cm;
    
  }

  #betaCodePopup {
    width: 50cm;
    height: 15cm;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: top;
  } 

  #betaCodePopupContent {
      font-size: small;
  }
  
  #closePopupBtn:hover, #submitBetaCodeBtn:hover, #loginRedirectBtn:hover {
      background-color: #4da8e1;
  }

  #showPopupLink {
    display: inline-block;
    padding: 10px 15px; 
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
  }

body.popup-open {
   overflow: hidden;
}

.popup-open .blur-container {
    pointer-events: none;
    filter: blur(5px);
}



#maintenancePopup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  z-index: 999;
}


#maintenancePopupContent {
  max-width: 400px;
  margin: 0 auto;
}

#closeMaintenancePopupBtn {
  background-color: #3498db;
  color: #ffffff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

#closeMaintenancePopupBtn:hover {
  background-color: #4da8e1;
}

#maintenancePopup.open {
  pointer-events: none;
  overflow: none;
}

.error-message {
  color: red;
  margin-top: 10px;
}

/* Koda za "Kontakt" obrazec */

#contactform {
    align-self: center;
    }

    .formcontainer {
      text-align: center;
      margin-top: 50px;
      display: flex;
      justify-content: center;
      align-items: flex-start; /* Align items at the top */
  }
  
  .border-box {
      display: inline-block;
      padding: 20px;
      width: 550px;
      height: 500px;
      border: 5px solid #333; /* Set your desired border color */
      border-radius: 30px; /* Set the border radius for slightly curved corners */
      background-color: #333; /* Set your desired background color inside the border */
  }

  form input,
form textarea {
    width: calc(100% - 40px); /* Adjusted width with a bit of padding on each side */
    padding: 10px; /* Increased padding for better readability */
    margin-bottom: 5px; /* Increased spacing between input areas */
    margin-top: 25px; /* Move input areas slightly lower */
    height: 40px; /* Increased height to make input areas bigger */
}

form select{
width: calc(100% - 40px); /* Adjusted width with a bit of padding on each side */
padding: 10px; /* Increased padding for better readability */
margin-bottom: 5px;
margin-top: 20px; /* Move input areas slightly lower */
height: 40px; /* Height of input areas */
border: 1px solid #ccc; /* Border style */
border-radius: 5px; /* Border radius */
font-size: 16px; /* Font size */
}

form textarea {
  height: 120px;
}
  
/* Form Submit Button Styles */

/* Your existing CSS code */
/* Koda za "Coming Soon" pop-up */

#popupContainer {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  z-index: top;
}


#popupContent {
  max-width: 400px;
  margin: 0 auto;
}

#closePopupBtn {
  background-color: #3498db;
  color: #ffffff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#closePopupBtn:hover {
    background-color: #4da8e1;
}

#showPopupLink {
  display: inline-block;
  padding: 10px 15px; 
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
}



body.blur {
filter: blur(5px);
}


/* Koda za Maintenance Warning */

#maintenance-warning {
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  text-align: center;
  padding: 5px;
  overflow: hidden;
  font-weight: bold;
}

#maintenance-message {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 15s linear;
}

@keyframes scroll-left {
  from {
      transform: translateX(150%);
  }
  to {
      transform: translateX(-150%);
  }
}


/* Koda za obrazce */

#contactform {
  align-self: center;
}

.formcontainer {
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align items at the top */
}

.border-box {
  display: inline-block;
  padding: 20px;
  width: 550px;
  height: 500px;
  border: 5px solid #333; /* Set your desired border color */
  border-radius: 30px; /* Set the border radius for slightly curved corners */
  background-color: #333; /* Set your desired background color inside the border */
}

form input,
form textarea {
  width: calc(100% - 40px); /* Adjusted width with a bit of padding on each side */
  padding: 10px; /* Increased padding for better readability */
  margin-bottom: 5px; /* Increased spacing between input areas */
  margin-top: 25px; /* Move input areas slightly lower */
  height: 40px; /* Increased height to make input areas bigger */
}

form select{
width: calc(100% - 40px); /* Adjusted width with a bit of padding on each side */
padding: 10px; /* Increased padding for better readability */
margin-bottom: 5px;
margin-top: 20px; /* Move input areas slightly lower */
height: 40px; /* Height of input areas */
border: 1px solid #ccc; /* Border style */
border-radius: 5px; /* Border radius */
font-size: 16px; /* Font size */
}

form textarea {
height: 120px;
display: inline-block
}


#loginformnaslov {
  margin-bottom: 25px;
}

#login-form  {
  text-align: center;
  margin-top: 100px;
  justify-content: center;
}

#login-form input {
  width: 15cm; /* Adjusted width with a bit of padding on each side */
  padding: 20px; /* Increased padding for better readability */
  margin-bottom: 10px; /* Increased spacing between input areas */
  margin-top: 15px; /* Move input areas slightly lower */
  height: 40px; /* Increased height to make input areas bigger */
}

#prijavaBtn {
  margin-top: 15px;
}

/* Overlay Style for Password Reset Popup */
#resetPasswordOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 500;
  display: none; /* Initially hidden */
}

/* Popup Style for Password Reset */
#resetPasswordPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 500; /* Above overlay */
  display: none; /* Initially hidden */
}

#resetPasswordPopup .popupContent {
  padding: 20px;
  text-align: center;
}

#resetPasswordPopup input {
  padding: 10px;
  margin: 10px 0;
  width: 100%;
  max-width: 300px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#resetPasswordPopup button {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 20%;
  max-width: 300px;
}

.popupContent button#confirmEmailBtn,
.popupContent button#closeResetPopupBtn {
    display: inline-block;
    margin-top: 15px;
}

#resetPasswordPopup button:hover {
  background-color: #2980b9;
}

#resetPasswordPopup button:focus {
  outline: none;
}

/* Close Button Styling */
#closeResetPopupBtn {
  background-color: #ff6b6b;
}

#closeResetPopupBtn:hover {
  background-color: #e74c3c;
}



/* Combined CSS for Blob Button */

*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.buttons {
  margin-top: 2 0px;
  text-align: center;
  border-radius: 30px;
}

.blob-btn {
  z-index: 1;
  position: relative;
  padding: 20px 150px;
  margin-bottom: 40px;
  margin-top: 10px;
  text-align: center;
  text-transform: uppercase;
  color: #0505A9;
  font-size: 16px;
  font-weight: bold;
  background-color: transparent;
  outline: none;
  border: none;
  transition: color 0.5s;
  cursor: pointer;
  border-radius: 30px;
}
.blob-btn:before {
  content: "";
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #0505A9;
  border-radius: 30px;
}
.blob-btn:after {
  content: "";
  z-index: -2;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 100%;
  height: 100%;
  transition: all 0.3s 0.2s;
  border-radius: 30px;
}
.blob-btn:hover {
  color: #FFFFFF;
  border-radius: 30px;
}
.blob-btn:hover:after {
  transition: all 0.3s;
  left: 0;
  top: 0;
  border-radius: 30px;
}
.blob-btn__inner {
  z-index: -1;
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: #ffffff;
}
.blob-btn__blobs {
  position: relative;
  display: block;
  height: 100%;
  filter: url("#goo");
}
.blob-btn__blob {
  position: absolute;
  top: 2px;
  width: 30%;
  height: 100%;
  background: #0505A9;
  border-radius: 100%;
  transform: translate3d(0, 150%, 0) scale(1.7);
  transition: transform 0.45s;
}
@supports (filter: url("#goo")) {
  .blob-btn__blob {
    transform: translate3d(0, 150%, 0) scale(1.4);
  }
}
.blob-btn__blob:nth-child(1) {
  left: 0%;
  transition-delay: 0s;
}
.blob-btn__blob:nth-child(2) {
  left: 30%;
  transition-delay: 0.08s;
}
.blob-btn__blob:nth-child(3) {
  left: 60%;
  transition-delay: 0.16s;
}
.blob-btn__blob:nth-child(4) {
  left: 90%;
  transition-delay: 0.24s;
}
.blob-btn:hover .blob-btn__blob {
  transform: translateZ(0) scale(1.7);
}

/* Define the keyframes for the pulse effect */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); /* Initial box shadow color, adjust to match button color */
  }
  50% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); /* Intermediate box shadow color */
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); /* Final box shadow color */
  }
}

/* Apply the animation to the button when it's clicked or focused */
.blob-btn:active, .blob-btn:focus {
  animation: pulse 0.3s ease-in-out; /* Adjust the duration to control the pulse speed */
}

@supports (filter: url("#goo")) {
  .blob-btn:hover .blob-btn__blob {
    transform: translateZ(0) scale(1.5);
  }
}

/* Alignments */

.align1 {
  margin-top: 35px;
  margin-left: 70px;
  font-size: 20px;
  font-style: italic;
}

/* CSS za ure */

.clock { 
  text-align: center;
  font-size: 3em;
  font-weight: bold;
  margin-top: 250px;
}

.nextMaintenance {
  font-size: 30px;
  font-weight: bold;
  margin-top: 220px;
  text-align: center;
}


#resetPasswordContainer {
  margin-top: 5px;
}

/*CSS za vse stranske nav skupine razen za glavno */

.countdown-selector {
  display: inline-block;
  margin-top: 70px;
  margin-left: 50px;
}

.countdown-selector a {
  font-size: 20px;
  margin: 20px;
  font-weight: bold;
  text-decoration: none;
}

#selected {
  text-decoration: underline;
}

.seznamvsebin {
  display: inline-block;
  vertical-align: bottom;
  width: calc(20% - 4px); /* Adjust width to accommodate border */
  box-sizing: border-box;
  margin: 40px;
  border: 3px solid #000; /* Border thickness */
  height: 750px; /* Set desired height */
  /* Additional styling for seznamvsebin if needed */
  background-color: #f2f2f2;
  
}

.seznamvsebin nav {
    justify-content: center;
    padding: 30px;

} 

.seznamvsebin nav a {
      display: inline-block;
      padding: 5px 10px;
      color: #000000;
      text-align: center;
      text-decoration: none;
      margin-bottom: 5px;
      border: 2px, transparent;
      border-radius: 5px; 
      transition: linear, border 0.1s linear; 
      font-weight: bold;
}


.seznamvsebin nav a:hover {
    background-color: #e0e0e0;
    border: 2px solid #000000
}

.NoviceContent {
  float: right; /* Align to the right */
  width: calc(80% - 250px); /* Adjusted width */
  box-sizing: border-box;
  margin-top: 100px;
}

.NoviceContent p {
  margin-bottom: 20px;
}

#dynamicText {
  float: right; /* Align to the right */
  width: calc(89% - 250px); /* Adjusted width */
  box-sizing: border-box;
  margin-top: 90px;
}

.searchArea {
  float: right;
  margin-right: 135px;
  margin-top: 100px;
}

.searchArea input {
  width: 25cm;
  height: 1cm;
}




/* Pravila Obrazca CSS */

.pravilaobrazca {
  height: 630px;
}

.pravilaobrazca_opozorilo {
  margin-top: 275px; /* Keeps this div at the bottom */
  color: #666; /* Change text color if desired */
}

/* Random CSS */

/* CSS for the admin credits list */

.creditscontainer {
  display: flex;
  flex-wrap: wrap;
}

.creditslist {
  flex: 1;
  margin: 10px;
  padding: 0;
  list-style-type: none;
}

.creditslist li {
  margin-bottom: 5px;
}

.adminlist article {
  min-height: 225px;
}

/* Članki CSS */

.člankimargin {
  margin-top: 20px;
}

.člankimargin article {
  width: 99%;
  margin-left: 10px;
  height: 20.5cm;
}

.člankitext {
  margin-bottom: 75px;
  font-size: 25px;
}

.člankitext2 {
  font-size: 14.5px;
}

.člankitext3 {
  font-size: 18px;
}

#vitin_spis {
  font-size: 20px;
}

#grinchtext {
  font-size: 20px;
}

#grinchimg img {
  width: 20%;
  height: 20%
}

/* CSS za mediji.html */

.shrambaslik {
  float: right; /* Align to the right */
  width: calc(89% - 250px); /* Adjusted width */
  box-sizing: border-box;
  margin-top: 90px;
}

.shrambaslik img[id="1"] {
  width: 25%;
  height: 25%;
}

.shrambaslik img[id="2"] {
  width: 10%;
  height: 5%;
  margin-left: 2%;
}


/* Mail Style */

/* Mail Icon Style */

.mail-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 40px;
  margin-right: 25px;
  margin-top: 10px;
}

/* Mail Window Styling */
.mail-window {
  position: absolute;
  top: 10%;
  left: 88%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  z-index: 49;
  padding: 20px;
  display: none; /* Hidden by default */
}

#closeMailWindow {
  position: absolute;
  bottom: 20px; /* Ensure it's inside the window */
  right: 20px;  /* Ensure it's inside the window */
}

.mail-window button {
  padding: 10px 20px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.mail-message {
  max-height: 200px;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}

.mail-message h3 {
  margin: 0;
  font-size: 18px;
}

.mail-message p {
  margin: 5px 0;
}

.mail-message button {
  margin-top: 10px;
  background-color: #4CAF50;
  color: white;
}

/* Mail Overlay Style */
#mailOverlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  z-index: 50; /* Lower z-index than the popup */
}

#mailMessagesContainer {
  max-height: 320px; /* Adjust this to fit inside the mail window nicely */
  overflow-y: auto;
  padding-right: 10px; /* Optional: space for scrollbar */
}

#mailMessagesContainer::-webkit-scrollbar {
  width: 8px;
}

#mailMessagesContainer::-webkit-scrollbar {
  width: 8px;
}

#mailMessagesContainer::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}


/* ACCOUNT BALANCE STYLES */

#accountBalanceText {
  position: absolute;
  top: 77px;
  right: 210px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-right: 25px;
  margin-top: 10px;
  font-weight: bold;
}

/* User Dropdown Menu CSS */

/* Make dropdown smaller and styled */
ul.nav-right {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.nav-right li a {
  text-decoration: none;
  color: #333;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav-right li a:hover {
  background-color: #f0f0f0;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 200px;
  border: 1px solid #ccc;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  z-index: 10;
  padding: 8px 0;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
}

.dropdown-content a:hover {
  background-color: #f7f7f7;
}

.dropdown-username {
  padding: 10px 16px;
  font-weight: bold;
  color: #555;
  border-bottom: 1px solid #eee;
  pointer-events: none;
}


.auth-nav {
  right: 20px;
  top: 88px;
  position: fixed;
  display: flex;
  gap: 15px; /* spacing between links */
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-nav li {
  /* Optional: to align vertically, if needed */
  display: flex;
  align-items: center;
}


/* Clock Page CSS */

.flip-clock {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 80px;
  position: relative;
}

.colon {
  font-size: 80px;
  color: white;
  line-height: 120px;
}

.digit {
  width: 100px;
  height: 140px;
  overflow: hidden;
  background: #111;
  border-radius: 10px;
  position: relative;
  font-size: 5em;
  font-weight: bold;
  text-align: center;
  color: white;
  display: inline-block;
}

.number-wrapper {
  transition: transform 0.5s ease;
  transform: translateY(0);
  position: relative;
  height: 140px; /* same as the digit height */
  overflow: hidden;
}

.number {
  height: 140px;
  line-height: 140px;
  font-size: 100px;
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
}

.current {
  top: 0;
}

.next {
  top: 0; /* will be animated from -140px via transform */
}

.clockLabel {
  margin-left: 75px;
  font-size: 25px;
  font-weight: bold;
}


#maintenanceWrapper{  
  display: flex;
  flex-direction: column;
  align-items: center;
}

#maintenanceWarning {
  color: #0000;
  font-size: 28px;
  font-weight: bold;
  padding: 15px 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

#maintenanceWarning.hidden {
  display: none;
}