* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", "HelveticaNeue", "Helvetica", "Arial", sans-serif;
  font-size: 16px;
  color: #333;
  background: #f2f2f2;
}

p {
  margin: 0 0 1rem 0;
}

label {
  cursor: pointer;
}

#wrapper {
  background: #f2f2f2;
}

#drop-area {
  position: relative;
  padding: 3rem;
  text-align: center;
  background: #dadee4;
  /* border: 4px solid #fff; */
}
#drop-area.highlight {
  background-color: #6f42c1;
}
/* #drop-area.active {
  background: #eee;
} */

.alert {
  margin: 0 0 1.5rem 0;
  /* padding: 1rem; */
  font-size: 2rem;
  font-weight: 300;
}
.alert.active-visible {
  font-size: 1.25rem;
  font-weight: 300;
}
.highlight .alert {
  color: #fff;
}

#placeholder {
  margin: 2rem;
  height: 120px;
  /* background: url("/images/upload4.svg") center center no-repeat; */
  background-size: 120px;
  background-color: #333;
  -webkit-mask: url(/images/upload4.svg) no-repeat center;
  mask: url(/images/upload4.svg) no-repeat center;
}
.highlight #placeholder {
  background-color: #fff;
}

#img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  width: 720px;
  height: auto;
}

#img-wrap > img {
  display: block;
  max-width: 100%;
  max-height: 480px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

#dot {
  display: none;
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.75);
  transform: translateX(-50%) translateY(-50%);
  cursor: move;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

#file-elem {
  display: none;
}
.active #file-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: -1rem;
}

#submit,
.active-visible,
.active .active-hidden {
  display: none !important;
}
.active .active-visible,
.active #dot {
  display: inline-block !important;
}
.active #submit {
  display: flex !important;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 16px;
  /* font-weight: 300; */
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #333;
  border-radius: 5px;
  cursor: pointer;
}
.button:hover {
  background: #28a745;
}

.button.active-hidden::before,
.button.active-visible::before,
#submit::before {
  content: "";
  display: block;
  margin-right: 1rem;
  width: 32px;
  height: 32px;
  background-size: 32px;
  background-color: #333;
}
.button.active-hidden::before {
  background-color: #ddd;
  -webkit-mask: url(/images/asset.svg) no-repeat center;
  mask: url(/images/asset.svg) no-repeat center;
}
.button.active-hidden:hover::before {
  background-color: #fff;
}

.button.active-visible,
#submit {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.button.active-visible {
  color: #333;
  background: #949799;
}
.button.active-visible:hover::before {
  background-color: #fff;
}

.button.active-visible::before {
  background-color: #333;
  -webkit-mask: url(/images/refresh.svg) no-repeat center;
  mask: url(/images/refresh.svg) no-repeat center;
}
.button.active-visible:hover {
  color: #fff;
  background: #333;
}

.active .button.active-visible {
  display: flex !important;
  align-items: center;
}

#submit {
  justify-content: center;
  align-items: center;
  margin-left: 1rem;
  padding-left: 5rem;
  padding-right: 5rem;
  color: #f2f2f2;
  background: #28a745;
}
#submit::before {
  background-color: #fff;
  -webkit-mask: url(/images/submit.svg) no-repeat center;
  mask: url(/images/submit.svg) no-repeat center;
}
#submit:hover {
  background: #004792;
}
#submit img {
  display: block;
  margin: 0 auto;
}
#submit .loading-visible {
  display: none;
}
#submit.loading {
  min-width: 355px;
  cursor: not-allowed;
  background: rgb(138, 44, 44);
}
#submit.loading::before {
  display: none;
}
#submit.loading .loading-visible {
  display: block;
}
#submit.loading .loading-hidden {
  display: none;
}

#preview-img,
#preview-position {
  background: #fff;
}
/* #preview-info {
  background: #dadee4;
} */

.container {
  padding: 2rem 4rem;
  text-align: center;
}
.container h1 small,
.container h2 small {
  display: block;
  color: #666;
}
.container h2 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  color: #004792;
}

.grid {
  display: flex;
  margin: 0 -0.75rem;
}
.grid .col {
  flex: 0 0 16.667%;
  padding: 0 0.75rem;
}
.grid .col > img {
  max-width: 100%;
}
#preview-img {
  padding: 0;
}

.preview {
  margin: 0 auto;
  height: 0;
  background: url("/images/preview.jpg") no-repeat center center;
  background-size: cover;
}

#hero .preview {
  width: 100%;
  padding-top: calc(1140 / 1920 * 100%);
  /* padding-top: 59.375%; */
}
#front .preview {
  /* enlarge 2x */
  width: calc(360 / 1920 * 100% * 2);
  padding-top: calc((240 / 360 * 100% * 2) * 360 / 1920);
  /* padding-top: 66.667%; */
}
#wide .preview {
  width: calc(1280 / 1920 * 100%);
  padding-top: calc((765 / 1280 * 100%) * 1280 / 1920);
  /* padding-top: 59.766%; */
}
#box .preview {
  width: calc(920 / 1920 * 100%);
  padding-top: calc((980 / 920 * 100%) * 920 / 1920);
  /* padding-top: 106.522%; */
}
#carousel .preview {
  width: calc(1180 / 1920 * 100%);
  padding-top: calc((720 / 1180 * 100%) * 1180 / 1920);
  /* padding-top: 61.017%; */
}
#people .preview {
  /* enlarge 2x */
  width: calc(360 / 1920 * 100% * 2);
  padding-top: calc((360 / 360 * 100% * 2) * 360 / 1920);
}

.info {
  margin: 1rem 0;
}
.info p {
  color: #666;
  text-transform: uppercase;
}
.info ul {
  padding-left: 0;
  list-style: none;
}
.info li {
  margin-top: 0.5rem;
}

#footer {
  margin: 4rem 0;
  text-align: center;
}
#footer > img {
  height: 1.5rem;
}
