/* ESTILOS GLOBAIS */
html,
body {
  margin: 0;
  padding: 0;
}

/* HEADER */
header {
  display: flex;
  justify-content: center;
  max-width: 1120px;
  margin: 30px auto auto auto;
  z-index: 1;
  transition: all ease;
}

header img {
  height: auto;
  width: auto;
}

header nav {
  display: flex;
  padding: 15px 0 0 0;
  flex-grow: 10;
  justify-content: flex-end;
}

header ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

header li:first-of-type {
  margin-right: 70px;
}

header nav #nav-link a {
  text-decoration: none;
  font: 24px Mukta;
  font-style: normal;
  font-weight: 500;
  color: white;
  position: relative;
}

header nav #nav-link a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  bottom: 0;
  left: 0;
  background-color: #e43a3a;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

header nav #nav-link a:hover::before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

/* HEADER FIXED */
.sticky-header {
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 100%;
  height: 80px;
  margin: 0;
  background-color: #1e1819;
}

.sticky-header #link-logo {
  margin: 17px 0 0 250px;
  width: 48px;
  height: 48px;
}

.sticky-header img {
  width: 48px;
  height: 48px;
}

.sticky-header nav {
  padding: 23px 0 0 0;
  margin: 0 250px 0 0;
  flex-grow: 0;
}

/* BACKGROUND */
.background {
  background-color: #1e1819;
  max-width: 100%;
  height: 650px;
  width: 100%;
  position: absolute;
  top: 0;
  z-index: -1;
  object-fit: cover;
}

figure {
  margin: 0;
}

/* CARDS */
.cards {
  display: flex;
  justify-content: space-between;
  background-color: transparent;
  max-width: 1120px;
  margin: 90px auto;
}

.sticky-cards {
  margin-top: 392px;
}

.cards article {
  width: 47%;
  height: 310px;
  background: #fffdfd;
  box-shadow: 5px 30px 50px rgba(0, 0, 0, 0.25);
  border-radius: 5px;
}

.cards h3 {
  font: 14px Mukta;
  line-height: 32px;
  font-weight: 700;
  text-align: center;
  margin: 85px 0 20px 90px;
  width: 165px;
  height: 30px;
  background-color: #e43a3a;
  color: white;
  border-radius: 4px;
}

.cards h2 {
  font: 30px Mukta;
  line-height: 38px;
  color: #333030;
  font-weight: 700;
  margin: 0 0 32px 90px;
}
.cards .next-data {
  display: flex;
  align-items: center;
}

.cards .next-data img {
  width: auto;
  height: auto;
  margin-left: 80px;
}

.cards .next-data p {
  font: 16px Mukta;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e43a3a;
  margin: 0;
  padding-top: 2px;
}

/* MAIN SECTION ANIVERSARIANTES */
.main-niver {
  margin: 140px auto;
  display: flex;
  justify-content: center;
  max-width: 1120px;
}

.main-niver h1 {
  text-align: center;
  font: 50px Mukta;
  font-weight: 700;
  color: #1e1819;
  margin: 0 0 80px 0;
}

.main-niver ul {
  padding: 0;
}

.main-niver li {
  display: flex;
  list-style: none;
  border-bottom: 1px solid rgba(166, 166, 166, 1);
  border-left: 1px solid rgba(166, 166, 166, 0);
  border-right: 1px solid rgba(166, 166, 166, 0);
  transition: all 0.4s ease;
}

.main-niver li:hover {
  background-color: #e9e9e9;
  border-left: 1px solid rgba(166, 166, 166, 1);
  border-right: 1px solid rgba(166, 166, 166, 1);
}

.main-niver li:first-of-type {
  border-top: 1px solid #a6a6a6;
}

.main-niver li a {
  display: flex;
  align-items: center;
  margin-right: 45px;
}

.main-niver p {
  margin: 0;
  font: 20px Mukta;
  font-weight: regular;
  line-height: 33px;
  color: #1e1819;
  padding: 22px 0;
}

.main-niver p:first-of-type {
  padding-left: 45px;
  padding-right: 45px;
  min-width: 100px;
}

.main-niver p:nth-child(3) {
  min-width: 150px;
}

.main-niver #niver-content .data-niver {
  min-width: 150px;
  padding-right: 45px;
}

/* Estilização do aniversário atual */
.main-niver #niver-content .current-niver {
  border-top: 1px solid rgba(166, 166, 166, 1);
}

.main-niver #niver-content .current-niver p {
  font-weight: 700;
  color: #e43a3a;
}

.main-niver #niver-content .current-niver p:first-of-type {
  padding-left: 0;
  margin: 0 0 0 10px;
}

.main-niver #niver-content .current-niver p:nth-child(4) {
  min-width: 150px;
}

/* MAIN FERIADO */
.main-feriado {
  margin: 140px auto;
  display: flex;
  justify-content: center;
  max-width: 1120px;
}

.main-feriado h1 {
  text-align: center;
  font: 50px Mukta;
  font-weight: 700;
  color: #1e1819;
  margin: 0 0 80px 0;
}

.main-feriado #feriado-content {
  border-collapse: collapse;
}

.main-feriado #feriado-content .table-main {
  border-left: 1px solid rgba(166, 166, 166, 0);
  border-right: 1px solid rgba(166, 166, 166, 0);
  border-bottom: 1px solid #a6a6a6;
  transition: all 0.4s ease;
}

.main-feriado #feriado-content .table-main:first-of-type {
  border-top: 1px solid #a6a6a6;
}

.main-feriado #feriado-content .table-main:hover {
  background-color: #e9e9e9;

  border-left: 1px solid rgba(166, 166, 166, 1);
  border-right: 1px solid rgba(166, 166, 166, 1);
}

.main-feriado #feriado-content .table-title th {
  font: 25px Mukta;
  line-height: 41px;
  text-align: center;
  font-weight: 700;
  color: #1e1819;
  padding-bottom: 15px;
}

.main-feriado #feriado-content .table-title th:nth-child(1) {
  padding-left: 25px;
  padding-right: 40px;
}

.main-feriado #feriado-content .table-title th:nth-child(2) {
  padding-right: 0;
  width: 450px;
  text-align: center;
}

.main-feriado #feriado-content .table-title th:nth-child(4) {
  padding-left: 100px;
  padding-right: 30px;
}

.main-feriado #feriado-content .table-main th {
  font: 20px Mukta;
  line-height: 33px;

  font-weight: 400;
  color: #1e1819;
  padding-top: 22px;
  padding-bottom: 22px;
}

.main-feriado #feriado-content .table-main th:nth-child(1) {
  padding-left: 30px;
  text-align: left;
}

.main-feriado #feriado-content .table-main th:nth-child(2) {
  text-align: center;
}

.main-feriado #feriado-content .table-main .status {
  display: flex;
  padding-left: 95px;
}

.main-feriado #feriado-content .table-main .status img {
  margin-right: 16px;
}

/* Estilização do feriado atual */
.main-feriado #feriado-content .current-feriado th {
  font-weight: 700;
  color: #e43a3a;
}

/* BDAY_OFF DIV */
.bday_off {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  height: 440px;
  background-color: #e43a3a;
}

.bday_off div {
  width: 510px;
  height: 220px;
  margin-left: 60px;
}

.bday_off h3 {
  font: 50px Mukta;
  font-weight: 700;
  color: white;
  margin: 20px 0 0 0;
}

.bday_off p {
  font: 24px Mukta;
  font-weight: 400;
  color: white;
  margin: 0;
}

/* COLETIVA DIV */
.coletiva {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  height: 440px;
  background-color: #e43a3a;
}

.coletiva div {
  width: 510px;
  height: 220px;
  margin-left: 60px;
}

.coletiva h3 {
  font: 50px Mukta;
  font-weight: 700;
  color: white;
  margin: 20px 0 0 0;
}

.coletiva p {
  font: 24px Mukta;
  font-weight: 400;
  color: white;
  margin: 0;
}

/* FOOTER */
footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 100%;
  height: 130px;
}

footer ul {
  display: flex;
  list-style: none;
  padding: 0;
  width: 160px;
  justify-content: space-between;
}

footer img {
  height: auto;
  width: auto;
}

footer p {
  text-align: center;
  font: 14px Mukta;
  font-weight: 700;
  line-height: 18px;
  color: #1e1819;
}

footer aside {
  display: flex;
  align-items: center;
}

footer aside a {
  text-decoration: none;
  font: 14px Mukta;
  font-weight: 400;
  line-height: 16px;
  color: #e43a3a;
}

footer aside img {
  padding: 2px;
  border: 1px solid #e43a3a;
  width: 12px;
  height: 12px;
  border-radius: 12px;
  margin-left: 6px;
}

/* MEDIA QUERY */
@media screen and (min-width: 992px) and (max-width: 1200px) {
  header {
    max-width: 820px;
  }

  .sticky-header #link-logo {
    margin-left: 150px;
  }

  .sticky-header nav {
    margin-right: 150px;
  }

  .cards {
    max-width: 820px;
  }

  .cards article {
    height: 330px;
  }

  .cards article h3 {
    margin-top: 100px;
    margin-left: 50px;
  }

  .cards article h2 {
    margin-left: 50px;
  }

  .cards article .next-data img {
    margin-left: 42px;
  }

  .sticky-cards {
    margin-top: 432px;
  }

  #main-feriado #feriado-content tbody {
    width: 1120px;
    overflow: scroll;
  }
}

@media only screen and (min-width: 601px) and (max-width: 991px) {
  header {
    max-width: 650px;
  }

  header #link-logo {
    width: 70px;
    height: 70px;
  }

  header #link-logo img {
    width: 70px;
    height: 70px;
  }

  header nav #nav-link a {
    font-size: 18px;
  }

  #background img {
    height: 700px;
  }

  .sticky-header {
    height: 60px;
  }

  .sticky-header #link-logo {
    width: 40px;
    height: 40px;
    margin-left: 100px;
    margin-top: 12px;
  }

  .sticky-header #link-logo img {
    width: 40px;
    height: 40px;
  }

  .sticky-header nav {
    padding-top: 18px;
    margin-right: 100px;
  }

  .cards {
    max-width: 650px;
    margin-bottom: 120px;
  }

  .cards article {
    height: 270px;
  }

  .cards article h3 {
    margin-top: 60px;
    margin-left: 30px;
    font-size: 12px;
    width: 130px;
  }

  .cards article #next-niver h2 {
    font-size: 24px;
    margin-left: 30px;
    margin-bottom: 15px;
  }

  .cards article .next-data img {
    margin-left: 20px;
  }

  .cards article .next-data p {
    font-size: 12px;
  }

  .cards article #next-feriado h2 {
    font-size: 24px;
    margin-left: 30px;
    margin-bottom: 15px;
  }

  .sticky-cards {
    margin-top: 350px;
    margin-bottom: 120px;
  }

  #main-niver {
    margin-bottom: 80px;
  }

  #main-niver h1 {
    font-size: 36px;
    margin-bottom: 60px;
  }

  #main-feriado {
    margin-bottom: 80px;
  }

  #main-feriado h1 {
    font-size: 36px;
    margin-bottom: 60px;
  }

  #main-feriado div {
    overflow-x: scroll;
  }

  #main-feriado #feriado-content .table-title th:nth-child(1) {
    padding-right: 50px;
  }

  #main-feriado #feriado-content .table-title th:nth-child(2) {
    padding-right: 0px;
    min-width: 400px;
  }

  #main-feriado #feriado-content th:nth-child(1) {
    min-width: 58px;
  }

  #main-feriado #feriado-content th:nth-child(2) {
    min-width: 186px;
  }

  #main-feriado #feriado-content th:nth-child(3) {
    min-width: 365px;
  }

  #main-feriado #feriado-content th:nth-child(4) {
    padding-left: 45px;
  }

  .bday_off {
    height: 300px;
  }

  .bday_off img {
    width: 180px;
    height: 180px;
  }

  .bday_off div {
    margin-left: 30px;
    padding-top: 30px;
  }

  .bday_off h3 {
    font-size: 40px;
  }

  .bday_off p {
    font-size: 18px;
  }

  .coletiva {
    height: 300px;
  }

  .coletiva img {
    width: 180px;
    height: 180px;
  }

  .coletiva div {
    margin-left: 60px;
    padding-top: 30px;
    width: auto;
  }

  .coletiva h3 {
    font-size: 40px;
  }

  .coletiva p {
    font-size: 18px;
  }
}

@media only screen and (max-width: 600px) {
  header {
    max-width: 270px;
    margin-top: 30px;
  }

  header #link-logo {
    width: 50px;
    height: 50px;
  }

  header #link-logo img {
    width: 50px;
    height: 50px;
  }

  header nav {
    padding-top: 10px;
  }

  header nav #nav-link li {
    margin-right: 20px;
  }

  header nav #nav-link li:nth-child(2) {
    margin-right: 0;
  }

  header nav #nav-link a {
    font-size: 12px;
  }

  header nav #nav-link a:before {
    height: 2px;
  }

  #background img {
    width: auto;
    height: auto;
  }

  .sticky-header {
    height: 40px;
    width: 100%;
  }

  .sticky-header #link-logo {
    width: 20px;
    height: 20px;
    margin-left: 50px;
    margin-top: 12px;
  }

  .sticky-header #link-logo img {
    width: 20px;
    height: 20px;
  }

  .sticky-header nav {
    padding-top: 12px;
    margin-right: 50px;
  }

  .cards {
    display: block;
    margin-top: 130px;
    margin-bottom: 0;
  }

  .cards article {
    height: 250px;
    width: 300px;
    margin: 50px auto;
    padding-top: 1px;
  }

  .cards article h3 {
    margin-top: 60px;
    margin-left: 30px;
    font-size: 10px;
    width: 115px;
    height: 25px;
    line-height: 25px;
    text-align: center;
  }

  .cards article #next-niver h2 {
    font-size: 20px;
    margin-left: 30px;
    margin-bottom: 15px;
  }

  .cards article .next-data img {
    margin-left: 20px;
  }

  .cards article .next-data p {
    font-size: 12px;
  }

  .cards article #next-feriado h2 {
    font-size: 20px;
    margin-left: 30px;
    margin-bottom: 15px;
  }

  .sticky-cards {
    margin-top: 200px;
    margin-bottom: 0;
  }

  #main-niver {
    margin-top: 50px;
    margin-bottom: 50px;
  }

  #main-niver div {
    overflow-x: scroll;
  }

  #main-niver div div {
    min-width: 480px;
  }

  #main-niver h1 {
    font-size: 28px;
    margin-bottom: 50px;
  }

  #main-niver p {
    font-size: 16px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  #main-niver p:first-of-type {
    padding-right: 20px;
  }

  #main-niver #niver-content .data-niver {
    padding-right: 20px;
    min-width: 130px;
  }

  #main-niver p:nth-child(3) {
    min-width: 120px;
  }

  .main-niver #niver-content .current-niver p:nth-child(4) {
    min-width: 122px;
  }

  #main-feriado {
    margin-top: 50px;
    margin-bottom: 60px;
  }

  #main-feriado h1 {
    font-size: 28px;
    margin-bottom: 50px;
  }

  #main-feriado div {
    overflow-x: scroll;
  }

  #main-feriado #feriado-content .table-title th {
    font-size: 16px;
  }

  #main-feriado #feriado-content .table-title th:nth-child(1) {
    padding-left: 20px;
  }

  #main-feriado #feriado-content .table-title th:nth-child(2) {
    text-align: center;
    padding-left: 40px;
  }

  #main-feriado #feriado-content .table-main th {
    font-size: 16px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  #main-feriado #feriado-content .table-main th:nth-child(2) {
    padding-left: 40px;
  }

  #main-feriado #feriado-content .table-main th:nth-child(4) {
    padding-left: 40px;
  }

  #main-feriado #feriado-content .table-title th:nth-child(1) {
    padding-right: 50px;
  }

  #main-feriado #feriado-content .table-title th:nth-child(2) {
    padding-right: 0px;
  }

  #main-feriado #feriado-content th:nth-child(1) {
    min-width: 58px;
  }

  #main-feriado #feriado-content th:nth-child(2) {
    min-width: 350px;
  }

  #main-feriado #feriado-content th:nth-child(3) {
    min-width: 365px;
  }

  #main-feriado #feriado-content th:nth-child(4) {
    padding-left: 45px;
  }

  .bday_off {
    height: 220px;
  }

  .bday_off img {
    width: 110px;
    height: 110px;
  }

  .bday_off div {
    margin-left: 15px;
    padding-top: 80px;
  }

  .bday_off h3 {
    font-size: 24px;
  }

  .bday_off p {
    font-size: 12px;
  }

  .coletiva {
    height: 220px;
  }

  .coletiva img {
    width: 110px;
    height: 110px;
  }

  .coletiva div {
    margin-left: 15px;
    padding-top: 80px;
    width: auto;
  }

  .coletiva h3 {
    font-size: 24px;
  }

  .coletiva p {
    font-size: 12px;
  }

  footer {
    height: 80px;
  }

  footer ul {
    width: 80px;
  }

  footer ul li {
    width: 80px;
  }

  footer ul li a {
    width: 12px;
    height: 12px;
  }

  footer ul li a img {
    width: 12px;
    height: 12px;
  }

  footer p {
    font-size: 12px;
  }

  footer aside a {
    font-size: 12px;
  }

  footer aside img {
    width: 8px;
    height: 8px;
  }
}
