* {
  font-size: 62.5%;
  box-sizing: border-box;
  margin: 0;
}

:root {
  --bag-1: #ee604a;
  --bag-2: #ff83c3;
  --bag-3: #7f73ff;
  --bag-4: #38ff12;
}

body {
  width: 100%;
  height: 100%;
  background-color: white;
  background: url("./assets/background.png") no-repeat;
  background-size: cover;
  min-height: 100vh;
}

main {
  min-height: 100vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5rem;
}

#left-card,
#right-card {
  height: 70rem;
  width: 30rem;
  background-color: #f8f8f8;
  left: 1px;
  -webkit-box-shadow: 0px 0px 25px 11px rgba(0, 0, 0, 0.18);
  -moz-box-shadow: 0px 0px 25px 11px rgba(0, 0, 0, 0.18);
  box-shadow: 0px 0px 25px 11px rgba(0, 0, 0, 0.18);
}

#left-card {
  background: #f8f8f8 url("./assets/woman-2.png");
  background-position: right;
  background-size: cover;
}

#right-card {
  background: #f8f8f8 url("./assets/woman-1.png");
  background-position: left;
  background-size: cover;
}

#main-card {
  height: 70rem;
  width: 100rem;
  background-color: #f8f8f8;
  display: flex;
  justify-content: space-between;
  -webkit-box-shadow: 0px 0px 25px 11px rgba(0, 0, 0, 0.18);
  -moz-box-shadow: 0px 0px 25px 11px rgba(0, 0, 0, 0.18);
  box-shadow: 0px 0px 25px 11px rgba(0, 0, 0, 0.18);
  position: relative;
}

#main-card #info {
  width: 50%;
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#main-card #info .bag-title {
  margin-bottom: 1rem;
}

#main-card #info h1 {
  font-family: "Alfa Slab One", cursive;
  font-size: 5rem;
  font-weight: normal;
  color: #0338b1;
}

#main-card #info h1 span {
  font-size: 3rem;
  color: #87c9f3;
}

#main-card #info .bag-description {
  font-family: "Anuphan", sans-serif;
  font-size: 2rem;
  margin-bottom: 2rem;
}

#main-card #info .old-price {
  font-family: "Anuphan", sans-serif;
  font-size: 3.5rem;
  color: #b9b9b9;
  text-decoration: line-through #1d1d1b;
  text-align: center;
}

#main-card #info .new-price {
  font-family: "Alfa Slab One", cursive;
  font-size: 5rem;
  color: #1d1d1b;
  text-align: center;
  margin-bottom: 2rem;
}

#main-card .bag-images {
  height: 70rem;
  max-width: 50rem;
}

#main-card #info .info-text {
  font-family: "Anuphan", sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  margin-bottom: 0.8rem;
}

#main-card #info .color-picker button {
  width: 4rem;
  height: 4rem;
  border-radius: 5rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.7s ease-in-out;
  margin-bottom: 2rem;
}

#main-card #info .color-picker button + button {
  margin-left: 1rem;
}

#main-card #info .color-picker button:hover {
  transform: rotate(360deg);
}

#main-card #info .color-picker button:focus {
  outline: 2px solid #1d1d1b;
  border: 2px solid #fff;
}

#main-card #info .colors-bag-1 {
  background: linear-gradient(
    130deg,
    rgba(115, 44, 1, 1) 50%,
    rgba(238, 96, 74, 1) 50%
  );
}

#main-card #info .colors-bag-2 {
  background: linear-gradient(
    130deg,
    rgba(255, 131, 195, 1) 50%,
    rgba(255, 229, 82, 1) 50%
  );
}

#main-card #info .colors-bag-3 {
  background: linear-gradient(
    130deg,
    rgba(127, 115, 255, 1) 50%,
    rgba(53, 226, 195, 1) 50%
  );
}

#main-card #info .colors-bag-4 {
  background: linear-gradient(
    130deg,
    rgba(150, 0, 255, 1) 50%,
    rgba(56, 255, 18, 1) 50%
  );
}

#main-card #info .size-picker button {
  width: 4rem;
  height: 4rem;
  border-radius: 5rem;
  border: 0;
  cursor: pointer;
  font-family: "Anuphan", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  transition: 0.2s;
}

#main-card #info .size-picker button + button {
  margin-left: 1rem;
}

#main-card #info .size-picker button:hover {
  outline: 2px solid #1d1d1b;
  border: 2px solid #fff;
}

#main-card #info .size-picker button:selected {
  outline: 2px solid #1d1d1b;
  border: 2px solid #fff;
}

#main-card .add-to-cart-1 {
  width: 25rem;
  height: 5rem;
  font-family: "Anuphan", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  background-color: var(--bag-3);
  border: 0;
  cursor: pointer;
  position: absolute;
  bottom: 9rem;
  right: 0rem;
  transition: 0.5s;
}

#main-card .add-to-cart-1:hover {
  transform: scale(1.2);
  overflow: hidden;
  right: 2.5rem;
  color: white;
}

#main-card #share {
  font-family: "Anuphan", sans-serif;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  position: absolute;
  bottom: -5rem;
}

#main-card #share .info-text {
  margin-right: 1rem;
}

#main-card #share i {
  cursor: pointer;
}

@media (max-width: 1200px) {
  * {
    font-size: 48%;
  }
  body {
    background-size: contain;
  }
}

@media (max-width: 800px) {
  * {
    font-size: 24%;
  }

  body {
    background-size: contain;
  }

  #main-card #share {
    font-size: 10rem;
    bottom: -10rem;
  }
}
