@font-face {
  font-family: 'Montserrat', serif;
  src: url(Montserrat-Medium.ttf);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 1920px;
  margin: 0;
  padding: 0;
  font-family: 'Space Grotesk', serif;
  font-size: 14px;
  font-weight: 500;
  text-rendering: optimizeLegibility;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

*::selection {
  background-color: rgb(132, 159, 171);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgb(210, 192, 152);
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(193, 162, 89);
  cursor: pointer;
}

/* Main */
.main {
  display: flex;
  flex-direction: column;
  padding: 40px;
  user-select: text;
  font-size: 0px;
  width: 100%;
  align-items: center;
}

.main *::selection {
  background-color: rgb(132, 159, 171);
  color: #DFDDC6;
}

img {
  user-select: none;
}

.main h1 {
  display: block;
  text-decoration: none;
  padding: 0;
  margin: 0 0 15px 0;
  color: rgb(41, 124, 52);
  font-size: 32px;
}

.main ul {
  list-style: none;
  padding: 0 0 15px 0;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.main li {
  display: flex;
}

.main a,
.main p {
  display: block;
  text-decoration: none;
  padding: 0;
  margin: 0;
}

.main p,
.main ul {
  color: rgb(130, 130, 130);
}

.main a,
.template-bold {
  color: rgb(56, 50, 44);
}

.main a:hover {
  color: rgb(164, 50, 44);
}

.main a:hover>img {
  filter: invert(28%) sepia(8%) saturate(2500%) hue-rotate(322deg) brightness(100%) contrast(102%);
}

.templates-half {
  width: 100%;
  min-width: 240px;
  max-width: 480px;
  display: inline-block;
  padding-bottom: 40px;
  vertical-align: top;
}

.list--space {
  padding-bottom: 5px;
}

.templates-text p {
  padding-bottom: 8px;
  font-size: 15px;
}

.arrow-link {
  width: 12px;
  font-size: 0;
}

.arrow-return {
  width: 12px;
  font-size: 0;
  transform: translateY(2px);
}

.arrow-return:hover,
nav a:hover>img {
  filter: invert(20%) sepia(66%) saturate(1851%) hue-rotate(338deg) brightness(102%) contrast(90);
}

.inline-link {
  display: inline-block;
}

/* User Interface */

.content-container {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  z-index: 1;
  width: 100%;
  margin: auto;
}

.ui-container {
  display: inline-block;
  width: 300px;
  min-width: 300px;
  padding: 10px 10px 0 10px;
  background-color: #DFDDC6;
  vertical-align: top;
}

.ui-item {
  display: block;
  padding-bottom: 5px;
}

.logo {
  margin-bottom: 8px;
}

.ui-container p {
  padding: 0;
  margin: 0;
}

.ui-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 25px;
  margin: 2px 0 2px 0;
  color: #DFDDC6;
}

.ui-header-full {
  display: inline-block;
  justify-content: center;
  align-items: center;
  height: 28px;
  width: 100%;
}

.ui-header-half {
  display: inline-block;
  justify-content: center;
  align-items: center;
  height: 28px;
  width: calc(50% - 2px);
}

.ui-header-third {
  display: inline-block;
  justify-content: center;
  align-items: center;
  height: 28px;
  width: calc(33% - 1.5px);
}

.ui-section {
  background-color: #2B2C2C;
}

.ui-section-color {
  height: 20px;
}

.ui-color {
  width: 100%;
  height: calc(100% - 2px);
  border: 1px solid;
  border-color: rgba(43, 44, 44, 0.2);
}

.ui-color:hover {
  cursor: pointer;
}

.ui-button {
  background-color: #ffffff;
  color: #2B2C2C;
  cursor: pointer;
  border-radius: 4px;
}

.ui-button:hover {
  background-color: #edeade;
}

.ui-button:active {
  background-color: #edeade;
}

.ui-slider-container {
  padding-bottom: 10px;
}

.ui-slider {
  appearance: none;
  width: 100%;
  height: 4px;
  margin: 0;
  padding: 0;
  outline: none;
  border-radius: 0;
  background-color: #2B2C2C;
  cursor: pointer;
}

.ui-slider::-webkit-slider-thumb {
  width: 7px;
  height: 20px;
  background: #A4322C;
  cursor: pointer;
  -webkit-appearance: none;
}

/* TEXTO */

.ui-section-text {
  width: 100%;
  margin-bottom: 4px;
}

.ui-input {
  display: flex;
  font-family: 'Space Grotesk', serif;
  font-size: 12px;
  width: 100%;
  margin: 0;
  padding-left: 5px;
  border-radius: 4px;
  border-width: 1px;
  border-color: rgba(70, 65, 60, 0.35);
  resize: none;
}

input,
textarea {
  -webkit-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

textarea:focus,
input:focus {
  outline: none;
}

.ui-input-short {
  height: 24px;
}

.ui-input-medium {
  display: flex;
  flex-grow: 1;
  height: calc(20vh - 72px);
}

.ui-input-long {
  display: flex;
  flex-grow: 1;
  height: calc(40vh - 72px);
}

.ui-input-image {
  font-family: 'Space Grotesk', serif;
  width: 100%;
}

input[type="file"] {
  display: none;
}

.ui-hide {
  opacity: 0.35;
}

/* Canvas */

.script-container {
  display: inline-block;
  justify-content: space-between;
  top: 0;
  margin: 0px 5px 0 5px;
  padding: 0;
  text-align: center;
  align-items: center;
  font-size: 0;
}

.canvas-container {
  display: flex;
  justify-content: center;
}

.canvas {
  display: block;
  padding: 0;
}

/* Media */
@media (max-width: 600px) {

  /* User Interface */
  .ui-container {
    display: block;
    width: calc(100% - 20px);
    margin: 10px;
    padding: 8px 5px 5px 5px;
  }

  .logo {
    display: none;
  }

  .ui-section-color {
    height: 24px;
  }

  .ui-color {
    width: 100%;
    height: calc(100% - 2px);
    border: 1px solid;
    border-color: rgba(43, 44, 44, 0.2);
  }

  .ui-color:hover {
    cursor: pointer;
  }

  .ui-button {
    background-color: #ffffff;
    color: #2B2C2C;
    cursor: pointer;
    border-radius: 4px;
  }

  .ui-button:hover {
    background-color: #edeade;
  }

  .ui-button:active {
    background-color: #edeade;
  }

  .ui-slider-container {
    padding-bottom: 10px;
  }

  .ui-slider {
    appearance: none;
    width: 100%;
    height: 4px;
    margin: 0;
    padding: 0;
    outline: none;
    border-radius: 0;
    background-color: #2B2C2C;
    cursor: pointer;
  }

  .ui-slider::-webkit-slider-thumb {
    width: 7px;
    height: 20px;
    background: #A4322C;
    cursor: pointer;
    -webkit-appearance: none;
  }

  .ui-section-text {
    width: 100%;
    margin-bottom: 5px;
  }

  .ui-input {
    font-size: 14px;
    width: 100%;
  }

  .ui-input-short {
    height: 25px;
  }

  .ui-input-medium {
    height: 50px;
  }

  .ui-input-long {
    height: 75px;
  }

  /* Canvas */
  .script-container {
    display: block;
    margin: 10px 10px 0 10px;
    width: calc(100% - 20px);
  }

  .canvas-container {
    display: block;
  }

  .canvas {
    display: block;
    padding: 0;
  }
}

/* Hover Text */
.hover-text {
  font-size: 16px;
  background-color: #FFFFFF;
  color: #505050;
  position: absolute;
  padding: 0px 5px 0px 5px;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
  z-index: 100;
}