*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: hsl(30, 38%, 92%);
}

:root {
  font-size: 14px;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 3em);
  width: 100%;
}

@media screen and (min-width: 800px) {
  .container {
    flex-direction: row;
    .wrapper {
      display: flex;
      flex-direction: row;
      width: 800px;
      height: 600px;
      .image-section {
        width: 50%;
        height: 100%;
        .image {
          width: 400px;
          height: auto;
          display: inline-block;
          source {
            width: 400px;
            height: auto;
          }
          img {
            width: 400px;
            height: auto;
            border-top-left-radius: 8px;
            border-bottom-left-radius: 8px;
          }
        }
      }
      .text-section {
        width: 50%;
        height: 100%;
        background-color: hsl(0, 0%, 100%);
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
        .nav {
          text-transform: uppercase;
          letter-spacing: 0.6em;
          font-size: 1.25rem;
          font-family: "Montserrat", serif;
          color: hsl(228, 12%, 48%);
          position: relative;
          top: 2em;
          left: 2em;
        }
        h1.title {
          font-size: 2.5rem;
          font-family: "Fraunces", serif;
          color: hsl(212, 21%, 14%);
          position: relative;
          top: 2em;
          left: 1em;
          width: 300px;
        }
        .content {
          font-size: 1.25rem;
          font-family: "Montserrat", serif;
          color: hsl(228, 12%, 48%);
          position: relative;
          top: 4em;
          left: 2em;
          width: 300px;
        }

        .price {
          position: relative;
          top: 6em;
          left: 3em;
          width: 300px;
          .sales-price {
            color: hsl(158, 36%, 37%);
            font-family: "Fraunces", serif;
            font-size: 2.5rem;
            font-weight: bold;
          }
          .original-price {
            color: hsl(228, 12%, 48%);
            font-family: "Montserrat", serif;
            font-size: 1.25rem;
            font-weight: 400;
            margin-left: 1em;
            text-decoration: line-through;
          }
        }

        .button {
          position: relative;
          background-color: hsl(158, 36%, 37%);
          top: 8em;
          left: 3em;
          width: 250px;
          height: 50px;
          border-radius: 10px;
          border: none;
          font-size: 1.25rem;
          font-family: "Montserrat", serif;
          color: hsl(0, 0%, 100%);
          img {
            width: 20px;
            height: 20px;
            margin-right: 0.5em;
            position: relative;
            top: 0.2em;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 800px) {
  .container {
    flex-direction: column;
    .wrapper {
      display: flex;
      flex-direction: column;
      width: 100%;
      .image-section {
        width: 100%;
        height: 400px;
        .image {
          width: 100%;
          height: 400px;
          display: inline-block;

          img {
            width: 100%;
            height: 400px;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
          }
        }
      }
      .text-section {
        width: 100%;
        height: 400px;
        background-color: hsl(0, 0%, 100%);
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        .nav {
          text-transform: uppercase;
          letter-spacing: 0.6em;
          font-size: 0.8rem;
          font-family: "Montserrat", serif;
          color: hsl(228, 12%, 48%);
          position: relative;
          top: 2em;
          left: 2em;
        }
        h1.title {
          font-size: 1.8rem;
          font-family: "Fraunces", serif;
          color: hsl(212, 21%, 14%);
          position: relative;
          top: 1em;
          left: 1em;
          width: calc(100% - 2em);
        }
        .content {
          font-size: 1rem;
          font-family: "Montserrat", serif;
          color: hsl(228, 12%, 48%);
          position: relative;
          top: 2em;
          left: 2em;
          width: calc(100% - 4em);
        }

        .price {
          position: relative;
          top: 4em;
          left: 2em;
          width: 300px;
          .sales-price {
            color: hsl(158, 36%, 37%);
            font-family: "Fraunces", serif;
            font-size: 2.5rem;
            font-weight: bold;
          }
          .original-price {
            color: hsl(228, 12%, 48%);
            font-family: "Montserrat", serif;
            font-size: 1.25rem;
            font-weight: 400;
            margin-left: 1em;
            text-decoration: line-through;
          }
        }

        .button {
          position: relative;
          background-color: hsl(158, 36%, 37%);
          top: 5em;
          left: 3em;
          width: 250px;
          height: 50px;
          border-radius: 10px;
          border: none;
          font-size: 1.25rem;
          font-family: "Montserrat", serif;
          color: hsl(0, 0%, 100%);
          img {
            width: 20px;
            height: 20px;
            margin-right: 0.5em;
            position: relative;
            top: 0.2em;
          }
        }
      }
    }
  }
}

.button:hover,
.button:active {
  background-color: hsl(158, 42%, 18%) !important;
  cursor: pointer;
}
