.wrapper {
  height: 100%;
  min-height: 100vh;
  background: url("./src/images/bg.png") no-repeat center bottom 60px;
  background-size: 1200px auto;
  background-attachment: fixed;
  padding: 30px 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Heading */
#heading .top-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

#breadcrumbs {
  margin: 50px 0;
}

ul.breadcrumbs {
  counter-reset: breadcrumb;
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.breadcrumbs li:not(.active) {
  opacity: 0.6;
}

.breadcrumbs li::before {
  counter-increment: breadcrumb;
  content: counter(breadcrumb);
  display: flex;
  height: 40px;
  min-width: 40px;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  color: var(--color-black);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0%, transparent 50%);
  background-color: var(--color-light);
  transition: background-color 300ms ease;
  border-radius: 50%;
}

.breadcrumbs li.current::before {
  color: var(--color-white);
  background: linear-gradient(
    0deg,
    rgba(102, 36, 131, 0.2) 0%,
    transparent 50%
  );
  background-color: var(--color-primary);
}

@media (max-width: 900px) {
  .wrapper {
    padding: 40px 0;
  }

  #heading .top-controls {
    align-items: center;
  }

  #breadcrumbs {
    text-align: center;
    margin: 30px;
  }

  .breadcrumbs {
    justify-content: center;
  }

  .breadcrumbs li:not(.current)  {
    visibility: hidden;
    width: 0;
    position: absolute;
  }

  .breadcrumbs li::before {
    content: counter(breadcrumb) ' / 4';
    height: 60px;
    width: 60px;
  }
}

/* section */
.section:not(.active) {
  display: none;
}

.section h3 {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .section h3 {
    text-align: center;
  }
}

/* Controls */
#controls {
  margin: 40px 0 20px 0;
}

#error-container, #bot-error {
  color: red;
  margin-bottom: 20px;
}

#error-container:not(.has-error) {
  display: none;
}

.page-controls {
  display: flex;
  gap: 14px;
  align-items: center;
}

@media (max-width: 900px) {
  .page-controls {
    flex-direction: column;
    justify-content: center;
  }

  .page-controls {
    flex-direction: column;
    justify-content: center;
  }

  .page-controls .btn-primary {
    order: -1;
  }

  #error-container {
    text-align: center;
  }
}

/* 1. Business */

.business-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.business-card {
  display: flex;
  flex-direction: column;
  width: 180px;
  height: 120px;
  align-items: center;
  text-align: center!important;
  justify-content: center;
  border-radius: 12px;
  color: var(--color-black);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0%, transparent 50%);
  background-color: var(--color-light);
  transition: background-color 300ms ease;
  cursor: pointer;
}

.business-card.active {
  color: var(--color-white);
  background: linear-gradient(
    0deg,
    rgba(102, 36, 131, 0.2) 0%,
    transparent 50%
  );
  background-color: var(--color-primary);
}

.business-card.active i {
  color: #fff;
}

.business-card:not(.active):hover {
  background-color: #efefef;
}

.business-card i {
  font-size: 1.8rem;
  color: var(--color-muted);
}

.business-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0;
  margin-top: 8px;
}

@media (max-width: 900px) {
  #business-type {
    text-align: center;
  }

  .business-list {
    gap: 10px;
    justify-content: center;
  }
}

/* 2. Scenario */

*[audio] {
  transition: width 300ms ease;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.scenario-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.scenario {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
  padding: 0 12px;
}

.scenario-content {
  display: flex;
  gap: 22px;
  align-items: center;
}

.scenario-icon {
  display: flex;
  height: 40px;
  min-width: 40px;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  color: var(--color-muted);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0%, transparent 50%);
  background-color: var(--color-light);
  transition: background-color 300ms ease;
  border-radius: 50%;
}

.scenario.active .scenario-icon {
  color: var(--color-white);
  background: linear-gradient(
    0deg,
    rgba(102, 36, 131, 0.2) 0%,
    transparent 50%
  );
  background-color: var(--color-primary);
}

.scenario-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scenario-body h3 {
  font-size: 1.1rem;
  color: var(--color-black);
  margin: 0;
}

.scenario-body p {
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: justify;
  margin: 0;
}

.scenario-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
}

@media (max-width: 900px) {
  .scenario-content {
    flex-direction: column;
    gap: 10px;
  }

  .scenario-controls {
    justify-content: center;
  }
}

/* Personality */

.bot-personality {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.bot-gender {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bot-details {
  display: flex;
  flex-direction: column;
}

.gender-card {
  display: flex;
  flex-direction: column;
  width: 140px;
  height: 120px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--color-black);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0%, transparent 50%);
  background-color: var(--color-light);
  transition: background-color 300ms ease;
  cursor: pointer;
}

.gender-card.active {
  color: var(--color-white);
  background: linear-gradient(
    0deg,
    rgba(102, 36, 131, 0.2) 0%,
    transparent 50%
  );
  background-color: var(--color-primary);
}

.gender-card.active i {
  color: #fff;
}

.gender-card:not(.active):hover {
  background-color: #efefef;
}

.gender-card i {
  font-size: 1.8rem;
  color: var(--color-muted);
}

.gender-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .bot-personality {
    gap: 16px;
    justify-content: center;
  }

  .bot-personality label {
    text-align: center;
    margin: 0;
  }
  
  .bot-gender {
    justify-content: center;
  }
}

/* Company */

.company-details {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .company-details {
    justify-content: center;
  }
  
  .company-details  label {
    text-align: center;
    margin: 0;
  }
}

/* Creating */

.bot-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 80px 0 40px 0;
} 

.loader {
  scale: 1.3;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  perspective: 800px;
  animation: rotate-all 50s linear infinite;
}

.loader {
  height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center; }

.machine {
  width: 60vmin;
  fill: var(--color-primary); }

.small-shadow, .medium-shadow, .large-shadow {
  fill: rgba(0, 0, 0, 0.05); }

.small {
  -webkit-animation: counter-rotation 2.5s infinite linear;
	   -moz-animation: counter-rotation 2.5s infinite linear;
	     -o-animation: counter-rotation 2.5s infinite linear;
	        animation: counter-rotation 2.5s infinite linear;
  -webkit-transform-origin: 100.136px 225.345px;
      -ms-transform-origin: 100.136px 225.345px;
          transform-origin: 100.136px 225.345px; }

.small-shadow {
  -webkit-animation: counter-rotation 2.5s infinite linear;
	   -moz-animation: counter-rotation 2.5s infinite linear;
	     -o-animation: counter-rotation 2.5s infinite linear;
	        animation: counter-rotation 2.5s infinite linear;
  -webkit-transform-origin: 110.136px 235.345px;
      -ms-transform-origin: 110.136px 235.345px;
          transform-origin: 110.136px 235.345px; }

.medium {
  fill: var(--color-secondary);
  -webkit-animation: rotation 3.75s infinite linear;
	   -moz-animation: rotation 3.75s infinite linear;
	     -o-animation: rotation 3.75s infinite linear;
	        animation: rotation 3.75s infinite linear;
  -webkit-transform-origin: 254.675px 379.447px;
      -ms-transform-origin: 254.675px 379.447px;
          transform-origin: 254.675px 379.447px; }

.medium-shadow {
  -webkit-animation: rotation 3.75s infinite linear;
	   -moz-animation: rotation 3.75s infinite linear;
	     -o-animation: rotation 3.75s infinite linear;
	        animation: rotation 3.75s infinite linear;
  -webkit-transform-origin: 264.675px 389.447px;
      -ms-transform-origin: 264.675px 389.447px;
          transform-origin: 264.675px 389.447px; }

.large {
  -webkit-animation: counter-rotation 5s infinite linear;
     -moz-animation: counter-rotation 5s infinite linear;
	     -o-animation: counter-rotation 5s infinite linear;
        	animation: counter-rotation 5s infinite linear;
  -webkit-transform-origin: 461.37px 173.694px;
      -ms-transform-origin: 461.37px 173.694px;
          transform-origin: 461.37px 173.694px; }

.large-shadow {  
  -webkit-animation: counter-rotation 5s infinite linear;
	   -moz-animation: counter-rotation 5s infinite linear;
	     -o-animation: counter-rotation 5s infinite linear;
	        animation: counter-rotation 5s infinite linear;
  -webkit-transform-origin: 471.37px 183.694px;
      -ms-transform-origin: 471.37px 183.694px;
          transform-origin: 471.37px 183.694px; }

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

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

@media (max-width: 900px) {
  .bot-loader {
    justify-content: center;
    text-align: center;
  }
}