:root {
  --light-gray: #f3f6f9;
  --blue: #2c79b6;
  --Light_medium_blue: #cddfee;
  --gray: #89969d;
  --black: #212529;
  --tech-blue: #0066ff;
  --dark-medium-gray: #e9eff4;
  --dark-gray: #a6b8c7;
  --dark-blue: #02225a;
  --blue-opacity: #e4f0fe;
  --blue-placeholder: #96bdda;
}

@import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");

html,
body {
  width: 100%;
  font-family: "Open Sans", sans-serif;
  margin: 0;
  overflow-x: hidden;
  background-color: #f0f2f4;
  color: #212428;
  caret-color: var(--tech-blue) !important;
  box-sizing: border-box;
}

h1 {
  color: #fff;
  font-size: 1.75rem;
  margin: auto;
}

.container {
  width: 80%;
}

.existingContainer {
  background-color: var(--blue-opacity) !important;
  border: 1px solid rgba(195, 192, 192, 0.23);
}

.existingHeader h3 {
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 2rem;
}

.existingLabels label {
  color: var(--dark-blue);
}

h3 {
  font-size: 1rem;
  color: var(--dark-gray);
  filter: unset;
}

.main h4 {
  margin: 0;
}

.year h3 {
  font-size: 1.4rem;
  color: var(--blue);
  text-align: center;
}

h4 {
  font-size: 1.5rem;
  color: var(--blue);
}

h5 {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
}

strong {
  color: var(--blue);
  font-size: 1.1rem;
}

label {
  font-size: 15px;
  word-break: break-all;
  text-align: start;
  color: var(--dark-blue);
}

.label-text {
  font-size: 0.9rem;
  color: var(--dark-blue);
}

input,
select {
  position: relative;
  width: 99%;
  height: 3.5rem;
  margin: 0.5rem auto;
  padding: 0 0.5rem;
  font-size: 1rem;
  border: 2px solid #2c2c2c;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  border: 1px solid black;
}

input {
  text-align: center;
}

select {
  color: var(--blue) !important;
}

input:invalid {
  border-color: red;
}

div[class^="col"] {
  margin: auto;
}

header {
  width: 100%;
  padding: 0 !important;

  align-items: center;
}

.bg-image {
  height: 28rem;
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.8) -30%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("../img/farm.jpeg") no-repeat;

  background-size: cover;
  position: relative;
}

.logo-wrapper {
  background-color: #ffffff;
  padding: 0.6rem 1.2rem 0.4rem 7rem;
  position: absolute;
  top: 7%;
  left: 0;
}

.toolbox {
  position: absolute;
  left: 0;
  bottom: 0;
}

.title-wrapper {
  background-color: var(--blue);
  padding: 1.5rem 9rem 1rem 1.5rem;
  position: absolute;
  bottom: 9%;
  text-align: start;
}

.title-wrapper h1 {
  padding-top: 0.5rem;
}

.title-wrapper h5 {
  color: #ffffff;
  margin: 0;
  padding: 0;
}

.dropdown {
  cursor: pointer;
  position: relative;
  user-select: none;
  color: #ffffff;
  margin-top: 2.4rem;
  padding-bottom: 0.4rem;
  width: max-content;
  margin-left: auto;
  font-size: 1rem;
}

.dropdown img {
  width: 1rem;
}

.caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
  transition: 0.3s;
}

.caret-rotate {
  transform: rotate(180deg);
}

.selected {
  display: flex;
  align-items: center;
  padding-bottom: 0.2rem;
  border-bottom: 3px transparent solid;
  transition: 0.3s ease;
}

.selected:hover {
  border-bottom: 3px solid white;
}

.selected span {
  margin: 0 0.6rem 0 0.6rem;
}

.menu {
  list-style: none;
  padding: 0.4em 0.5em;
  background: white;
  box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.2);
  border-radius: 0.5em;
  color: var(--blue);
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  display: none;
  transition: 0.2s;
}

.menu li {
  padding: 0.7em 0.5em;
  border-radius: 0.5em;
}

.menu li:hover {
  color: white;
  background-color: var(--blue);
}

.menu li a {
  margin: 0.3em 0;
  padding: 0.7em 0.5em;

  text-decoration: none;
  color: inherit;
}

.menu-open {
  display: block;
}

header img {
  width: 8rem;
  align-items: flex-start;
  text-align: left;
}

.second_row {
  text-decoration: none;
}

#rotate-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 90%;
  height: 90%;
  background-color: #fff;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0px 12px 28px 0px rgba(140, 149, 159, 0.3);
  color: #2c2c2c;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: scale(0);
  z-index: 99;
}

#rotate-message img {
  width: 64px;
  animation: rotateAnimation 2s linear infinite;
}

@keyframes rotateAnimation {
  0% {
    transform: rotateZ(-55deg);
  }

  25% {
    transform: rotateZ(10deg);
  }

  50% {
    transform: rotateZ(-55deg);
  }

  75% {
    transform: rotateZ(10deg);
  }

  100% {
    transform: rotateZ(-55deg);
  }
}

#rotate-message span {
  color: #00e673;
}

@media only screen and (orientation: portrait) and (max-width: 575px) {
  #rotate-message {
    transform: scale(1);
  }
}

.container.inputs {
  box-sizing: border-box;
  background-color: #fff;
  padding: 1.5rem 2rem;
  margin: 1rem auto;
  border-radius: 6px;
}

.container.inputs .row {
  padding: 0 3rem;
}

/* .container.inputs .row div {
  padding: 0 0.25rem;
} */

.row.labels .col-lg-3 label {
  color: var(--gray);
}

.container.inputs .row.labels .col {
  text-align: center;
}

input {
  background-color: var(--dark-medium-gray);
  border: var(--blue) 1.5px solid;
}

input[name$="_main"] {
  background-color: #ffffff;
  border: 2px solid var(--blue);
}

input[name$="main_num"] {
  background-color: #ffffff;
  border: 2px solid var(--blue);
}

input::placeholder {
  color: var(--blue-placeholder);
}

.main_num_col {
  box-sizing: border-box;
  padding: 0.2rem 1rem;
  background-color: var(--blue-opacity);
  position: relative;
}

.invisible {
  background-color: transparent;
}

/* .main_first {
  padding-top: 2rem;
  border-radius: 5% 5% 0 0;
}

.main_last {
  padding-bottom: 2rem;
  border-radius: 0 0 5% 5%;
} */

.margin-right {
  margin-right: 0.5rem !important;
}

select {
  background-color: #ffffff;
  border: var(--blue) 2px solid;
  padding: 0 1rem;
  color: var(--gray);
  font-weight: 400;
  font-size: 1.1rem;

  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em;
}

input[name^="goal"] {
  background-color: #ffffff;
  border: 2px solid var(--blue);
}

input[name$="_year_label"] {
  background-color: #ffffff;
  border: 2px solid var(--blue);

  color: var(--blue);
  font-weight: bold;
  font-size: 1.1rem;
  padding-left: 1rem;
}

input[name$="_year_label"]::placeholder {
  font-family: "Open Sans";
  font-weight: 400;
  color: var(--blue-placeholder);
  font-size: 1rem;
}

hr {
  width: 85.8%;
  margin-left: 1rem;
}

button {
  cursor: pointer;
  height: 3rem;
  width: 10rem;
  border-radius: 5px;
  background-color: var(--blue);
  color: #ffffff;
  font-size: 1rem;
  border: unset;
  transform: translateX(7%);
}

.center {
  text-align: center;
}

#spring-ratio-1,
#spring-ratio-2,
#spring-ratio-3,
#spring-ratio-4,
#spring-ratio-5 {
  visibility: hidden;
}

@media (max-width: 994px) {
  .container {
    width: 90%;
    max-width: none;
  }

  .container.inputs .row {
    padding: 0 0;
  }

  .title-wrapper {
    left: 6.5%;
    padding-right: 1.4rem;
  }

  .title-wrapper h1 {
    font-size: 1.1rem;
  }

  label {
    font-size: 12px;
  }

  h3 {
    font-size: 1rem !important;
  }

  .results h3 {
    font-size: 0.7rem !important;
  }

  .results span {
    font-size: 0.8rem !important;
  }

  h4 {
    font-size: 12px;
  }

  h5 {
    font-size: 0.8rem;
  }

  .label-text {
    font-size: 12px;
  }

  input[name^="goal"] {
    max-height: 30px;
  }

  strong {
    font-size: 0.7rem !important;
  }

  select {
    font-size: 0.6rem;
    padding: 0;
    padding-left: 0.8rem;
  }

  .crop {
    width: 35.5% !important;
  }

  .margin-right {
    margin-right: 0rem !important;
  }

  input[name$="main_num"]::placeholder {
    color: transparent;
  }

  input[name$="main"]::placeholder {
    color: transparent;
  }

  div .label-styling label:nth-child(1) {
    font-size: 0.7rem !important;
  }

  div .label-styling label:nth-child(2) {
    font-size: 0.45rem !important;
  }

  .results div .label-styling label:nth-child(2) {
    font-size: 0.5rem !important;
  }

  .col {
    width: 100%;
    padding: 0.4rem;
  }

  .margin-rigth {
    margin-right: unset;
  }

  .main_num_label {
    font-size: 0.6rem !important;
    top: -1rem !important;
  }
}

input:focus {
  outline: none;
  border: 2px solid var(--tech-blue);
}

.stick-wrapper {
  position: relative;
}

.stick-wrapper input {
  border: 1px solid var(--dark-blue);
}

.stick {
  position: absolute;
  width: 2rem;
  height: 2px;
  right: 0;
  bottom: 50%;
  transform: translate(50%);
  background-color: var(--dark-blue);
}

.crop {
  text-align: end;
  width: 36.3%;
}

.year-label-wrapper {
  margin-top: 2rem !important;
  padding: 1rem;
  background-color: #e4f0fe;
  transform: translateX(-3.4%);
}

.year-label-padding {
  padding: 0 1rem !important;
}

.label-styling {
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  align-items: baseline;
}

div .label-styling label:nth-child(2) {
  font-size: 0.65rem;
}

.labels > div {
  transform: translateY(90%);
}

.labels > div:first-child {
  transform: unset;
}

.main_num_label {
  position: absolute;
  top: -1.6rem;
  z-index: 2;
  font-size: 0.9rem;
  color: var(--dark-blue);
}

.results h3 {
  color: var(--blue);
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

.results input {
  width: 55%;
  display: flex;
}

.results span {
  font-size: 1.6rem;
  color: #276190;
}

/* .first-col {
  transform: translateX(10%);
} */

/* .first h3 {
  font-size: 1rem;
} */

/* .second-col {
  transform: translateX(-10%);
} */

.results.inputs .row {
  padding: 0;
}

.results .label-styling {
  display: flex;
  justify-content: space-around;
  box-sizing: border-box;
  align-items: baseline;
  transform: unset;
}

.middle-result {
  background-color: var(--blue-opacity);
  padding: 0 1rem;
  padding-bottom: 2rem;
  margin-bottom: -11rem !important;
}

.margin-top {
  margin-top: 1rem !important;
}

.col-5 label {
  margin-top: 0.5rem;
  display: block;
}

.main select {
  padding-right: 2.5rem;
}

.straw select {
  border-color: var(--Light_medium_blue);
}

.manure select,
.straw select {
  background-image: none;
}

.slurry-description h5 {
  margin-bottom: 0;
}

.manure .label-styling{
  margin-bottom: 1rem;
}

@media print {
  body {
    -webkit-print-color-adjust: exact !important;
  }

  label b {
    display: none;
  }

  .first-year {
    margin-top: -8rem !important;
  }

  .container.inputs {
    padding: 1rem 1rem;
    margin: 0.5rem auto;
  }

  .labels > div {
    transform: translateY(40%);
  }

  .existingLabels div {
    transform: translateY(10%);
  }

  .results h3 {
    padding-bottom: 1rem;
  }

  .results input {
    margin-bottom: 1rem;
  }

  header {
    display: none;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  h4 {
    font-size: 1.2rem !important;
  }

  h5 {
    display: none;
  }

  strong {
    font-size: 0.8rem !important;
  }

  ::placeholder {
    font-size: 0.6rem;
  }

  .main h3 {
    display: none;
  }

  .main h4 {
    display: none;
  }

  .inputs {
    max-height: 60rem !important;
  }

  label {
    font-size: 10px;
    margin: 0;
    padding: 0;
  }

  label b {
    display: none;
  }

  input,
  select {
    height: 1.5rem;
    margin: 0.2rem;
    padding: 0.2rem;
  }

  select {
    font-size: 0.8rem !important;
  }

  .label-text {
    font-size: 10px;
  }

  .existing_elements {
    display: none;
  }

  .existing_nutrients {
    display: none;
  }

  .print_section {
    display: none;
  }

  .results h3 {
    align-items: center;
    text-align: center;
    font-size: 0.8rem !important;
    margin-bottom: -1rem !important;
  }

  .results span {
    font-size: 0.9rem !important;
  }

  .results input {
    width: 65% !important;
    margin-left: auto;
    margin-right: auto;
  }

  .divider {
    padding-top: 2rem !important;
  }

  .year-label-wrapper {
    margin-top: 0 !important;
    padding: 0.1rem !important;
  }

  .year-section {
    max-height: 100vh;
    min-height: 100vh;
  }

  @page {
    size: landscape;
  }

  .padding-top {
    padding-top: 4rem;
  }

  .main_num_label {
    font-size: 0.6rem;
    top: -1rem;
  }

  .manure .label-styling{
    margin-bottom: .5rem;
  }

  .margin-top {
    margin-top: 0 !important;
  }
}
