/*================================TYPOGRAPHY
*/

* {
  font-family: "open-sans", Arial, sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

p, .p {
  font-size: 14px;
  line-height: 16px;
  margin-bottom: 10px;
  margin-top: 0;
}

a {
  color: rgb(51, 51, 51);
}

a:hover, a:focus, a:active {
  text-decoration: none;
  color: rgb(51, 51, 51);
}

/*================================PARTS
*/

body {
  background: #323232;
  margin: 0;
}

.text-align-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.box {
  border-radius: 7px;
  padding: 15px;
  background: #fff;
  position: relative;
  overflow: hidden;
  display: block;
}

.button {
  padding: 6px 10px 6px;
  border-radius: 7px;
  margin: 0 3px;
  display: inline-block;
  text-decoration: none !important;
  transition: 0.2s;
  position: relative;
  line-height: 23px;
}

.button.white {
  color: #323232;
  border: 1px #fff solid;
  background: #fff;
}

.button.white:hover {
  color: #fff;
  background: #323232;
}

.button.white.outline {
  color: #fff;
  border: 1px #fff solid;
  background: #323232;
}

.button.white.outline:hover {
  color: #323232;
  background: #fff;
}

.button.faded {
  opacity: 0.25;
}

.button.faded.white:hover {
  opacity: 1;
  color: #fff;
  background: #323232;
}

.tabs {
  float: left;
  width: 100%;
}

.tabs .tab {
  width: 50%;
  float: left;
  text-align: center;
  background: #d8d8d8;
  padding: 7px 5px;
  color: #323232;
  font-size: 13px;
  text-decoration: none !important;
  transition: 0.2s;
  z-index: 0;
  position: relative;
}

.tabs .tab.active {
  background: #ffffff !important;
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.tabs .tab:hover {
  background: #e8e8e8;
}

.tab-target {
  display: none !important;
}

.tab-target.active {
  display: block !important;
}

/*================================ARTWORK
*/

#artwork-container {
  padding: 20px 20px;
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
}

#artwork-container.loading-canvas #artwork {
  display: none;
}

#artwork-container.loading-canvas .loading {
  display: block;
}

#artwork-container .loading {
  display: none;
  color: #727272 !important;
  text-align: center;
  max-width: 240px;
  margin: 0 auto;
  font-size: 9px;
}

#artwork-container .loading a {
  font-size: 9px;
  color: #9b9b9b;
}

#artwork-container #artwork {
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0px 2px 8px 3px rgba(0, 0, 0, 0.25);
}

#artwork-container .loading:after {
  width: 25px;
  height: 25px;
  margin: -80px auto 4px;
}

.artwork-controls-container {
  position: fixed;
  width: 100%;
  bottom: 0;
  padding: 20px 0;
  z-index: 100;
}

.artwork-controls {
  display: inline-block;
  margin: 0 auto;
}

.artwork-controls > div, .artwork-controls > a {
  float: left;
  height: 37px;
}

.artwork-controls .square {
  width: 37px;
}

/*================================ARTWORK SETTINGS
*/

.artwork-settings {
  border-radius: 7px;
  background: #fff;
  width: 200px;
  text-align: left;
  overflow: hidden;
}


.artwork-settings .artwork-settings-body {
  overflow: scroll;
  height: 210px;
  float: left;
  width: 100%;
  z-index: 2;
  position: relative;
  background: #fff;
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container {
  display: inline-block;
  width: 100%;
  padding: 5px;
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container .template {
  width: 50%;
  position: relative;
  transition: 0.2s;
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container .template-preview-container {
  padding: 5px;
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container .template .delete-template {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 15px;
  height: 15px;
  background: #d43a3a;
  border-radius: 100%;
  opacity: 0;
  color: #fff;
  font-size: 10px;
  line-height: 14.5px;
  text-align: center;
  transition: 0.2s;
  z-index: 1;
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container .template .template-preview-content {
  position: relative;
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container .template .template-preview {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.25);
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container .template .template-preview-text {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 0;
  transform: translate(0, 100%);
  -webkit-transform: translate(0, 100%);
  background: #fff;
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  padding: 5px;
  display: none;
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container .template .template-preview-text:after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translate(-50%, -100%);
  border-bottom: #fff solid 7px;
  border-left: transparent solid 7px;
  border-right: transparent solid 7px;
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container .template .template-preview-text p {
  text-align: center;
  font-size: 11px;
  line-height: 1.1;
  font-weight: bold;
  margin: 0;
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container .template .template-preview.faded {
  opacity: 0.5;
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container .template:hover {
  transform: scale(1.025);
  -webkit-transform: scale(1.025);
  z-index: 1;
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container .template:hover .template-preview {
  box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container .template:hover .template-preview-text {
  display: block;
}

.artwork-settings .artwork-settings-body #artwork-templates .templates-container .template:hover .delete-template {
  opacity: 1;
}

.artwork-settings .artwork-settings-body #artwork-content {
  padding: 10px;
}

/*================================DESCRIPTORS
*/

.descriptor-container {
  position: relative;
  display: inline-block;
}

.descriptor-container .descriptor {
  position: absolute;
  display: none;
  z-index: 10;
  top: -6px;
  left: 50%;
  transform: translate(-50%, -100%);
  -webkit-transform: translate(-50%, -100%);
  box-shadow: 0px 4px 17px 0px rgba(0, 0, 0, 0.5);
  border-radius: 7px;
}

.descriptor-container .descriptor:after {
  content: "";
  display: inline-block;
  left: 50%;
  transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
  position: absolute;
  bottom: -10px;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 10px solid #fff;
  z-index: 9;
}

.descriptor-container.open .descriptor {
  display: block;
}

/*================================INPUTS
*/

input.ghost-input {
  border: none;
}

input, .input {
  background: #ffffff;
  color: rgb(51, 51, 51);
  border: 1px #afafaf solid;
  padding: 8px 9px;
  display: block;
  width: 100%;
  position: relative;
  border-radius: 4px;
  line-height: 17px;
  margin-bottom: 10px;
}

label {
  font-size: 10px;
  letter-spacing: 0.5px;
  display: block;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 5px;
}

.input-with-kind {
  display: table;
}

.input-with-kind .input {
  border-right: 0px;
  border-radius: 4px 0px 0px 4px;
  margin-bottom: 0;
}

.input-with-kind .input-kind {
  padding: 7px 6px 9px;
  z-index: 1;
  background: #fff;
  border: 1px #afafaf solid;
  border-radius: 0px 4px 4px 0px;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  display: table-cell;
}

.input-with-kind.left .input {
  border-right: 1px #afafaf solid;
  border-left: 0px;
  border-radius: 0px 4px 4px 0px;
}

.input-with-kind.left .input-kind {
  border-radius: 4px 0px 0px 4px;
}

.artwork-size-container {
  margin-bottom: 10px;
}

.artwork-size-container span {
  display: inline-block;
  vertical-align: middle;
  width: 43%
}

.artwork-size-container span:nth-child(2) {
  width: 8%;
  text-align: center;
}

.artwork-size-container .p {
  margin-bottom: 0;
}

#file-trigger {
  overflow: hidden;
}

#file-trigger span {
  white-space: nowrap;
}

/*================================ADMIN SHOW
*/

.admin-view-show {
  display: none;
}

.admin-view .admin-view-show {
  display: initial;
}

.admin-view .admin-view-hide {
  display: none;
}

/*================================ANIMATIONS
*/

.loading, .loading:hover {
  color: transparent !important;
  opacity: 1 !important;
  position: relative;
}

.positive.outline {
  position: relative;
  color: transparent !important;
  opacity: 1 !important;
  border: 1px solid #40a226 !important;
}

.positive.outline:after {
  content: 'Success';
  color: #40a226;
  display: inline-block;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
}

.negative.outline {
  position: relative;
  color: transparent !important;
  opacity: 1 !important;
  border: 1px solid #d43a3a !important;
}

.negative.outline:before {
  content: 'Error';
  color: #d43a3a;
  display: inline-block;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
}

.loading:after {
  content: "";
  display: block;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  border-top: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 1px solid #fff;
  border-left: 1px solid #fff;
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
  margin: -19px auto 4px;
}

@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
