body.post-type-spin_game_gh {
  min-width: 768px;
}

.error {
  color: #F44336;
}

.success {
  color: #4CAF50;
}

#post-body-content {
  margin-bottom: 0;
}

#spin_items_wrapper {
  .item_row {
    border-bottom: 1px solid #ccc;
  }
  h4 {
    margin: 0;
  }
}

.btn-red-gh {
  background-color: #F44336 !important;
}

.btn-green-gh {
  background-color: #4CAF50 !important;
}

.btn-blue-gh {
  background-color: #2196F3 !important;
}

.btn-orange-gh {
  background-color: #ff9800 !important;
}

.buttons .dashicons {
  color: #fff;
}

#post-body #normal-sortables {
  min-height: 0;
}

#spin_game_preview {
  overflow: hidden !important;
}

.border_option {
  display: flex;
  align-items: flex-end;
  position: relative;
  .label {
    width: 80%;
  }
  [name="border_size"] {
    width: 60px;
    margin: 0 0 0 8px;
  }
}

#spin_items_wrapper {
  .image_upload_wrapper {
    position: relative;
  }
  .imgButtonsWrapper {
    position: absolute;
    top: 0;
    padding: 0;
    margin: 0;
    left: 0;
  }
  .spin-image-wrapper img {
    height: 100px;
    width: 150px;
    object-fit: cover;
  }
  .opt {
    display: flex;
    flex-wrap: wrap;
    > div {
      width: 33%;
      min-width: 33%;
      box-sizing: border-box;
      padding: 3px 10px;
    }
    .gh_image {
      width: 100%;
      .image_wrapper {
        background-size: cover;
        background-position: center;
        background-image: url("../images/no-image.png");
      }
    }
    select, input {
      width: 100%;
    }
  }
}

/**/
.wp-color-picker {
  width: 100% !important;
}

.post-type-spin_game_gh .wp-picker-container {
  position: relative;
  .wp-color-result {
    width: 100%;
    text-align: left;
    height: 30px;
    overflow: hidden;
    margin: 0;
    border: 1px solid #607d8b;
    padding-left: 0;
    padding-right: 40px;
    .wp-color-result-text {
      background: #fff;
      height: 29px;
      padding: 4px 0 0 5px;
      box-sizing: border-box;
      border-radius: 0;
      font-size: 14px;
      text-align: left;
    }

  }

  &.wp-picker-active .wp-picker-input-wrap {
    position: absolute;
    left: 0;
    z-index: 999;
    display: flex;
    width: 257px;
    top: 0;
    background: #fff;
    label {
      flex-grow: 1;
    }
  }
  .wp-picker-clear {
    width: 50px !important;
    height: 30px;
    margin: 0;
  }
  .wp-picker-holder {
    position: absolute;
    left: 0;
    z-index: 999;
    top: 0;
    transform: translate(0, -100%);
  }
}

#spin_items_wrapper {
  .select2-selection, select {
    border-radius: 3px;
    border: 1px solid #607d8b !important;
    height: 30px;
  }
}

.buttons button, #spin_items_wrapper input, #gh-image-edit-popup button {
  border-radius: 3px;
  border: 1px solid #607d8b !important;
  height: 30px;
  box-sizing: border-box;
}

.option_wrapper {
  display: flex;
  flex-direction: column;
  label {
    display: flex;
    flex-direction: column;
    input {
      width: 100%;
    }
  }

  select, button {
    border-radius: 3px;
    border: 1px solid #607d8b !important;
    height: 30px;
  }

}

.gh_posts_list {
  width: 100%;
}

.select2-search__field {
  border: none !important;
}

.postbox, #spin_global_gh {
  input:not([type="checkbox"]), textarea, select,
  .wp-picker-container .wp-color-result.button {
    border-radius: 3px;
    border: 1px solid #607d8b;
    height: 30px;
    margin-bottom: 0;
  }
  .select2-selection {
    border: 1px solid #607d8b;
  }
  .select2-search .select2-search__field {
    height: unset;
  }
  table {
    th {
      background-color: #E0E0E0;
    }
  }
}

#spin_global_gh {
  input[type="text"], select {
    width: 320px;
  }
  .select2-container .selection {
    height: 30px;
  }
}

.gh_image {
  position: relative;
  .buttons {
    position: absolute;
    left: 15px;
    top: 25px;
  }
  .image_wrapper {
    height: 100px;
    width: 150px;
    border: 1px solid #607d8b;
    border-radius: 3px;
    overflow: hidden;
    img {
      object-fit: cover;
      height: 100px;
      width: 150px;
    }
  }
}

.gh_spinner .image img {
  cursor: pointer;
  &:active {
    cursor: move;
  }
}

#spin_items_wrapper .tab_mode {
  display: inline-flex;
  align-items: center;
  span {
    margin: 0;
    font-weight: bold;
    font-size: 14px;
  }
  input {
    height: 16px;
    margin: 5px;
  }
}

#spin_messages_wrapper {
  display: flex;
  flex-wrap: wrap;
  > div {
    margin: 10px;
    width: 46%;
    flex-grow: 1;
    min-width: 300px;
  }
  label {
    font-size: 17px;
    margin-bottom: 5px;
    display: inline-block;
  }
  textarea {
    resize: vertical;
    width: 100%;
    height: 130px;
    min-height: 100px;
  }
}

#spin_items_wrapper .select2-container {
  width: 100% !important;
}

#gh-image-edit-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 555;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  .body {
    width: 50%;
    min-height: 500px;
    min-width: 500px;
    max-width: 700px;
    margin: auto;
    background: #fff;
    position: relative;
    .gh_warning {
      font-weight: bold;
      text-align: center;
      color: #F44336;
      margin: 15px;

    }
  }
}

#image-cropper-gh {
  margin: auto;
  table {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -o-user-select: none;
  }
}

#image-crop-gh-wrapper {
  border-radius: 0 100% 0 0;

}

#image-crop-gh-temp, #image-crop-gh-wrapper {
  width: 400px;
  height: 400px;
  overflow: hidden;
  position: relative;
}

#image-crop-gh-temp div, #image-crop-gh-wrapper div {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
}

#image-crop-gh .img {
  content: "";
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: 100%;
  width: 100%;
  height: 100%;
  cursor: nwse-resize;
}

#image-crop-gh-temp .crop, #image-crop-gh-wrapper .crop {
  content: "";
  width: 565.6px;
  height: 565.6px;
  background-color: white;
  top: 29.3%;
  left: 29.3%;
  transform: rotate(45deg);
  z-index: 999;
}

#image-crop-gh-wrapper .crop {
  background-color: #E91E63;
}

#image-cropper-gh {
  .sw-range-wrapper {
    width: 400px;
    display: block;
    .board {
      display: flex;
      justify-content: space-between;
    }
    input {
      width: 100%;
      padding: 0;
      margin: 0;
    }
  }
  .sw-rotate-wrapper {
    transform: rotate(-90deg);
    height: 45px;
    transform-origin: 115px 110px;
  }
  td {
    position: relative;
  }
  td:first-child {
    width: 45px;
    max-width: 45px;
    z-index: 1001;
  }
  .spin-button-emiter {
    background: white;
    position: absolute;
    width: 155px;
    height: 78px;
    border-radius: 300px 300px 0 0;
    bottom: 0;
    z-index: 1000;
    left: -78px;
  }

}

#gh-image-edit-popup {
  .header {
    display: flex;
    justify-content: flex-end;
  }
  button {
    line-height: 1;
    min-width: 25px;
    height: 25px;
    margin: 2.5px;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    color: #fff;
    .dashicons {
      font-size: 15px;
      line-height: 1.2;
      &.dashicons-image-rotate {
        font-size: 13px;
        line-height: 1.5;
      }
    }
  }
  .ok-image {
    position: absolute;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

    img {
      width: 150px;
      animation-name: ok-rotate;
      animation-duration: 0.8s;
      @keyframes ok-rotate {
        from {
          transform: rotate(0);
        }
        to {
          transform: rotate(360deg);
        }
      }
    }
  }
}

button {
  .dashicons-image-rotate {
    font-size: 16px;
    line-height: 1.3;
  }
}

.sw-generate .dashicons.animate:before {
  animation-name: dashicon-animate;
  animation-duration: 0.8s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  transform-origin: center;
  display: inline-block;
}

@keyframes dashicon-animate {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

#spin_game_result .wp-editor-wrap,
#gh_email_section .wp-editor-wrap,
#gh_welcome_section .wp-editor-wrap {
  margin-top: -25px;
}

.flexBox {
  display: flex;
  justify-content: space-between;
  width: 100% !important;
  margin: 0 !important;
}

#spin_messages_wrapper > div >,
#gh_welcome_section > div > {
  .item {
    /*min-width: 250px;*/
    margin: 15px;
    flex-grow: 1;
  }
  .item-full {
    width: 100%;
  }
  .item-x2 {
    flex-grow: 2;
  }
}

#spin_game_ui_opt h2 {
  font-size: 15px;
  font-weight: bold;
  padding-bottom: 0;
}

#result_bg_image,
#form_bg_image {
  position: relative;

  input {
    width: calc(100% - 74px);
    margin: 0;
    margin-right: 74px;
  }
  .buttons {
    position: absolute;
    right: 0;
    bottom: 0;
  }
}

.spin_image_move_gh {
  position: absolute;
  z-index: 99999;
  cursor: pointer;
  animation-name: move-gh;
  animation-duration: .8s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

@keyframes move-gh {
  from {
    transform: translate(0);
  }

  to {
    transform: translate(-25%, 25%);
  }
}

.bulk_action {
  h3 {
    font-size: 15px;
    margin: 0;
  }
  select {
    width: 100%;
  }
}

#spin_history_form {
  #id, #claimed {
    width: 55px;
  }
  #spin_count {
    width: 110px;
  }
  #spin_id {
    width: 100px;
  }
  .green {
    color: #4CAF50;
  }
  .red {
    color: #F44336;
  }
  .yes {
    color: #4CAF50;
    font-size: 16px;
  }
  .no {
    color: #F44336;
    font-size: 16px;
  }
}

.wp-picker-container {
  position: relative;
  &.readonly:after {
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(238, 238, 239, 0.5);
    display: inline-block;
    position: absolute;
  }
}

#gh_audio_section {
  display: flex;
  flex-wrap: wrap;
  > label {
    width: 100%;
    padding: 10px 5px;
  }
  .item {
    box-sizing: border-box;
    width: 50%;
    min-width: 377px;
    padding: 5px;

    .wp-audio-shortcode {
      width: 334px !important;
      &:focus {
        box-shadow: none;
        outline: none;
      }
    }

    .audio_wrapper {
      display: inline-flex;
      align-items: center;
      background-color: #222;
    }
    .buttons {
      min-width: max-content;
      margin: 0 5px;
    }
  }
}


.postbox .hndle{
  cursor: pointer !important;
}
