@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@700&family=Montserrat:wght@500;700&display=swap");

/* color variable */
:root {
  --white: #ffffff;
  --cream: #f2ebe3;
  --dark-cyan: #3c8067;
  --dark-grayish-blue: #6c7289;
  --very-dark-blue: #1c232b;
}

::-moz-selection {
  /* Code for Firefox */
  color: var(--white);
  background: var(--dark-cyan);
}

::selection {
  color: var(--white);
  background: var(--dark-cyan);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}
body {
  font-size: 1.6rem;
  font-family: "Montserrat", sans-serif;
  background: var(--cream);
  display: grid;
  place-content: center;
  height: 100vh;
}

.container {
  max-width: 65rem;
  min-height: 45rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-content: center;
  border-radius: 10px;
  overflow: hidden;
}

img {
  max-width: 100%;
  min-height: 100%;
}

.right {
  background: var(--white);
}

.right-wrapper {
  margin: 3rem;
}

.title {
  font-size: 1.3rem;
  letter-spacing: 0.5ch;
  opacity: 0.8;
  color: var(--dark-grayish-blue);
}

h1 {
  font-family: "Fraunces", serif;
  font-size: 3.6rem;
  color: var(--very-dark-blue);
  padding: 2rem 0;
}

.description {
  font-size: 1.4rem;
  color: var(--dark-grayish-blue);
  line-height: 1.6;
  padding-right: 4rem;
  font-weight: 500;
}

.price {
  display: flex;
  align-items: center;
  gap: 2.3rem;
}

.price > h2 {
  padding: 2rem 0;
  font-size: 3.6rem;
  font-family: "Fraunces", serif;
  color: var(--dark-cyan);
}

.price > span {
  text-decoration: line-through;
  font-size: 1.4rem;
  color: var(--dark-grayish-blue);
  line-height: 1.6;
  padding-right: 4rem;
  font-weight: 500;
}

button {
  cursor: pointer;
  width: 100%;
  height: 4.5rem;
  border: none;
  background: var(--dark-cyan);
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  font-weight: 700;
  margin-top: 1rem;
}
button:hover {
  background: var(--very-dark-blue);
}
/* 375px */
@media screen and (max-width: 680px) {
  .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-image: url("./images/img-mobile.jpg");
  }
}
