html,
body {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  height: 100%;

  background: #312D45;

  font-family: 'Satoshi-Variable';

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/** Utilities **/

* {
  box-sizing: border-box;
}

/* Desktop */
@media only screen and (min-width: 1024px) {
  .mobile-only {
    display: none;
  }
}

/* Mobile */
@media only screen and (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }
}

.spacer {
  flex-grow: 1;
}

/** Buttons **/

.btn {
  border: none;
  background-color: transparent;
  padding: 0;
}

.btn.default {
  background-color: white;
  color: black;
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  line-height: 120%;
}

.btn.round {
  background-color: white;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
}

/** Layout **/

/* Top */
.top {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100vw;

}

/* Mobile .top */
@media only screen and (max-width: 1023px) {
  .top {
    height: 55px;
    padding: 0 0 0 0px;
    border-width: 1px 0px;
    border-style: none;
    border-color: rgba(0, 0, 0, 0.08);
  }

  .top .back-button {
    width: 100%;
    height: 55px;
    background: #FFFFFF;
    border-width: 0px 1px 0px 0px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.15);
  }

  .top .buy-button {
    width: 100%;
    height: 55px;
    border-width: 0px 1px 0px 0px;
    /* flex-basis: 50%; */
    /* flex-shrink: 0; */
  }


  .top .generate-button {    
    flex-basis: 281px;
    height: 50px;
    flex-shrink: 0;
    position: absolute;
    top: 8px;
    right: -10px;
    cursor: pointer;
    
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;    
  }  

  .generate-image {
    background-color: #fff;
    width: 119px;
    height: 34px;        
    padding-top: 10px;
    border-radius: 5px;
  }

  .top .upload-button {    
    flex-basis: 281px;
    width:100%;
    height: 50px;
    flex-shrink: 0;
    position: absolute;
    
    top: 8px;
    /* left:0; */
    /* right: -10px; */
    cursor: pointer;
    
    /* flex-direction: row; */
    /* align-items: center; */
    /* justify-content: flex-start; */
    /* padding: 0 16px;     */
  }  

  .upload-image {
    background-color: #fff;
    width: 300px;
    height: 34px;        
    padding-top: 10px;   
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* Desktop .top */
@media only screen and (min-width: 1024px) {

    .top {
        height: 55px;
        padding: 0 0 0 0px;
        border-width: 1px 0px;
        border-style: solid;
        border-color: rgba(0, 0, 0, 0.08);
      }

  .top .back-button {
    width: 77px;
    height: auto;
    background: #FFFFFF;
    border-width: 0px 1px 0px 0px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.15);
  }

  .top .buy-button {
    flex-basis: 281px;
    height: 50px;
    flex-shrink: 0;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .top .generate-button {    
    flex-basis: 281px;
    height: 50px;
    flex-shrink: 0;
    position: absolute;
    top: 8px;
    right: -10px;
    cursor: pointer;
    
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .generate-image {
    background-color: #fff;
    width: 119px;
    height: 34px;        
    padding-top: 10px;
    border-radius: 5px;
  }

  .top .upload-button {    
    flex-basis: 281px;
    width:100%;
    height: 50px;
    flex-shrink: 0;
    position: absolute;    
    top: 8px;    
    cursor: pointer;
  }  

  .upload-image {
    background-color: #fff;
    width: 300px;
    height: 34px;        
    padding-top: 10px;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-hover:hover {
    background-color: #E1F080;    
  }



  

}

.header-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba( 255, 255, 255, 0.8);
    font-size: 14px;
}
/* Work area */

.work {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  flex-grow: 1;

  width: 100%;
  height: calc(100% - 28px - 86px - 275px);
}

.work #canvas{
  background-color: #312D45;
  height: 100%;
  width: 100%;
}

#canvas {
    /* padding-top: 50px;     */
}

/* Desktop .work */
@media only screen and (min-width: 1024px) {
  .work {
    
    height: calc(100% - 74px - 86px - 50px);
  }

  /* .work canvas {
    max-width: 870px;
    max-height: 582px;
  } */

  .work .side {
    position: absolute;
    left: 0;
    top: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    scroll-behavior: smooth;
    overflow-y: auto;
    height: 100%;
  }

  .work .side .pattern {
    position: relative;
    width: 77px;
    height: 74px;
    padding: 2px;
    background-color: white;

    border-width: 1px 1px 0px 0px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.15);
  }
  .work .side .pattern:hover {
    background-color: #E1F080;
  }

  .work .side .pattern.active {
    background-color: #E1F080 !important;
  }

  .work .side .pattern:last-child {
    border-bottom-width: 1px;
  }

  .work .side .pattern img {
    width: 100%;
    height: 100%;
    object-fit: contain;    
    background-color: transparent;
  }  
}

.tools {
  width: 100%;
  padding: 16px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

/** MOBILE Config **/

.config-wrapper {
  flex-basis: 0px;
  width: 100%;

  background-color: white;
  overflow-y: hidden;
}

.config-wrapper.open {
  flex-basis: 275px;
}

.config-container {
  display: flex;
  flex-direction: column;
  height: 275px;

  padding: 10px 0;

  gap: 20px;
}

/* .config-container-selector:hover {
    background-color: #E1F080;    
} */

/* .btn:hover {
    background-color: #E1F080;
} */

.config-top {
  padding: 0 13px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.config-top .btn {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: solid thin rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #FFFFFF;
}

.config-top .btn.active {
  border-color: black;
}

.config-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.config-content:not(.active) {
  display: none;
}

.mobile-parameter:not(.active) {
  display: none !important;
}

.patterns {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;

  gap: 8px;
}

.patterns-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  scroll-behavior: smooth;
}

.patterns-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 129px;
  overflow-x: auto;

  padding: 0 10px;
}

.patterns .pattern {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-basis: 134.33px;
  flex-shrink: 0;

  height: 100%;

  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.patterns .pattern.active {
  background: #E1F080;
}

.config-content .pagination {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #EEEFE6;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.config-content .pagination.prev {
  left: 17px;
}

.config-content .pagination.next {
  right: 17px;
}

.config-content .bullets {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin: auto;

  padding: 8px 0;
}

.config-content .bullets .bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;

  background: #D9D9D9;
  border: solid 2px transparent;
}

.config-content .bullets .bullet.active {
  width: 9px;
  height: 9px;
  border-color: transparent;
  background-color: black;
}

.config-tabs {
  width: 100%;
  overflow-x: auto;

  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.config-tabs::-webkit-scrollbar {
  display: none;
}

.config-tabs-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

/* Mobile .config-tabs-wrapper */
@media only screen and (max-width: 1023px) {
  .config-tabs-wrapper {
    padding: 0 10px;
  }
}

.config-tabs .tab {
  height: 42px;
  flex-basis: 33.33%;
  display: flex;
  align-items: center;
  justify-content: center;

  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 120%;

  padding: 0 21px;
  color: #000000;

  opacity: 0.24;

  margin-bottom: 16px;
  white-space: nowrap;
}

.config-tabs .tab.active {
  opacity: 1;
  background-color: #EEEFE6BD;
}

.slider {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  gap: 13px;

}

/* Mobile .slider */
@media only screen and (max-width: 1023px) {
  .slider {
    padding: 0 21px;
  }
}
.config-tabs .tab:not(.visible) {
    display: none !important;
  }


.slider input[type="range"] {
  flex-grow: 1;
}

.slider input[type="number"] {
  flex-basis: 78px;
  height: 30px;

  font-style: normal;
  font-weight: 500;
  font-size: 17.4867px;
  line-height: 120%;
  /* identical to box height, or 21px */

  display: flex;
  align-items: center;
  text-align: center;

  color: #000000;

  border: 1px solid rgba(0, 0, 0, 0.08);
}

.slider input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 0px;
  background: #d3d3d3;
  outline: none;

  border: 1.3px solid #00000026
}

.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: white;
  border: solid 5px black;
  cursor: pointer;
  border-radius: 50%;
}

/* Mobile .select */
@media only screen and (max-width: 1023px) {
  .select {
    padding: 0 8px;
  }
}

.select select {
  /* styling */
  background-color: white;
  border: 1.34513px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  /* display: block; */
  font: inherit;
  line-height: 1.5em;
  padding: 0.5em 3.5em 0.5em 1em;

  width: 100%;
  /* reset */

  margin: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;

  font-style: normal;
  font-weight: 500;
  font-size: 17.4867px;
  line-height: 120%;
  /* identical to box height, or 21px */

  display: flex;
  align-items: center;

  color: #000000;

  background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    calc(100% - 2.5em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
}

.select select:focus {
  outline: 0;
}


/** DESKTOP CONFIGURATION **/


.config-container-wrapper {
    
    border: 0.1px solid rgba(0, 0, 0, 0.5);
}


.param-container:not(.visible) {
    display: none !important;
  }

.config-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  width: 80%;
  height: 50px;
  position: relative;
}

.config-row .config-container {
  flex-basis: 50%;
  flex-shrink: 0;
  position: relative;
  height: 50px;
}

.config-row .config-container .config-container-title {

  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  /* identical to box height, or 24px */

  display: flex;
  align-items: center;

  color: #000000;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  gap: 16px;
}

.config-row .config-container .config-container-wrapper {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;

  background-color: white;

  padding: 0 16px;  
}

.config-row .config-container:not(.open):hover {
    background-color: #E1F080;
}

.config-row .config-container:not(.open):hover .config-container-wrapper {
    background-color: transparent;
}

.config-row .config-container .config-container-wrapper .config-container-selector {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
}

.config-row .config-container .config-container-content {
  overflow-y: auto;
  height: 0px;
  width: 100%;
  transition: height .4s;
}

.config-row .config-container .config-container-content .config-container-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 21px;
  padding: 57px 0 30px 0;
}

.config-row .config-container.open .config-container-content {
  height: auto;
  /* 296px; */
}

.config-row .config-container.open .config-container-label .chevron-up {
  display: none;
}

.config-row .config-container .config-container-label .chevron-down {
  display: none;
}

.config-row .config-container.open .config-container-label .chevron-down {
  display: block;
}

.config-container-content .label {
  padding-bottom: 8px;
  display: block;
}

input[type="text"] {
  flex-basis: 78px;
  height: 32px;
  font-style: normal;
  font-weight: 500;
  font-size: 17.4867px;
  line-height: 120%;
  display: flex;
  align-items: center;
  text-align: left;
  color: #000;  
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  border-radius: 4px;
  padding: 8px;
}

input[type="text"]:focus {
  outline: 0;
}

.hint-icon {
  display: none;
}

.config-row .config-container.open .hint-icon {
  display: inline-block;
}

.input-container {
  width: 100%;
  max-width: 650px;
  position: relative;  
}

.input-container:not(.visible) {
    display: none !important;
}

#prompt-input {
    border-radius: 5px;
}

input:not([type]), input[type="text"]{
/* background-color: rgba(1, 1, 1, .64);   */
    background-color: rgba( 255, 255, 255, 0.64);
    color: white;
  width: 100%;
  height : 45px;
  margin-top: 10px;
  border: none;
  font-size: 20px;
  padding: 10px;  
  justify-content: center;
  font-size: 14px;
}

.noSelect {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.noSelect:focus {
  outline: none !important;
}


#defaultCanvas1 {
    display: none !important;
}