/* Import Fonts */
@import url("https://fonts.googleapis.com/css?family=Roboto:400,700|Inconsolata|Monda|Raleway");

/* Global Reset */
*, *:after, *:before {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Typography */
h1, h2 {
  font-family: "Roboto", sans-serif;
  text-align: center;
  margin: 35px auto;
}

h2 {
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 2.5rem;
  color: #2ecc71;
}

p {
  line-height: 1.6;
  margin: 15px auto;
  max-width: 800px;
  width: 100%;
  color: #ccc;
}

/* Body Styling */
body {
  color: #ddd;
  font-family: "Inconsolata", monospace;
  overflow-x: hidden;
  background-color: #333;
}

/* Page Wrapper */
.wrap {
  max-width: 1000px;
  width: 100%;
  padding: 30px;
  margin: 0 auto;
  background-color: #444;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

/* Centered Text in Wrap */
.wrap p {
  margin: 0 auto;
  text-align: center;
}

/* Image Styling */
.wrap img {
  margin: 20px auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100%;
  border: solid 5px #2ecc71;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

/* Maximum Width Container */
.maxwidth {
  max-width: 1000px;
  margin: 0 auto;
}

/* Header Styling */
header {
  background-color: #333;
  padding: 60px 30px;
  color: #fff;
}

header h1 {
  font-size: 7rem;
  margin-top: 0;
}

header h1 span {
  color: #3498db;
}

header p {
  max-width: 600px;
  line-height: 1.6;
  margin: 35px auto;
  text-align: center;
}

/* Action Buttons */
header .actions {
  margin: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.inputbtn {
  background-color: #e74c3c;
  color: #fff;
  font-size: 1.2rem;
  padding: 12px 15px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.btn {
  margin: 20px;
  display: inline-block;
  padding: 15px 30px;
  color: #fff;
  font-size: 2rem;
  text-decoration: none;
  background-color: #9b59b6;
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  position: relative;
  z-index: 10;
  border: 0;
  cursor: pointer;
  border-radius: 25px;
}

.btn.small {
  margin: 10px 0;
  font-size: 1rem;
  font-family: "Raleway", sans-serif;
}

.btn:after,
.btn:before {
  position: absolute;
  top: -8px;
  left: 8px;
  background-color: #9b59b6;
  width: calc(100% - 16px);
  height: 100%;
  content: "";
  z-index: -1;
}

.btn:before {
  position: absolute;
  bottom: -8px;
  right: 8px;
  background-color: #9b59b6;
  width: calc(100% - 16px);
  height: 100%;
  content: "";
  z-index: -1;
}

.btn.call {
  background-color: #e74c3c;
}

.btn.call:after,
.btn.call:before {
  background-color: #e74c3c;
}

/* Example and Docs Sections */
.example,
.docs {
  background-color: rgba(231, 76, 60, 0.6);
  color: #333;
}

/* Working and Links Sections */
.working,
.links {
  background-color: #2c3e50;
  color: #fff;
}

/* Links Wrap Styling */
.links .wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Info Selects Styling */
.infoselects {
  width: 100%;
}

.infoselects p {
  text-align: left;
  margin-left: 0;
}

.infoselects button.btn {
  cursor: pointer;
}

/* Color Palette Styling */
.colorpalette {
  margin-top: 25px;
  margin-bottom: 25px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Color Palette Text */
.colorpalette .text {
  margin-right: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.colorpalette .text button {
  margin-right: 20px;
  margin-bottom: 0px;
}

/* Color Palette Icons */
.colorpalette .icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Color Block Styling */
.colorpalette .colorblock {
  margin-right: 4px;
  margin-bottom: 0px;
  margin-top: 8px;
  height: 30px;
  width: 30px !important;
  border: solid 0px white;
}

/* Spectrum Color Picker Styling */
.colorpalette .ss-main {
  width: calc(100%);
  margin-top: 15px;
  max-width: 600px;
}

.colorpalette .ss-main .ss-single-selected {
  display: flex;
  width: calc(100%);
  background-color: #ddd;
}

.colorpalette .ss-main .ss-option {
  margin-bottom: 10px;
}

.colorpalette .ss-main .ss-option:hover {
  background-color: rgba(0, 0, 0, 0.2) !important;
}

.colorpalette .ss-content {
  width: 100%;
}

.colorpalette .ss-content .ss-list .ss-option {
  padding: 0px 12px;
}

/* Custom Palette Section */
#custompalette {
  margin: 20px 0;
  display: flex;
  align-items: center;
}

#custompalette input {
  margin-right: 20px;
}

/* Current Palette Styling */
#currentpallete {
  display: flex;
  align-items: center;
}

/* Canvas Styling */
.container canvas {
  margin: 15px auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100%;
  border: solid 5px #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Selectors Section Styling */
.selectors {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Selector Label Styling */
.selectors label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 15px 0;
  margin-right: 20px;
  text-transform: uppercase;
}

/* Upload Image Label Styling */
.selectors label#uploadimage {
  flex-grow: 1;
  margin-right: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.selectors label#uploadimage input {
  margin: 10px 0;
  padding: 8px;
}

/* Range Input Styling */
.selectors label input[type="range"] {
  width: 120px;
  appearance: none;
  height: 12px;
  background: #3498db;
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  border-radius: 10px;
}

.selectors label input[type="range"]:hover {
  opacity: 1;
}

.selectors label input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: #27ae60;
  border-radius: 50%;
  cursor: pointer;
}

.selectors label input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #27ae60;
  border-radius: 50%;
  cursor: pointer;
}

/* Input Text Styling */
.selectors label input[type="input"] {
  width: 80px;
  padding: 8px;
}

/* Do Things Section Styling */
.dothings {
  margin-top: 25px;
}

.dothings button {
  border: 0;
  margin-top: 15px;
  padding: 10px 15px;
  text-transform: uppercase;
  background-color: #e74c3c;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 8px;
}

/* Docs Section Styling */
.docs .wrap p {
  text-align: left;
  margin-left: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ddd;
}

.docs .wrap p.api {
  font-style: italic;
  padding-left: 15px;
  margin-top: 20px;
  font-weight: 700;
}

.docs .wrap pre {
  padding: 15px;
  margin: 20px 0;
  background-color: #222;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #ddd;
  font-size: 1rem;
}

.docs .wrap h3 {
  font-size: 2.2rem;
  margin-top: 60px;
  font-family: "Roboto", sans-serif;
  color: #2ecc71;
}

/* Loader Styling */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  width: 100vw;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
}

.loader.active {
  display: flex;
}

/* Loader Spinner Styling */
.lds-spinner {
  color: #3498db;
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}

.lds-spinner div {
  transform-origin: 32px 32px;
  animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 29px;
  width: 5px;
  height: 14px;
  border-radius: 20%;
  background: #3498db;
}

.lds-spinner div:nth-child(1) { transform: rotate(0deg); animation-delay: -1.1s; }
.lds-spinner div:nth-child(2) { transform: rotate(30deg); animation-delay: -1s; }
.lds-spinner div:nth-child(3) { transform: rotate(60deg); animation-delay: -0.9s; }
.lds-spinner div:nth-child(4) { transform: rotate(90deg); animation-delay: -0.8s; }
.lds-spinner div:nth-child(5) { transform: rotate(120deg); animation-delay: -0.7s; }
.lds-spinner div:nth-child(6) { transform: rotate(150deg); animation-delay: -0.6s; }
.lds-spinner div:nth-child(7) { transform: rotate(180deg); animation-delay: -0.5s; }
.lds-spinner div:nth-child(8) { transform: rotate(210deg); animation-delay: -0.4s; }
.lds-spinner div:nth-child(9) { transform: rotate(240deg); animation-delay: -0.3s; }
.lds-spinner div:nth-child(10) { transform: rotate(270deg); animation-delay: -0.2s; }
.lds-spinner div:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1s; }
.lds-spinner div:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

@keyframes lds-spinner { 0% { opacity: 1; } 100% { opacity: 0; } }

/* Tip Section Styling */
.tip {
  margin-top: 25px;
}

.tip p {
  text-align: left;
  justify-content: flex-start;
  max-width: unset;
  margin-left: 0;
  font-size: 1.2rem;
  line-height: 2;
  color: #ccc;
}

.tip a {
  display: flex;
  margin-left: 10px;
  margin-right: 10px;
}

.tip a img {
  border: 0;
  max-width: unset;
  top: 50%;
  transform: translateY(0.5rem);
  left: unset;
  margin: 0;
  height: 2.5rem;
  object-fit: contain;
}
