* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #ffffff;
  color: #333;
  text-align: center;
  padding: 1em;
}

header {
  background-color: #fff;
  padding: 1em 0;
}

p {
  text-align: justify;
}

.bg-heart {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background-image: url('images/heart.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.30; /* <-- ajusta a visibilidade */
  z-index: 0;
  pointer-events: none; /* não interfere com cliques */
}

.logo {
  max-width: 150px;
  height: auto;
}

.heart {
  max-width: 150px;
  height: auto;
}

h1 {
  font-size: 1.8em;
  margin: 0.5em 0;
  color: #2f749a;
}

h2 {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 1em;
}

#texto-explicativo {
  font-size: 1em;
  margin: 1.5em 0;
  padding: 0 1em;
}

button {
  background-color: #2f749a;
  color: white;
  border: none;
  padding: 1em 1.5em;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background-color: #2f749a;
}

#cardContainer {
  margin-top: 1.5em;
}

#cardImage {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1em;
}

#shareButtons button {
  background-color: #4267B2;
  margin-top: 0.5em;
}

footer {
  margin-top: 2em;
  font-size: 0.9em;
  color: #666;
}

footer a {
  text-decoration: none;
  color: #4267B2;
}

/* Modal / Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* fundo escuro */
  display: flex;
  flex-direction: column;
  align-items: center;         /* <-- em vez de "center" */
  justify-content: flex-start; /* <-- conteúdo começa do topo */
  z-index: 999;
  overflow-y: auto;            /* <-- permite scroll vertical */
  padding: 2em 1em;
}

#overlay.hidden {
  display: none;
}

#cardModal {
  background-color: white;
  border-radius: 12px;
  padding: 1em;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

#cardModal img {
  width: 100%;
  height: auto;
  margin-bottom: 1em;
  border-radius: 8px;
}

#closeBtn {
  font-size: 2em;
  color: #2f749a;
  float: right;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 0.5em;
  display: block;
}

#shareButtons button {
  background-color: #4267B2;
  color: white;
  border: none;
  padding: 0.8em 1.2em;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
}

.img-abaixo-botao {
  margin-top: 1.5em;
  max-width: 100%;
  height: auto;
  display: block;
}

.share-btn {
  margin-top: 1em;
  padding: 0.8em 1.2em;
  background-color: #1877f2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
}

.share-btn:hover {
  background-color: #145dbf;
}