* {
  margin: 0;
  padding: 0;
  font-family: montserrat;
}

/* HEADER */

header {
  height: 50px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-left: 50px;
  padding-right: 50px;
  background-color: #f5f5f5;
  align-items: center;
}


.logosigma img,
.logosgov img {
  margin-top: 5px;
  justify-content: center;
  align-items: center;
  align-content: center;
  align-self: center;
  width: 200px;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  filter: brightness(1.05) contrast(1.1);
}

.logosgov {
  display: flex;
  align-items: end;
  gap: 40px;
}

/* MAIN */

#mainbody {
  height: calc(100vh - 50px);
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)), url('../../src/img/macaiba_prefeitura_2.jpg');
  background-size: cover;
  background-position-x: center;
  background-position-y: center;
}

/* LOGO + SERVIÇOS */

.title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: calc(100vh - 50px - 20vh);
}

.logosigwhite {
  padding-left: 40px;
}

.logosigwhite img {
  width: 17vw;
  min-width: 100px;
  object-fit: contain;
  object-position: center;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  padding: 10px;

}

.wrapper-text {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: white;
  text-align: center;
  padding: 20px;
  line-height: 1.5;
  max-width: 600px;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  text-decoration: none;
}

.btitle {
  color: #2d4476;
  font-size: 16pt;
  font-weight: 100;
  text-align: end;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-right: 50px;
  background-color: #f5f5f5;
  border-radius: 50px 0px 0px 50px;
  display: flex;
  gap: 15px;
  justify-content: end;
}

.buttonsin1,
.buttonsin2,
.buttonsin3,
.buttonsin4,
.buttonsin5 {
  min-width: 310px;
  margin-right: 0;
}

.buttonsin1:hover {
  margin-left: -70px;
  width: 380px;
}

.buttonsin2:hover {
  margin-left: -70px;
  width: 380px;
}

.buttonsin3:hover {
  margin-left: -70px;
  width: 380px;
}

.buttonsin4:hover {
  margin-left: -70px;
  width: 380px;
}

.buttonsin5:hover {
  margin-left: -70px;
  width: 380px;
}

/* ACESSO AO SISTEMA */

.buttonarea {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  position: fixed;
}

.buttons2 {
  font-size: 1.2vw;
  font-weight: 600;
  background-color: RGB(245, 245, 245, 0.6);
  backdrop-filter: blur(10px);
  width: 100%;
  height: calc(20vh - 1px);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px 15px 0 0;
  border-color: grey;
  border-style: solid;
  border-width: 1px 1px 0px 1px;
  color: #2d4476;
  gap: 10px;
  transition: transform 0.5s ease, height 0.5s ease;
}

.buttons2 i {
  font-size: 18pt;
}


.buttons2:hover {
  transform: translateY(-5vh);
  height: calc(25vh - 1px);
}

a {
  text-decoration: none;
}

@media screen and (max-width: 834px) {

  header {
    justify-content: center;
  }

  .logosigma img,
  .logosgov img {
    margin-top: 5px;
    justify-content: center;
    align-items: center;
    align-content: center;
    align-self: center;
    width: 200px;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    filter: brightness(1.05) contrast(1.1);
  }

  #mainbody {
    height: calc(100vh - 50px);
    min-height: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .title {
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    height: auto;
    padding-top: 40px;
  }

  .logosigwhite {
    padding: 0;
  }

  .btitle {
    padding-top: 10px;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 10px;
    border-radius: 50px;
    justify-content: center;
  }

  .buttonsin1:hover {
    margin-left: 0;
    width: 310px;
  }

  .buttonsin2:hover {
    margin-left: 0;
    width: 310px;
  }

  .buttonsin3:hover {
    margin-left: 0;
    width: 310px;
  }

  .buttonsin4:hover {
    margin-left: 0;
    width: 310px;
  }

  .buttonsin5:hover {
    margin-left: 0;
    width: 310px;
  }

  .buttonsin5 {
    margin-bottom: 20px;
  }

  .buttonarea {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 25px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    width: 75%;
    padding: 0;
    padding-bottom: 30px;
    height: auto;
  }

  .buttons2 {
    border-radius: 20px;
    height: 150px;
    font-size: 12pt;
    flex-direction: column;
    text-align: center;
  }

  .buttons2:hover {
    transform: translateY(-0vh);
    height: 150px;
  }
}

@media screen and (max-width: 960px) {

  .logosigwhite img {
    width: 20vw;
    min-width: 200px;
    object-fit: contain;
    object-position: center;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 10px;

  }


  .btitle {
    padding-top: 10px;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 10px;
    border-radius: 50px;
    justify-content: center;
  }
}



@media screen and (max-width: 500px) {

  #mainbody {
    height: auto;
    gap: 50px;
  }

  .contbuttons,
  .buttons {
    width: 100%;
  }

  .buttonsin1,
  .buttonsin2,
  .buttonsin3,
  .buttonsin4,
  .buttonsin5 {
    margin-left: auto;
    margin-right: auto;
  }

  .buttonsin1 a,
  .buttonsin2 a,
  .buttonsin3 a,
  .buttonsin4 a,
  .buttonsin5 a {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .buttonsin1:hover {
    margin-left: auto;
  }

  .buttonsin2:hover {
    margin-left: auto;
  }

  .buttonsin3:hover {
    margin-left: auto;
  }

  .buttonsin4:hover {
    margin-left: auto;
  }

  .buttonsin5:hover {
    margin-left: auto;
  }

  .btitle {
    font-size: 12pt;
    width: 85%;
    height: 25px;
    align-items: center;
  }

  .buttonarea {
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
    gap: 40px;
    width: 310px;
  }

  .buttons2 {
    height: 120px;
    width: 85%;
  }

  .buttons2:hover {
    transform: translateY(-0vh);
    height: 120px;
  }
}

@media screen and (max-width: 700px) {

  .logosigwhite img {
    width: 10vw;
    min-width: 250px;
    object-fit: contain;
    object-position: center;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 10px;
  }

  .wrapper-text {
    font-size: 1rem;
    padding: 10px 20px;
  }


  .btitle {
    font-size: 14pt;
    padding: 15px;
  }
}