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

:root {
  --dark-color: #000;
  --light-color: #fff;
  --main-color: teal;
  --disabled-color: lightgray;
  --background-color: rgb(240, 240, 240);
}

html {
  box-sizing: border-box;
  display: block;
  height: 100vh;
  background-color: var(--light-color);
}

body {
  margin: 0;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial;
  text-align: center;
}

#root {
  height: 100%;
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  justify-content: center;
  background-color: var(--dark-color);
}

a {
  color: var(--light-color);
  text-decoration: none;
  padding: 1rem;
}

nav a:hover {
  background-color: var(--light-color);
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.5s;
}

nav a span {
  padding-left: 0.5rem;
}

.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1rem;
  padding: 0 1rem;
}

.products a {
  background-color: var(--main-color);
  color: var(--light-color);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}

.products a.disabled {
  background-color: var(--disabled-color);
  color: var(--dark-color);
  pointer-events: none;
}

.productCard,
.productDetail {
  display: flex;
  flex-direction: column;
  min-width: 310px;
  max-width: 310px;
  padding: 2rem 1rem;
}

.productDetail {
  align-self: center;
  background-color: var(--light-color);
  margin: 1rem;
}

.productDetail div:last-of-type {
  text-align: justify;
  margin-bottom: 1rem;
}

.productCard {
  justify-content: center;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background-color: var(--light-color);
  position: relative;
  top: 0;
  transition: top ease 0.3s;
}

.productCard:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  top: -10px;
}

.productCallToAction {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1rem;
}

img {
  width: 100%;
}

@media (min-width: 640px) {
  .productDetail {
    display: flex;
    flex-direction: row;
    justify-content: center;
    min-width: 70vw;
    gap: 2rem;
    margin: 1rem auto;
  }
  .productDetail div:first-of-type {
    display: flex;
  }

  .productDetail img {
    min-width: 200px;
    max-width: 300px;
    align-self: center;
  }
}
