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

:root {
  --color-white: #f2f2f2;
  --color-black: #2c2c2c;
  --color-border: rgba(80, 80, 80, 0.2);
}

body {
  font-family: "DM Sans", sans-serif;

  background-repeat: no-repeat;
  background-position: center;
  color: var(--color-white);
  font-size: 1.5rem;
  text-align: center;
}

a {
  text-decoration: none;
  color: inherit;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  background-color: var(--color-white);
  color: var(--color-black);
  width: 100%;
  box-shadow: 0 0 10px 10px var(--color-border);
}

.navbar__header {
  width: 100%;
  border-bottom: 2px solid var(--color-border);
  padding: 0.5rem 0;
}

.navbar__heading {
  font-family: "Yellowtail", cursive;
  font-size: 2.5rem;
  font-weight: 400;
}

.container--color {
  display: flex;
  align-items: center;
  padding: 0.5rem;
}

.color--value {
  font-size: 1.2rem;
  width: 5rem;
  max-width: 5rem;
  text-transform: uppercase;
  margin: 0 0.5rem;
}

.icon-arrow-right {
  width: 20px;
  fill: rgba(0, 0, 0, 0.5);
}

input[type="color"],
.rotate-gradient {
  -webkit-appearance: none;
  position: relative;
  width: 2rem;
  height: 2rem;
  border: 1px solid transparent;
  border-radius: 5rem;
  margin: 0 1rem;
}
input[type="color"]::-webkit-color-swatch {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 5rem;
}

.btn {
  padding: 0.5rem 2rem;
  font-family: inherit;
  font-size: 1.5rem;
  transition: all 0.5s;
  cursor: pointer;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-radius: 5px;
  border: 1px solid var(--color-white);
  box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-white);
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 70vh;
  max-height: 100vh;
  margin: 1rem;
}

.gradient-code {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 10px;
  border: 1px solid var(--color-white);
  padding: 2rem;
  margin-bottom: 2rem;
  cursor: pointer;
  text-align: left;
}

.attribute {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}
