* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

h1 {
  font-size: 40px;
  line-height: 1;
  font-weight: bold;
  color: #8a60ff;
  text-transform: uppercase;
}

.notification {
  max-width: 300px;
  display: block;
  box-sizing: border-box;
  text-align: left;
  font-size: 12px;
  padding: 10px;
  margin: 0 0 5px 0;
  color: #fff;
  background-color: transparent;
  border-left: 5px solid transparent;
  transition: all .25s linear;
}

.notification.error_msg {
  background-color: #E54D42;
  border-left-color: #B82E24;
}

.notification.success_msg {
  background-color: #68CD86;
  border-left-color: #42A85F;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  width: 100%;
}

.cg_input_group {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
}

.cg_input_group_append {
  display: flex;
  margin-left: -1px;
  align-items: center;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 0 10px 10px 0;
  color: #495057;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0;
  padding: 6px 12px;
  text-align: center;
  white-space: nowrap;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=date],
input[type=password],
input[type=number],
input[type=datetime-local] {
  background-color: white;
  height: 40px;
  width: 100%;
  color: #303030;
  border-radius: 10px;
  border: 1px solid lightgray;
  text-indent: 8px;
  margin: 0;
}

input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.cg_input_group input {
  flex: 1 1 0;
  margin-bottom: 0;
  min-width: 0;
  position: relative;
  border-radius: 10px 0 0 10px;
}

select {
  background-clip: padding-box;
  background-color: #fff;
  border-width: 1px;
  border-style: solid;
  border-color: lightgray !important;
  border-radius: 10px !important;
  color: #495057;
  display: block;
  font-size: 16px;
  font-weight: 400;
  height: 40px;
  line-height: 1.5;
  padding: 6px 12px;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  width: 100%;

}

select:focus {
  background-color: #fff;
  border-color: #80bdff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, .25);
  color: #495057;
  outline: 0;
}

.btn {
  height: 40px;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: #8a60ff;
  transition: all .25s linear;
  border: none;
  outline: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.btn.purple {
  background-color: #8a60ff;
  box-shadow: 0 4px 29px rgba(71, 0, 255, .22);
  color: #f7f7f7;
}

.btn.outline {
  background: transparent;
  border: 1px solid #8a60ff;
}

.btn.outline.purple {
  background-color: transparent;
  color: #8a60ff;
}

.btn:hover {
  background-color: #8a60ff;
  box-shadow: 0 4px 13px rgb(138 96 255 / 50%);
}

.btn:active {
  background-color: #7949fc;
}

.btn.purple:hover {
  background: #6e3aff;
  border-color: #642dff;
  color: #fff;
}

.btn.link {
  color: #8a60ff;
  background-color: transparent;
  text-align: center;
  text-decoration: underline;
  text-transform: uppercase;
  margin: 0 auto;
}

.btn.link.red {
  color: rgba(255, 0, 0, .58);
}

.btn.link:focus {
  box-shadow: none;
  outline: none;
}

.btn.link:hover {
  box-shadow: unset;
  text-decoration-color: transparent;
}


.btn.rainbow {
  width: 220px;
  height: 50px;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
}

.btn.rainbow:before {
  content: '';
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity .3s ease-in-out;
  border-radius: 10px;
}

.btn.rainbow:active:after {
  background: #8a60ff;
}

.btn.rainbow:hover:before {
  opacity: 1;
}

.btn.rainbow:after {
  z-index: -1;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 10px;
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.btn.disabled {
  background-color: #f7f7f7;
  color: #c4c4c4;
  pointer-events: none;
  cursor: default;
}

.scrollbar {
  max-width: 1200px;
  width: 100%;
  margin-top: 10px;
  overflow-x: auto;
}

.table {
  width: 100%;
  display: table;
  color: #212529;
}

.table .th {
  display: table-row;
}

.table .th .td:first-child,
.table .tr .td:first-child {
  padding-left: 16px;
}

.table .td {
  display: table-cell;
  white-space: nowrap;
}

.table.list .td {
  height: 40px;
  background: #fff;
  font-size: 14px;
  color: #191D3A;
  vertical-align: middle;
  border-bottom: 1px solid #f7f7f7;
  padding-right: 16px;
}

.table .rows_group {
  display: table-row-group;
}

.table .tr {
  display: table-row;
}

.cg_radio_component {
  align-items: center;
  cursor: pointer;
  display: flex;
  letter-spacing: -.4px;
  margin-bottom: 0;
  padding-left: 0;
  position: relative;
}

.cg_radio_component + .cg_radio_component {
  margin-top: 10px;
}

.cg_radio_component input {
  opacity: 0;
  position: absolute;
}

.radio {
  border: 1px solid #8a60ff;
  border-radius: 50%;
  height: 20px;
  margin-right: 10px;
  padding: 2px;
  transform: translateY(-1px);
  width: 20px;
}

.radio:after {
  background: #8a60ff;
  border-radius: 50%;
  content: "";
  display: block;
  height: 100%;
  transform: scale(0);
  transition: transform .25s cubic-bezier(.65, .05, .36, 1);
  width: 100%;
}

.cg_radio_component input:checked + .radio:after {
  transform: scale(.9);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}

.cg_modal-mask {
  align-items: center;
  background-color: rgba(0, 0, 0, .5);
  display: flex;
  height: 100vh;
  left: 50%;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .3s ease;
  width: 100vw;
  z-index: 9998;
  padding: 20px;
  box-sizing: border-box;
}

.cg_modal-wrapper {
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 9997;
}

.cg_modal-container {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .33);
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  margin: 0 auto;
  max-height: 100vh;
  transition: all .3s ease;
  z-index: 9999;
}

.cg_modal-header {
  align-items: center;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, .33);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .11));
  padding: 24px 40px;
  font-size: 20px;
}

.cg_close {
  width: 25px;
  height: 25px;
  font-size: 25px;
  color: #8a60ff;
  cursor: pointer;
  padding: 0;
  outline: none;
  border: none;
  background-color: transparent;
}

.cg_modal-body {
  position: relative;
  height: 100%;
  margin: 0;
  max-height: 600px;
  overflow-y: auto;
  padding: 24px 40px;
}

.cg_modal-body form {
  display: flex;
  flex-direction: row;
  gap: 75px;
}

.cg_modal-footer {
  align-items: center;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top: 1px solid #dee2e6;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 12px 40px;
}

.cg_fields .subtitle {
  font-size: 18px;
  margin-bottom: 24px;
  padding: 0;
  font-weight: 700;
  color: #8a60ff;
}

.input-form-element {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cg_img-wrapper {
  width: 270px;
  height: 270px;
}

.cg_img-wrapper .input-component {
  width: 100%;
  height: 100%;
}

.cg_upload_good_container {
  width: 100%;
  max-width: 700px;
}

.cg_upload_good_container .cg_modal-header {
  padding: 20px;
}

.cg_upload_good {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  padding: 20px;
}

.cg_upload_good_image {
  cursor: pointer;
  width: 100%;
}

.cg_upload_good_image img {
  max-width: 100%;
}

.cg_game {
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
  padding: 28px 25px;
  width: 270px;
  box-sizing: border-box;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.cg_game__image {
  height: 210px;
  width: 210px;
}

.cg_game__image_img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.cg_game__info {
  margin-top: 25px;
  width: 100%;
}

.cg_game__title {
  text-align: center;
  color: #303030;
  font-size: 20px;
  font-weight: 700;
  height: 48px;
  line-height: 24px;
}

.cg_game__buttons {
  margin-top: 14px;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.cg_game__buttons .btn {
  width: 100%;
}

.cg_modal-body.cg_modal-body_preview {
  padding: 20px;
}

.cg_preview-game {
  height: 100vh;
  max-height: 556px;
  max-width: 800px;
  width: 100%;
}

.cg_preview-game__iframe {
  height: 100%;
  width: 100%;
}

iframe {
  width: 100%;
  height: 100%;
}
