#controls {
  width: 40%;
  margin-right: 0;
}

.save, .info {
  width: 125px;
  display: inline-grid;
  gap: 10px;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 5px;
}

.canvas-container {
  width: 495px;
  flex-grow: 1;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'FontDesc';
  /* background: #0d0d0d; */
  /* background: radial-gradient(circle,rgba(13, 13, 13, 1) 0%, rgba(51, 51, 51, 1) 92%, rgba(59, 59, 59, 1) 100%); */
}

body {
  display: flex;
  justify-content: center;
  /* align-items: center; */
  /* background-color: #fdfdfd; */
}

#downloadButtonsLayout {
  display: ruby;
}

.page-root {
  max-width: 1500px;
  /* ширина области контента */
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.main-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  /* расстояние между колонками */
}

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 10px 10px 0 0;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-family: "FontDesc";
  font-size: 0.7em;  
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 6px 18px 12px;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background-color: #fff;
}

.tabcontent {
  animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* #region Custom select */
.custom-select {
  position: relative;
  margin-top: 5px;
  width: 100%;
  height: 35px;
  user-select: none;
  font-family: sans-serif;
}

.custom-select-header {
  border: 1px solid #ccc;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  background: #fff;
  border-radius: 5px;
}

.custom-select-header .custom-option-img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.custom-select-header .custom-option-text {
  flex: 1;
}

.custom-select-options {
  position: absolute;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background: #fff;
  z-index: 10;
  margin-top: 2px;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-select-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  transition: background 0.15s;
}

.custom-select-option:hover,
.custom-select-option[aria-selected="true"] {
  background: #f3f6fa;
}

.custom-select-option .custom-option-img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* #endregion */

/* #region DescIconsPopup */
.descButton {
  cursor: pointer;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.descButton:hover {
  background-color: #ddd;
  transition: background 0.15s;
}

#popupMenu {
  position: absolute;
  top: 100px;
  left: 230px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 5px;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 1000;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;

  max-height: 250px;
  overflow-y: auto;
  animation: fadeEffect 0.5s;
}

#popupMenu button {
  /* display: flex; */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 1px 1px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 5px;
  background-color: #f2f2f2;
  transition: background-color 0.2s;
  font-size: 14px;
  text-align: center;
  height: 27px;
}

#popupMenu button:hover {
  background-color: #ddd;
}

.icon {
  width: 25px;
  height: 25px;
}

/* #endregion */

/* #region First time Popup */
#popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background: white;
  border: 2px solid black;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

#popup button {
  margin-top: 10px;
}

#overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* #endregion */


.text-bar {
  display: flex;
  border-radius: 5px;
  margin-top: 0px;
  padding: 0 12px;
  height: 100%;
  outline: none;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}

.text-area {
  display: flex;
  border-radius: 5px;

  margin-top: 0px;
  padding: 5px 12px;
  height: 100%;
  outline: none;
  resize: none;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}

.text-bar-parent {
  align-items: center;
  position: relative;
  margin-top: 5px;
  width: 100%;
  display: flex;
  height: 35px;
}

.text-area-parent {
  align-items: center;
  position: relative;
  margin-top: 15px;
  width: 100%;
  display: flex;
  height: 150px;
}

.text-flavor-area-parent {
  align-items: center;
  position: relative;
  margin-top: 15px;
  width: 100%;
  display: flex;
  height: 50px;
}

.ui-checkbox {
  --primary-color: #1677ff;
  --secondary-color: #fff;
  --primary-hover-color: #4096ff;
  /* checkbox */
  --checkbox-diameter: 20px;
  --checkbox-border-radius: 5px;
  --checkbox-border-color: #d9d9d9;
  --checkbox-border-width: 1px;
  --checkbox-border-style: solid;
  /* checkmark */
  --checkmark-size: 1.2;
}

.ui-checkbox,
.ui-checkbox *,
.ui-checkbox *::before,
.ui-checkbox *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.ui-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: var(--checkbox-diameter);
  height: var(--checkbox-diameter);
  border-radius: var(--checkbox-border-radius);
  background: var(--secondary-color);
  border: var(--checkbox-border-width) var(--checkbox-border-style) var(--checkbox-border-color);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.ui-checkbox::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-box-shadow: 0 0 0 calc(var(--checkbox-diameter) / 2.5) var(--primary-color);
  box-shadow: 0 0 0 calc(var(--checkbox-diameter) / 2.5) var(--primary-color);
  border-radius: inherit;
  opacity: 0;
  -webkit-transition: all 0.5s cubic-bezier(0.12, 0.4, 0.29, 1.46);
  -o-transition: all 0.5s cubic-bezier(0.12, 0.4, 0.29, 1.46);
  transition: all 0.5s cubic-bezier(0.12, 0.4, 0.29, 1.46);
}

.ui-checkbox::before {
  top: 40%;
  left: 50%;
  content: "";
  position: absolute;
  width: 4px;
  height: 7px;
  border-right: 2px solid var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
  -webkit-transform: translate(-50%, -50%) rotate(45deg) scale(0);
  -ms-transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  opacity: 0;
  -webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
  -o-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
  transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;
}

/* actions */

.ui-checkbox:hover {
  border-color: var(--primary-color);
}

.ui-checkbox:checked {
  background: var(--primary-color);
  border-color: transparent;
}

.ui-checkbox:checked::before {
  opacity: 1;
  -webkit-transform: translate(-50%, -50%) rotate(45deg) scale(var(--checkmark-size));
  -ms-transform: translate(-50%, -50%) rotate(45deg) scale(var(--checkmark-size));
  transform: translate(-50%, -50%) rotate(45deg) scale(var(--checkmark-size));
  -webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
  -o-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
  transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
}

.ui-checkbox:active:not(:checked)::after {
  -webkit-transition: none;
  -o-transition: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  transition: none;
  opacity: 1;
}

.slider-range {
  width: 100%;
}


/* button */

.Btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition-duration: .3s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
  background-color: #60c9fa;
}

/* plus sign */
.sign {
  width: 100%;
  transition-duration: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign svg {
  width: 17px;
}

/* text */
.text {
  position: absolute;
  right: 0%;
  width: 0%;
  opacity: 0;
  color: white;
  font-size: 1em;
  font-family: "FontName";
  transition-duration: .3s;
}

/* hover effect on button width */
.Btn:hover {
  width: 125px;
  border-radius: 10px;
  transition-duration: .3s;
}

.Btn:hover .sign {
  width: 20%;
  transition-duration: .3s;
  padding-left: 0px;
}

/* hover effect button's text */
.Btn:hover .text {
  opacity: 1;
  width: 70%;
  transition-duration: .3s;
  padding-right: 10px;
}

/* button click effect*/
.Btn:active {
  transform: translate(2px, 2px);
}