#jezikainje{
    font-family: "Amatic";
    color: #333;
    background-color:#3c3c3c;
    scroll-snap-align: none;
}

@keyframes pulse {
  0% {
    transform: scale(1.1) rotate(-15deg);
  }
  50% {
    transform: scale(1.15) rotate(0deg); 
  }
  100% {
    transform: scale(1.1) rotate(-15deg);
  }
}

@keyframes rotateIcon {
    0% {
        transform: rotate(0deg); 
    }
    100% {
        transform: rotate(360deg); 
    }
}

.cloud-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;

}

.cloud {
    position: absolute;
    opacity: 0;
    animation: Clouds 0.8s ease-out forwards;
    animation-fill-mode: forwards;
    transition: all 1s ease-in-out;
    will-change: transform, opacity;
    cursor: pointer;
    width: 360px;
    height: 460px;
}

.cloud.clicked{
    position: absolute;
    left: 15%;
    top: 15%;
    z-index: 10001;
    opacity: 0;
    
}

.cloud.clicked img {
    transform: rotate(10deg) !important;
    transition: transform 0.7s ease-in-out;  
}
.cloud-text.clicked{
    color: white;
    transform: rotate(10deg) !important;
    left: 25% !important;
}


#mouth-6.clicked,#mouth-bottom-left.clicked,#mouth-top-left.clicked,#mouth-top-right.clicked,#mouth-bottom-right.clicked,#mouth-center.clicked{
    left: 26%; 
    top: 72%;
    display: block !important;
    position: absolute;
}

#mouth-top-left{
    width: 80px;
    height: 80px;
    position: absolute;
    top: 68%;
    left: 59%;
    transform: rotate(10deg);
}

#mouth-top-right{
    width: 80px;
    height: 80px;
    position: absolute;
    top: 70%;
    left: 27%;
    transform: rotate(-10deg);
}

#mouth-center{
    width: 80px;
    height: 80px;
    position: absolute;
    top: 72%;
    left: 30%;
    transform: rotate(-20deg);
}

#mouth-bottom-left{
    width: 80px;
    height: 80px;
    position: absolute;
    top: 68%;
    left: 59%;
    transform: rotate(30deg);
}

#mouth-bottom-right{
    width: 80px;
    height: 80px;
    position: absolute;
    top: 70%;
    left: 30%;
    transform: rotate(-20deg);
}

#mouth-6{
    width: 80px;
    height: 80px;
    position: absolute;
    top: 74%;
    left: 59%;
    transform: rotate(30deg);
}

@keyframes talking {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}


.MouthLeft,
.MouthRight {
  animation: talking 2s infinite ease-in-out;
  transform-origin: center;
  pointer-events: none;
}


.cloud img {
    width:  360px;
    height: 460px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.cloud-text {
    position: absolute;
    /*top: 33%;
    left: 23% ;*/
    font-size: 1.8em;
    letter-spacing: 1px;
    font-family: "Amatic";
    font-weight: bold;
    color: white;
    width: 200px;
    text-align: center;
    transform-origin: center;
    font-weight: 300;
    pointer-events: none;
}

.cloud-top-left .cloud-text {
    transform: rotate(-20deg); 
    top: 36%;
    left: 20%;
    color: #f8bbd0 !important;
}

.cloud-top-right .cloud-text {
    transform: rotate(15deg); 
    top: 35%;
    left: 25%;
}

.cloud-center .cloud-text {
    transform: rotate(10deg); 
    top: 35%;
    left: 24%;
}

.cloud-bottom-left .cloud-text {
    transform: rotate(-20deg);
    top: 33%;
    left: 21%;
}

.cloud-bottom-right .cloud-text {
    transform: rotate(10deg); 
    top: 32%;
    left: 23%;
    z-index: 10000;
}

.cloud6 .cloud-text {
    transform: rotate(-15deg);
    top: 35%;
    left: 22%;
}

.cloud::before,.cloud::after{
  pointer-events: none;
}

.cloud6{
    top: 10%;
    left: 47%;
}
#img-cloud-6{
    transform: rotate(-15deg);
}

.cloud-top-left{
    top: 18%;
    left: 19%;
   
}
#img-top-left{
    transform: rotate(-20deg);
}


.cloud-top-right {
    top:19%;
    left: 61%;
}
#img-top-right{
    transform: rotate(15deg);
}


.cloud-center {
    top: 7%;
    left: 33%;    
    
}
#img-center{
    transform:rotate(10deg)
}

.cloud-bottom-left {
    top: 40%;
    left: 32%;
    
}
#img-bottom-left{
    transform: rotate(-20deg);
}

.cloud-bottom-right {
    top: 40%;
    left: 49%;
}
#img-bottom-right{
    transform: rotate(10deg);
}

/*#Overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(189, 22, 22, 0.75);
    display: none;
    z-index: 1000;
}
*/


#Popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(46, 46, 46, 0.85);
    display: none;
    align-items:center;
    justify-content: flex-end;
    z-index: 10000;
}

#Popup-overlay.active {
    display: flex;
}

#Popup {
    position: absolute;            
    right: 0%;                      
 
    width: 1300px;
    height: 1300px;
    background-image: url("homeImages/Speech-bubble-full-black_left.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;

    color: #fff;
    font-size: 1.7em;
    letter-spacing: 1px;
    text-align: center;

    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    
    margin-bottom: 200px;
    pointer-events: none;
    
}

.mr{
    width: 160px;
    height: 160px;
    position: absolute;
    right:40%;
    bottom:16%;
    animation: talking 2s infinite ease-in-out;
}
#Popup-content, .mr {
    pointer-events: auto;
}

#Popup-overlay.active #Popup {
    animation: entrance 2s ease;
}

@keyframes entrance {
    0% {
        transform: translateX(200%);
        opacity: 0;
            
    }
    100% {
        transform: translateX(0%);
        opacity: 1;
        
    }
}

#Popup.active {
    visibility: visible;
    opacity: 1;
   
}

#Popup-content {
    max-width: 50%;
    max-height: 60%;
    text-align: center;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    line-height: 1.6;
    font-family: "Outfit";
    margin-top: 320px;
    color: #ffffff;
    font-size: 22px;
    z-index: 10001;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Responsive iframe styling for YouTube embeds */
#Popup-content iframe {
    max-width: min(260px, 100%);
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    max-height: 146px;
    border-radius: 8px;
    margin: 15px auto;
    display: block;
    box-sizing: border-box;
}


.close-btn {
    position: fixed;
    bottom: 5%;
    left: 5%;
    width: 90vw;
    height: 70px;
    /*background: linear-gradient(90deg, #ff6f61, #ffcc70);*/
    color: white;
    font-size: 5em;
    font-weight: 200;
    text-align: center;
    line-height: 70px;
    border: none;
    cursor: none;
    z-index: 10002;
    /*box-shadow: 0 -5px 15px rgba(255, 150, 100, 0.5);*/
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
    pointer-events: auto;
}

.close-btn.start-close-btn-animation {
    opacity: 1;
    animation: close-btn-animation 2s ease-in forwards;
}

.close-btn:hover {
    
    transform: scale(1.03);
  
}

@keyframes close-btn-animation {
    0%{
        opacity: 0;
        transform: translateY(-20%);
    }
    100%{
        opacity: 1;
        transform: translateY(0%);
    }
}

.calc-btn {
    width: 400px;
    height: 80px;
    background-color: #f8bbd0;
    border-radius: 60px;
    position: absolute;
    bottom: 7%;
    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: "Outfit";
  }
  .btn-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    width: 60px;
    height: 60px;
    background-color: #35af60;
  }
  
  .calc-btn:hover {
    transform: translateX(-50%) scale(1.03);
    color: #353535;
  }
  
  .calc-link {
   height: 45px;
    width: 45px;
    text-decoration: none;
    color: black;
    font-family: "Amatic";
      z-index: 1;
  }
  
  .left-btn h3{
    margin-left:20px;
    font-size: 22px;
    font-weight: bold;
  }
  
  .left-btn {
    flex: 1;
    text-align: left;
  }
  
  .right-btn {
    align-items: center;
    gap: 12px;
  }
  
  .icon-ohm {
    width: 35px;
    height: auto;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.3)); 
    margin-bottom: 5px;
  }
  
  .arr {
    width: 45px;
    height:45px;
    position: absolute;
    left: 50%;
    bottom: -0%;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
    cursor: none;
    display: none; /* Hide navigation arrows on main site */
  }

  @keyframes bounce {
    0%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    50% {
      transform: translateX(-50%) translateY(-10px);
    }
  }
  



@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
  
  
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes AngledText {
    0% {
        transform: translate(-150%, -50%) rotate(-5deg);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) rotate(-5deg);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes Clouds {
    0% {
        transform: translateY(200px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


#lightOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(0, 0, 0);
    color: white;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10002;
    font-size: 2rem;
    font-family: "Amatic";
    padding: 20px;
  }












@media(max-width:1700px) and (min-width:1200px){

  .cloud-section{
    height: 100% !important;
  }

  .cloud {
    width: 350px;
    height: 450px;
  }

  .cloud img{
    width: 350px;
    height: 450px;
  }

  .cloud-text{
    max-width: 190px;
    height: auto;
    font-size: 26px;
  }

  .cloud-top-left .cloud-text {
    top: 36%;
    left: 20%;
    font-size: 28px;
   
}

.cloud-top-right .cloud-text {
     top: 35%;
    left: 25%;
}

.cloud-center .cloud-text {   
    top: 35%;
    left: 23%;
}

.cloud-bottom-left .cloud-text {    
    top: 33%;
    left: 20%;
}

.cloud-bottom-right .cloud-text {
    top: 35%;
    left: 23%;
}

.cloud6 .cloud-text {
    top: 35%;
    left: 21%;
}
/********************/

.cloud-top-left{
 top: 20%;
 left: 14%;
}

.cloud-bottom-left{
  left: 28%;
  top: 37%;
}

.cloud-top-right{
  left: 61%;
  top: 20%;
}

.cloud-bottom-right{
  top: 34%;
  left: 46%;
}

.cloud6{
 top: 1%;
 left: 48%;
}

.cloud-center{
  top: 0%;
  left: 30%;
}

/*********************/


.calc-btn {
    width: 300px;
    height: 60px;
    bottom: 7%;
    left: 50%;
   
  }
  .btn-wrapper{ 
    width: 45px;
    height: 45px; 
  }

  .left-btn h3{
    margin-left:0px;
    font-size: 17px;
    font-weight: bold;
  }
  
  .left-btn {
    flex: 1;
    text-align: left;
  }
    
  .icon-ohm {
    width: 25px;
    height: auto;
    
  }
  
  .arr {
    width: 40px;
    height:40px;
    left: 50%;
    bottom:0%;
   
  }
  
  /***************/

  #Popup{
    width: 1100px;
    transform: translateX(140px) !important;
  }

  #Popup-content{
    max-width: 55%;
    height: 70%;
    margin-top: 380px;
    font-size: 19px;
  }

  .cloud.clicked{
    top: 40%;
  }

  .close-btn{
    width: 100px;
    height: 100px;
    bottom: 9%;
    left:25%;
  }
}


@media (max-width: 1199px) and (min-width: 768px) {
   .cloud-section{
    height: 100% !important;

  }

  .cloud {
    width: 300px;
    height: 400px;
  }

  .cloud img{
    width: 300px;
    height: 400px;
  }

  .cloud-text{
    max-width: 160px;
    height: auto;
    font-size: 22px;
  }

.cloud-top-left .cloud-text {
    top: 36%;
    left: 21%;
    font-size: 28px;
}

.cloud-top-right .cloud-text {
     top: 35%;
    left: 25%;
}

.cloud-center .cloud-text {   
    top: 37%;
    left: 25%;
}

.cloud-bottom-left .cloud-text {    
    top: 35%;
    left: 22%;
}

.cloud-bottom-right .cloud-text {
    top: 35%;
    left: 24%;
}

.cloud6 .cloud-text {
    top: 35%;
    left: 22%;
}
/********************/

.cloud-top-left{
 top: 15%;
 left: 1%;
}

.cloud-bottom-left{
  left: 22%;
  top: 40%;
}

.cloud-top-right{
  left: 66%;
  top: 15;
}

.cloud-bottom-right{
  top: 40%;
  left: 48%;
}

.cloud6{
 top: 4%;
 left: 46%;
}

.cloud-center{
  top: 5%;
  left: 22%;
}

/*********************/


.calc-btn {
    width: 300px;
    height: 60px;
    bottom: 7%;
    left: 50%;
   
  }
  .btn-wrapper{ 
    width: 45px;
    height: 45px; 
  }

  .left-btn h3{
    margin-left:0px;
    font-size: 17px;
    font-weight: bold;
  }
  
  .left-btn {
    flex: 1;
    text-align: left;
  }
    
  .icon-ohm {
    width: 25px;
    height: auto;
    
  }
  
  .arr {
    width: 40px;
    height:40px;
    left: 50%;
    bottom:0%;
   
  }
  
  /***************/

  #Popup{
    width: 820px;
    transform: translateX(140px) !important;
  }

  #Popup-content{
    max-width: 55%;
    height: 70%;
    margin-top: 440px;
    font-size: 14px;
  }
  
  .mr{
    width: 100px;
    height: 100px;
    top: 65%;
  }

  .cloud.clicked{
    top: 50%;
    left: 0%;
  }

  .close-btn{
    width: 80px;
    height: 80px;
    bottom: 9%;
    left:30%;
  }
}




@media (max-width: 768px) and (min-width: 480px) {

   .cloud-section{
    height: 100% !important;

  }

  .cloud {
    width: 200px;
    height: 300px;
  }

  .cloud img{
    width: 200px;
    height: 300px;
  }

  .cloud-text{
    max-width: 110px;
    height: auto;
    font-size: 17px;
  }

.cloud-top-left .cloud-text {
    top: 36%;
    left: 21%;
}

.cloud-top-right .cloud-text {
     top: 35%;
    left: 25%;
}

.cloud-center .cloud-text {   
    top: 37%;
    left: 24%;
}

.cloud-bottom-left .cloud-text {    
    top: 31%;
    left: 20%;
}

.cloud-bottom-right .cloud-text {
    top: 35%;
    left: 24%;
}

.cloud6 .cloud-text {
    top: 35%;
    left: 22%;
}
/********************/

.cloud-top-left{
 top: 25%;
 left: 2%;
}

.cloud-bottom-left{
  left: 12%;
  top: 50%;
}

.cloud-top-right{
  left: 63%;
  top: 25%;
}

.cloud-bottom-right{
  top: 50%;
  left: 48%;
}

.cloud6{
 top: 4%;
 left: 46%;
}

.cloud-center{
  top: 5%;
  left: 15%;
}

/*********************/


.calc-btn {
    width: 300px;
    height: 60px;
    bottom: 7%;
    left: 50%;
   
  }
  .btn-wrapper{ 
    width: 45px;
    height: 45px; 
  }

  .left-btn h3{
    margin-left:0px;
    font-size: 17px;
    font-weight: bold;
  }
  
  .left-btn {
    flex: 1;
    text-align: left;
  }
    
  .icon-ohm {
    width: 25px;
    height: auto;
    
  }
  
  .arr {
    width: 40px;
    height:40px;
    left: 50%;
    bottom:0%;
   
  }
  
  /***************/

  #Popup{
    width: 700px;
    transform: translateX(90px) !important;
  }

  #Popup-content{
    max-width: 53%;
    height: 70%;
    margin-top: 450px;
    font-size: 12px;
  }
  
  .mr{
    width: 80px;
    height: 80px;
    top: 62%;
    left: 45%;
  }

  .cloud.clicked{
    top: 57%;
    left: 60%;
  }

  .close-btn{
    width: 70px;
    height: 70px;
    bottom: 9%;
    left:45%;
  }
}


@media (max-width: 480px) {
   .cloud-section{
    height: 100% !important;

  }

  .cloud {
    width: 220px;
    height: 290px;
  }

  .cloud img{
    width: 220px;
    height: 290px;
  }

  .cloud-text{
    max-width: 110px;
    height: auto;
    font-size: 16px;
  }

.cloud-top-left .cloud-text {
    top: 37%;
    left: 23%;
}

.cloud-top-right .cloud-text {
     top: 35%;
    left: 26%;
}

.cloud-center .cloud-text {
    top: 37%;
    left: 26%;
}

.cloud-bottom-left .cloud-text {
    top: 31%;
    left: 23%;
}

.cloud-bottom-right .cloud-text {
    top: 35%;
    left: 25%;
}

.cloud6 .cloud-text {
    top: 35%;
    left: 24%;
}
/********************/

.cloud-top-left{
 top: 25%;
 left: -9%;
}

.cloud-bottom-left{
  left: -2%;
  top: 50%;
}

.cloud-top-right{
  left: 40%;
  top: 25%;
}

.cloud-bottom-right{
  top: 50%;
  left: 40%;
}

.cloud6{
 top: 0%;
 left: 40%;
}

.cloud-center{
  top: 0%;
  left: -5%;
}

/*********************/


.calc-btn {
    width: 200px;
    height: 50px;
    bottom: 7%;
    left: 50%;
    padding-left: 10px;
  }
  .btn-wrapper{ 
    width: 33px;
    height: 33px; 
    position: absolute;
    top: 10px;
    right: 5px;
  }

  .left-btn h3{
    margin-left:0px;
    font-size: 14px;
    font-weight: bold;
  }
  
  .left-btn {
    flex: 1;
    text-align: left;
  }
    
  .icon-ohm {
    width: 20px;
    height: auto;
    
  }
  
  .arr {
    width: 40px;
    height:40px;
    left: 50%;
    bottom:0%;
   
  }
  
  /***************/

  #Popup{
    width: 550px;
    right: -20%;
    top: -55%;
  }

  #Popup-content{
    max-width: 52%;
    height: 100%;
    margin-top: 492px;
    font-size: 9px;
  }
  
   .close-btn{
    width: 30px;
    height: 30px;
    bottom: 3%;
    left:47%;
  }

  .mr{
    width: 70px;
    height: 70px;
    top: 62%;
    left: 45%;
  }

  .cloud.clicked{
    top: 58%;
    left: 40%;
  }

  #mouth-6.clicked,#mouth-bottom-left.clicked,#mouth-top-left.clicked,#mouth-top-right.clicked,#mouth-bottom-right.clicked,#mouth-center.clicked{
    left: 26%; 
    top: 72%;
    width: 40px;
    height: 40px;
}

}