body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

#container {
  display: flex;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.image-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%; /* Ajuste para cobrir a imagem inteira */
  transition: background-color 0.3s;
}

.overlay-left {
  left: 0;
  background-color: #48aa3e;
}

.overlay-right {
  right: 0;
  background-color: #1d2a3a;
}

.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.logo {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.logo-background {
  width: 320px;
  height: 320px;
  background-color: #48aa3e;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title-left {
  text-transform: uppercase;
  color: white;
  margin: 0;
  text-align: center;
  width: 100%;
  font-size: 60px;
}
.title-right {
  text-transform: uppercase;
  color: white;
  margin: 0;
  text-align: center;
  width: 100%;
  font-size: 60px;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 0;
  background: none;
  transform: translateY(-50%);
  width: 50%;
  padding-left: 30vh;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.button-container {
  text-align: center;
  margin-top: 20px; 
  display: flex;
  justify-content: center; 
}

.button-left {
  display: inline-block;
  padding: 12px 24px;
  background-color: white;
  border: none;
  border-radius: 20px;
  color: #1d2a3a;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.button-right {
  display: inline-block;
  padding: 12px 24px;
  background-color: white;
  border: none;
  border-radius: 20px;
  color: #1d2a3a;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.button-left:hover,
.button-left.blink {
  background-color: #48aa3e;
  color: white;
  animation: blink-left 1.5s ease infinite;
}

.button-right:hover,
.button-right.blink {
  background-color: #1d2a3a;
  color: white;
  animation: blink-right 1.5s ease infinite;
}

@keyframes blink-left {
  0%,
  100% {
    background-color: #48aa3e;
    color: white;
  }
  50% {
    background-color: white;
    color: #48aa3e;
  }
}

@keyframes blink-right {
  0%,
  100% {
    background-color: #1d2a3a;
    color: white;
  }
  50% {
    background-color: white;
    color: #1d2a3a;
  }
}

/* Responsividade */
@media screen and (max-width: 768px) {
  #container {
    flex-direction: column;
  }

  .text-overlay {
    width: 100%;
    padding: 0;
  }

  .button-container {
    margin-top: 10px;
  }

  .title-left,
  .title-right {
    font-size: 40px;
  }

  .button-left,
  .button-right {
    font-size: 14px;
    padding: 8px 16px;
    margin-top: 5px;
  }

  .logo-background {
    width: 180px;
    height: 180px;
  }

  .logo {
    max-width: 100%;
    max-height: 100%;
  }
}

@media screen and (min-width: 480px) and (max-width: 680px) {
  .title-left,
  .title-right {
    font-size: 40px;
  }

  .button-left,
  .button-right {
    font-size: 14px;
    padding: 8px 16px;
  }

  .logo-background {
    width: 180px;
    height: 180px;
  }
}
@media screen and (min-width: 681px) and (max-width: 781px) {
  .title-left,
  .title-right {
    font-size: 40px;
  }

  .button-left,
  .button-right {
    font-size: 14px;
    padding: 8px 16px;
  }

  .logo-background {
    width: 180px;
    height: 180px;
  }
}
@media screen and (min-width: 782px) and (max-width: 882px) {
  .title-left,
  .title-right {
    transform: translate(-50%);
    font-size: 40px;
  }

  .button-left,
  .button-right {
    transform: translate(-100%);
    font-size: 14px;
    padding: 8px 16px;
  }
}
@media screen and (min-width: 883px) and (max-width: 1024px) {
  .title-left,
  .title-right {
    transform: translate(-50%);
    font-size: 40px;
  }

  .button-left,
  .button-right {
    transform: translate(-100%);
    font-size: 14px;
    padding: 8px 16px;
  }

  .logo-background {
    width: 180px;
    height: 180px;
  }
}

@media screen and (min-width: 918px) and (max-width: 1200px) {
  .title-left,
  .title-right {
    transform: translate(-50%);
    font-size: 50px;
  }
  .button-left,
  .button-right {
    transform: translate(-100%);
    font-size: 14px;
    padding: 8px 16px;
  }
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  transition: background-color 0.5s ease-in-out;
}

.button-container {
  text-align: center;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.button-left,
.button-right {
  display: inline-block;
  padding: 12px 24px;
  background-color: white;
  border: none;
  border-radius: 20px;
  color: #1d2a3a;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.button-left:hover,
.button-right:hover {
  background-color: #f2f2f2;
}
