#znanstvenjak {
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(245, 185, 116, 0.9), rgba(199, 104, 94, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .shapes-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(245, 185, 116, 0.9), rgba(199, 104, 94, 0.8)); 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .shapes-section::before,
  .shapes-section::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit; 
    z-index: -1; 
    filter: blur(10px); 
    pointer-events: none; 
  }
  
  .shapes-section::before {
    transform: scale(1.2); 
  }
  
  .shapes-section::after {
    transform: scale(1.4); 
    opacity: 0.6; 
  }
  
  .shape-img {
    position: absolute;
    width: 380px;
    cursor: none;
    --rotation: 0deg;
  transform: translate(270px, 100px) rotate(var(--rotation));
  transition: transform 0.6s ease, filter 0.3s ease;
}

  
  .shape-img:nth-child(1) {
    z-index: 5;
    transform: translate(270px, 100px) rotate(-2deg);
  }
  .shape-img:nth-child(2) {
    z-index: 3;
    transform: translate(20px, 120px) rotate(1deg);
  }
  .shape-img:nth-child(3) {
    z-index: 4;
    transform: translate(-100px, -170px) rotate(0deg);
  }
  .shape-img:nth-child(4) {
    z-index: 3;
    transform: translate(150px, -170px) rotate(-1deg);
  }
  .shape-img:nth-child(5) {
    z-index: 2;
    transform: translate(-230px, 70px) rotate(2deg);
  }
  
  #Popup-overlay-znanstvenjak {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: none;
}

#Popup-overlay-znanstvenjak.active {
    display: flex;
    pointer-events: auto;
}

#Popup-znanstvenjak {
    pointer-events: auto;
}

#Popup-znanstvenjak {
    position: relative;
    width: auto;
    max-width: 900px;
    height: auto;
    background: #fff8f0; 
    backdrop-filter: blur(10px);
    padding: 40px 60px;
    border-radius: 40px;
    box-shadow:
        0 0 20px rgba(255, 166, 0, 0.4),
        0 0 40px rgba(255, 105, 180, 0.4),
        0 0 60px rgba(135, 206, 250, 0.3);
    color: #222;
    font-size: 1.2em;
    text-align: center;
    z-index: 10001;
     font-family: "Outfit";
     font-weight: 600;
}

@font-face {
  font-family: "Outfit";
  src: url("Fonts/Outfit/Outfit-VariableFont_wght.ttf");
}

#Popup-content-znanstvenjak {
    font-size: 1.4em;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

@keyframes popupEntrance {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

#Popup-overlay-znanstvenjak.active #Popup-znanstvenjak {
    animation: popupEntrance 0.4s ease-out;
}

.close-btn-znanstvenjak {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3em; 
    font-weight: bold;
    color: #555;
    background: none;
    border: none;
    cursor: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-btn-znanstvenjak:hover {
    color: #35af60; 
    transform: scale(1.6) rotate(8deg);
}


#Popup-content-znanstvenjak::-webkit-scrollbar {
    width: 10px;
}

#Popup-content-znanstvenjak::-webkit-scrollbar-track {
    background: #ffe6f0; 
    border-radius: 10px;
}

#Popup-content-znanstvenjak::-webkit-scrollbar-thumb {
    background: #f8a3c4; 
    border-radius: 10px;
    border: 2px solid #ffe6f0;
}

#Popup-content-znanstvenjak::-webkit-scrollbar-thumb:hover {
    background: #f48bb8; 
}







#Popup-overlay-znanstvenjaks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: none;
}

#Popup-overlay-znanstvenjaks.active {
    display: flex;
    pointer-events: auto;
}

#Popup-znanstvenjaks {
    pointer-events: auto;
}

#Popup-znanstvenjaks {
    position: relative;
    width: auto;
    max-width: 900px;
    max-height: 90vh; 
    background: #fff8f0;
    backdrop-filter: blur(10px);
    padding: 40px 60px;
    border-radius: 40px;
    box-shadow:
        0 0 20px rgba(255, 166, 0, 0.4),
        0 0 40px rgba(255, 105, 180, 0.4),
        0 0 60px rgba(135, 206, 250, 0.3);
    color: #222;
    font-size: 1.2em;
    text-align: center;
    z-index: 10001;
    overflow-y: auto; 
    font-weight: 600;
    font-family: "Outfit";
}


#strip {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Dodajemo glatke prelaze za transformaciju i box-shadow */
}

#strip:hover {
    transform: scale(1.1); /* Povećava sliku za 10% */
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.6), 0 0 30px rgba(255, 165, 0, 0.4); /* Bledi roze/narandžasti box-shadow */
}

#Popup-content-znanstvenjaks {
    font-size: 1.4em;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    
}

@keyframes popupEntrance {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

#Popup-overlay-znanstvenjaks.active #Popup-znanstvenjaks {
    animation: popupEntrance 0.4s ease-out;
}

.close-btn-znanstvenjaks {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3em; 
    font-weight: bold;
    color: #555;
    background: none;
    border: none;
    cursor: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-btn-znanstvenjaks:hover {
    color: #35af60; 
    transform: scale(1.6) rotate(8deg);
}







/*
.shramba-btn {
    width: 400px;
    height: 90px;
    background-color: #35af60;
    border-radius: 60px;
    position: absolute;
    bottom: 9%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    cursor: none;
    
    transition: all 0.3s ease-in-out;
    font-family: "Amatic";
    font-weight: bold;
  }
  
  .shramba-btn:hover {
    
    transform: translateX(-50%) scale(1.03);
    color: #ffffff;
  }
  
  .shramba-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    color: black;
    font-family: 'Outfit', sans-serif;
  }
  
  .shramba-btn h3{
    margin-left: 30px;
    font-size: 28px !important;
  }
  
  .left-btn {
    flex: 1;
    text-align: left;
  }
  
  .right-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
    margin-right: 30px;
  }
  
  .icon-shramba {
    width: 40px !important;
    height: auto;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.3));
  }
  */

  .arr-shramba {
    width: 65px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 50px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
    display: none; /* Hide navigation arrows on main site */
    cursor: none;
  }


  #strip:hover {
    filter: drop-shadow(0 0 12px rgba(78, 76, 76, 0.911));
    transform: scale(1.01);
    transition: all 0.4s ease;
  }
  


  .shape-img:hover {
    filter: brightness(1.1) drop-shadow(0 0 18px rgba(255, 255, 255, 0.4));
    transition: all 0.4s ease;
    --rotation: 360deg;
  }
  

  .shape-img:nth-child(1):hover {
    animation: spin1 1.2s ease-in-out;
  }
  
  .shape-img:nth-child(2):hover {
    animation: spin2 1.2s ease-in-out;
  }
  
  .shape-img:nth-child(3):hover {
    animation: spin3 1.2s ease-in-out;
  }
  
  .shape-img:nth-child(4):hover {
    animation: spin4 1.2s ease-in-out;
  }
  
  .shape-img:nth-child(5):hover {
    animation: spin5 1.2s ease-in-out;
  }
  
  @keyframes spin1 {
    from {
      transform: translate(270px, 100px) rotate(-2deg);

    }
    to {
      transform: translate(270px, 100px) rotate(358deg);
    }
  }
  
  @keyframes spin2 {
    from {
      transform: translate(20px, 120px) rotate(1deg);
    }
    to {
      transform: translate(20px, 120px) rotate(361deg);
    }
  }
  
  @keyframes spin3 {
    from {
      transform: translate(-100px, -200px) rotate(0deg);
    }
    to {
      transform: translate(-100px, -200px) rotate(360deg);
    }
  }
  
  @keyframes spin4 {
    from {
      transform: translate(170px, -200px) rotate(-1deg);
    }
    to {
      transform: translate(170px, -200px) rotate(359deg);
    }
  }
  
  @keyframes spin5 {
    from {
      transform: translate(-230px, 70px) rotate(2deg);
    }
    to {
      transform: translate(-230px, 70px) rotate(362deg);
    }
  }
  



  
@media (max-width: 480px) {
  .shape-img {
    width: 220px;
  }


   .shramba-btn {
    width: 270px;
    height: 75px;
    margin-bottom: 70px;
  }

  .shramba-btn h3 {
    font-size: 20px;
  }

  .icon-shramba {
    width: 35px;
  }

  .arr-shramba {
    width: 50px;
    bottom: 84px;
  }

  #strip{
    max-width: 85%;
    height: auto;
  }

  .shape-img:nth-child(1) {
    z-index: 5;
    transform: translate(130px, 10px) rotate(-2deg);
  }
  .shape-img:nth-child(2) {
    z-index: 3;
    transform: translate(0px, 40px) rotate(1deg);
  }
  .shape-img:nth-child(3) {
    z-index: 4;
    transform: translate(-50px, -140px) rotate(0deg);
  }
  .shape-img:nth-child(4) {
    z-index: 3;
    transform: translate(70px, -150px) rotate(-1deg);
  }
  .shape-img:nth-child(5) {
    z-index: 2;
    transform: translate(-120px, 10px) rotate(2deg);
  }

  @keyframes spin1 {
  from {
    transform: translate(140px, 50px) rotate(-2deg);
  }
  to {
    transform: translate(140px, 50px) rotate(358deg);
  }
}

@keyframes spin2 {
  from {
    transform: translate(0px, 70px) rotate(1deg);
  }
  to {
    transform: translate(0px, 70px) rotate(361deg);
  }
}

@keyframes spin3 {
  from {
    transform: translate(-60px, -100px) rotate(0deg);
  }
  to {
    transform: translate(-60px, -100px) rotate(360deg);
  }
}

@keyframes spin4 {
  from {
    transform: translate(80px, -100px) rotate(-1deg);
  }
  to {
    transform: translate(80px, -100px) rotate(359deg);
  }
}

@keyframes spin5 {
  from {
    transform: translate(-130px, 50px) rotate(2deg);
  }
  to {
    transform: translate(-130px, 50px) rotate(362deg);
  }
}

#Popup-znanstvenjak,
#Popup-znanstvenjaks {
    padding: 15px 15px;
    font-size: 0.7em;
    width: 370px;
    height: 450px;   
  }

#Popup-content-znanstvenjak,
#Popup-content-znanstvenjaks {
    height: 100%;
  }

  #Popup-content-znanstvenjaks{
   overflow: visible; 
  }

}


@media (min-width: 481px) and (max-width: 767px) {
  .shape-img {
    width: 240px;
  }

  #Popup-znanstvenjak,
  #Popup-znanstvenjaks {
    padding: 30px 40px;
    font-size: 0.8em;
     width: 500px;
    height: 500px
  }

  #Popup-content-znanstvenjak,
  #Popup-content-znanstvenjaks {
      height: 100%;
    
  }

  #Popup-content-znanstvenjaks{
   overflow: visible; 
  }

   .shramba-btn {
    width: 340px;
    height: 75px;
  }

  .shramba-btn h3 {
    font-size: 22px;
  }

  .icon-shramba {
    width: 50px;
  }

  .arr-shramba {
    width: 50px;
    bottom: 14px;
  }

  #strip{
    max-width: 73%;
    height: auto;
  }

  .shape-img:nth-child(1) {
    z-index: 5;
    transform: translate(140px, 50px) rotate(-2deg);
  }
  .shape-img:nth-child(2) {
    z-index: 3;
    transform: translate(0px, 70px) rotate(1deg);
  }
  .shape-img:nth-child(3) {
    z-index: 4;
    transform: translate(-60px, -100px) rotate(0deg);
  }
  .shape-img:nth-child(4) {
    z-index: 3;
    transform: translate(80px, -100px) rotate(-1deg);
  }
  .shape-img:nth-child(5) {
    z-index: 2;
    transform: translate(-130px, 50px) rotate(2deg);
  }

  @keyframes spin1 {
  from {
    transform: translate(140px, 50px) rotate(-2deg);
  }
  to {
    transform: translate(140px, 50px) rotate(358deg);
  }
}

@keyframes spin2 {
  from {
    transform: translate(0px, 70px) rotate(1deg);
  }
  to {
    transform: translate(0px, 70px) rotate(361deg);
  }
}

@keyframes spin3 {
  from {
    transform: translate(-60px, -100px) rotate(0deg);
  }
  to {
    transform: translate(-60px, -100px) rotate(360deg);
  }
}

@keyframes spin4 {
  from {
    transform: translate(80px, -100px) rotate(-1deg);
  }
  to {
    transform: translate(80px, -100px) rotate(359deg);
  }
}

@keyframes spin5 {
  from {
    transform: translate(-130px, 50px) rotate(2deg);
  }
  to {
    transform: translate(-130px, 50px) rotate(362deg);
  }
}

 
 

}


@media (min-width: 768px) and (max-width: 1023px) {
  .shape-img {
    width: 300px;
  }

  #Popup-znanstvenjak,
  #Popup-znanstvenjaks {
    padding: 35px 50px;
    font-size: 1em;
    width: 600px;
    height: 600px;
  }

    #Popup-content-znanstvenjak,
  #Popup-content-znanstvenjaks {
      height: 100%;
  }
  #Popup-content-znanstvenjaks{
   overflow: visible; 
  }

  .shramba-btn {
    width: 340px;
    height: 75px;
  }

  .shramba-btn h3 {
    font-size: 22px;
  }

  .icon-shramba {
    width: 50px;
  }

  .arr-shramba {
    width: 50px;
    bottom: 14px;
  }

  #strip{
    max-width: 75%;
    height: auto;
  }

  .shape-img:nth-child(1) {
    z-index: 5;
    transform: translate(210px, 100px) rotate(-2deg);
  }
  .shape-img:nth-child(2) {
    z-index: 3;
    transform: translate(20px, 140px) rotate(1deg);
  }
  .shape-img:nth-child(3) {
    z-index: 4;
    transform: translate(-60px, -100px) rotate(0deg);
  }
  .shape-img:nth-child(4) {
    z-index: 3;
    transform: translate(130px, -100px) rotate(-1deg);
  }
  .shape-img:nth-child(5) {
    z-index: 2;
    transform: translate(-150px, 90px) rotate(2deg);
  }


  @keyframes spin1 {
  from {
    transform: translate(210px, 100px) rotate(-2deg);
  }
  to {
    transform: translate(210px, 100px) rotate(358deg);
  }
}

@keyframes spin2 {
  from {
    transform: translate(20px, 140px) rotate(1deg);
  }
  to {
    transform: translate(20px, 140px) rotate(361deg);
  }
}

@keyframes spin3 {
  from {
    transform: translate(-60px, -100px) rotate(0deg);
  }
  to {
    transform: translate(-60px, -100px) rotate(360deg);
  }
}

@keyframes spin4 {
  from {
    transform: translate(130px, -100px) rotate(-1deg);
  }
  to {
    transform: translate(130px, -100px) rotate(359deg);
  }
}

@keyframes spin5 {
  from {
    transform: translate(-150px, 90px) rotate(2deg);
  }
  to {
    transform: translate(-150px, 90px) rotate(362deg);
  }
}



}


@media (min-width: 1024px) {
  .shape-img {
    width: 370px;
  }

  .shramba-btn {
    width: 340px;
    height: 75px;
    margin-left: 20px;
  }

  .shramba-btn h3 {
    font-size: 22px;
  }

  .icon-shramba {
    width: 50px;
  }

  .arr-shramba {
    width: 55px;
    bottom: 1px;
    margin-left: 20px;
  }

    .shape-img:nth-child(1) {
    z-index: 5;
    transform: translate(230px, 100px) rotate(-2deg);
  }
  .shape-img:nth-child(2) {
    z-index: 3;
    transform: translate(20px, 140px) rotate(1deg);
  }
  .shape-img:nth-child(3) {
    z-index: 4;
    transform: translate(-80px, -140px) rotate(0deg);
  }
  .shape-img:nth-child(4) {
    z-index: 3;
    transform: translate(130px, -130px) rotate(-1deg);
  }
  .shape-img:nth-child(5) {
    z-index: 2;
    transform: translate(-180px, 90px) rotate(2deg);
  }


  @keyframes spin1 {
  from {
    transform: translate(210px, 100px) rotate(-2deg);
  }
  to {
    transform: translate(210px, 100px) rotate(358deg);
  }
}

@keyframes spin2 {
  from {
    transform: translate(20px, 140px) rotate(1deg);
  }
  to {
    transform: translate(20px, 140px) rotate(361deg);
  }
}

@keyframes spin3 {
  from {
    transform: translate(-60px, -100px) rotate(0deg);
  }
  to {
    transform: translate(-60px, -100px) rotate(360deg);
  }
}

@keyframes spin4 {
  from {
    transform: translate(130px, -100px) rotate(-1deg);
  }
  to {
    transform: translate(130px, -100px) rotate(359deg);
  }
}

@keyframes spin5 {
  from {
    transform: translate(-150px, 90px) rotate(2deg);
  }
  to {
    transform: translate(-150px, 90px) rotate(362deg);
  }
}


  #Popup-znanstvenjak,
  #Popup-znanstvenjaks {
    padding: 35px 50px;
    font-size: 1em;
    width: 700px;
    height: 700px;
  }

  #Popup-content-znanstvenjak,
  #Popup-content-znanstvenjaks {
      height: 100%;
    
  }

  #strip{
    width:70%;
  }

}

/*
@media (max-height: 600px) {
  #Popup-znanstvenjak,
  #Popup-znanstvenjaks {
    max-height: 85vh;
    overflow-y: auto;
  }

  .shape-img {
    width: 200px;
  }

  .shramba-btn {
    bottom: 5%;
  }
}
  */