@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

:root {
  --first-color: #DC3845;
  --title-color: #282525;
  --text-color: #5D5656;
  --text-color-light: #918888;
  --body-color: #fff;
  --container-color: #fff;

  --body-font: 'Poppins', sans-serif;

  --big-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
button,
input {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  margin: 3.5rem 0 0 0;
  background-color: var(--body-color);
  color: var(--text-color);
}

.main,
.footer {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-weight: 600;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
}

.section {
  padding: 4.5rem 1rem;
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: 2.5rem;
  text-align: center;
}

.header {
  width: 100%;
  background-color: var(--body-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.nav {
  height: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo,
.nav__close,
.nav__toggle {
  color: var(--title-color);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-weight: 500;
}

.nav__logo-img {
  width: 1.5rem;
}

.nav__toggle {
  display: inline-flex;
  font-size: 1.25rem;
  cursor: pointer;
}

.theme--change {
  color: var(--title-color);
  font-size: 1.25rem;
  cursor: pointer;
}

.nav__buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media screen and (max-width:768px) {
  .nav__menu {
    position: fixed;
    background-color: var(--body-color);
    top: -100%;
    left: 0;
    width: 100%;
    padding: 4rem 0;
    border-radius: 1.5rem;
    box-shadow: 0 1px 4px rgba(40, 37, 37, 0.1);
    transition: .4s;
  }
}

.nav__img {
  width: 100px;
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-15deg);
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: 500;
  transition: .3s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  font-size: 2rem;
  position: absolute;
  top: .5rem;
  right: 1rem;
  cursor: pointer;
}

.show-menu {
  top: 0;
}

.home__container {
  padding-top: 1.5rem;
  gap: 1.5rem;
}

.home__img {
  width: 320px;
  justify-self: center;
}

.home__info {
  text-align: center;
}

.home__title {
  font-size: var(--big-font-size);
  line-height: 140%;
  margin-bottom: .5rem;
}

.home__description {
  font-size: var(--small-font-size);
  padding: 0 2rem;
  margin-bottom: 2.5rem;
}

.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 1.15rem 2.75rem;
  font-weight: 500;
  border-radius: 3rem;
}

.button:hover {
  background-color: #da0a1c;
}

.giving__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.75rem;
}

.giving__content {
  text-align: center;
}

.giving__img {
  width: 100px;
}

.giving__title {
  font-size: var(--h3-font-size);
  margin-bottom: .25rem;
}

.giving__description {
  font-size: var(--small-font-size);
}

.celebrate__container {
  gap: 1rem;
}

.celebrate__info {
  text-align: center;
}

.celebrate__title {
  margin-bottom: 1.5rem;
}

.celebrate__description {
  margin-bottom: 2.5rem;
}

.celebrate__img {
  width: 280px;
  justify-self: center;
}

.gift__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.gift__card {
  display: grid;
  position: relative;
  background-color: var(--container-color);
  box-shadow: 0 4px 8px rgba(48, 29, 30, 0.1);
  padding: 1.5rem 1rem 1rem 1.5rem;
  border-radius: 0.75rem;
}

.gift__img {
  width: 100px;
  justify-self: center;
  margin-bottom: .25rem;
}

.gift__icon {
  font-size: 1.25rem;
  color: var(--first-color);
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

.gift__price {
  font-size: var(--h3-font-size);
}

.gift__title {
  font-size: var(--smaller-font-size);
  font-weight: 500
}

.new__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.new__card {
  position: relative;
  width: 230px;
  background-color: var(--container-color);
  box-shadow: 0 4px 16px rgba(48, 29, 30, 0.1);
  padding: 1.5rem 1rem;
  border-radius: .75rem;
  text-align: center;
  margin-bottom: 4rem;
  overflow: hidden;
}

.new__overlay {
  width: 250px;
  height: 250px;
  background-color: var(--first-color);
  border-radius: 50%;
  position: absolute;
  top: -4.2rem;
  left: -.65rem;
  z-index: 0;
}

.new__img {
  position: relative;
  width: 150px;
  margin-bottom: 1.25rem;
}

.new__price {
  font-size: var(--h2-font-size);
}

.new__title {
  font-weight: 500;
}

.new__button {
  display: flex;
  padding: .5rem;
  border-radius: .25rem .25rem .75rem .25rem;
  position: absolute;
  right: 0;
  bottom: 0;
}

.new__icon {
  font-size: 1.25rem;
}

.message__container {
  gap: 3rem;
  background-color: var(--first-color);
  padding: 2.5rem;
  border-radius: 1.25rem;
}

.message__form {
  text-align: center;
}

.message__title {
  color: #fff;
  margin-bottom: 1.5rem;
}

.message__input {
  width: 100%;
  background-color: #fff;
  color: var(--text-color);
  padding: 1rem 1.5rem;
  border-radius: 3rem;
  border: none;
  outline: none;
  margin-bottom: 1rem;
}

.message__button {
  background-color: var(--title-color);
  width: 100%;
}

.message__button:hover {
  background-color: #000;
}

.message__img {
  width: 200px;
  justify-self: center;
  transform: rotate(15deg);
}

.footer__container {
  margin-left: 1.5rem;
  position: relative;
  display: grid;
  gap: 2rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: .25rem;
  color: var(--title-color);
  font-weight: 500;
}

.footer__logo--img {
  width: 1.5rem;
}

.footer__description {
  font-size: var(--small-font-size);
}

.footer__logo,
.footer__title {
  margin-bottom: 1rem;
}

.footer__title {
  font-size: var(--h3-font-size);
}

.footer__links,
.footer__downloads {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: var(--text-color);
}

.footer__link:hover {
  color: #000;
}

.footer__download--img {
  width: 100px;
  cursor: pointer;
}

.footer__images--img1 {
  position: absolute;
  width: 100px;
  top: 25%;
  right: 5%;
}

.footer__images--img2 {
  position: absolute;
  width: 100px;
  top: 75%;
  right: -10%;
}

.footer__copyright {
  margin: 3rem 0 1rem 0;
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

@media screen and (min-width: 320px) and (max-width:400px) {
  .home__container {
    margin-left: .5rem;
    margin-right: .5rem;
  }

  .giving__container,
  .gift__container {
    display: flex;
    flex-direction: column;
  }

  .gift__card {
    margin: auto 3rem;
  }
}

@media screen and (min-width:576px) {
  .home__container {
    padding: 0 7rem;
  }

  .giving__container,
  .celebrate__description,
  .gift__container {
    padding: 0 5rem;
  }

  .message__input,
  .message__button {
    width: 60%;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width:769px) {

  .nav {
    gap: 3rem;
  }

  .nav__toggle,
  .nav__close,
  .nav__img {
    display: none;
  }

  .nav__menu {
    margin-left: auto;
  }

  .nav__list {
    flex-direction: row;
    gap: 3rem;
  }

  .home__container {
    padding-top: 4rem;
  }

  .home__container,
  .giving__container,
  .celebrate__container,
  .message__container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .gift__container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3.5rem;
  }

  .new__container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3rem;
  }

  .message__img {
    width: 250px;
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__images--img2 {
    right: -5%;
  }
}

@media screen and (min-width: 980px) {

  .nav {
    margin-left: 9.5rem;
    margin-right: 9.5rem;
  }

  .section {
    padding-top: 5rem;
  }

  .celebrate__container {
    display: flex;
    align-items: center;
    gap: 3rem;
  }

  .celebrate__description {
    padding: 0 10rem;
  }

  .message__container {
    margin: 5rem;
    padding: 5rem 0;
    gap: 0;
  }

  .message__img {
    width: 350px;
    padding: 2rem;
  }

  .footer {
    padding-bottom: 0;
  }

  .footer__container {
    display: flex;
    justify-content: space-evenly;
  }

  .footer__images--img1 {
    left: 8%;
    top: 75%;
  }

  .footer__images--img2 {
    top: 45%;
    right: -5%;
  }
}