/* PERSONAL PROFILE */

#profile-container {
  padding-top: 20px;
  padding-bottom: 20px;
  /* position: absolute; */
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -ms-flex-direction: column;
  -moz-flex-direction: column;
  -webkit-flex-direction: column;
  width: 100%;
}

@media (max-width: 699px) {
  #profile-form,
  #password-form,
  #email-form {
    margin-top: 10px;
    padding: 0;
  }

  #profile-menu {
    overflow: hidden;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
  }

  #profile-nav {
    float: left;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }

  .profile-img {
    display: none;
  }

  .profile-img-sm {
    display: inline-block;
  }

  .profile-part {
    width: 90%;
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .profile-part {
    width: 90%;
    justify-self: center;
  }
}

@media (min-width: 768px) {
  #profile-form,
  #password-form {
    margin-top: 10px;
    padding: 0 20px 0 20px;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }

  #profile-menu {
    width: 300px;
  }

  .profile-img {
    display: block;
  }

  .profile-img-sm {
    display: none;
  }
}

.experiment-box,
.resource-box-profile,
.project-box-profile {
  width: auto;
  border-radius: 0.5em;
  background-color: var(--bg-1);
  margin-bottom: 10px;
  border: 1px solid var(--text-3);
  padding: 0.5em 1em;
}

.address-box,
.order-box,
.wishlist-box {
  padding: 1em;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;

  border: 1px solid var(--text-3);
  background: var(--bg-1);
  border-radius: 10px;
  margin: 10px auto;
}

.order-box {
  margin-bottom: 0px;
}

.orderDetails-box {
  display: none;
  border: 1px solid var(--text-3);
  border-top: none;
  background: var(--bg-1);

  justify-content: space-between;
  padding: 1em;
  border-radius: 10px;
  gap: 3em;
}

.orderDetails-box__item {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 1em;
}

.orderDetails-box__item img {
  grid-row-start: 1;
  grid-column-start: 1;
  height: 5em;
  width: 5em;
  object-fit: cover;
  border: 1px solid var(--text-0);
}

.orderDetails-box__item div {
  grid-row-start: 1;
  grid-column-start: 2;
}

.showDetails.orderDetails-box {
  display: flex;
}

.orderDetails-box__header {
  font-size: 1.2em;
  font-weight: bold;
}

@media (max-width: 992px) {
  .order-box {
    display: grid;
  }

  .order-box > span:nth-child(3) {
    grid-row-start: 1;
    grid-column-start: 3;
  }

  .order-box > button {
    grid-row-start: 2;
  }

  .order-box > a {
    grid-row-start: 2;
    grid-column-start: 2;
    grid-column-end: 4;
  }

  .orderDetails-box {
    flex-direction: column;
  }

  .orderDetails-box {
    gap: 1.5em;
  }

  .wishlist-box {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .wishlist-box a,
  .wishlist-box button {
    width: 100%;
  }

  .wishlist-box p {
    margin-bottom: 0px;
  }
}

@media (max-width: 700px) {
  .address-box,
  .order-box {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .order-box {
    display: flex;
    flex-direction: column;
  }
}

/* SHARE CODE */

#share-project-qrcode {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 1em;
  margin-block: 1em;
  flex-wrap: wrap;
}

#share-project-qrcode #qrcode-div {
  text-align: center;
}

#share-project-qrcode #qrcode {
  --size: 150px;

  background-color: var(--vitta-white);
  padding: 0.5em;
  border-radius: 10px;

  max-width: var(--size);
  max-height: var(--size);
}

#share-project-qrcode #qrcode canvas {
  width: calc(var(--size) - 1em);
  height: calc(var(--size) - 1em);
  margin: auto;
}

#share-project-qrcode #qrcode-actions {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 1em;
}

/* USER DETAILS */

#card_user {
  position: sticky;
  background-color: var(--bg-1);
  top: calc(var(--navbar-height) + 2em);
}

.profil_contents {
  width: 100%;
  border-radius: 1em;
  box-shadow: 0px 0px 10px 0px var(--vitta-shadow-color);
  padding: 20px;
  margin-bottom: 40px;
}

.profil_contents > h4 {
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 0;
  user-select: none;
}

.profil_contents > h4 > i {
  transition: all 0.15s ease-in-out;
}

.profil_contents > h4.collapsed > i {
  transform: rotate(-90deg);
}

p.profil_public_bio {
  text-align: justify;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* picture profil galery */
.brick {
  width: 100px;
  height: 100px;
  background: #f2f2f2;
}
.tile-picker {
  position: relative;
  cursor: pointer;
  background-color: #eaeaea;
  background-position: center center;
  background-size: cover;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  outline: 2px solid #fff;
  outline-offset: -3px;
  border: 1px solid #bbb;
  margin: 8px;
}

[name="icon-picker"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
[name="icon-picker"]:checked + img {
  outline: 4px solid red;
}

#star-rating-form {
  display: flex;
  justify-content: start;
  gap: 1rem;
}

.star-wrap {
  width: max-content;
  margin: 0 auto;
  position: relative;
}
.star-label.hidden {
  display: none;
}
.star-label {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
}

.star-shape {
  background-color: gold;
  width: 100%;
  height: 100%;
  /*star shaped cutout, works  best if it is applied to a square*/
  /* from Clippy @ https://bennettfeely.com/clippy/ */
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

/* make stars *after* the checked radio gray*/
.star:checked + .star-label ~ .star-label .star-shape {
  background-color: lightgray;
}

/*hide away the actual radio inputs*/
.star {
  position: fixed;
  opacity: 0;
  /*top: -90000px;*/
  left: -90000px;
}

.star:focus + .star-label {
  outline: 2px dotted black;
}

.file-drop-area {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
  max-width: 100%;
  padding: 25px;
  border: 2px dashed var(--vitta-orange);
  border-radius: 3px;
  transition: 0.2s;
}

.fake-btn {
  font-size: 12px;
}

.file-msg {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-input {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  opacity: 0;
}
.file-drop-area:hover {
  background-color: rgb(from var(--vitta-orange-light) r g b / 0.2);
}

.license-col {
  text-align: center;
  justify-content: space-between;
  border-radius: 1em;
  padding: 2em 1em;
  background: var(--bg-1);
  box-shadow: 0px 3px 6px #00000029;
  border: 1px solid var(--text-1);
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.multi-license {
  border-color: var(--vitta-orange-light);
  box-shadow: 1px 1px 15px #ff931e80;
}
.starter-license {
  border-color: var(--vitta-blue);
  box-shadow: 1px 1px 15px #3fa9f567;
}

.license-col ul {
  flex-grow: 1;
  text-align: left;
  list-style: none;
  padding: 0;
}

.license-col ul li {
  padding-left: 2.3em;
  margin: 0.5em auto;
}

.license-col ul li:before {
  content: "\f00c";
  /* FontAwesome Unicode */
  font-family: "Font Awesome 5 Free";
  display: inline-block;
  position: relative;
  right: 10px;
  margin-left: -1.3em;
  width: 1.3em;
  font-weight: 900;
}

.license-col ul li.infinite:before {
  content: "\f534";
}

#premium-usage {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  text-align: left;
  gap: 0 0.5em;
  align-items: center;
  margin: 0 auto;
  font-weight: 400;
}

#premium-usage #premium-current-learners,
#premium-usage #premium-current-classrooms {
  color: var(--premium-color);
}

.custom-loader {
  width: 120px;
  height: 22px;
  border-radius: 20px;
  color: #f4bf00;
  border: 2px solid;
  position: relative;
}

.custom-loader::before {
  content: "";
  position: absolute;
  margin: 2px;
  inset: 0;
  width: 0%;
  border-radius: inherit;
  background: #f4bf00;
}
