*,
::after,
::before {
  box-sizing: border-box;
}
/* fonts */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&family=Montserrat&display=swap");
html {
  font-size: 100%;
} /*16px*/

:root {
  /* colors */

  --clr-primary-1: hsl(43, 86%, 17%);
  --clr-primary-2: hsl(43, 77%, 27%);
  --clr-primary-3: hsl(43, 72%, 37%);
  --clr-primary-4: hsl(42, 63%, 48%);
  --clr-primary-5: hsl(42, 78%, 60%);
  --clr-primary-6: hsl(43, 89%, 70%);
  --clr-primary-7: hsl(43, 90%, 76%);
  --clr-primary-8: hsl(45, 86%, 81%);
  --clr-primary-9: hsl(45, 90%, 88%);
  --clr-primary-10: hsl(45, 100%, 96%);
  /* grey */
  --grey-50: #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1e293b;
  --grey-900: #0f172a;
  /* rest of the colors */
  --black: #222;
  --white: #fff;
  --red-light: #f8d7da;
  --red-dark: #842029;
  --green-light: #d1e7dd;
  --green-dark: #0f5132;

  /* fonts  */
  --headingFont: "Roboto", sans-serif;
  --bodyFont: "Nunito", sans-serif;
  --smallText: 0.7em;
  /* rest of the vars */
  --backgroundColor: var(--clr-primary-10);
  --textColor: var(--grey-900);
  --borderRadius: 0.25rem;
  --letterSpacing: 1px;
  --transition: 0.3s ease-in-out all;
  --max-width: 1120px;
  --fixed-width: 600px;

  /* box shadow*/
  --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  background: var(--backgroundColor);
  font-family: var(--bodyFont);
  font-weight: 400;
  line-height: 1.75;
  color: var(--textColor);
  transition: var(--transition);
}

p {
  margin-bottom: 1.5rem;
  max-width: 40em;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  margin-bottom: 1.38rem;
  font-family: var(--headingFont);
  font-weight: 400;
  line-height: 1.3;
  text-transform: capitalize;
  letter-spacing: var(--letterSpacing);
}

h1 {
  margin-top: 0;
  font-size: 3.052rem;
}

h2 {
  font-size: 2.441rem;
}

h3 {
  font-size: 1.953rem;
}

h4 {
  font-size: 1.563rem;
}

h5 {
  font-size: 1.25rem;
}

a {
  text-decoration: none;
}
ul {
  list-style-type: none;
  padding: 0;
}

.img {
  width: 100%;
  display: block;
  object-fit: cover;
}
/* buttons */
.btn {
  cursor: pointer;
  border-radius: var(--borderRadius);
  letter-spacing: var(--letterSpacing);
  padding: 0.575rem 0.85rem;
  border: 2px solid white;
  transition: var(--transition);
  text-transform: capitalize;
  display: inline-block;
  font-weight: bold;
}

/*
=============== 
Nav
===============
*/

.nav {
  height: 4rem;
  background: var(--white);
  box-shadow: var(--shadow-4);
}
.nav-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
}

.heading h4 {
  margin: 0;
  color: var(--clr-primary-5);
  font-weight: bold;
}
.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  text-transform: capitalize;
}
.link {
  color: var(--clr-primary-5);
  font-weight: bold;
  transition: var(--transition);
  letter-spacing: 3px;
}
.link:hover {
  color: var(--clr-primary-3);
}

/*
=============== 
flipper 
===============
*/

.flipper {
  display: grid;
  min-height: calc(100vh - 11rem);
  place-items: center;
  width: 90vw;
  margin: 0 auto;
}
.flipper-center {
  text-align: center;
}
.colorFlipper {
  background: var(--clr-primary-5);
  color: white;
  padding: 0 1.5rem;
  margin-bottom: 3rem;
  border-radius: 15px;
}
.btnMore {
  color: var(--clr-primary-5);
  background: var(--white);
  outline: 2px solid var(--clr-primary-5);
  box-shadow: var(--shadow-1);
}

.btnMore:hover {
  background: var(--clr-primary-5);
  color: white;
  box-shadow: var(--shadow-3);
  border: 2px solid white;
}

@media screen and (min-width: 800px) {
  .colorFlipper h2 {
    font-size: 3.052rem;
  }
  .colorFlipper {
    padding: 0.5rem 1rem;
  }
}

footer {
  height: 7rem;
  background: var(--clr-primary-4);
}
.footer-info {
  font-weight: bold;
  text-transform: capitalize;
  color: white;
  font-size: 1.5rem;
  text-align: center;
  padding: 1rem;
}

@media screen and (min-width: 520px) {
  footer {
    height: 5rem;
  }
  .flipper {
    min-height: calc(100vh - 9rem);
  }
}
