*,
html,
body {
  font-family: sans-serif;
  box-sizing: border-box;
  margin: 0;
  height: 100%;
}

html {
  background-image: url("../images/background.jpg");
}
.wrapper {
  height: 100%;
  width: 100%;
  margin: 0;
}

.header {
  height: 10%;
  text-align: center;
  background-color: #485461;
  background-image: linear-gradient(315deg, #485461 0%, #28313b 74%);
  color: white;
  border-bottom: 3px solid black;
  margin-bottom: 3em;
  padding: 2em;
}
.content {
  height: 90%;
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, 40%);
  grid-auto-rows: auto;
  grid-gap: 2em;
  justify-content: center;
  align-items: center;
}

.projects {
  height: 100%;
}

.project {
  box-shadow: 5px 10px #353333;
  width: 100%;
  height: fit-content;
  padding: 1em;
  background-color: #485461;
  background-image: linear-gradient(315deg, #485461 0%, #28313b 74%);
  padding: 1em;
}

#form1 {
  display: flex;
  flex-direction: column;
  background-color: #485461;
  background-image: linear-gradient(315deg, #485461 0%, #28313b 74%);
  color: white;
  align-items: center;
  padding: 1em;
}

#form1 button,
#form1 p,
#form1 h1 {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
}

#form2 {
  display: flex;
  width: 100%;
  flex-direction: column;
  background-color: #485461;
  background-image: linear-gradient(315deg, #485461 0%, #28313b 74%);
  color: white;
  align-items: center;
  padding: 1em;
}

#form2 p {
  text-align: center;
}

#form2 button,
#form2 p,
#form2 h1 {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
}

#form3 {
  display: flex;
  flex-direction: column;
  background-color: #485461;
  background-image: linear-gradient(315deg, #485461 0%, #28313b 74%);
  color: white;
  align-items: center;
  padding: 1em;
}

#form3 button,
#form3 p,
#form3 h1 {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
}

#form4 {
  display: flex;
  flex-direction: column;
  background-color: #485461;
  background-image: linear-gradient(315deg, #485461 0%, #28313b 74%);
  color: white;
  align-items: center;
  padding: 1em;
}

#form4 button,
#form4 p,
#form4 h1 {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
}

#cash_project {
  grid-column: 1/3;
  display: flex;
  flex-direction: column;
  color: white;
}

#form5 {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  background-color: #485461;
  background-image: linear-gradient(315deg, #485461 0%, #28313b 74%);
  color: white;
  padding: 1em;
}

.cash-input {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-end;
}

input[type="number"],
input[type="text"] {
  width: 15em;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.cash-input input[type="number"] {
  margin-left: 4em;
}

.cash-output input[type="number"] {
  margin-left: 4em;
}

.cash-output {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-end;
}

button {
  background-color: #555555;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  width: 50%;
}

button:hover {
  opacity: 0.7;
  background-color: black;
}

@media screen and (max-width: 900px) {
  .content {
    grid-template-columns: repeat(auto-fill, 100%);
  }

  .header {
    height: 20%;
    text-align: center;
    background-color: #485461;
    background-image: linear-gradient(315deg, #485461 0%, #28313b 74%);
    color: white;
    border-bottom: 3px solid black;
    margin-bottom: 3em;
    padding: 2em;
  }

  #cash_project {
    grid-column: 1;
  }

  .cash-input input[type="number"] {
    margin-left: 2em;
  }

  .cash-output input[type="number"] {
    margin-left: 2em;
  }

  #form5 {
    flex-direction: column;
  }

  .cash-input input[type="number"],
  .cash-input input[type="text"] {
    width: 7em;
  }

  .cash-output input[type="number"],
  .cash-output input[type="text"] {
    width: 7em;
  }
  .cash-input {
    align-items: flex-end;
  }

  .cash-output {
    align-items: flex-end;
  }

  button {
    margin-top: 2em;
    margin-bottom: 2em;
    width: 100%;
  }
}
