* {
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body.snippet {
  height: 100%;
  background-image: linear-gradient(110deg, #b8b5f3 10%, #c9b5f3 90%);
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

body.snippet[data-color="erudite"] {
  background-image: linear-gradient(110deg, #205a73 10%, #4f89a3 90%);
}

body.snippet[data-color="dawn"] {
  background-image: linear-gradient(110deg, #83d9c6 10%, #f2955b 90%);
}

body.snippet[data-color="sky"] {
  background-image: linear-gradient(110deg, #6190e8 10%, #a7bfe8 90%);
}

body.snippet .logomark-flat {
  background-image: url("/images/logomark-flat.svg");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #212c65;
  border-radius: 3px;
  width: 19px;
  height: 19px;
  margin: 0 5px;
  margin-top: -3px;
  display: inline-block;
  vertical-align: middle;
}

.snippet__signature {
  position: fixed;
  right: 24px;
  bottom: 20px;
  font-size: 14px;
  color: rgba(46, 44, 52, 0.696437);
  text-align: center;
  background: #ffffff;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.121461),
    0px 1px 4px rgba(0, 0, 0, 0.122669);
  border-radius: 17px;
  padding: 9px 18px;
}

.snippet__signature a {
  color: #2e2c34;
  text-decoration: none;
}

.snippet__signature a:hover {
  text-decoration: underline;
}

.snippet-container {
  padding: 0 32px;
  box-sizing: border-box;
  max-width: calc(100% - 40px);
  margin-top: -30px;
}

div.snippet {
  background: linear-gradient(
    112.88deg,
    rgba(21, 22, 34, 0.85) 13.6%,
    rgba(35, 35, 55, 0.85) 84.35%
  );
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.11), 0 2px 33px 0 rgba(0, 0, 0, 0.32);
  border-radius: 10px;
  color: white;
  padding-top: 20px;
  overflow: hidden;
  text-align: left;
  letter-spacing: normal;
}

div.snippet.light {
  background: linear-gradient(
    112.88deg,
    rgba(255, 255, 255, 0.9) 13.6%,
    rgba(255, 255, 255, 0.75) 84.35%
  );
}

.snippet__header {
  display: flex;
  justify-content: space-between;
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

.snippet__bin {
  background-color: transparent;
  background-image: url("/images/icons/bin.svg");
  background-repeat: no-repeat;
  background-position: 7px 6px;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 12px;
  margin-top: -14px;
  position: relative;
  top: 4px;
  transition: background-color 0.1s;
  cursor: pointer;
  outline: none !important;
}

.snippet__bin:hover {
  background-color: #ce3a3abf;
}

.snippet__traffic {
  display: flex;
}

.snippet__traffic__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
  background: rgba(255, 255, 255, 0.15);
}

.snippet.light .snippet__traffic__dot {
  background: rgba(0, 0, 0, 0.15);
}

.snippet__title {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: normal;
  flex-grow: 1;
  text-align: center;
  padding-right: 85px;
  padding-left: 15px;
  overflow: hidden;
  white-space: nowrap;
  margin-top: -4px;
  text-overflow: ellipsis;
}

.snippet.light .snippet__title {
  color: rgba(0, 0, 0, 0.7);
}

.snippet__editor {
  max-height: calc(100vh - 250px);
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 4px,
    black 20px,
    black calc(100% - 25px),
    transparent calc(100% - 4px)
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 4px,
    black 20px,
    black calc(100% - 25px),
    transparent calc(100% - 4px)
  );
  max-height: calc(100vh - 180px);
  overflow: auto;
}

#editor {
  background: none;
  position: relative;
}

.action-buttons {
  margin-bottom: 9px;
  text-align: right;
}

.action-button {
  border: none;
  background-color: rgba(0, 0, 0, 0.07);
  padding: 5px 10px;
  margin: 0 2px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  font-size: 13px;
  outline: none !important;
  cursor: pointer;
  transition: background-color 0.1s;
  text-align: left;
}

.action-button.copy {
  min-width: 106px;
}

.action-button:last-of-type {
  margin-right: -2px;
}

.action-button:hover {
  background-color: rgba(0, 0, 0, 0.15);
}

.action-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-right: 5px;
  margin-top: -2px;
  pointer-events: none;
}

.action-icon--copy {
  background-image: url("/images/icons/copy.svg");
}

.action-icon--bin {
  background-image: url("/images/icons/bin.svg");
}

.action-button.copied .action-icon--copy {
  background-image: url("/images/icons/check.svg");
}

.action-button .text--copied {
  display: none;
}

.action-button.copied .text--default {
  display: none;
}
.action-button.copied .text--copied {
  display: inline;
}

#copier {
  width: 5px;
  height: 5px;
  opacity: 0;
}

@media (max-width: 500px) {
  .snippet-container {
    padding: 0;
  }

  .snippet__editor {
    max-height: none !important;
  }
}
