/* RESET ================================================= */
*{
  padding: 0;
  margin: 0;
  box-sizing: 0;
  list-style: none;
  text-decoration: none;
}

/* VARIABLES ============================================ */
:root {
  --header-height: 9.2rem;

  /* COLORS */
  --hue: 750;
  /* HSL color mode */
  --base-color-green: #2CD78F;
  --base-color-dark-blue: #1E1E58;
  --base-color-alt: #0B6E4F;
  --title-color: hsl(var(--hue) 41% 10%);
  --text-color: #323238;
  --text-color-light: hsl(0 0% 98%);
  --body-color: hsl(0 0% 98%);
  --green-button: #093824;
  --test-button: #247B7B;
  --base-color-red:#E62B2A;

  /* FONTS */
  --title-font-size: 3rem;
  --subtitle-font-size: 1.6rem;
  --title-font: "Poppins", sans-serif;
  --body-font:  "DM Sans", sans-serif
}

.underline {
  text-decoration: underline;
}

.separator {
  border-top: solid;
  border-width: 2px;
  border-color: var(--base-color-green);
  width: 10%;
  margin-bottom: 4rem;
}

::selection {
  background: var(--base-color-green);
  color: var(--text-color-light);
}

/* BASE ================================================= */
html {
  font-size: 62.5%;
}

body {
  font: 400 1.6rem var(--body-font);
  color: var(--text-color);
  -webkit-font-smooth: antialiased;
  
}

html, body {
  scroll-behavior: smooth;
}


.title-main,
.title-topic {
  font: 700 var(--title-font-size) var(--title-font);
  color: var(--base-color-dark-blue);
  -webkit-font-smooth: auto;
}

.title-nav {
  color: var(--text-color-light);
  -webkit-font-smooth: auto;
}

.text {
  width: auto;
}

.subtitle {
  text-align: center;
}

.span {
  color: var(--base-color-dark-blue);
  font-weight: 700;
}

.red-span {
  color: var(--base-color-third);
  font-weight: 700;
}

.container {
  margin-left: 2.4rem;
  margin-right: 2.4rem;

}


.grid {
  display: grid;
}
  

.button {
  background-color: var(--base-color-green);
  text-align: center;
  align-items: center;
  color: var(--text-color-light);
  border: none;

  display: inline-flex;
  padding: 1.6rem 3.2rem;
  border-radius: .4rem;

  transition: background 0.3s;
  font: 500 1.6rem var(--body-font)
}

.button img {
  margin-right: 1.2rem;
}

.button:hover {
  background: var(--base-color-alt)
}

.button-inscription {
  background-color: var(--base-color-green);
  text-align: center;
  color: var(--text-color-light);
  
  padding: 1.6rem 3.2rem;
  border-radius: .4rem;

  transition: background 0.3s;
  font: 500 1.6rem var(--body-font)
}

.button-inscription:hover {
  background: var(--base-color-alt)
}

.divider-1 {
  height: 1px;
  background: linear-gradient( 
    270deg,
    hsla(0, 0%, 100%, 1), 
    hsla(0, 0%, 100%, 0.34));
}

.divider-2 {
  height: 1px;
  background: linear-gradient( 
    270deg,
    hsla(var(--hue),65%, 88%, 0.34),
    hsla(var(--hue), 36%, 57%, 1));
}

.divider {
  height: 2px;
  background-color: #2CD78F;
}

.section {
  padding: calc( -8rem + var(--header-height)) 0;
  margin-top: 10rem;
}

.section .title {
  margin-bottom: 1.2rem;
  color: var(--base-color-dark-blue);
}

.section .subtitle {
  margin-bottom: 2rem;
}


/* ARROW BACK TO TOP */
.back-to-top {
  background: var(--base-color-green);
  clip-path: circle();

  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;

  color: var(--text-color-light);
  
  font-size: 2.4rem;
  padding: .7rem;
  line-height: 0;

  visibility: hidden;
  opacity: 0;

  transition: 0.3s;
  transform: translateY(100%);
}

.back-to-top.show {
  visibility: visible;
  opacity: 1;

  transform: translateY(0%)
}



/* FOOTER ================================ */
footer {
  background: var(--base-color-green);
}

footer.section {
  padding: 6.4rem 0;
}

footer .logo {
  font: 700 2.4rem var(--title-font);
  color: var(--base-color-dark-blue);

  display: inline-block;
  margin-bottom: 2rem;;
}

footer a span {
  color: var(--text-color-light);
}

footer .brand p,
footer .brand p a {
  color: var(--text-color-light);
  margin-bottom: 1rem;
}

footer .social i {
  font-size:2.4rem;

  color: var(--text-color-light);
}

footer .social a {
  margin-right: 3.2rem;

  transition: 0.3s;
  display: inline-block;
}

footer .social a:hover {
  transform: translateY(-8px);
}