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

:root {
  --Green-400: hsl(172, 67%, 45%);

  --Green-900: hsl(183, 100%, 15%);
  --Grey-500: hsl(186, 14%, 43%);
  --Grey-400: hsl(184, 14%, 56%);
  --Grey-200: hsl(185, 41%, 84%);
  --Grey-50: hsl(189, 47%, 97%);
  --White: hsl(0, 100%, 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "SpaceMono";
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--Grey-200);
  font-family: "SpaceMono", Arial, Helvetica, sans-serif;
}

img {
  display: block;
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

.flex {
  display: flex;
}

.flex-row {
  flex-direction: row;
  @media (width<800px) {
    flex-direction: column;
  }
}

.flex-column {
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

.calculator-container {
  width: 1000px;
  background-color: var(--White);
  border-radius: 20px;
  padding: 35px;
  @media (width<1000px) {
    width: 800px;
    padding: calc(25 / 16 * 1em);
  }
  @media (width<600px) {
    width: 90%;
    padding: calc(15 / 16 * 1em);
  }
}

.gap-2 {
  gap: 30px;
}

label {
  margin-bottom: 10px;
  display: block;
}

input {
  outline: none;
  border: none;
  width: fit-content;
  background: transparent;
  color: var(--Green-900);
  font-weight: bold;
  font-size: 20px;
  appearance: none;
  text-align: right;
}

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

input[type="number"] {
  appearance: "textField";
}

.inputs {
  /* border: 2px solid black; */
  border-radius: 10px;
  padding: 20px;
  background: var(--Grey-50);
  justify-content: space-between;
  border: 2px solid transparent;
  align-items: center;
}
.inputs:has(input:focus) {
  border: 2px solid var(--Green-400);
}

.Tip .buttons {
  display: grid;
  grid-template-columns: repeat(3, calc((100% - 40px) / 3));
  gap: 20px;
  width: 100%;
  @media (width<700px) {
    grid-template-columns: repeat(2, calc((100% - 20px) / 2));
    gap: 10px;
  }
}

.Tip .buttons button {
  border: none;
  padding: 10px 15px;
  color: var(--White);
  background-color: var(--Green-900);
  font-weight: bold;
  font-size: 20px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "SpaceMono";
}
.Tip .buttons input {
  width: 100%;
  font-family: "SpaceMono";
  background-color: var(--Grey-50);
}
.Tip .buttons input::placeholder {
  text-align: center;
  border-radius: 5px;
}

.Tip .buttons button.active {
  color: var(--Green-900);
  background-color: var(--Grey-200);
}

.inputs.wrong {
  border: 2px solid red;
}

.right-side {
  background-color: var(--Green-900);
  padding: 35px;
  padding-top: 50px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.margin-bottom {
  margin-bottom: 50px;
}

.right-side span {
  color: var(--Grey-400);
}
.right-side .flex {
  justify-content: space-between;
}
.right-side .green-bold {
  color: var(--Green-400);
  font-weight: bold;
  font-size: 35px;
}
.reset {
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  color: var(--Green-900);
  font-weight: bold;
  background-color: var();
  transition: 0.5s;
  border-radius: 5px;
  background-color: var(--Green-400);
  /* opacity: 0.9; */
}

.reset:hover {
  background-color: var(--Grey-200);
  /* opacity: 1; */
}
.reset.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.reset.disabled:hover {
  background-color: var(--Green-400);
}

span.warning {
  color: red;
}

