* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Quicksand", sans-serif;
  color: #3a5a69;
  padding-bottom: 5rem;
}

h1 {
  font-family: "Petit Formal Script", cursive;
  font-size: 8rem;
  margin-top: 4rem;
  color: #2F1812;
}
.palette-wrapper {
  margin-top: 5rem;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.title {
  font-size: 3rem;
}
.author {
  padding-left: 0;
  text-transform: none;
  font-size: 1.6rem;
  cursor: default;
}
a:visited,
a:link,
a:active {
  text-decoration: none;
  /* color: grey; */
  /* color: #2a6078; */
  color: #B78338;
  transition: color 0.5s;
}
a:hover {
  color: #000;
}
.palette {
  height: 40rem;
  width: 100%;
  display: flex;
}

.img {
  width: 75%;

  background-repeat: no-repeat;
  background-position: top left;
  background-size: cover;
}
.colors {
  width: 25%;
  display: flex;
  flex-direction: column;
  margin-left: 0.5rem;
}

.color {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  /* font-family: 'Lato', sans-serif; */
  height: 10rem;
  font-size: 1.4rem;
  position: relative;
  cursor: pointer;
}

.color:not(:first-child) {
  margin-top: 0.5rem;
}

.color-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  cursor: pointer;
}

.color-hover {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* background-color: #5e5d5d; */
  /* background-color: #7F726A; */
  background-color: #fff;
  color: #7F726A;
  transition: opacity 0.3s ease-in;
  opacity: 0;
  cursor: pointer;
}

.color-download {
  background-color: #000;
}
p {
  text-transform: uppercase;
  cursor: pointer;
}

button {
  margin: 0 1rem;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: 1px solid #fff;
  color: #fff;
  font-size: 1.2rem;
  font-family: "Quicksand", sans-serif;
  transition: background-color 0.5s ease, color 0.5s ease;
}

button:hover {
  background-color: #fff;
  color: #000;
}

button:active {
  transform: translateY(1px);
}

button:focus {
  outline: none;
  box-shadow: 2px 2px 10px rgb(88, 88, 88);
}

@media only screen and (max-width: 900px) {
  h1 {
    font-size: 6rem;
  }
  .palette-wrapper {
    width: 60%;
  }

  .title {
    font-size: 2rem;
  }
}
@media only screen and (max-width: 768px) {
  h1 {
    font-size: 6rem;
    margin-top: 3rem;
  }
  .palette-wrapper {
    width: 90%;
  }

  .title {
    font-size: 2.5rem;
  }
  .author {
    font-size: 1.2rem;
  }
}

@media only screen and (max-width: 568px) {
  .palette {
    height: 35rem;
  }
  p {
    font-size: 1.2rem;
    padding: 0;
  }
  button {
    font-size: 0.6rem;
  }
}

@media only screen and (max-width: 480px) {
  h1 {
    font-size: 4rem;
    margin-top: 4rem;
  }
  .title {
    font-size: 2rem;
  }
  .palette {
    height: 30rem;
  }
  .img {
    width: 70%;
  }
  .colors {
    width: 30%;
  }
}
@media only screen and (max-width: 320px) {
  h1 {
    font-size: 4rem;
    margin-top: 3rem;
  }
  .palette {
    height: 20rem;
  }
  .img {
    width: 65%;
  }
  .colors {
    width: 35%;
  }
  p {
    font-size: 1rem;
  }
}
