body{
    overflow: hidden;
}
html {
  background: linear-gradient(
    to bottom,
    #000 0%,
    #0f2027 15%,
    #203a43 30%,
    #2c5364 50%,
    #53354a 70%,
    #903749 90%,
    #e84545 100%
  );
  background-blend-mode: soft-light;
}

#myInfo {
    position: fixed;
    width: 100%;
    background-color:rgba(50, 50,50, 0.5) !important;
    margin: 0;
    left: 0;
    top: 0;
    padding: 0;
    z-index: 14000;
    text-align: center;
    color: #fff !important;
    line-height: 140%;
    padding: 10px 0;
    font-family: roboto,Arial;
}

#myInfo .myText {
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    margin: 10px 20px;
    color: #fff;
    max-width: 800px;
    text-align: left;
}

#myInfo .mybuttons {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    margin: 0 10px;
    font-weight: bold;
    text-transform: UPPERCASE;
    white-space: nowrap;
    color: #fff;
    margin-left: 8px;
    padding: 0 6px;
    text-decoration: none;
}

#blog{
    display:none;
}




    .btn {
      display: inline-block;
      padding: 10px 20px;
      background-color: #007bff;
      color: #fff;
      text-decoration: none;
      border-radius: 5px;
      transition: background-color 0.3s ease;
    }
    .btn:hover {
      background-color: #0056b3;
    }

    .col-6{
        float:left;
        width: 50%;
    }
    #sideBar h1{
        margin-top: 30vh;
    }

    #sideBar h3, #sideBar h4{
        color: white;
        text-shadow: 3px 3px #333;
    }


    .container {
  position: fixed;
  top: calc(50vh - 200px);
  left: calc(50% - 225px);
  height: 600px;

  overflow: hidden;
  z-index:5;
  zoom:0.8;
}

#container2 {
  position: fixed;
  top: 60vh ;
  left: calc(50% - 385px);
  height: 200px;
  width: 800px;
  overflow: hidden;
  z-index:5;
  zoom:0.9;
  text-align: center;
}

/* Imagem maior */
.container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 250px;
  transform: translate(-50%, -50%);
  background: url("https://nmd.pt/landingPage/Calendario-maya_inverse.png") no-repeat center/contain;
  animation: spin 10s linear infinite;
  z-index: -3;
}

/* Imagem intermédia */
.container::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  background: url("https://nmd.pt/landingPage/Calendario-maya_inverse.png") no-repeat center/contain;
  animation: spinReverse 10s linear infinite;
  z-index: -2;
}

/* Terceira imagem */
.container .imagem-central {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75px;
  height: 75px;
  transform: translate(-50%, -50%);
  background: url("https://nmd.pt/landingPage/Calendario-maya_inverse.png") no-repeat center/contain;
  animation: spin 20s linear infinite;
  z-index: -1;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to   { transform: translate(-50%, -50%) rotate(0deg); }
}


#aiGen{
    display: none;
}
#hideBreak{
    display: none;
}

@media screen and (max-width:640px){
    #hideBreak{
    display: inline;
}

}
@media screen and (max-width:1024px){

    .container::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .container::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .container .imagem-central {
    left: 50%;
    transform: translateX(-50%);
  }

  .painel.esquerda {
      display: none;
    }

    .painel.direita {
        display: none;
    }

    .painel.esquerda2 {
      display: none;
    }

    .painel.direita2 {
        display: none;
    }

    .painel.esquerda3 {
      display: none;
    }

    .painel.direita3 {
        display: none;
    }


    .painel.esquerda4 {
      display: none;
    }

    .painel.direita4 {
        display: none;
    }


    #aiGen{
    display: inline-block;

    background-image: url(https://nmd.pt/landingPage/ai.png) !important;
    background-size: cover !important;
    background-color: transparent !important;
    width: 64px;
    height: 64px;
    position: absolute;
    top:10px;
    left:10px;
    }

    @keyframes changeBackground {

        0% {
            background-image: url('https://nmd.pt/landingPage/bgMobile1.jpeg');
        }
        33.33% {
            background-image: url('https://nmd.pt/landingPage/bgMobile2.jpeg');
        }
        66.66% {
            background-image: url('https://nmd.pt/landingPage/bgMobile3.jpeg');
        }
    /*     75% {
            background-image: url('https://nmd.pt/landingPage/bgMobile4.jpeg');
        } */
        100% { background-image: url('https://nmd.pt/landingPage/bgMobile1.jpeg'); 
        };
    }

    html {
        animation: changeBackground 20s linear infinite; /* 15 segundos para 3 imagens */
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        overflow-y: hidden;
    }


/*     .containerLandingPAge{
        height: 1200px;
    }  */

    .col-6{
        width:90%;
        }

        iframe{
            margin-left: -30px;
        }

        body{
    overflow:visible;
    }




    #sideBar{

            height: 600px;

        }



    #formGoogle{
        margin:auto;
        
    }

    #showFormButton{
    display: inline-block !important;


}



}


#showFormButton{

    height: 1em;
}

#myVideoLandingPage{
    z-index: -1;
    position: fixed;
    top:0;
    left:0;
    zoom:1.5;

}

#logo2 {
    background: url("https://nmd.pt/landingPage/NMDMONKEY.png");
    background-repeat: no-repeat;
    margin: auto;

    width: 350px;
    height: 200px;
    filter: blur(0px);
    -webkit-animation: logoMove2 13s ease infinite;
    -moz-animation: logoMove2 13s ease infinite;
    -o-animation: logoMove2 13s ease infinite;
    animation: logoMove2 13s ease infinite;
    /* transition: all 2s ease-in-out; */

    zoom:0.6;
}

@keyframes logoMove2{
0% {
    background-position: 0% 100%;
}
50% {
    background-position: 100% 100%;
}
100% {
    background-position: 0% 100%;
}
}

 /* Estilização do pop-up */
 #popup, #popupEn {
        visibility: hidden;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 20px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
        width: 80%;
        scroll-behavior: smooth;
        overflow-y: scroll;
        height:70vh;
        text-align: left;
        zoom:1;
        z-index: 7;
        padding: 40px;
    }

    

    #popup button, #popupEn button {
        margin-top: 10px;
    }

    #popupEn p, #popup p, ul{

        font-size:medium;
    }



    #overlay {
        visibility: hidden;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
    }


    #cookieBanner {
        background: #ff9800;
        color: white;
        width:100%;
        position: fixed;
        bottom:0;
        left:0;
        zoom:0.9;
        height:6.5em;
        

    }

    #privacyBtn, #privacyBtnEn{
        background: #ff9800;
        color: white;
        border: solid 1px black;
        cursor: pointer;  
        width: 100px;
        padding:2px;
        border-radius: 5px;
        margin-left:10px;
        line-height: 1.5em;

        }

        #privacyBtn:hover, #privacyBtnEn:hover{
        background: black;
        color: #ff9800;
        border: solid 1px white;
        cursor: pointer;  
        width: 100px;
        padding:2px;
        }


#popup span, #popupEn span{
    line-height: 1.5em;
}

#popup ul, #popupEn ul{
    line-height: 2em;
}


/* Estilos base permanecem iguais */
.painel {
  position: fixed;
  width: 321px;
  height: 192px;
  padding: 5px;
  z-index: 6;
  overflow: hidden;
  top: 60vh;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  border: 4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.7);
  animation: fromCenter 15s ease-in-out infinite;

  opacity: 0;
  offset-rotate: auto;

  transform: scale(0);

zoom:0.8;
}



.painel img {
  width: 400px;
  height: 225px;
  object-fit: cover;
  margin: 0 auto 5px auto;
}


/* Painéis Esquerda */
.painel.esquerda    { animation-delay: 0s; }
.painel.esquerda2   { animation-delay: 2.5s; }

.painel.esquerda3   { animation-delay: 5s; }
.painel.esquerda4   { animation-delay: 7.5s; }

/* Painéis Direita */
.painel.direita     { animation-delay: 0s; }
.painel.direita2    { animation-delay: 2.5s; }

.painel.direita3    { animation-delay: 5s; }
.painel.direita4    { animation-delay: 7.5s; }

.painel.esquerda, .painel.esquerda3{
  top:20vh;
  left: 80%;
}
.painel.esquerda2, .painel.esquerda4 {
  top:50vh;
  left: 80%;
}

.painel.direita, .painel.direita3{
  top:20vh;
  left: 20%;
}

.painel.direita2, .painel.direita4 {
  top:50vh;
  left: 20%;
}



@keyframes fromCenter {
  0% {
    offset-distance: 0%;
    transform: scale(0.1);
    opacity: 0;
  }
  10% {
    transform: scale(1);
    opacity:0.75;
  }
  60% {
    transform: scale(1);
    opacity: 0.75;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
    transform: scale(0.1);
  }
}




  @keyframes mover {
    0% {
      offset-distance: 0%;
      opacity: 0.2;
      transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
      offset-distance: 100%;
      opacity: 0.2;
      transform: translate(-50%, -50%) scale(0.5);
    }
  }

  /* Trajetórias curvas diferentes */
  .arco1 {
    offset-path: path("M0,0 Q150,-150 300,0");
  }

  .arco2 {
    offset-path: path("M0,0 Q-150,-150 -300,0");
  }

  .arco3 {
    offset-path: path("M0,0 Q-150,150 -300,0");
  }

  .arco4 {
    offset-path: path("M0,0 Q150,150 300,0");
  }

  .container-imagens {
  transform: scale(1);
  opacity: 0.75;
  transition: transform 0.4s ease, opacity 0.4s ease;
}


.container-imagens:hover {
  transform: scale(0.7);
  opacity: 1;
}


/* ============================
   GLOBAL
   ============================ */
   body {
  margin: 0;

  overflow-x: hidden;
}

/* ============================
   FLOATING CHAT BUTTON
   ============================ */
#open-chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #00ffc8;
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(0,255,200,0.4);
  z-index: 9999;
  animation: pulse 2s infinite ease-in-out;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hover desktop */
#open-chat-btn:hover {
  transform: scale(1.1);
}

/* Pulse animation */
@keyframes pulse {
  0% { box-shadow: 0 0 10px rgba(0,255,200,0.4); }
  50% { box-shadow: 0 0 25px rgba(0,255,200,0.8); }
  100% { box-shadow: 0 0 10px rgba(0,255,200,0.4); }
}

/* ============================
   DESKTOP CHAT PANEL
   ============================ */
#chat-iframe {
  position: fixed;
  top: 0;
  right: -420px; /* hidden */
  width: 420px;
  height: 100vh;
  border: none;
  transition: right 0.4s ease;
  z-index: 9998;
  background: #000;
  box-shadow: -4px 0 20px rgba(0,0,0,0.4);
  will-change: transform;
  backface-visibility: hidden;
}

#chat-iframe.open {
  right: 0;
}

/* ============================
   MOBILE VERSION (FULLSCREEN)
   ============================ */
@media (max-width: 768px) {

  /* Smaller button */
  #open-chat-btn {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
    font-size: 24px;
  }

  /* Fullscreen stable panel */
  #chat-iframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh; /* prevents collapse when keyboard opens */
    transform: translateX(100%);
    transition: transform 0.35s ease;
    background: #000;
    box-shadow: none;
    z-index: 9998;
  }

  #chat-iframe.open {
    transform: translateX(0);
  }
}

/* ============================
   HIDE BUTTON WHEN CHAT IS OPEN
   (Fix for keyboard closing chat)
   ============================ */
#chat-iframe.open + #open-chat-btn {
  opacity: 0;
  pointer-events: none;
}

