


/* -------------------------------   Header Section ------------------------------- */

header {
  min-height: 250px;
  background-color: var(--main-color);
  color: var(--neutral-lightest);
}

header .user-profile {
  min-height: 150px;
  padding-bottom: 1rem;
}

header .user-profile .container {
  text-align: center;
  max-width: 300px;
}

header .user-profile .results {
  text-align: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

header .user-profile .results .success-message {
  color: var(--success-color);
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: 5px;
  width: 100%;
  padding: 0.5rem 1rem;
  display: none;
}

header .user-profile .results .success-message.show {
  display: block;
}

header .user-profile .results .error-message {
  color: var(--error-color);
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 5px;
  width: 100%;
  padding: 0.5rem 1rem;
  display: none;
}

header .user-profile .results .error-message.show {
  display: block;
}

header .user-profile .html-spinner {
  display: none;
  width:40px;
  height:40px;
  border:6px solid var(--main-color);
  border-top:6px solid white;
  border-radius:50%;

  transition-property: transform;
  animation-name: rotate-spinner; 
  animation-duration: 1.2s; 
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

header .user-profile .html-spinner.show {
  display: inline-block;
}

header .user-profile .user-name p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: none;
}

header .user-profile .user-name {
  /* margin-top: 1rem; */
  position: relative;
}

header .user-profile .user-name input {
  margin: auto;
  width: 100%;
  font-size: 1.1rem;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  display: none;
  position: relative;
  z-index: 3;
}

header .user-profile .user-name p.show,
header .user-profile .user-name input.show {
  display: block;
}

header .user-profile .user-name .input-error {
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 5px;
  color: var(--error-color);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.5rem;
  width: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  opacity: 0;
  transition: all 0.5s;
}

header .user-profile .user-name .input-error.show {
  top: 1.7rem;
  opacity: 1;
}


/* header .user-profile .user-photo {
  width: 140px;
  height: 140px;
  position: relative;
  margin: 0 auto;
}

header .user-profile .user-photo img {
  width: 100%;
  object-fit: contain;
  border-radius: 50%;
}

header .user-profile .user-photo .btn-change-photo {
  border: none;
  border-radius: 5px;
  background-color: var(--neutral-dark);
  color: var(--neutral-light);
  padding: 0.3rem 0.5rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  transition: opacity 0.2s;
  display: none;
}

header .user-profile .user-photo .btn-change-photo:hover {
  opacity: 1;
}

header .user-profile .user-photo .btn-change-photo.show {
  display: inline;
} */

header .user-profile .btn-modify {
  border: none;
  background-color: transparent;
  color: var(--neutral-light);
  margin: 0.5rem;
  display: none;
}

header .user-profile .btn-cancel,
header .user-profile .btn-approve {
  width: 100px;
  text-align: center;
  padding: 0.4rem 0;
  margin: 0.5rem;
  display: none;
}

header .user-profile .btn-cancel {
  /* padding: 0.4rem 0.7rem; */
  border: none;
  border-radius: 5px;
  background-color: var(--neutral-bg);
  opacity: 0.9;
}

header .user-profile .btn-approve {
  /* padding: 0.4rem 0.7rem; */
  border: none;
  border-radius: 5px;
  background-color: var(--main-color-light);
  opacity: 0.9;
  color: var(--neutral-light);
}

header .user-profile .btn-approve:disabled {
  background-color: var(--neutral);
  opacity: 1;
}

header .user-profile .btn-cancel:hover,
header .user-profile .btn-approve:hover {
  opacity: 1;
}

header .user-profile .btn-modify.show,
header .user-profile .btn-cancel.show,
header .user-profile .btn-approve.show {
  display: inline;
}


/* -------------------------------   Results Section ------------------------------- */




/* -------------------------------   Purchased Courses Section ------------------------------- */

.your-courses {
  margin: 3rem 1rem;
}

.your-courses .results .error-message {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-color);
  border-radius: 5px;
  display: none;
}

.your-courses .results .error-message.show {
  display: block;
}

.your-courses .text-title {
  padding-bottom: 1rem;
  font-size: 1.5rem;
}

.your-courses .box-course {
  padding: 1rem;
  background-color: var(--neutral-bg);
  border: 1px solid var(--neutral);
  border-radius: 5px;
  margin-bottom: 2rem;
  display: none;
}

.your-courses .box-course.show {
  display: block;
}

.your-courses .box-course .top-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.your-courses .top-flex > * {
  margin-bottom: 1rem;
}

.your-courses .course-img {
  width: 120px;
}

.your-courses .course-title {
  font-size: 1.2rem;
}

.your-courses .course-start-btn {
  padding: 0.7rem 2rem;
  background-color: var(--main-color-light);
  color: var(--neutral-light);
  opacity: 0.9;
  cursor: pointer;
  border: none;
  border-radius: 5px;
}

.your-courses .course-start-btn:hover {
  opacity: 1;
}

.your-courses .play-icon {
  font-size: 0.6rem;
  color: var(--neutral-lightest);
  background-color: var(--neutral-dark);
  border-radius: 50%;
  padding: 0.1rem 0.2rem 0 0.3rem;
  margin-left: 1rem;
}

.your-courses .loading-circles {
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.your-courses .loading-circles > div {
  width: 25px;
  height: 25px;
  background-color: var(--main-color-light);
  margin-left: 10px;
  border-radius: 50%;
  animation-name: loading;
  animation-duration: 0.9s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.your-courses .loading-circles > div:nth-child(2) {
  animation-delay: 0.3s;
}

.your-courses .loading-circles > div:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes loading {
  to {
      opacity: 0.3;
  }
}


@media screen and (max-width: 768px) {

  .your-courses .box-course .top-flex {
    flex-direction: column;
  }

  .your-courses .course-img {
    width: 60%;
  }

}

/* -------------------------------   Questions Section ------------------------------- */

.your-questions {
  padding: 3rem 1rem;
}

.your-questions .text-title {
  padding-bottom: 1rem;
  font-size: 1.5rem;
}

.your-questions .box-no-questions {
  padding: 1.5rem;
  background-color: var(--neutral-bg);
  border: 1px solid var(--neutral);
  border-radius: 5px;
  text-align: center;
  font-size: 1.2rem;
}