* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}
html, body {
  height: 100%;
}
body {
  background: #fff;
  color: #1B2653;
  display: flex;
  flex-direction: column;
}
header {
  background-color: #1B2653;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}
nav {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
}
.menu-esquerda, .menu-direita {
  display: flex;
  gap: 2.5rem; 
  list-style: none;
  align-items: center;
}
.menu-esquerda {
  margin-right: auto;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
nav ul li a {
  color: white;
  text-decoration: none;
}
.hamburguer {
  display: none;
  flex-direction: column;
  cursor: pointer;
  border-radius: 32px;
  padding: 12px;      
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.hamburguer div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

#cadastrar{
    margin-top: 1px;
}
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1rem;
  margin-top: 6rem;
  flex: 1;
}
.card, .form-box, .rule3, .img-box {
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 10px;
}
.img-box img {
  width: 100%;
  transition: transform 1s ease-in-out;
}
.img-box.zoom img {
  transform: scale(1);
}
.img-box img.zoom-reverse {
  transform: scale(1.2);
}
.button {
  background-color: #FE6613;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin-top: 1rem;
  border-radius: 5px;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: white;
  border: 5px solid white;
  border-radius: 10px;
  width: 50vw;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content img {
  max-width: 100%;
  max-height: 100%;
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  background: white;
  border-radius: 50%;
  padding: 0 10px;
  line-height: 1.2;
}
.form-box input[type="text"] {
  margin-top: 5px;
  height: 2.5rem;
  width: 100%;
}
#assunto {
  height: 4rem;
}
.rule3 input[type="number"] {
  margin: 5px;
  width: 45%;
  height: 3rem;
  font-size: 1.2rem;
}
#c {
  display: inline-block;
}
#resultado {
  display: inline-block;
  background-color:#FE6613;
  color:white;
  padding:5px;
  margin-top:5px;
  width: 45%;
  text-align: center;
  font-size: 1.2rem;
  height: 3rem;
  line-height: 2.8rem;
  margin-left: 5px;
  vertical-align: top;
}
footer {
  background-color: #1B2653;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  margin-top: auto;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.imovel-guide {
  background-color: #FE6613;
  color: white;
  padding: 10px;
}
.zoom-anim-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.zoom-anim-img {
  width: 400px;
  height: auto;
  animation: zoomOutAnim 5s ease;
  transform-origin: center center;
  cursor: pointer;
}

@keyframes zoomOutAnim {
  0% {
    transform: scale(2);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    width: 100%;
  }
  .menu-esquerda,
  .menu-direita {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    display: none;
    background-color: #1B2653;
    position: absolute;
    top: 60px;
    right: 10px;
    width: 180px;
    border: 1px solid white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 1001;
  }
  .menu-esquerda.show,
  .menu-direita.show {
    display: flex;
  }
  .hamburguer {
    display: flex;
  }
}