/*code*/
/*#00192e*/
@import url("https://fonts.googleapis.com/css2?family=Syne+Mono&display=swap");
:root {
  --button-hover-bg: #8e00fd;
}
body {
  font-family: calibri;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  min-width: fit-content;
  overflow: hidden;
}
::selection {
  color: black;
  background: #fff;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: dodgerblue;
  border-radius: 50px;
}

::-webkit-scrollbar-thumb {
  background: black;
  border-radius: 50px;
}
/*loader*/

#onLoader {
  user-select: none;
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 400;
  text-align: center;
  background-color: #181818;
}

#onLoader span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%) scale(3);
  color: #000;
  font-family: "Syne Mono", monospace;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 4px solid #000;
}

#onLoader span:before {
  border-bottom: 4px solid #6f00ff;
  position: absolute;
  content: attr(data-text);
  text-shadow: 0px 0px 4px #6f00ff;
  color: #6f00ff;
  overflow: hidden;
  width: 0;
}

@keyframes load {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

/*loader ends*/

.tools {
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: row;
  box-shadow: 0px 0px 5px #505050;
  z-index: 3;
}
.tools .toolPin {
  text-align: center;
  width: 20%;
  padding: 10px 30px;
  cursor: pointer;
  transition: 0.3s;
}
/*tooltips*/
.toolTipDiv {
  position: absolute;
  top: 3.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: row;
  transform: scale(0);
}
.toolPin:hover ~ .toolTipDiv {
  transform: scale(1);
}
.toolTipDiv .toolTip {
  font-weight: bold;
  width: 20%;
  min-width: fit-content;
  text-transform: capitalize;
  text-align: center;
  background: #424242;
  padding: 8px 1px;
  border-radius: 5px;
  color: #fff;
  z-index: 7;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
}
/*1*/
.saveFile:hover ~ div.toolTipDiv span.tipsaveFile {
  visibility: visible;
  opacity: 1;
}
/*2*/
.copyCodes:hover ~ div.toolTipDiv span.tipCopyCodes {
  visibility: visible;
  opacity: 1;
}
/*3*/
.runCode:hover ~ div.toolTipDiv span.tipRunCode {
  visibility: visible;
  opacity: 1;
}
/*4*/
.swapView:hover ~ div.toolTipDiv span.tipSwapView {
  visibility: visible;
  opacity: 1;
}
/*5*/
.theme:hover ~ div.toolTipDiv span.tipTheme {
  visibility: visible;
  opacity: 1;
}
/*tool tip ends*/

.toolPin svg {
  transition: all 0.1s;
}
.toolPin:hover svg {
  fill: #fff;
  transform: scale(1.5);
}
.toolPin:active svg {
  transform: scale(1);
}

.tools .toolPin:hover {
  background: var(--button-hover-bg);
}
.runCode.autoRunEnabled {
  background: #7900fd;
}
.workArea {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.workArea .editor {
  height: 100%;
  width: 50%;
  border-right: 2px solid;
}
.workArea .preview {
  height: 100%;
  border-right: 2px solid;
  width: 50%;
}

.editor textarea#editorArea {
  padding: 15px 10px;
  line-height: 22.5px;
  font-family: cursive;
  font-size: medium;
  color: #000;
  font-weight: 500;
  border: none;
  outline: none;
  height: calc(100% - 1.5em);
  width: 100%;
  background: #fff;
  resize: none;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
}
.CodeMirror {
  line-height: 22.5px;
  font-family: cursive;
  font-size: medium;
  color: #000;
  font-weight: 500;
  border: none;
  outline: none;
  background: #fff;
  resize: none;
  max-width: 50vw;
  height: 100% !important;
}
.swap .CodeMirror {
  max-width: 100vw;
  max-height: 50vh;
}
/*swap*/
.workArea.swapFlex {
  flex-direction: column;
}
.workArea .editor.swap,
.preview.swap {
  height: 50%;
  width: 100%;
}
.preview.swap {
  border-top: 2px solid;
}
/*swapped ends*/
/*dark theme*/

.tools.darkTools {
  background: var(--dark-theme);
}
svg.darkSvg {
  fill: var(--dark-theme-text);
}
.darkPin:hover {
  background: #fff;
}
.darkPin:hover .darkSvg {
  fill: var(--dark-theme-text);
  filter: drop-shadow(0px 0px 3px var(--dark-theme-text));
}
.editor textarea.darkEditorArea {
  background: var(--dark-theme) !important;
  color: #fff !important;
}
.editor.darkEditor {
  background: #161616 !important;
}

/*dark theme ends*/

iframe.previewFrame {
  height: 100%;
  width: 100%;
}
/*popup*/

.helpBox {
  height: fit-content;
  width: 40em;
  max-width: 90%;
  min-width: 30em;
  overflow: hidden;
  background: #fff;
  color: black;
  box-shadow: 0px 0px 20px dodgerblue;
  z-index: 9;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: flex-start;
  justify-content: left;
  flex-direction: column;
  text-transform: capitalize;
  border-radius: 10px;
  transition: all 0.3s;
  animation: flyin 0.2s linear;
}
@keyframes flyin {
  from {
    opacity: 0;
    top: 100%;
  }
}
.backgroundBox {
  position: absolute;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 8;
}
.helpBox div.keyShortcuts {
  display: flex;
  align-items: flex-start;
  justify-content: left;
  flex-direction: column;
  padding: 10px 0;
}
.helpBox div.keyShortcuts header {
  font-weight: 900;
  width: calc(100% - 20px);
  padding: 2px 10px;
}
.helpBox div.aboutWebPad {
  font-family: cursive;
  padding: 10px 10px;
  text-align: justify;
  width: calc(100% - 20px);
  line-height: 25px;
}
.helpBox div span {
  margin: 10px 10px;
}
.helpBox span code {
  user-select: none;
  background: #cfcfcf;
  padding: 5px;
  border-radius: 4px;
  font-family: monospace !important;
}
.helpBox .close {
  user-select: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 5px 8px;
  width: calc(100% - 16px);
  font-size: xx-large;
  font-weight: 900;
  background: dodgerblue;
  color: white;
  border-radius: 10px 10px 0 0;
  box-shadow: 0px 1px 1px;
}
.helpBox .close em {
  transition: all 0.2s;
}
.helpBox .close em:hover {
  text-shadow: 0px 0px 3px red, 0px 0px 3px red, 0px 0px 3px red;
  transform: scale(1.4);
}
.helpBox span.close b {
  cursor: default;
  font-size: x-large;
  width: 100%;
}
/*popup ends*/
/*user visit*/
.helpBox div {
  box-shadow: 0px 0px 1px;
  width: 100%;
  display: flex;
  justify-content: right;
  align-items: center;
}
.helpBox div:last-child {
  font-weight: 800;
  font-size: large;
  justify-content: flex-end !important;
  background: dodgerblue;
  color: #fff;
}
label.userVisit {
  user-select: none;
  margin: 3px 8px;
  cursor: pointer;
  height: 1em;
  width: 2em;
  background: #c0c0c0;
  border-radius: 3em;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  box-shadow: inset 0px 0px 2px #000;
}
label.userVisit u.slider {
  box-shadow: 0px 0px 2px #000;
  background: #fff;
  height: 0.8em;
  width: 0.8em;
  border-radius: 1em;
  position: absolute;
  transition: all 0.3s;
  transform: translateX(0.1em);
}
#userVisit:checked ~ label.userVisit u.slider {
  transform: translateX(1.1em);
}
#userVisit:checked ~ label.userVisit {
  background: #8300fd;
}
/*user visit ends*/

/*Confirm Box*/
div.confirmBox {
  z-index: 100;
  background: #ffffff;
  box-shadow: 0px 0px 8px rgb(65, 65, 65);
  border-radius: 10px;
  min-height: 180px;
  min-width: 430px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s;
  visibility: hidden;
  opacity: 0;
}
.confirmBox.showConfirmBox {
  top: 50%;
  opacity: 1;
  visibility: visible;
}
.confirmBox input.inFileName {
  outline: none;
  border: 2px solid #bcbbbb;
  border-radius: 3px;
  width: 90%;
  transition: all 0.2s;
  padding: 8px 5px;
}
.confirmBox .fileLabel {
  font-size: large;
  font-weight: 800;
  color: #6f00ff;
}
input.inFileName:focus {
  border: 2px solid dodgerblue;
  box-shadow: 0px 0px 3px dodgerblue;
}
.fileNameButtons {
  width: calc(90% + 10px);
  display: flex;
  justify-content: end;
}
.confirmBox span {
  user-select: none;
}
.confirmBox .fileNameButtons span {
  cursor: pointer;
  margin: 0 0 0 10px;
  padding: 5px 10px;
  text-align: center;
  background: dodgerblue;
  border-radius: 5px;
  width: 20%;
  transition: all 0.3s;
  font-weight: 600;
}
.fileNameButtons span:hover {
  transform: scale(1.1);
}
.confirmBox span.errorFileName {
  display: none;
  text-transform: capitalize;
  color: red;
  text-align: left;
  width: calc(90% + 10px);
  transition: all 0.5s;
}
/*Confirm Box ends*/

/*alert box*/
.alertBox {
  user-select: none;
  height: fit-content;
  width: fit-content;
  padding: 12px 24px;
  background: #383838;
  position: absolute;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 10px;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
}
.alertBox.showAlertBox {
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  visibility: visible;
  opacity: 1;
}
/*alert box ends*/
.themeSelectionArea {
  display: none;
  background: dodgerblue;
  padding: 5px;
  border-radius: 5px 5px 0 0;
  position: absolute;
  transform: translate(-50%, 0%);
  bottom: 0%;
  left: 50%;
  height: fit-content;
  width: calc(100% - 10px);
  opacity: 0.9;
  max-height: 70vh;
  overflow: auto;
  flex-wrap: wrap;
  justify-content: flex-start;
  flex-direction: row;
  gap: 3px;
}
.theme_n {
  user-select: none;
  background: #161616;
  color: #fff;
  padding: 5px 10px;
  width: fit-content;
  text-align: center;
  border-radius: 3px;
  font-size: large;
  cursor: pointer;
  transition: all 0.7s;
}
.themeSelectionArea .theme_n:hover {
  background: transparent;
  transition: all 0s;
}
