* {
  box-sizing: border-box;
  outline: 0;
  border: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  margin: 0;
  color: #333;
  font-size: 1.2em;
  font-weight: 300;
  animation: fadein 0.2s;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

a {
  display: inline-flex;
  margin: 0 16px;
  padding: 16px 0;
  color: inherit;
  text-decoration: none;
  align-items: center;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 20vh;
}

footer {
  display: flex;
  height: 64px;
  font-size: 1em;
  font-weight: 500;
  position: fixed;
  bottom: 0px;
  width: 100%;
  background-color: #fff;
}

footer .logo {
  padding: 16px;
  width: 64px;
  height: 64px;
}

.flex {
  display: flex;
  flex-grow: 1;
}

.icon {
  height: 24px;
  margin-right: 8px;
}

.hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 2s, opacity 2s linear;
}

input {
  padding: 16px 32px;
  width: 100%;
  color: inherit;
  font-size: inherit;
  border-radius: 20px;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.4);
  margin-bottom: 3vh;
}

::placeholder {
  color: #b2b2b2;
}

::selection {
  background-color: #000;
  color: #fff;
}

#urlErrorBox, #fileErrorBox, #textErrorBox {
  display: none;
  padding: 8px 32px;
  margin: 5vh 0;
  border: 1px solid #BD2527;
  background: rgba(189, 37, 39, 0.1);
  color: #BD2527;
  border-radius: 10px;
  animation: fadeout;
  animation-fill-mode: forwards;
}

#alias {
  padding: 16px 32px;
  color: #58de71;
}

#urlSuccess, #fileSuccess, #textSuccess {
  display: none;
  padding: 8px 32px;
  margin-bottom: 3vh;
  border: 1px solid #9BCA3E;
  background: rgba(133, 184, 50, 0.1);
  color: #9BCA3E;
  border-radius: 10px;
  animation: fadeout;
  animation-fill-mode: forwards;
  ;
}

#fileStatus {
  text-align: center;
  font-size: 2.1em;
  font-weight: 700;
}

#shortlist {
  margin: 0;
  max-width: 1000px;
  font-size: 32px;
  padding: 16px 32px;
}

#shortIdList {
  padding: 16px 32px;
}

.dropArea {
  border: 2px dashed #ccc;
  border-radius: 20px;
  height: calc(100% - 40px);
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.1em;
  font-weight: 700;
  margin-bottom: 3vh;
}

.dropArea.highlight {
  border-color: #56a4eb;
  color: #56a4eb
}

.btszButton {
  font-weight: 700;
  font-size: 2.1em;
  display: inline-block;
  padding: 16px 32px;
  margin: 1vh 0 4vh 0;
  border-radius: 20px;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.4);
  width: 100%;
  background-size: 300% 100%;
  background-image: linear-gradient(120deg, #56a4eb, #c471ed, #f64f59);
  text-align: center;
  cursor: pointer;
  color: white;
  -moz-transition: all .4s ease-in-out;
  -o-transition: all .4s ease-in-out;
  -webkit-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
}

.btszButton:hover {
  background-position: 100% 0;
  -moz-transition: all .4s ease-in-out;
  -o-transition: all .4s ease-in-out;
  -webkit-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
}

.btszButton:disabled {
  cursor: auto;
  background: linear-gradient(120deg, #a1a1a1, #b0b0b0, #a3a3a3);
}

form {
  padding: 0 25%;
  margin: 48px 0 20px 0;
}

#fileElem {
  display: none;
}

#fileForm {
  text-align: center;
}

#urlElem {
  display: none;
}

#textElem {
  display: none;
}

textarea {
  padding: 16px 32px;
  margin-bottom: 3vh;
  min-height: 20vh;
  max-height: 50vh;
  font-size: 1em;
  border-radius: 20px;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.4);
  width: 100%;
  resize: none;
}

#textHighlightLanguage {
  float: right;
  height: 30px;
  background-color: white;
  margin: 16px 0;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.4);
  width: 25%;
}

.bitesizeImage {
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  margin: 10px;
}

.shortcutImage {
  width: 120px;
  height: 120px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .14);
  border-radius: 20px;
  margin: 20px
}

code {
  height: calc(100vh - 64px);
  font-size: 0.8em;
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
}

pre {
  margin: 0;
}

.plaintext {
  padding: 3em 25% !important;
}

@media all and (max-width: 720px) {
  body {
    font-size: 24px;
  }
  footer {
    flex-direction: column;
  }
  form {
    padding: 0 5%;
    font-size: 0.6em;
  }
  .tabs {
    width: 100% !important;
    padding: 0 !important;
  }
  .btszButton {
    font-size: 1.6em !important;
  }
  .plaintext {
    padding: 3em 1em !important;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #333;
    color: #e4e4e4;
  }
  footer {
    background-color: #333;
    color: #e4e4e4;
  }
  input, textarea, #textHighlightLanguage {
    background-color: #444;
    color: #e4e4e4;
  }
  #settings {
    fill: #e4e4e4;
  }
  #pwaColor {
    fill: #e4e4e4;
  }
  #installPWA {
    background-color: #333;
  }
  .tabs {
    background-color: #333;
  }
}

.tabs {
  left: 50%;
  top: 15%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  position: relative;
  padding: 50px;
  padding-bottom: 80px;
  width: 70%;
  /* height: 250px; */
  /* box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); */
  border-radius: 5px;
  min-width: 240px;
}

.tabs input[name="tab-control"] {
  display: none;
}

.tabs .content section h2, .tabs ul li label {
  /* font-family: "Montserrat"; */
  font-weight: bold;
  font-size: 18px;
  color: #56a4eb;
}

.tabs ul {
  list-style-type: none;
  padding-left: 0;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  flex-direction: row;
  margin-bottom: 10px;
  -webkit-box-pack: justify;
  justify-content: space-between;
  -webkit-box-align: end;
  align-items: flex-end;
  flex-wrap: wrap;
}

.tabs ul li {
  box-sizing: border-box;
  -webkit-box-flex: 1;
  flex: 1;
  width: 25%;
  padding: 0 10px;
  text-align: center;
}

.tabs ul li label {
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  color: #929daf;
  padding: 5px auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  cursor: pointer;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.tabs ul li label br {
  display: none;
}

.tabs ul li label svg {
  fill: #929daf;
  height: 1.2em;
  vertical-align: bottom;
  margin-right: 0.2em;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.tabs ul li label:hover, .tabs ul li label:focus, .tabs ul li label:active {
  outline: 0;
  color: #bec5cf;
}

.tabs ul li label:hover svg, .tabs ul li label:focus svg, .tabs ul li label:active svg {
  fill: #bec5cf;
}

.tabs .slider {
  position: relative;
  width: 33.33%;
  -webkit-transition: all 0.33s cubic-bezier(0.38, 0.8, 0.32, 1.07);
  transition: all 0.33s cubic-bezier(0.38, 0.8, 0.32, 1.07);
}

.tabs .slider .indicator {
  position: relative;
  width: 50px;
  max-width: 100%;
  margin: 0 auto;
  height: 4px;
  background: #56a4eb;
  border-radius: 1px;
}

.tabs .content {
  margin-top: 30px;
}

.tabs .content section {
  display: none;
  -webkit-animation-name: content;
  animation-name: content;
  -webkit-animation-direction: normal;
  animation-direction: normal;
  -webkit-animation-duration: 0.3s;
  animation-duration: 0.3s;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
  line-height: 1.4;
}

.tabs .content section h2 {
  color: #56a4eb;
  display: none;
}

.tabs .content section h2::after {
  content: "";
  position: relative;
  display: block;
  width: 30px;
  height: 3px;
  background: #56a4eb;
  margin-top: 5px;
  left: 1px;
}

.tabs input[name="tab-control"]:nth-of-type(1):checked~ul>li:nth-child(1)>label {
  cursor: default;
  color: #56a4eb;
}

.tabs input[name="tab-control"]:nth-of-type(1):checked~ul>li:nth-child(1)>label svg {
  fill: #56a4eb;
}

@media (max-width: 600px) {
  .tabs input[name="tab-control"]:nth-of-type(1):checked~ul>li:nth-child(1)>label {
    background: rgba(0, 0, 0, 0.08);
  }
}

.tabs input[name="tab-control"]:nth-of-type(1):checked~.slider {
  -webkit-transform: translateX(0%);
  transform: translateX(0%);
}

.tabs input[name="tab-control"]:nth-of-type(1):checked~.content>section:nth-child(1) {
  display: block;
}

.tabs input[name="tab-control"]:nth-of-type(2):checked~ul>li:nth-child(2)>label {
  cursor: default;
  color: #56a4eb;
}

.tabs input[name="tab-control"]:nth-of-type(2):checked~ul>li:nth-child(2)>label svg {
  fill: #56a4eb;
}

@media (max-width: 600px) {
  .tabs input[name="tab-control"]:nth-of-type(2):checked~ul>li:nth-child(2)>label {
    background: rgba(0, 0, 0, 0.08);
  }
}

.tabs input[name="tab-control"]:nth-of-type(2):checked~.slider {
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
}

.tabs input[name="tab-control"]:nth-of-type(2):checked~.content>section:nth-child(2) {
  display: block;
}

.tabs input[name="tab-control"]:nth-of-type(3):checked~ul>li:nth-child(3)>label {
  cursor: default;
  color: #56a4eb;
}

.tabs input[name="tab-control"]:nth-of-type(3):checked~ul>li:nth-child(3)>label svg {
  fill: #56a4eb;
}

@media (max-width: 600px) {
  .tabs input[name="tab-control"]:nth-of-type(3):checked~ul>li:nth-child(3)>label {
    background: rgba(0, 0, 0, 0.08);
  }
}

.tabs input[name="tab-control"]:nth-of-type(3):checked~.slider {
  -webkit-transform: translateX(200%);
  transform: translateX(200%);
}

.tabs input[name="tab-control"]:nth-of-type(3):checked~.content>section:nth-child(3) {
  display: block;
}

.tabs input[name="tab-control"]:nth-of-type(4):checked~ul>li:nth-child(4)>label {
  cursor: default;
  color: #56a4eb;
}

@-webkit-keyframes content {
  from {
    opacity: 0;
    -webkit-transform: translateY(5%);
    transform: translateY(5%);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0%);
    transform: translateY(0%);
  }
}

@keyframes content {
  from {
    opacity: 0;
    -webkit-transform: translateY(5%);
    transform: translateY(5%);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0%);
    transform: translateY(0%);
  }
}

@media (max-width: 1000px) {
  .tabs ul li label {
    white-space: initial;
  }
  .tabs ul li label br {
    display: initial;
  }
  .tabs ul li label svg {
    height: 1.5em;
  }
}

@media (max-width: 600px) {
  .tabs ul li label {
    padding: 5px;
    border-radius: 5px;
  }
  .tabs ul li label span {
    display: none;
  }
  .tabs .slider {
    display: none;
  }
  .tabs .content {
    margin-top: 20px;
  }
  .tabs .content section h2 {
    display: block;
  }
}

/* Shortcuts Page */

.shortcutContainer {
  width: 70%;
  position: relative;
  min-width: 240px;
  margin: 10% auto;
  background: transparent;
  padding: 25px;
}

@media screen and (max-width: 992px) {
  .shortcutContainer {
    max-width: 680px;
    margin: auto;
    height: 400px;
  }
}

@media screen and (max-width: 768px) {
  .shortcutContainer {
    height: auto;
    width: 100%;
  }
}

@media screen and (max-height: 500px) and (min-width: 992px) {
  .shortcutContainer {
    height: 350px;
  }
}

.shortcutContainerItem {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .shortcutContainerItem {
    flex-direction: column;
  }
}

.shortcutContainerImage {
  width: 250px;
  flex-shrink: 0;
  height: 250px;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
}

.shortcutContainerImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  border-radius: 20px;
}

@media screen and (max-width: 768px) {
  .shortcutContainerImage {
    transform: translateY(-50%);
  }
}

@media screen and (max-height: 500px) and (min-width: 992px) {
  .shortcutContainerImage {
    height: 270px;
  }
}

.shortcutContainerContent {
  padding-left: 50px;
  min-width: 350px;
}

@media screen and (max-width: 768px) {
  .shortcutContainerContent {
    margin-top: -80px;
    padding: 0 30px;
  }
}

@media screen and (max-width: 576px) {
  .shortcutContainerContent {
    padding: 0;
    width: 100%;
  }
}

.shortcutContainerTitle {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0.1em;
}

.shortcutContainerText {
  margin-bottom: 30px;
  line-height: 1.5em;
}

.viewIcon {
  display: inline-flex;
  align-self: center;
  float: right;
}

.viewIcon svg, .viewIcon img {
  height: 1em;
  width: 1em;
  fill: currentColor;
}

.viewIcon.baseline svg, .viewIcon img {
  margin-right: 0.2em;
  width: 1em;
  top: .125em;
  position: relative;
}

.viewSecondary {
  opacity: .4
}

.shortcutContainerForm {
  padding: 0;
  margin: 0;
}

.shortcutContainerForm button {
  margin: 0;
}