:root {
  --black: #343434;
  --cerulean: #227c9dff;
  --light-sea-green: #17c3b2ff;
  --light-sea-green-inactive: rgb(140, 211, 204);
  --light-sea-green-darker: rgb(20, 155, 141);
  --sunset: rgb(255, 203, 119);
  --floral-white: #fef9efff;
  --light-red: #fe6d73ff;
}

* {
  font-family: Roboto;
  margin: 0;
}

body {
  color: var(--black);
  background-color: rgb(255, 255, 254);
  background-color: var(--sunset);
}

h1 {
  text-align: center;
  /* color: var(); */
  font-weight: 800;
  margin: auto;
  margin-top: 3vh;
  font-size: 4.5rem;
  font-size: 6vh;
  text-transform: uppercase;
  max-width: 50vh;
  overflow: hidden;
}

.card {
  background-color: var(--floral-white);
  margin: 2em auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 330px;
  text-align: center;
  border-radius: 4px;
  overflow: hidden;
  touch-action: manipulation;
}

.container {
  padding: 2px 16px;
}

.title {
  background-color: var(--light-sea-green);
  color: var(--floral-white);
  display: flex;
  height: 2rem;
  font-size: 1.7rem;
  padding: 10px;
  justify-content: center;
  align-items: center;
}

p {
  font-size: 0.9rem;
  font-weight: 500;
}

.title h3 {
  font-weight: 500;
  text-transform: uppercase;
  color: var();
}

.content {
  padding: 1rem;
}

.ingredient {
  margin: 1rem;
  transition: all 0.5s;
}

.card h2 {
  font-size: 3.5rem;
}

input#weight-input {
  overflow-x: hidden;
  font-size: 3rem;
  width: 8rem;
  height: 4rem;
  max-width: 70%;
  text-align: center;
  border: solid 2px;
  border-radius: 5px;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

::placeholder {
  transition: all 0.2s;
  font-size: 1rem;
  /* text-transform: uppercase; */
  /* text-transform: lowercase; */
  /* margin-left: 10%; */
  /* margin-right: 1rem; */
  text-align: center;
}

div.input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.input-container {
  margin-bottom: 2rem;
  margin-top: 3px;
  /* position: relative; */
  /* display: inline-block; */
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

#plus-button,
#minus-button {
  background-color: var(--light-sea-green);
  color: var(--floral-white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  font-weight: 300;
  border: none;
  box-sizing: border-box;
  width: 4rem;
  height: 4rem;
  border-radius: 4px;
  user-select: none;
  touch-action: manipulation;
  transition: all 0.1s;
}

#plus-button:hover,
#minus-button:hover {
  background-color: var(--light-sea-green-darker);
  cursor: pointer;
  transition: all 0.1s;
}

#minus-button.inactive,
#minus-button.inactive:hover {
  cursor: default;
  background-color: var(--light-sea-green-inactive);
}

@media (hover: none) {
  button#minus-button:hover,
  button#plus-button:hover {
    background-color: var(--light-sea-green);
  }
}

input:focus::placeholder {
  border-color: var(--black);
  outline: none;
  transition: all 0.2s;
}

p,
.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.fadeOut {
  animation: fadeOut 0.2s;
  /* margin-bottom: 0; */
  /* height: 0px; */
  /* padding-top: 0; */
  /* padding-bottom: 0; */
  transition: 0.4s all ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
