/*
 * Global Styles
 */

* {
  font-family: Roboto, sans-serif;
}

/*
 * Main Styles
 */

main h1,
h2,
h3,
p {
  margin: 0px;
}

/*
 * Hero
 */

#home-hero {
  height: 600px;
  padding: 100px 0 0 95px;
  background: url("./assets/new-home-banner.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  position: relative;
}

#home-hero h1 {
  text-transform: uppercase;
  color: #ffffff;

  font-family: Rubik;
  font-size: 90px;
  font-weight: 700;
  line-height: 107px;
  letter-spacing: 0em;
  text-align: left;
  position: absolute;
  left: 120px;
}

#home-hero h1 span {
  font-family: Rubik;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff00;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #ffffff;
}

#home-hero p {
  margin-top: 80px;
  padding-left: 8px;
  font-weight: 400;
  font-size: 20px;
  line-height: 149.53%;
  color: #ffffff;
  border-left: 3px solid #ffffff;
  max-width: 512px;
  position: absolute;
  bottom: 50px;
  left: 120px;
  text-shadow: 1px 1px #00000040;
}

/*
 * Browse Category
 */

#browse-category {
  box-sizing: border-box;
  width: 100%;
  height: 100%;

  background-image: url("./assets/home_stripes_background.png");
  background-repeat: no-repeat;
  background-position: right;
  background-color: #eff0f3;
}

#browse-category-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 1366px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 45px;
  padding: 40px 90px;
  margin: 0 auto;
}

@media screen and (max-width: 1260px) {
  #browse-category-content {
    padding: 50px 32px;
  }

  #home-hero p {
    max-width: 350px;
    bottom: 50px;
    right: 80px;
  }
}

#category-heading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

#category-heading-wrapper h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  color: #111111;
}

#category-heading-wrapper a {
  font-weight: 400;
  font-size: 20px;
  line-height: 23px;
  text-align: left;
  color: #111111;
  text-decoration: none;
}

#category-heading-wrapper img {
  width: 20px;
  height: 14px;
  padding-left: 5px;
}

#category-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(6, 180px);
  grid-gap: 15px;
  max-width: 100%;
  overflow-x: auto;
  padding: 15px 0;
}

#category-cards-wrapper a {
  text-decoration: none;
}

.category-card {
  box-sizing: border-box;
  width: 100%;
  height: 280px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.category-icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 65px 0 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: #ffffff;
}

#rugby-icon {
  rotate: 90deg;
}

.card_image {
  margin-bottom: 20px;
}

.card_content {
  margin-bottom: 20px;
}

@media (max-width: 1440px) {
  .card_image {
    margin-bottom: unset;
  }

  .card_content {
    margin-bottom: unset;
  }
}

.category-card img {
  width: 36px;
  height: 36px;
}

.category-card {
  font-weight: 700;
  font-size: 14px;
  line-height: 28px;
  color: #111111;
  text-decoration: none;
}

.category-card:hover {
  color: #ffffff !important;
}

#run-card:hover {
  background: url("./assets/run-card.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transition: 0.5s ease-in-out;
}

#soccer-card:hover {
  background: url("./assets/futebol-card.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transition: 0.5s ease-in-out;
}

#rugby-card:hover {
  background: url("./assets/rugby-card.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transition: 0.5s ease-in-out;
}

#cycling-card:hover {
  background: url("./assets/ciclismo-card.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transition: 0.5s ease-in-out;
}

#skate-card:hover {
  background: url("./assets/skate-card.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transition: 0.5s ease-in-out;
}

#automobilismo-card:hover {
  background: url("./assets/automobilismo-card.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transition: 0.5s ease-in-out;
}

#tennis-card img {
  background-color: #ffffff;
}

#tennis-card a {
  color: #ffffff;
}

/*
 * Subscribe
 */

#subscribe {
  height: 550px;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  align-items: center;
  text-align: center;
  background-color: #eff0f3;
}

#subscribe h2 {
  margin: 30px 0 0 0;
  font-weight: 700;
  font-size: 38px;
  line-height: 45px;
  text-align: center;
  font-variant: all-small-caps;
  color: #111111;
}

#subscribe img {
  flex: 0 0 auto;
  height: 130px;
  width: 130px;

  transform: scale(1.6);
}

#subscribe p {
  font-weight: 400;
  font-size: 20px;
  line-height: 149.53%;
  text-align: center;
  color: #8c9ba5;
  max-width: 800px;
  margin-bottom: 30px;
}

#subscribe a {
  align-self: center;
  display: flex;
  justify-content: center;
}
/*
#subscribe form {
  margin-top: 30px;
}

#subscribe input[type="email"] {
  width: 380px;
  height: 70px;
  box-sizing: border-box;
  margin-right: 20px;
  padding: 20px 25px;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 149.53%;
  color: #8c9ba5;
  background-color: #ffffff;
  border: none;
  border-radius: 8px;
}

#subscribe input[type="submit"] {
  width: 100px;
  height: 70px;
  padding: 20px;
  font-family: Roboto;
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 23px;
  color: #ffffff;
  background-color: #000000;
  border-radius: 8px;
}

#subscribe input[type="submit"]:hover {
  cursor: pointer;
}
*/

#subscribe a {
  align-items: center;
  background-color: #000000;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  font-family: Roboto;
  font-weight: 700;
  font-size: 20px;
  height: 70px;
  line-height: 23px;
  max-width: 300px;
  padding: 20px 23px;
  text-decoration: none;
  width: 100%;
}

/* Media Queries */

@media screen and (max-width: 1260px) {
  main {
    margin-top: 102px;
  }

  #home-hero {
    background-size: cover;
    background-position: center center;
    height: 348px;
    padding: 32px;
  }
}

@media screen and (max-width: 1260px) {
  #home-hero h1 {
    font-size: 50px;
    line-height: 56px;
  }

  #home-hero p {
    font-size: 18px;
    line-height: 20px;
    width: 100%;
  }

  #category-heading-wrapper h2 {
    font-size: 20px;
    line-height: 24px;
  }

  #articles-wrapper {
    overflow-x: auto;
  }

  #category-heading-wrapper a {
    font-size: 18px;
    line-height: 20px;
    text-align: left;
  }

  .category-card a {
    font-size: 18px;
    line-height: 24px;
  }

  #articles-heading-wrapper h2 {
    font-size: 20px;
    max-width: 149px;
  }

  .event {
    height: 330px !important;
    min-width: 250px;
  }

  #subscribe {
    height: fit-content;
    padding: 32px;
  }

  #subscribe h2 {
    font-size: 30px;
    line-height: 38px;
    margin: 0;
  }

  #subscribe img {
    height: 100px;
    width: 100px;
  }

  #subscribe p {
    font-size: 18px;
    line-height: 22px;
  }

  #subscribe form {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  #home-hero {
    background-position: top center;
  }

  #home-hero h1 {
    font-size: 30px;
    line-height: 34px;
    padding-top: 30px;
    left: 40px;
  }

  #home-hero p {
    font-size: 14px;
    line-height: 16px;
    padding-top: 20px;
    width: 100%;
    position: absolute;
    bottom: 100px;
    left: 40px;
    max-width: 300px;
  }

  #category-heading-wrapper h2 {
    font-size: 18px;
    line-height: 20px;
  }

  #category-heading-wrapper a {
    font-size: 16px;
    line-height: 18px;
    text-align: left;
  }

  #articles-heading-wrapper h2 {
    font-size: 18px;
  }

  #subscribe {
    padding: 32px;
  }

  #subscribe h2 {
    font-size: 28px;
    line-height: 30px;
  }

  #subscribe img {
    height: 130px;
    width: 130px;
  }

  #subscribe p {
    font-size: 16px;
    line-height: 20px;
  }

  #subscribe form {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
  }

  #subscribe input[type="email"] {
    margin: 0;
    width: 100%;
  }

  #subscribe input[type="submit"] {
    width: 100%;
  }
}

@keyframes change {
  0% {
    opacity: 100%;
  }
  25% {
    opacity: 0%;
  }
  50% {
    opacity: 0%;
  }
  100% {
    opacity: 100%;
  }
}

#alternating_text {
  max-width: 500px;
}

.alternating_text--change {
  animation: change 1s linear;
}
