html * {
  box-sizing: border-box;
  --custom-grey: hsl(230, 11%, 41%);
  --dark-red: rgba(70,0,23,1);
  --green:rgba(89,200,191,1);
}

@font-face {
  font-family: "Raleway";
  src: url("/font/Raleway.ttf");
}

body {
  text-align: center;
  box-sizing: border-box;
  margin: 0;
  height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

form input, button {
  border:none;
  background-image:none;
  background-color:transparent;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.container {
  padding: 1rem;
  max-width: 100%;
  width: 1280px;
}

h1 {
  margin-bottom: 3rem;
  color: var(--custom-grey);
}

img {
  position: fixed;
  bottom: -60px;
  right: 10px;
  width: 200px;
  height: auto;
  margin: 1rem;
  z-index: -1;
}

form {
  display: flex;
  align-items: baseline;
  justify-content: center;

  padding: 1rem;
  width: 100%;
}

.gradient-text {
  background-image: linear-gradient(90deg, var(--green) 0%, rgba(4,0,70,1) 67%, rgba(70,0,23,1) 100%);
  background-size: 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent; 
  -moz-text-fill-color: transparent;
}

form label,input, button {
  margin: .8rem;
  font-family: 'Raleway', sans-serif;
  font-size: 40px;
  font-weight: 500;
}

form .max-input input[type="number"] {
  padding-bottom: 5px;
  width: 80px;
  height: 80px;
  background: var(--dark-red);
  color: white;
  border-radius: 50%;
  text-align: center;
  -moz-appearance: textfield;
}

.max-input {
  position: relative;
}

.max-input button {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  text-align: center;
  cursor: pointer;
  color: var(--dark-red);
}

button.plus {
  top: -40px;
}

button.minus {
  bottom: -35px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

form input[type="submit"] {
  border: 3px solid var(--dark-red);
  color: var(--dark-red);
  cursor: pointer;
  white-space: normal;
}

form input[type="submit"]:hover {
  background-image: linear-gradient(90deg, rgba(89,200,191,.2) 0%, rgba(4,0,70,.2) 67%, rgba(70,0,23,.2) 100%);
}

form label {
  font-weight: bolder;
}

@media screen and (max-width: 1024px) {
  form {
    flex-direction: column;
  }
  .max-input button {
    position: static;
  }
}

@media screen and (max-width: 650px) {
  body {
    justify-content: flex-start;
  }
  img {
    width: 100px;
    bottom: -30px;
  }
  form {
    align-items: center;
  }
  form input[type="submit"] {
    font-size: 24px;
  }
}