/*
* Design folder
*/

.windowContent {
  height: calc(100%);
}

.content-folder {
  display: grid;
  grid-template-columns: 150px calc(100% - 150px);
  height: 100%;
}

.content-folder .content-folder-left {
  background-color: #353945;
  width: 100%;
  height: 100%;
  user-select: none;
}

.content-folder-left h2 {
  color: #b8c1cd;
  font-size: 15px;
  margin: 10px 0px 10px 5px;
}

.content-folder-left div {
  padding: 3px 3px 3px 20px;
  margin: 3px 0px;
  display: flex;
  flex-direction: row;
}

.content-folder-left div * {
  color: #b6becb;
}

.content-folder-left div i {
  margin: 3px 3px 0px 0px;
}

.content-folder-left div.active {
  background-color: #5294e2;
}

.content-folder-left div.active * {
  color: #fff;
}

.content-folder .content-folder-right {
  display: flex;
  height: fit-content;
  max-height: 90%;
  min-height: 90%;
  flex-wrap: wrap;
  padding: 10px;
  overflow-y: scroll;
  align-items: flex-start;
  justify-content: flex-start;
}

.folder-element {
  width: 150px;
  min-height: 120px;
  height: fit-content;
  margin: 5px;
  filter: brightness(100%);
}

.folder-element-clicked {
  border-radius: 10px;
  border: 2px solid #40a2d8;
  background-color: rgba(64, 162, 216, 0.5);
  margin: 4px;
  filter: brightness(100%);
}

.folder-element:hover {
  filter: brightness(120%);
}

.content-folder-right .folder-element img {
  position: relative;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 70px;
  margin-left: -30px;
}

.folder-element p {
  text-align: center;
  width: 90%;
  margin: 0px 5%;
}

/*
* Design terminal
*/

#Terminal-window .windowContent {
  overflow-y: auto;
  padding: 20px 10px 0px 10px;
}

#Terminal-window textarea {
  top: -100%;
  position: fixed;
}

b {
  font-weight: bold;
  text-decoration: underline;
}

#Terminal {
  overflow-x: hidden;
}

.cursor {
  font-size: 12px;
  color: #73abad;
  background-color: #73abad;
  position: relative;
  opacity: 1;
  height: 1.5em;
  width: 10px;
  max-width: 10px;
  transform: translateY(4px);
  overflow: hidden;
  text-indent: -5px;
  display: inline-block;
  text-decoration: blink;
  animation: blinker 1s linear infinite;
}
@keyframes blinker {
  50% {
    opacity: 0;
  }
}

#command {
  cursor: text;
  height: 50px;
  color: #73abad;
}

#liner {
  line-height: 1.3em;
  margin-top: -2px;
  animation: show 0.5s ease forwards;
  opacity: 0;
}
#liner::before {
  color: #519975;
  content: "visitor@test.com:~$";
}
@keyframes show {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#Terminal-window .windowContent p {
  display: block;
  line-height: 1.3em;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  margin: 0;
  letter-spacing: 0.05em;
  animation: typing 0.5s steps(30, end);
}

/* effect for balise p */
.no-animation {
  animation: typing 0 steps(30, end);
}
.margin {
  margin-left: 20px;
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.index {
  color: #dcdccc;
}
.color2 {
  color: #b89076;
}
.command {
  color: #73abad;
  text-shadow: 0 0 5px #73abad;
}
.error {
  color: #b89076;
}
.white {
  color: #fff;
}

/* File Design */

.file-option-container {
  display: flex;
  flex-direction: row;
  background-color: #1e2128;
}

.file-option-container .dropdown {
  display: flex;
  flex-direction: column;
}

.file-option-container .dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 80px;
  width: 200px;
  background-color: #1e2128;
  border-radius: 0px 0px 10px 10px;
  z-index: 2;
}

.file-option-container .dropbtn {
  height: 20px;
  width: 100px;
  padding: 0px 0px 10px 0px;
  text-align: center;
  user-select: none;
  cursor: pointer;
}

.file-option-container a {
  color: #b1b8c5;
  padding: 0px 10px;
  text-decoration: none;
  transition: margin-left 0.3s ease-in-out;
  user-select: none;
  cursor: pointer;
}

.file-option-container a:last-child {
  margin-bottom: 10px;
}

.file-option-container a:hover {
  margin-left: 10px;
  color: #fff;
}

.file-option-container .show {
  display: flex;
}

.text-editor-main {
  width: 100%;
  border: 1px solid rgb(219, 219, 219);
  margin: auto;
  height: calc(100% - 30px);
  background-color: #fff;
}

.options {
  background-color: #e7eaef;
  padding: 10px;
  display: flex;
  justify-items: center;
  flex-wrap: wrap;
}

.text-editor-main .options button {
  border: none;
  background-color: #e7eaef;
  padding: 10px 15px;
  border-radius: 4px;
  color: rgb(112, 112, 112);
  margin: 5px;
  cursor: pointer;
}

.text-editor-main .options button img {
  width: 15px;
  height: 15px;
  margin-top: 3px;
}

.text-editor-main .options button:hover {
  background-color: #bfcfeb;
}

.active::before {
  content: "\21D2";
  margin-right: 4px;
}

.contentOutput {
  height: calc(100% - 85px);
  width: calc(100% - 40px);
  overflow: auto;
  overflow-wrap: break-word;
  color: #000;
  padding: 10px 20px 0px 20px;
  margin-bottom: 10px;
}

.contentOutput:focus {
  outline: none;
}

.dropdown-opt-txt {
  position: relative;
  display: inline-block;
}

.dropdown-opt-txt .dropdown-menu {
  display: none;
  position: absolute;
  flex-direction: column;
  background-color: transparent;
  z-index: 0;
  top: 40px;
  min-width: 30px;
}

.dropdown-opt-txt:hover .dropdown-menu {
  display: flex;
}

/* Image editor */

.container {
  width: calc(100% - 60px);
  padding: 30px;
  background: #fff;
}
.container.disable .editor-panel,
.container.disable .controls .reset-filter,
.container.disable .controls .save-img {
  opacity: 0.5;
  pointer-events: none;
}

.container .wrapper {
  display: flex;
  min-height: 335px;
}
.wrapper .editor-panel {
  padding: 15px 20px;
  width: 280px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.editor-panel .title {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
}
.editor-panel .options,
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.editor-panel button {
  outline: none;
  height: 40px;
  font-size: 14px;
  color: #6c757d;
  background: #fff;
  border-radius: 3px;
  margin-bottom: 8px;
  border: 1px solid #aaa;
}
.editor-panel .filter button {
  width: calc(100% / 2 - 4px);
}
.editor-panel button:hover {
  background: #f5f5f5;
}
.filter button.active {
  color: #fff;
  border-color: #5372f0;
  background: #5372f0;
}
.filter .slider {
  margin-top: 12px;
}
.filter .slider .filter-info {
  display: flex;
  color: #464646;
  font-size: 14px;
  justify-content: space-between;
}
.filter .slider input {
  width: 100%;
  height: 5px;
  accent-color: #5372f0;
}
.editor-panel .rotate {
  margin-top: 17px;
}
.editor-panel .rotate button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% / 4 - 3px);
}
.rotate .options button:nth-child(3),
.rotate .options button:nth-child(4) {
  font-size: 18px;
}
.rotate .options button:active {
  color: #fff;
  background: #5372f0;
  border-color: #5372f0;
}
.wrapper .preview-img {
  flex-grow: 1;
  display: flex;
  overflow: hidden;
  margin-left: 20px;
  border-radius: 5px;
  align-items: center;
  justify-content: center;
}
.preview-img img {
  max-width: 490px;
  max-height: 335px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.controls button {
  padding: 11px 20px;
  font-size: 14px;
  border-radius: 3px;
  outline: none;
  color: #fff;
  cursor: pointer;
  background: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
}
.controls .reset-filter {
  color: #6c757d;
  border: 1px solid #6c757d;
}
.controls .reset-filter:hover {
  color: #fff;
  background: #6c757d;
}
.controls .choose-img {
  background: #6c757d;
  border: 1px solid #6c757d;
}
.controls .save-img {
  margin-left: 5px;
  background: #5372f0;
  border: 1px solid #5372f0;
}

/* IMAGE CONTAINER */
.image-container {
  height: 100%;
}

.image-container-body {
  height: 100%;
  overflow: auto;
}

.image-container-body img {
  width: 100%;
}

/* PDF CONTAINER */
.pdf-container {
  height: 100%;
  overflow: auto;
}

.pdf-container-body {
  background-color: #fff;
  margin: 20px 50px;
  color: #000;
  padding: 30px;
  border-radius: 5px;
}

.pdf-container-body .page-pdf {
  min-height: 800px;
}

/* Paint Design */
#Paint-window .canvas-container {
  overflow-x: auto;
  overflow-y: auto;
  height: calc(100% - 50px);
}

#Paint-window .tools-menu {
  background-color: #333;
}

#Paint-window .tools-menu .menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

#Paint-window .menu-item {
  position: relative;
}

#Paint-window .menu-item a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

#Paint-window .menu-item a:hover {
  background-color: #111;
}

#Paint-window .dropdown {
  display: none;
  position: absolute;
  top: 50px;
  background-color: #333;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

#Paint-window .dropdown .option {
  color: #b2b2b2;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  margin-left: 0px;
  transition:
    color 0.3s ease,
    margin-left 0.3s ease;
  user-select: none;
  cursor: pointer;
}

#Paint-window .dropdown .option:hover {
  margin-left: 4px;
  color: #fff;
}

#Paint-window .menu-item:hover .dropdown {
  display: block;
}

#Paint-window .buttons {
  margin-left: auto;
}

#Paint-window .buttons button {
  margin: 0 5px;
  padding: 5px 20px;
  background-color: #333;
  border: 5px solid #404552;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

#Paint-window .buttons button:hover {
  background-color: #404552;
}

#Paint-window canvas {
  margin: 40px;
  background-color: #fff;
  width: 600px;
  height: 400px;
}

/* CONSTRAINTS */
.folder-constraints {
  min-width: 350px;
  min-height: 200px;
}

.file-constraints {
  min-height: 250px;
  min-width: 375px;
}

.Terminal-constraints {
  min-width: 330px;
  min-height: 250px;
  padding-bottom: 30px;
}

.Paint-constraints {
  min-width: 680px;
  min-height: 300px;
}
