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

html,
body,
.wrapper {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  background-color: #f9fbfd;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  text-decoration: none;
  list-style: none;
  margin: 0;
  margin-top: 1vw;
  margin-bottom: 1vw;
  padding: 0;
  height: 2vw;
  line-height: 2vw;
}

input[type=checkbox] {
  float: right;
}

input[type=number] {
  float: right;
}

.wrapper {
  padding-top: 30px;
  padding-left: 20px;
  padding-right: 20px;
}

header {
  text-align: center;
  padding: 20px;
  padding-top: 0px;
  color: hsl(206, 17%, 28%);
}

.card {
  background-color: hsl(0, 0%, 100%);
  border-radius: 5px;
  border-width: 1px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px 0px;
  color: hsl(206, 17%, 28%);
  font-size: 18px;
  margin: 0 auto;
  max-width: 800px;
  padding: 30px 40px;
}

.card-header::after {
  content: " ";
  display: block;
  width: 100%;
  background: #e7e9eb;
  height: 2px;
}

.card-body {
  min-height: 100px;
}

.card-footer {
  text-align: center;
}

.card-footer::before {
  content: " ";
  display: block;
  width: 100%;
  background: #e7e9eb;
  height: 2px;
}

.card-footer::after {
  content: " ";
  display: block;
  clear: both;
}

.btn {
  border: none;
  background-color: hsl(360, 91%, 36%);
  border-radius: 25px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 6px 0px rgba(0, 0, 0, 0.2) 0px 1px 1px 0px;
  color: hsl(0, 0%, 100%);
  display: inline-block;
  font-size: 22px;
  line-height: 22px;
  margin: 16px 16px 16px 20px;
  padding: 14px 34px;
  text-align: center;
  cursor: pointer;
}

form {
  position: relative;
  white-space: nowrap;
}

button[disabled] {
  cursor: default;
  background: #c0c7cf;
}

.float-right {
  float: right;
}

#password {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  display: block;
  width: 100%;
  padding-top: 15px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 85px;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 2px dashed #c0c7cf;
  border-radius: 6px;
  resize: none;
  overflow: hidden;
}

/* The Modal (background) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 6vw auto;
  /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 40%;
  /* Could be more or less, depending on screen size */
  font-size: 2vw;
}

.modal-content h2 {
  text-align: center;
  font-size: 2.5vw;
  border-bottom: .25vw solid #af0808;
}

/* The Close Button */
.close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1vw;
  color: #af0808;
  /* float: right; */
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  input[type=number] {
    width: 50%;
    float: right;
  }

  input[type=checkbox] {
    float: right;
  }

  li {
    margin-bottom: 2vw;
  }

  li:last-child {
    margin-bottom: 5vw;
  }

  /* .modal-content {
    min-width: 40%;
    min-height: 80%;
  } */
}

@media (max-width: 690px) {
  .btn {
    font-size: 1rem;
    margin: 16px 0px 0px 0px;
    padding: 10px 15px;
  }

  #password {
    font-size: 1rem;
  }

  .modal-content {
    width: 60%;
  }
}

@media (max-width: 525px) {
  input[type=checkbox] {
    transform: scale(.75);
  }

  li {
    margin-bottom: 5vw;
  }

  li:first-child {
    margin-bottom: 5vw;
  }

  li:last-child {
    margin-bottom: 5vw;
  }
}

@media (max-width: 500px) {
  .btn {
    font-size: 0.8rem;
  }

  .modal-content {
    width: 80%;
  }
}

@media (max-width: 300px) {

  .modal-content {
    width: 100%;
  }

  li:first-child {
    margin-bottom: 15vw;
  }

  li {
    margin-bottom: 15vw;
  }

  li:last-child {
    margin-bottom: 9vw;
  }

}