body, html {
background-color: #ffffff;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-image: url('./background-integracao-amorim2.png');
  background-size: cover;        /* cobre todo o ecrã */
  background-position: center;   /* centra a imagem */
  background-repeat: no-repeat;  /* não repete */
  background-attachment: fixed;  /* imagem fixa ao fazer scroll */
  color: #333
}

#animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;        /* fica atrás de tudo */
    overflow: hidden;
}

.container-1{
  
  position:fixed;
  display: flex;
  top:0;
  left:0;
  height: 40vh;
  width: 100vw;
}

.text{ 
  position: fixed;
  top: 90px;
  left: 100px;
  height: 100%;
  width: 70%;
  padding-left: 20px;
  padding-top: 30px;
  text-align: left;
}

.container {
  background-color: #ffffff;
  text-align: fixed;
  top:5vh;
  margin: 20px;
  max-width: 500px;
  max-height: 250px;
  position:relative;
  justify-content: center;
  
}

.recaptcha-box {
  background-color: #fff;
  padding: 15px;
  width: 100%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;  /* Importante! */
}

.recaptcha-button{
display: inline-flex;
align-items: center;
padding: 10px 20px;
background-color: #faae40;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
transition: background 0.3s;
}

.recaptcha-button img{
    margin-right: 10px;
    min-width: 100%;
    height:auto;
    
}

.recaptcha-button:hover{
    background: #f38020;
   
}

.overlay{
  background-color: #e72a2a;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 10;
  display: none;
  text-align: center;
}

.overlay.active{
   display:block;
}

.recaptcha-popup {
  display: none;
  padding: 20px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  border-radius: 8px;
  text-align: center;
  position: absolute;
  top:90%;
  left:50%;
  transform: translateX(-50%);
  z-index: 30;  /* Aumenta o z-index */
  animation:fadeIn 0.5s ease;
  width: 32%;
}

.recaptcha-popup.active{
  display: block;
}

#p1 {
    font-family: 'Courier New', Courier, monospace;
    width: 100%;
    font-weight: bolder;
    font-size: clamp(1.5rem, 5vw, 3cap);
}
#p2 {
    font-family: 'Courier New', Courier, monospace;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;    
    font-size: clamp(0.7rem, 1.2vw, 1.5rem);
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
}

#cloudflare-logo {
    position: absolute;
    top: 0vh;
    left: 75%;
    width: 15%;
    max-width: 100%;
    height: auto;
    display: block;
}


#content {
    box-sizing: border-box;
    user-select: none;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
    height: 65px;
    width: 60%;
    display: flex;
    margin: 0 auto;  /* Centra horizontalmente */

}

.main-wrapper {
    color: #232323;
    -webkit-font-smoothing: antialiased;
    background-color: #fff;
    margin: 3;
    padding: 10px;
    font-family: -apple-system, system-ui, blinkmacsystemfont, Segoe UI, roboto, oxygen, ubuntu, Helvetica Neue, arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    overflow: hidden;
    width: 100 vw;
}

#terms a:link, #terms a:visited {
    color: #232323;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 10px;
    text-decoration: underline;
    
}

#logo {
    height: 25px;
    margin-bottom: 1px;
}

#MwRA1{
  padding-left:20px;
}

#branding{
  display: flex;
  flex-direction: column; /* stack children vertically */
  align-items: flex-end; /* align to the left */
  padding-right:20px;
  flex-wrap: wrap;
}


#terms{
    color: #232323;
    justify-content: flex-end;
    font-size: 11px;
    font-style: normal;
    line-height: 10px;
    display: inline-flex;
}

.link-spacer {
  margin: 0 3px; /* adds space on both sides of the dot */
}

.footer {
      position:absolute;
      bottom: 10vh;
      width: fit-content;
      font-size: 0.95em;
      color: #999;
    }

/* Formulário de Participação */
.container-form {
    position: relative;
    z-index: 100;
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
    font-family: 'Segoe UI', monospace;
    /* font-family: 'Arial', sans-serif; */
}

.container-form h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.container-form p {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
}

#participationForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#participationForm div {
    display: flex;
    flex-direction: column;
}

#participationForm label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: bold;
    font-size: 13px;
}

#participationForm input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

#participationForm input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 5px rgba(33,150,243,0.2);
}

#participationForm button {
    padding: 10px;
    background: #D2A275;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

#participationForm button:hover {
    background: #78695c;
}


@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Esconder container até submeter formulário */
.container {
    display: none;
}

.container.show {
    display: flex;
}
