@import url('global.css');

/* Seção Header */

header {
  background: url('../Image/discord_topo.png') top center/contain no-repeat;
  padding: 1.5rem;
  height: 70vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .header_content {
  gap: 24px;
  /* flex-wrap: wrap; */
}

header .header_content h1 {
  font-size: 56px;
  width: 313px;
  height: 112px;
}

.header_info_discord {
  width: 757px;
  height: 66px;
}

header .header_content .header_buttons {
  width: 502px;
  display: flex;
  flex-direction: row;
}

.header_buttons button {
  border-radius: 28px;
  width: 205px;
  font-weight: 400;
  cursor: pointer;
}

.header_buttons .header_info_buttons {
  width: 281px;
}

/* Main */

/* Seção Servers */

.discord_servers {
  width: 971px;
  height: 394px;
  /* flex-basis: auto; */
  margin: auto;
}

.discord_servers .info_discord {
  width: 348px;
  height: 374px;
}

.discord_servers .info_discord h2 {
  margin-top: 10px;
}

/* Seção Channel */

.discord_channel .info_discord {
  width: 351px;
  height: 212px;
}

/* Seção Community */

.discord_community {
  margin-bottom: 7rem;
}

.discord_community .info_discord {
  width: 351px;
  height: 234px;
}

/* Seção connection */

.discord_connection {
  height: 744px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.discord_connection,
.discord_connection .conexao_discord_info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.discord_connection .conexao_discord_info h3 {
  width: 608px;
  height: 80px;
  font-size: 40px;
}

.discord_connection .conexao_discord_info p {
  width: 802px;
}

.discord_connection picture img {
  width: 784px;
  height: 508px;
  object-fit: cover;
}

/* Footer */

footer {
  height: 134px;
}

/* =======================
   RESPONSIVIDADE
   ======================= */

/* Tablet (até 1024px) */
@media (max-width: 1024px) {
  /* HEADER */
  header {
    background: url('../Image/discord_topo.png');
    background-repeat: no-repeat;
  }

  header .header_content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    display: flex;
    justify-content: center;
    /* margin-top: auto; */
    max-width: 428px;
    max-height: 366px;
    margin-left: auto;
    margin-right: auto;
    /* margin-bottom: 5rem; */
  }

  header .header_content h1 {
    font-size: 32px;
    width: 278px;
    height: auto;
  }
  .header_info_discord {
    font-size: 16px;
    width: auto;
    height: auto;
  }
  header .header_content .header_buttons {
    width: 381px;
    height: 122px;
    flex-direction: column;
    gap: 16px;
  }

  .header_buttons button,
  .header_buttons .header_info_buttons {
    width: 100%;
  }

  /* SEÇÕES */

  .discord_servers,
  .discord_channel,
  .discord_community {
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 2rem 1rem;
    gap: 2rem;
  }
  .discord_servers .info_discord,
  .discord_channel .info_discord,
  .discord_community .info_discord {
    width: 90%;
    height: auto;
    text-align: center;
  }
  .discord_connection .conexao_discord_info h3 {
    width: 90%;
    font-size: 2rem;
    height: auto;
  }
  .discord_connection .conexao_discord_info p {
    width: 90%;
  }
  .discord_connection picture img {
    width: 90%;
    height: auto;
  }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {
  header .header_content h1 {
    font-size: 2rem;
  }
  .header_info_discord {
    font-size: 0.9rem;
  }
  .header_buttons button {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  .discord_channel picture img,
  .discord_servers picture img,
  .discord_community picture img,
  .discord_connection picture img {
    width: 379px;
    height: 252px;
  }

  .discord_connection {
    padding: 1rem;
    height: auto;
  }
  .discord_connection .conexao_discord_info h3 {
    font-size: 1.5rem;
  }
  footer {
    height: auto;
    padding: 1rem;
    text-align: center;
  }
}

/* Mobile pequeno (até 480px) */
@media (max-width: 480px) {
  header .header_content h1 {
    font-size: 1.5rem;
  }
  .header_info_discord {
    font-size: 0.8rem;
  }
  .header_buttons button {
    font-size: 0.8rem;
    padding: 0.6rem;
  }
  .discord_servers,
  .discord_channel,
  .discord_community {
    padding: 1rem 0.5rem;
  }

  .discord_servers picture img,
  .discord_channel picture img,
  .discord_community picture img,
  .discord_connection picture img {
    width: 379px;
    height: 252px;
  }
  .discord_connection .conexao_discord_info h3 {
    font-size: 1.2rem;
  }
}
