.header-upload {
  width: 100%;
  margin-bottom: 4rem;
}

.header-upload div:first-child {
  width: 100%;
}

form {
  width: 100%;
  height: 100px;
  border: 3px dotted var(--gray);
  border-radius: 1rem;
  position: relative;
  box-shadow: var(--low-shadow);
  text-align: center;
  background-color: rgba(0, 0, 0, 0);
}

form.danger {
  border: 3px dotted var(--danger) !important;
}

form.danger p {
  color: var(--danger) !important;
  animation: shake 300ms linear;
}

form:hover {
  border: 3px dotted var(--primary);
  box-shadow: var(--high-shadow);
}

form:hover p {
  color: var(--primary);
}

form p {
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow-x: hidden;
}

form input {
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: red;
  opacity: 0;
  z-index: 3;
  cursor: pointer;
}

form button {
  position: relative;
  bottom: -7rem;
  width: 100%;
  border-radius: 100rem;
  height: 2.5rem;
  background-color: var(--primary);
  outline: 0;
  border: 0;
  color: var(--white);
  font-size: large;
  font-weight: bold;
}

#upload-result {
  opacity: 0;
  margin-top: 1rem;
  width: 100%;
  border: 1px solid var(--success);
  border-radius: 1rem;
  position: relative;
  box-shadow: var(--low-shadow);
  text-align: center;
  background-color: rgba(0, 0, 0, 0);
}

.result-title {
  text-align: center;
  padding: 0.5rem;
  margin: 0;
  font-weight: bold;
  color: var(--success)
}

.result-input-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
}

.result-input-container input {
  width: 80%;
  padding: 0.5rem 0.2rem;
  border-radius: 0 0.5rem 0.5rem 0;
  border: 3px solid var(--primary);
  outline: 0;
  background-color: var(--light);
}

.result-input-container input:focus {
  border: 3px solid var(--primary);
}

.result-input-container span {
  width: 20%;
  background-color: var(--primary);
  padding: 0.5rem 0;
  border-radius: 0.5rem 0 0 0.5rem;
  color: var(--white);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.more-details p {
  margin: 0.5rem;
  color: var(--gray);
}

#re-upload {
  background-color: var(--light);
  color: var(--dark);
  padding: 0.5rem 1rem;
  border-radius: 100rem;
  font-size: small;
  box-shadow: var(--low-shadow);
}

.extra-form {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--gray);
}

.extra-form p {
  margin: 0.3rem;
}

.extra-form label p:nth-child(2) {
  font-size: small;
}

.extra-form input {
  padding: 0.3rem 0.5rem;
  border-radius: 100rem;
  border: 1px solid var(--gray);
  background-color: var(--light);
}

#progress-bar {
  margin-top: 0.7rem;
  width: 100%;
  height: 0.8rem;
  background-color: var(--light);
  border-radius: 100rem;
  border: 1px solid var(--light);
}

#progress-bar .inner {
  border-radius: 100rem;
  height: 100%;
  background-color: var(--secondary);
}

#progress-container {
  font-size: small;
}

#progress-container p {
  margin: 1rem 0;
}


@media only screen and (min-width: 1024px) {

  .header-upload {
    width: 40%;
    height: 40vh;
    display: flex;
    align-items: center;
  }

  form {
    width: 100%;
  }

  form p {
    width: 100%;
  }

  form button:hover {
    box-shadow: var(--high-shadow);
  }

  #upload_text {
    padding: 0;
  }

  #upload-result {
    width: 100%;
  }
  .extra-form {
    width: 100%;
  }

  #progress-bar {
    width: 100%;
  }
}

@keyframes shake {
  0% {
    transform: translateX(0px);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(5px);
  }
}