/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/

#form-rules,
#book-form {
  padding: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

#form-rules {
  text-transform: none;
  /* font-size: 1.5rem; */
}

.rule {
  margin: 5px;
}

form {
  margin: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 50%;
  width: 100%;
  max-width: 550px;
  /* font-size: 20px; */
  /* font-weight: bold; */
}

.form-info.full-name {
  max-width: 98%;
}
.form-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -ms-flex-line-pack: stretch;
  align-content: stretch;
}

#reference {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 10px;
  height: 20px;
  border: none;
}

.form-info.reference:nth-child(2) {
  line-height: 0px;
  margin-bottom: 19px;
}
.form-info.reference > #referenceURL {
  width: 96%;
}
.form-info.reference {
  padding: 10px;
  border: 1px solid black;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

#or {
  margin-top: -15px;
  margin-bottom: 15px;
}

#file-upload-preview.hidden {
  height: 0;
}
#file-upload-preview > img {
  /*   height:auto; */
  max-width: 75%;
  max-height: 200px;
  /*   max-height:min-content; */
  margin: 10px;
}
#file-upload-preview {
  height: auto;
  margin-top: 10px;
  max-width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

input,
textarea {
  -ms-flex-preferred-size: 100%;
  flex-basis: 100%;
  font-size: 24px;
  border: 1px solid black;
  border-radius: 3px;
  padding: 2px 5px;
  height: auto;
  max-width: 96%;
}

.error {
  border: 3px solid red;
  border-radius: 3px;
}

.suggestion {
  border: 3px solid chocolate;
  border-radius: 3px;
}

.success {
  border: 3px solid #00e600;
  border-radius: 3px;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #c7c7c7;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  color: #c7c7c7;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #c7c7c7;
}

input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
  color: #c7c7c7;
}

input::placeholder,
textarea::placeholder {
  color: #c7c7c7;
}

button {
  margin-top: 10px;
  padding: 5px;
  font-size: 20px;
  border: 1px solid black;
  border-radius: 3px;
}

.message {
  line-height: 23px;
  font-style: italic;
  color: red;
  font-size: 18px;
  text-transform: none;
  font-size: 20px;
}

.message.hidden {
  visibility: hidden;
}

.success-message,
.sending-message {
  margin: 5px;
  color: #002615;
  font-weight: bold;
  font-size: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: auto;
  padding: 10px;
}

.sending-message.hidden {
  visibility: hidden;
  width: 0;
  height: 0;
  padding: 0;
}

.sending-rotate {
  border-bottom: 2px solid #002615;
  border-left: 2px solid #002615;
  border-radius: 50%;
  padding: 8px;
  -webkit-animation: rotate 1200ms infinite cubic-bezier(0.5, 0.5, 0.3, 0.7);
  animation: rotate 1200ms infinite cubic-bezier(0.5, 0.5, 0.3, 0.7);
  height: 2px;
  margin-top: 12px;
  margin-left: 6px;
  width: 2px;
}

@-webkit-keyframes rotate {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

@keyframes rotate {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

.radio-buttons {
  margin-top: 5px;
  display: block;
}

.radio-buttons > input {
  padding: 5px;
  margin: 10px;
}

input[type="radio"] {
  margin: 10px;
  -webkit-transform: scale(1.5);
  -ms-transform: scale(1.5);
  transform: scale(1.5);
}

.full-name > input {
  min-width: 0;
}

.full-name > input:nth-child(1) {
  margin-right: 5px;
}
.full-name > input:nth-child(2) {
  margin-left: 5px;
}
