*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
#main {
  width: 100%;
  height: 100%;
  font-family: sans-serif;
  color: #ddd;
}

body {
  background: linear-gradient(45deg, #fce1ff, #73a2a2);
  position: relative;
}

input {
  padding: 5px;
  border-radius: 5px;
  border: 0;
}

button:hover {
  cursor: pointer;
}

#back-button {
  position: fixed;
  margin: 16px;
}

.purple-text {
  color: #3f278a;
  font-style: italic;
  border-radius: 3px;
  border-bottom: 1px solid #555;
  box-shadow: 0 2px 2px -1px #333;
  background: #ddd;
  padding: 0 5px;
}

#main {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  min-height: 250px;
  max-width: 700px;
  margin: 15px auto;
  padding: 10px;
}

.form,
.result {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  height: 100%;
  min-width: 50%;
  padding: 24px;
  max-height: 250px;
  box-shadow: 30px 33px 90px -35px #000;
}

.form {
  background: #117d32;
  background: linear-gradient(45deg, #3f278a, #8678b3);
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border: 1px solid #000;
}

.form > * {
  margin-bottom: 16px;
}

.form-heading {
  border-bottom: 3px solid #eee;
}

.input-wrapper label {
  display: block;
  margin-bottom: 3px;
}

.calculate-button {
  padding: 10px;
  font-weight: 700;
  margin-top: 5px;
  border-radius: 5px;
  background: linear-gradient(45deg, #1b1d1d, #363838);
  color: #ccc;
  margin-bottom: 0;
  box-shadow: -2px 2px 5px -3px inset #fff;
  border: 0;
  transition: filter 300ms ease-in-out;
}
.calculate-button:hover {
  cursor: pointer;
  filter: contrast(115%);
}

.result {
  background: #eff9fd;
  background: linear-gradient(320deg, #b5b5b5, #eff9fd);
  color: #000;
  border: 1px solid #000;
  border-left: 0;
  transition: height 500ms ease-in-out, width 500ms ease-in-out;
  display: none;
}

.result > * {
  margin-bottom: 8px;
}

.result .result-heading {
  margin-bottom: 24px;
  display: none;
  border-bottom: 3px solid #333;
  width: fit-content;
}

.readable-time {
  font-weight: 600;
  padding: 5px;
  width: 250px;
  border-radius: 5px;
  border: 1px solid #000;
  display: none;
  box-shadow: 3px 2px 3px #000;
  font-style: italic;
  margin-bottom: 0;
  text-align: center;
}

.result-times {
  display: none;
}

.result b span {
  color: #3f278a;
}

@media screen and (max-width: 667px) {
  #main {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 43px;
  }

  .form {
    border-radius: 0;
    width: 350px;
  }

  .result {
    height: 225px;
    width: 350px;
    border-top: 0;
    border-left: 1px solid #000;
  }
}
