@import '../../styles/variables.css';

.about__panel-container {
  font-size: var(--font-size-about);
  background-color: #203a3f;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 100;
  width: 320px;
  -webkit-transition: width 0.5s ease;
  transition: width 0.5s ease;
  overflow-y: auto;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.about__panel {
  min-width: 300px;
  width: 320px;
  padding: 20px;
  -webkit-transform: translateX(0);
          transform: translateX(0);
  -webkit-transition: -webkit-transform 0.5s ease;
  transition: -webkit-transform 0.5s ease;
  transition: transform 0.5s ease;
  transition: transform 0.5s ease, -webkit-transform 0.5s ease;
  overflow-y: auto;
}

.about__panel.collapsed {
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
  overflow-y: hidden;
}

.about__panel-container.collapsed {
  width: 32px;
  padding: 0px;
  overflow-y: hidden;
}

.about__panel-collapsed-content {
  opacity: 0;
  -webkit-transform: translateX(-100%) rotate(90deg);
          transform: translateX(-100%) rotate(90deg); /* Initially hidden to the left */
  -webkit-transition:
    opacity 0.5s ease 0.5s,
    -webkit-transform 0.5s ease 0.5s;
  transition:
    opacity 0.5s ease 0.5s,
    -webkit-transform 0.5s ease 0.5s;
  transition:
    transform 0.5s ease 0.5s,
    opacity 0.5s ease 0.5s;
  transition:
    transform 0.5s ease 0.5s,
    opacity 0.5s ease 0.5s,
    -webkit-transform 0.5s ease 0.5s;
  position: absolute;
  width: 32px;
  top: 48px;
  right: 0;
  font-weight: 600;
  letter-spacing: 0.08rem;
}

.about__panel-collapsed-content-bottom {
  opacity: 0;
  -webkit-transition: opacity 0.5s ease 0.5s;
  transition: opacity 0.5s ease 0.5s;
  position: absolute;
  width: 32px;
  bottom: 48px;
  right: 0;
  font-weight: 600;
  letter-spacing: 0.08rem;
  cursor: pointer;
}

.about__panel-container.collapsed .about__panel-collapsed-content {
  visibility: visible;
  -webkit-transform: translateX(0) rotate(90deg);
          transform: translateX(0) rotate(90deg);
  opacity: 1;
}

.about__panel-container.collapsed .about__panel-collapsed-content-bottom {
  visibility: visible;
  opacity: 1;
}

.about__panel-container.reopening .about__panel-collapsed-content,
.about__panel-container.reopening .about__panel-collapsed-content-bottom {
  opacity: 0;
  -webkit-transition: opacity 0s ease;
  transition: opacity 0s ease;
}

.demo__info-thumb {
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--neutral-color050);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
  top: 12px;
  right: 4px;
  z-index: 2;
  -webkit-transition: -webkit-transform 0.5s ease;
  transition: -webkit-transform 0.5s ease;
  transition: transform 0.5s ease;
  transition: transform 0.5s ease, -webkit-transform 0.5s ease;

  &:hover {
    background-color: #244f56;
    color: white;
  }
}

.demo__info-thumb.rotated {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

.no__transition {
  -webkit-transition: none !important;
  transition: none !important;
}

.demo__playground-link {
  position: unset;
  right: unset;
  bottom: unset;
}

.demo__playground-link__text {
  padding-bottom: unset;
}

.demo__playground-link__image {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.demo__playground-link___text > span {
  padding-bottom: unset;
  margin-left: var(--s-1);
}

.playground-link__image__collapsed {
  background-color: var(--primary-color500-trans);
  height: 48px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.playground-link__image__collapsed:hover {
  background-color: var(--primary-color500);
  color: var(--neutral-color800);
}

.playground-link__image__collapsed:hover svg > path {
  fill: var(--neutral-color800);
  -webkit-transition: fill 0.5s ease-in-out;
  transition: fill 0.5s ease-in-out;
}

.playground-link__image__collapsed svg > path {
  fill: var(--neutral-color050);
  -webkit-transition: fill 0.5s ease-in-out;
  transition: fill 0.5s ease-in-out;
}

.playground-link__image__collapsed .playground-link__image {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.playground-link__image__collapsed .playground-link__image > svg {
  height: 80%;
  width: 80%;
}
