@import url('variables.css');

* {
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center; 
  background-color: white;
}

body {
  position: relative;
}

/* TYPOGRAPHY  */
h1, h2, h3, h4 {
  font-family: var(--font-primary);
} 

h1 {
  text-transform: uppercase;
  font-size: 2.5rem;
  letter-spacing: 4px;
  font-weight: 800;
}

h2 {
  text-transform: capitalize;
  font-size: 1.875rem;
  letter-spacing: 2px;
  font-weight: 800;
}

h3 {
  font-style: italic;
  text-transform: capitalize;
}

h4 {
  font-weight: bold;
  font-size: 1.5rem;
}

p {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 1rem;
}

/* BUTTONS */
.cta {
  display: flex;
  justify-content: center;
  color: white;
  background-color: var(--secondary-color);
  padding: .63em;
  font-family: var(--font-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  text-transform: uppercase;
  min-width: 200px;
  max-width: 250px;
  border-radius: 10px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  transition-property: background-color, color;
  transition-duration: 0.5s;
}

.cta:hover {
  background-color: white;
  color: var(--secondary-color);
  cursor: pointer;
}

.contribute-btn {
  text-decoration: none;
  color: white;
  font-family: var(--font-secondary);
  text-transform: capitalize;
  border: 2px solid var(--secondary-color);
  width: 200px;
  padding: .63em;
  border-radius: 6px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  transition-property: background-color;
  transition-duration: 0.5s;
  margin-top: 1rem;
}

.contribute-btn:hover {
  background-color: var(--secondary-color);
}

/* HEADER & FOOTER */
header {
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
}

#hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.header-nav a,
.footer-nav a {
  font-family: var(--font-primary);
  text-decoration: none;
  color: white;
  font-size: 1.125rem;
}

.header-nav {
  position: absolute;
  top: 100px;
  right: -100vw;
  bottom: 0;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: end;
  opacity: 0;
  transition: right 0.3s ease-in-out, opacity 0.3s ease-in-out;
  z-index: 100;
}

.header-nav a {
  padding: 2rem 2rem 2rem 4rem;
  position: relative;
}

.header-nav.show {
  right: 0;
  opacity: 1;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease-in-out;
}

.header-nav a:hover::after {
  width: 100%;
}

.header-nav a.active::after {
  width: 100%;
}

@media only screen and (min-width: 721px) {
  #hamburger-btn {
    display: none;
  }

  .header-nav {
    position: static;
    height: auto;
    width: auto;
    display: flex !important;
    flex-direction: row;
    gap: 2rem;
    opacity: 1;
    transform: translateX(0) !important;
    transition: none;
    padding: 0;
  }

  .header-nav a {
    padding: 0 0 5px;
  }
}

footer {
  background-color: var(--tertiary-color);
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-end {
  border-top: 1px solid white;
  display: flex;
  padding: 0.5rem;
  justify-content: space-between;
  gap: 6rem;
}

.footer-end a {
  text-decoration: none;
  color: white;
}

.footer-planets {
  max-width: 100%;
}


/* PRIVACY POLICY & TERMS AND CONDITIONS*/
.documents {
  padding: 2rem;
  max-width: 800px;
}

.document-header {
  padding-bottom: 2rem;
}

.documents div {
  margin-bottom: 2rem;
  line-height: 30px;
}