@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  /* toggling menu */
  interpolate-size: allow-keywords;

  /* font family */
  --ff-primary: "Lato", sans-serif;
  --ff-secondary: "Lato", sans-serif;
  --ff-tertiary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";

  /* font weights */
  --fw-thin: 200;
  --fw-reg: 400;
  --fw-bold: 700;

  /* colors */
  --clr-light: #ffffff;
  --clr-dark: #000000;
  --clr-gray: rgba(111, 111, 111, 0.27);
  --clr-border: #33333340;
  --clr-transparent: #000000a6;
  --clr-nav-bg: #ffffff;
  --clr-cta-button: #629e61;

  /* accent and primary colors */
  --clr-primary: #1c2a39;
  --clr-accent: #629e61;
  --clr-accent-2: #578d56;

  /* gradient colors */
  --clr-gradient: linear-gradient(45deg, #3a8c41, #8c683a);

  /* font sizes */
  --fs-h1: 2.5rem;
  --fs-h2: 1.875rem;
  --fs-h3: 1.25rem;
  --fs-h4: 1.125rem;
  --fs-body: 1rem;

  /* box shadow */
  /* up/down left/right blur rgba*/
  --bs: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);

  /* star styles */
  --star-size-large: 1.25rem;
  --star-size-small: 0.75rem;
  --star-color: #a2a2a2;
  --star-background: gold;

  /* PLAY BUTTON SHINE EFFECT ANIMATION */
  --anim-duration: 4s;
  --anim-speed: 0.65s;
  --shine-degree: 90deg;
  --shine-color: rgba(255, 255, 255, 0.2);
  --shine-effect: linear-gradient(
    var(--shine-degree),
    transparent,
    var(--shine-color),
    transparent
  );
  --shine-transition: all var(--anim-speed) ease-in-out;
}

/*  generic media query - making fonts bigger for bigger screens */
@media (min-width: 800px) {
  :root {
    /* redefine font sizes - making bigger at large screen sizes - so we don't have to redefine in our actual CSS */
    /* --fs-h1: 4.5rem; */
    --fs-h1: 3.5rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.5rem;
    --fs-h4: 1.25rem;
  }
}

/* General styles */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--clr-light);
  font-family: var(--ff-primary);
  font-size: var(--fs-body);
  color: var(--clr-primary);
}

.container {
  max-width: 75rem;
  margin: 0 auto;
}

section {
  padding: 1rem 1rem;
}

@media (min-width: 800px) {
  section {
    padding: 2rem 2rem;
  }
}

/* Basic Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--ff-primary);
  line-height: 1;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}

a,
p,
li,
span {
  font-family: var(--ff-secondary);
}

/* Making strong tag even stronger/bolder (it doesn't work by some reason) */
strong {
  font-weight: var(--fw-bold);
}

/* STARS */
.stars {
  --percent: calc(var(--rating) / 10 * 100%);
  line-height: 1;
}

.stars:before {
  content: "\f005";
  font-family: FontAwesome;
  letter-spacing: 0.5rem;
  background: linear-gradient(
    90deg,
    var(--star-background) var(--percent),
    var(--star-color) var(--percent)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* STARS END */

/* TOP COOKIE BANNER */
.top-cookie-banner {
  text-align: center;
  background-color: #ced4da;
  padding-block: 0.5rem;
  width: 100%;
}
/* TOP COOKIE BANNER END */

/* HEADER SECTION */
.header {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--clr-nav-bg);
  padding-inline: 1rem;
  width: 100%;
  box-shadow: var(--bs);
}

.header .header-wrapper {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  padding-block: 1rem;
  margin: 0 auto;
}

.header .logo {
  max-width: 8rem;
}

/* Mobile Menu */
/* setting up the nav bar */
nav {
  background-color: var(--clr-nav-bg);

  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;

  height: 0;
  overflow: clip;
  visibility: hidden;

  transition: height 1s ease, visibility 1s;
}

/* button with aria-expanded="true" and nav class added will expand the dropdown menu */
button[aria-expanded="true"] + nav {
  height: auto;
  visibility: visible;
}

nav {
  ul {
    margin: 0;
    padding: 3rem;

    display: grid;
    gap: 1rem;
  }

  a {
    color: var(--clr-dark);
  }
}

/* setting up the nav list */
.nav__list {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-evenly;
  margin: 0;
  padding: 2rem;
}

.nav__list .nav__item {
  margin-right: 0;
  list-style: none;
}

.nav__list .nav__item .nav__link {
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  transition: all 0.2s ease-in-out;
}

.nav__list .nav__item .nav__link:hover {
  text-decoration: underline;
}

.nav__link {
  transition: color 0.2s, text-decoration 0.2s;
}
.nav__link:hover,
.nav__link:focus {
  color: var(--clr-accent);
  text-decoration: underline;
}

/* Hamburger */
/* button itself */
.nav-toggle {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/* ROTATE toggle stripes inside so it turns into an X */
.nav-open .hamburger {
  /* when nav is open then hamburger itself (.hamburger) going to get ... */
  transform: rotate(0.625turn);
  /* and it will rotate it around, you can do it in degrees but I want to show that you can do it in turn units */
}
.nav-open .hamburger::before {
  /* when nav is open then (.hamburger::before) going to get ... */
  /* rotated by 90 degree and adjusted/moved back (translateX) by 6px as it was off and ugly by 6px */
  transform: rotate(90deg) translateX(-0.5rem);
}
.nav-open .hamburger::after {
  /* when nav is open then (.hamburger::after) going to get ... */
  opacity: 0;
  /* so it's going to disappear and rest would rotate and turn into an X */
}

/* give 3 stripes inside a button */
.hamburger {
  /* give it a display: block because by default span is inline */
  display: block;
  /* give it a position: relative because we're gonna be using a pseudo elements with absolute positioning - it will make our lives much easier */
  position: relative;
}

/* give 3 stripes inside a button */
.hamburger,
.hamburger::before,
.hamburger::after {
  background-color: var(--clr-dark);
  width: 2rem;
  height: 0.175rem;
  border-radius: 1em;
  /* give some animation */
  transition: transform 250ms ease-in-out;
}

/* give 3 stripes inside a button */
.hamburger::before,
.hamburger::after {
  /* first think you want to do is give it a content as pseudo elements will not work unless you give them some content */
  content: "";
  /* you give them position or give them display property is required */
  position: absolute;
  /* that it means that it matches the width with the other one
    and it's because i have position: relative in .hamburger. if not then it will be relative to whole screen 
    and huge bar going all the way across */
  left: 0;
  right: 0;
}

/* give 3 stripes inside a button */
/* the reason it is 6px is because we have height of 3 px, empty space of 3px and then we'll have the rest of hamburger */
.hamburger::before {
  top: 0.5rem;
}
.hamburger::after {
  bottom: 0.5rem;
}

/* Desktop Menu */
@media (min-width: 800px) {
  .header {
    padding-inline: 2rem;
  }
  .header .header-wrapper {
    flex-direction: row;
  }
  .header .logo {
    max-width: 10rem;
  }
  nav {
    background: none;
    position: initial;
    overflow: visible;
    visibility: visible;
    margin-right: 0;
    height: 100%;
  }
  nav {
    ul {
      margin: 0;
      padding: 3rem;

      display: grid;
      gap: 2rem;
    }
  }
  .nav__list {
    flex-direction: row;
    align-items: center;
    padding: 0;
  }
  .nav__list .nav__item {
    margin-right: 0;
  }
  .nav__list .nav__item:last-child {
    margin-top: 0;
    margin-right: 0;
  }
  .nav-toggle {
    display: none;
  }
}
/* HEADER SECTION END */

/* HERO SECTION */
.hero-section,
.general-page-hero-section {
  background: var(--clr-dark);
  background-image: url(../img/hero-bg.png);
  background-color: rgb(0 0 0 / 50%);
  background-blend-mode: multiply;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-block: 4rem 4rem;
}

.hero-section .hero-heading .hero-section-text {
  color: var(--clr-light);
  width: 60%;
}

.hero-section .hero-heading .hero-section-text h1 {
  font-weight: var(--fw-bold);
  margin-bottom: 1.5rem;
}

.hero-section .hero-heading .hero-section-text span {
  font-style: italic;
  text-transform: lowercase;
}

.hero-section .hero-heading .hero-section-text p {
  margin-bottom: 1rem;
}

/* GENERAL PAGE HERO SECTION */
.general-page-hero-section .hero-heading h1 {
  font-weight: var(--fw-bold);
  text-align: center;
  color: var(--clr-light);
}
/* GENERAL PAGE HERO SECTION END */
@media (max-width: 500px) {
  .hero-section,
  .general-page-hero-section {
    padding-block: 2rem 2rem;
  }
}
@media (max-width: 992px) {
  .hero-section .hero-heading .hero-section-text {
    width: 100%;
  }
}
/* HERO SECTION END */

/* OFFER SECTION */

/* OFFER SECTION END */

/* DISCLAIMER SECTION */
.disclaimer-section a,
.info-section a {
  color: var(--clr-accent);
  text-decoration: underline;
}

.disclaimer-section {
  margin-top: 2rem;
}

.disclaimer-section .disclaimer-section-wrapper {
  max-width: 50rem;
  margin: 0 auto;
}

.disclaimer-section .disclaimer-section-text {
  text-align: center;
}

.disclaimer-section .disclaimer-section-text h2 {
  font-weight: var(--fw-bold);
  margin-bottom: 1rem;
}

.disclaimer-section .disclaimer-section-text p {
  text-align: center;
}

.disclaimer-section .disclaimer-section-help-links {
  display: flex;
  justify-content: space-around;
  padding-block: 1.375rem;
}

.disclaimer-section .disclaimer-section-help-links img {
  height: 2rem;
}

@media (min-width: 800px) {
  .disclaimer-section .disclaimer-section-help-links {
    justify-content: space-between;
    padding-block: 3.3rem;
  }

  .disclaimer-section .disclaimer-section-help-links img {
    height: 3.5rem;
  }
}
/* DISCLAIMER SECTION END */

/* INFO SECTION */
.info-section .info-section-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.info-section .info-section-text h2,
.info-section .info-section-text h3 {
  font-weight: var(--fw-bold);
  margin-bottom: 1rem;
}

.info-section .info-section-text p,
.info-section .info-section-text ul,
.info-section .info-section-text ol {
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.info-section .info-section-text p:last-child {
  margin-bottom: 0;
}

.info-section .info-section-text ul,
.info-section .info-section-text ol {
  margin-left: 2rem;
}

@media (min-width: 992px) {
  .info-section .info-section-wrapper {
    padding: 2.5rem 1.5rem;
  }
}
/* INFO SECTION END */

/* FOOTER */
.site-footer {
  border-top: 1px solid #bababa;
  padding: 2.5rem 0 1.5rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 3rem;
}

.footer-nav-list li a {
  color: var(--clr-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav-list li a:hover,
.footer-nav-list li a:focus {
  color: var(--clr-accent-2);
  text-decoration: underline;
}

.footer-help {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
}

.footer-help img {
  height: 32px;
  width: auto;

  /* making img black&white and on hover revealing colors */
  /* filter: grayscale(1) brightness(1.2);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s; */
}

.footer-help a:hover img,
.footer-help a:focus img {
  filter: none;
  opacity: 1;
}

.footer-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--clr-dark);
  font-weight: var(--fw-thin);
  text-align: center;
}

.footer-disclaimer a {
  color: var(--clr-accent);
  text-decoration: underline;
}

.footer-copyright {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--clr-dark);
  font-weight: var(--fw-thin);
}
.footer-copyright a {
  color: var(--clr-accent);
}

@media (max-width: 800px) {
  .footer-nav-list {
    gap: 1rem;
    width: 100%;
  }
}

@media (max-width: 500px) {
  .footer-container {
    padding: 0 0.5rem;
  }
  .footer-help {
    gap: 0.7rem;
  }
  .footer-disclaimer {
    font-size: 0.9rem;
  }
}
/* FOOTER END */
