body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f0f0f0;
  background-image: url('https://lh3.googleusercontent.com/d/1DLTzvLxRZOaXWbXFaOosYNfc9zfIWIpV?authuser=0'); /* Fundo inicial */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.background-hidden {
  display: none; /* Esconde elementos quando o fundo não é necessário */
}

.button-container {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 100px;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
  z-index: 3; /* Botões sobrepostos ao player */
}

.button-container.visible {
  opacity: 1;
  visibility: visible;
}

.button-container button {
  padding: 10px 20px;
  margin: 0 10px;
  border: none;
  border-radius: 10px;
  background-color: #555;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.button-container button:hover {
  background-color: #7283a3;
  transform: scale(1.05); /* Efeito visual ao passar o mouse */
}

.button-container button:focus {
  outline: 2px solid #003c7f; /* Indicação de foco acessível */
  outline-offset: 2px;
}

.button-container button.selected {
  background-color: #003c7f;
}

.iframe-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 2; /* Player acima do fundo */
}

#iframe-container,
#webtor-player {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Preenche o espaço mantendo a proporção */
}

.toggle-btn {
  position: absolute;
  top: 37px;
  left: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background-color: #003c7f;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  z-index: 4; /* Botão sobreposto a outros elementos */
}

.toggle-btn:hover {
  background-color: #7283a3;
  transform: scale(1.05); /* Efeito ao interagir com o botão */
}

.toggle-btn:focus {
  outline: 2px solid #7283a3; /* Indicação de foco acessível */
  outline-offset: 2px;
}

.toggle-btn.active {
  background-color: #00509e; /* Estado ativo do botão */
}

.toggle-btn.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.toggle-btn.fade-in {
  opacity: 1;
  visibility: visible;
}

/* Estilos para a imagem fixa */
#fixed-logo {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 1000; /* Imagem acima de todos os elementos */
}

#fixed-logo img {
  width: 220px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease; /* Suavidade ao passar o mouse */
}

#fixed-logo img:hover {
  transform: scale(1.1); /* Aumenta a imagem ao passar o mouse */
}

/* Media queries para responsividade */
@media (max-width: 768px) {
  .button-container {
    bottom: 50px; /* Ajusta posição em telas menores */
  }

  .toggle-btn {
    top: 20px;
    left: 10px;
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .button-container {
    bottom: 30px;
  }

  .toggle-btn {
    top: 10px;
    left: 5px;
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Modal Overlay */
.ads-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Sobrepõe todos os elementos */
}

/* Esconde o modal por padrão */
.ads-modal.hidden {
  display: none;
}

/* Conteúdo do modal */
.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  width: 70%;
  max-width: 800px;
  height: 70%;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Estilo do iframe */
#ads-iframe {
  width: 100%;
  height: 80%;
  border: none;
}

/* Rodapé do modal */
.modal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Botão de fechar */
#close-ads-btn {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #003c7f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: not-allowed; /* Inicialmente desabilitado */
  font-size: 16px;
  transition: background-color 0.3s, transform 0.2s;
}

#close-ads-btn:enabled {
  cursor: pointer;
  background-color: #00509e;
}