/*
Background: #272727
Top layer: #181818
Accent: #5b4e48
*/

.hidden {
  display: none !important
}

::-webkit-scrollbar {
  height: 5px;
  width: 5px;
}

::-webkit-scrollbar-thumb {
  background: #ffffff50;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffffff85;
}

::-webkit-scrollbar-track {
  background: #272727;
  margin: 5px;
  border-radius: 5px;
}

::-webkit-resizer {
  display: none;
}

body {
  background-repeat: no-repeat;
  color: #fefefe;
  margin: 0;
  background: #272727;
  background-attachment: fixed;
  font-family: monospace;
  font-size: 14px;
  user-select: none;
}

body table {
font-family: monospace;
font-size: 14px;
width: 100%;
}

.split-screen {
  display: flex;
}

.container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1% 0 1% 0;
}

.column-container {
  display: flex;
  justify-content: left;
  flex-wrap: nowrap;
}
.column-container-container {
  align-content: flex-start;
  background-color: #181818;
  margin: 2%;
  border-radius: 5px;
}

.menu-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 96%;
  margin: 0 2% 2% 2%;
  flex-direction: column;
  justify-content: center;
}

.menu {
  align-content: flex-start;
  float: left;
  position: relative;
  background-color: #181818;
  border-radius: 0 0 5px 5px;
  height: 100px;
  margin-top: -100px;
  transition: 0.1s;
}

.menu-items {
  height: 100%;
  justify-content: center;
  display: flex;
  gap: 15%;
  align-content: center;
  flex-wrap: wrap;
  font-size: 18px;
}

.menu-items a {
  cursor: pointer;
  text-decoration: none;
}
.menu-items a:hover {
  cursor: pointer;
  text-decoration: underline;
}

.menu.collapsed {
  margin-top: 0;
  transition: 0.1s;
}

.menu-collapse {
  width: 5em;
  height: 2em;
  background: #181818;
  bottom: -2em;
  left: 5em;
  position: absolute;
  border-radius: 0 0 5px 5px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-arrow {
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-top: 7px solid;
  border-right: 7px solid;
  margin-top: -7px;
  transform: rotate(135deg);
  position: relative;
  display: inline-block;
  vertical-align: middle;
  color: #818181;
  box-sizing: border-box;
  &:after, &:before {
    content: "";
    box-sizing: border-box;
  }
}

.menu-arrow.collapsed {
  margin-top: 19.8px;
  transform: rotate(315deg);
  margin-top: 7px;
}

.top-column {
  align-content: flex-start;
  float: left;
  width: 96%;
}

.top-column form {
  flex-direction: column;
  background-color: #181818;
  padding: 30px;
  border-radius: 5px;
  margin: 0;
}

.top-column form textarea{
  width: 100%;
  resize: none;
  overflow-y: hidden;
  background: none;
  color: #fefefe;
  font-size: 16px;
  border: 0;
  border-bottom: 2px;
  border-image: linear-gradient(to right, hsla(318, 45%, 53%, 1), hsla(337, 78%, 60%, 1), hsla(3, 100%, 68%, 1), hsla(11, 100%, 68%, 1), hsla(33, 100%, 67%, 1)) 1;
  border-style: solid;
  padding-bottom: 10px;
  margin-bottom: 15px;
  margin-right: 15px;
}

.top-column form textarea:focus-visible{
  outline: none;
  border-bottom: 2px;
  border-style: solid;
}

.textarea-container {
  display: flex;
}

.form-button-submit {
  height: 40px;
  width: 5%;
  border-radius: 2px;
  background: #636363;
  cursor: pointer;
  color: #fefefe;
  font-family: monospace;
  font-size: 14px;
  border: none;
  padding: 0;
}

@keyframes form-button-press {
  0% { transform: translateY(0); }
  100% { transform: translateY(2px); }
}

.form-button-submit.pressed { 
    animation: form-button-press 0.1s forwards;
    background: #272727;
    color: #818181;
    box-shadow: 0 0 2px #000000 inset;
}

.left-column {
    align-content: flex-start;
    float: left;
    width: 50%;
    min-width: 20%;
    background-color: #181818;
    border-radius: 5px;
}

.right-column {
    align-content: flex-start;
    float: right;
    width: 50%;
    min-width: 20%;
    background-color: #181818;
    flex: 1;
    border-radius: 5px;
}

.left-column-content,
.right-column-content {
    padding: 30px;
    user-select: text;
    caret-color: transparent;
}

.split {
  background-color: #181818;
  width: 5px;
  border-style: dashed;
  border-top: 0;
  border-bottom: 0;
  border-width: 3px;
  border-color: #272727;
}

.split#split-divider {
  cursor: col-resize;
}

.split-arrows {
  display: flex;
  justify-content: center;
}

.split-arrow-left {
  width: 0;
  height: 0;
  margin-top: 1%;
  margin-left: -2%;
  border: 7px solid transparent;
  border-top: 7px solid;
  border-right: 7px solid;
  transform: rotate(225deg);
  position: absolute;
  display: inline-block;
  vertical-align: middle;
  color: #272727;
  box-sizing: border-box;
  cursor: col-resize;
  &:after, &:before {
    content: "";
    box-sizing: border-box;
  }
}
.split-arrow-right {
  width: 0;
  height: 0;
  margin-top: 1%;
  margin-left: 2%;
  border: 7px solid transparent;
  border-top: 7px solid;
  border-right: 7px solid;
  transform: rotate(45deg);
  position: absolute;
  display: inline-block;
  vertical-align: middle;
  color: #272727;
  box-sizing: border-box;
  cursor: col-resize;
  &:after, &:before {
    content: "";
    box-sizing: border-box;
  }
}

.form-type {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

article {
  position: relative;
  width: 100%;
  height: 40px;
  float: left;
  box-sizing: border-box;
}

article div {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 25px;
  border-radius: 2px;
}

article input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

input[type=checkbox]:checked ~ div {
  background: #636363;
  transition: 0.1s;
  color: #fefefe;
  box-shadow: none;
}

input[type=checkbox] ~ div {
  transition: 0.1s;
  background: #272727;
  color: #818181;
  box-shadow: 0 0 2px #000000 inset;
}

.legenda-content {
  text-align: center;
}

.legenda-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 115.56px;
  height: 32px;
  background-color: #181818;
  box-shadow: 0 0 2px #000000;
  color: white;
  border-radius: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.1s;
  user-select: none;
  border-image: linear-gradient(to right, hsla(318, 45%, 53%, 1), hsla(337, 78%, 60%, 1), hsla(3, 100%, 68%, 1), hsla(11, 100%, 68%, 1), hsla(33, 100%, 67%, 1)) 1;
  border-style: solid;
  border-width: 2px;
}

@keyframes form-button-press {
  0% { transform: translateY(0); }
  100% { transform: translateY(2px); }
}

.legenda-bubble.pressed {
  transform: scale(0.9);
}

.expanded-content {
  position: fixed;
  bottom: 80px;
  right: 160px;
  z-index: 9998;
  transform-origin: bottom right;
  transform: scale(0);
  transition: transform 0.1s ease;
  user-select: none;
}

.expanded-content p {
  resize: none;
  background-color: #181818;
  color: #fefefe;
  font-size: 16px;
  border: 2px;
  width: 700px;
  height: auto;
  padding: 20px;
  border-image: linear-gradient(to right, hsla(318, 45%, 53%, 1), hsla(337, 78%, 60%, 1), hsla(3, 100%, 68%, 1), hsla(11, 100%, 68%, 1), hsla(33, 100%, 67%, 1)) 1;
  border-style: solid;
  box-shadow: 0 0 2px #000000;
  margin: 0;
}

.expanded-content p:focus-visible {
  outline: none;
  border-bottom: 2px;
  border-style: solid;
}

.expanded-content tr {
  user-select: text;
  caret-color: transparent;
}

pre {
  border: 0;
  border-bottom: 2px;
  border-image: linear-gradient(to right, hsla(318, 45%, 53%, 1), hsla(337, 78%, 60%, 1), hsla(3, 100%, 68%, 1), hsla(11, 100%, 68%, 1), hsla(33, 100%, 67%, 1)) 1;
  border-style: solid;
  padding-bottom: 1em;
}

.credits {
  display: flex;
  justify-content: center;
}

.vertical-divider {
  border: 0;
  border-bottom: 2px;
  border-image: linear-gradient(to right, hsla(318, 45%, 53%, 1), hsla(337, 78%, 60%, 1), hsla(3, 100%, 68%, 1), hsla(11, 100%, 68%, 1), hsla(33, 100%, 67%, 1)) 1;
  border-style: solid;
  margin: 30px 0;
}

.content {
  align-content: flex-start;
  float: left;
  width: 96%;
  background: #181818;
  border-radius: 5px;
}

.imapsync-form {
  display: flex;
}

.imapsync-form form, .imapsync-form .results {
  width: 50%;
  padding: 30px;
  user-select: text;
}

.results {
  caret-color: transparent;
}

#account1 {
  border-radius: 0;
}

#account2 {
  border-radius: 0;
}

#account1 fieldset{
  padding: 0;
}

#account2 fieldset{
  padding: 0;
}

fieldset {
  display: block;
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding-block-start: 0.35em;
  padding-inline-start: 0.75em;
  padding-inline-end: 0.75em;
  padding-block-end: 0.625em;
  border-style: none;
}

.scripton pre {
  border: none;
  text-wrap: auto;
}

legend {
  padding:0
}

.input-group.form-group {
  margin-bottom: 15px;
}

.input-group.form-group input:focus-visible {
  outline: none;
  border: none;
}

[id^="user"], [id^="password"], [id^="host"] {
  border: none;
  padding: 10px;
  width: 50%;
  background: #272727;
  color: #fefefe;
}

.sync-abort .form-button {
  justify-content: center;
  align-items: center;
  height: 32px;
  border-radius: 2px;
  background: #636363;
  cursor: pointer;
  color: #fefefe;
  font-family: monospace;
  font-size: 14px;
  border: none;
  float: left;
  padding: 0;
  width: 15%;
  margin-right: 15px;
}

.tooltip {
  position: relative;
  display: inline-block;
  margin: 10px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 500px;
  background-color: #181818;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  top: -10px;
  left: calc(100% + 10px);
  opacity: 0;
  transition: 0.3s;
  white-space: pre-line;
  border-image: linear-gradient(to right, hsla(318, 45%, 53%, 1), hsla(337, 78%, 60%, 1), hsla(3, 100%, 68%, 1), hsla(11, 100%, 68%, 1), hsla(33, 100%, 67%, 1)) 1;
  border-style: solid;
  border-width: 2px;
  font-weight: normal;
  box-shadow: 0 0 2px #000000;
  font-family: monospace;
  font-size: 14px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transition: 0.3s;
}

.form-options {
  position: relative;
  float: right;
  vertical-align: middle;
}
    
input[type=radio] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 8px;
  border-radius:50%;
  vertical-align: bottom;
  transition: 0.1s;
  background: #272727;
  color: #818181;
  box-shadow: 0 0 2px #000000 inset;
}
   
input[type=radio]:checked {
  transition: 0.1s;
  background-color: #ffb357;
  box-shadow: none;
}
   
input[type=radio]:hover{
  cursor: pointer;
}

.form-options label {
  cursor: pointer;
  margin-left: 10px;
}

button#trash {
  background-color: transparent;
  border: none;
  color: #fefefe;
  cursor: pointer;
}
