/* _____________________________
  |                             |
  |   Copyright (C) 2022, JEP   |
  |_____________________________|

  formulate.css is part of the formulate plugin.
*/

.formulate-root {
  width: 100%;
  min-height: 100%;
  overflow: auto;
  position: relative;
}

a {
  color: inherit;
}

h1, h2 {
  text-align: center;
}

iframe {
  width: 100%;
  border: none;
}

video {
  max-width: 100%;
}

.content {
  padding: 20px 5%;
  position: relative;
}

.popup {
  position: fixed;
  background: rgba(255,255,255,.8);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90000;
}

.popupbox {
  background: #ffffff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 10px rgb(0 0 0 / 20%);
  border-radius: 5px;
}

.popupx {
  background: url(img/delete.svg);
  width: 16px;
  height: 16px;
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  z-index: 10;
}

.popupbody {
  padding: 10px 25px 25px 25px;
  overflow: auto;
  max-height: 80vh;
}

.popupbody::-webkit-scrollbar {
	-webkit-appearance: none;
	width: 7px;
}
  
.popupbody::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background-color: rgba(0, 0, 0, .3);
	box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

.formulate-loading {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  opacity: 0.5;
  position: absolute;
  z-index: 100000;
  display: none;
}

.formulate-loading .symbol {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}

.formulate-loading img {
	-webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.formulate-loading p {
  text-align: center;
}

.formulate-group {
  margin: 0 10px 30px 0;
  vertical-align: top;
  display: inline-block;
}

.formulate-field {
	margin: 0 5px 5px 0;
  width: 100%;
  vertical-align: top;
}

.formulate-title {
  width: 100%;
}

.formulate-subtitle {
	margin: 8px 0 7px 0;
  width: 100%;
}

.formulate-label {
  padding: 15px 0 0px 0;
  height: 20px;
  display: block;
  cursor: inherit;
}

.formulate-link {
  font-weight: bold;
  display: block;
  cursor: pointer;
}

.formulate-link:hover {
  text-decoration: underline;
}

.formulate-gap {
  height: 20px;
}

.formulate-tag {
	margin: 0 5px 5px 0;
	padding: 5px 8px 5px 6px;
  width: auto !important;
	background: #ffffff;
	border: 1px solid #dddddd;
	border-radius: 4px;
	vertical-align: top;
	display: inline-block;
}

.formulate-tag p {
  margin: 1px 0;
  vertical-align: top;
  display: inline;
}

.formulate-card {
	margin: 0 10px 10px 0;
	padding: 15px 20px;
  width: auto !important;
	background: #ffffff;
	border: 1px solid #dddddd;
	border-radius: 4px;
	vertical-align: top;
	display: inline-block;
}

.clickable {
  cursor: pointer;
}

.clickable:hover {
  opacity: .8;
}

.formulate-card .clickable:hover {
	background: #f8f8f8;
  opacity: 1;
}

.formulate-card h2, .formulate-card h3 {
  margin: 8px 0;
}

.formulate-card p {
  margin: 8px 0;
}

.formulate-expandable {
  margin: 10px 0;
}

.formulate-expandable .expandableheader {
  padding: 4px 15px;
  width: auto;
  min-height: 20px;
  background: #000000;
  color: #ffffff;
  border-radius: 3px;
  font-size: 11pt;
  text-align: left;
  cursor: pointer;
}

.formulate-expandable .expandableheader p {
  margin: 3px 0;
  font-size: inherit;
}

.formulate-expandable .expandableheader:hover {
  opacity: .7;
}

.formulate-expandable .expandableheader .headercontent {
  width: calc(100% - 30px);
  font-weight: bold;
  display: inline-block;
}

.formulate-expandable .expandableheader .formulate-controls-thumb-button {
  float: right;
  margin: 2px 0;
  background: #ffffff;
  display: inline-block;
}

.formulate-expandable .expandablebody {
  margin-top: 10px;
  height: 0;
  -webkit-transition: height .5s;
  transition: height .5s;
  overflow: hidden;
}

.expandablecontent {
  border: 1px solid rgba(0,0,0,0);
}

.formulate-object-editor label {
  padding: 10px 0 5px 0;
  display: block;
}

.formulate-object-editor .body {
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  width: auto;
  min-width: auto;
  border-bottom: 1px solid #eeeeee;
  border-left: 1px solid #eeeeee;
  border-bottom-left-radius: 4px;
  overflow: hidden;
  position: relative;
}

.formulate-object-editor .list {

}

.formulate-object-editor .list input {
  border-color: #ffffff;
  padding: 4px 5px;
  height: 20px;
}

.formulate-object-editor .list input[type=checkbox] {
  height: 18px;
  margin: 0 5px;
}

.formulate-object-editor .key {
  width: 100px;
  text-align: right;
  vertical-align: top;
  float: left;
}

.formulate-object-editor .key input {
  padding: 0 4px;
  height: 20px;
  width: 100%;
  border: 1px solid #ffffff;
  text-align: right;
  display: inline-block;
}

.formulate-object-editor .formulate-controls-thumb-button {
  padding: 1px;
  float: left;
  display: inline-block;
}

.formulate-object-editor input:focus {
  color: #000000;
  border-color: #66aaff;
}

.formulate-object-editor .add {

}

.formulate-object-editor .add .key {
  text-align: right;
}

.formulate-object-editor .add .formulate-controls-input, .formulate-object-editor .add input, .formulate-object-editor .add .formulate-controls-display {
  height: 20px;
  min-height: auto;
  border-color: #ffffff;
  display: inline-block;
}

.formulate-object-editor .add .formulate-controls-select {
  height: auto;
  border: none;
}

.formulate-object-editor .formulate-controls-frame {
  border: none;
}

.formulate-object-editor .buttonlist .formulate-controls-thumb-button {
  margin: 1px 0;
}

.formulate-object-editor input:focus, .formulate-object-editor .formulate-controls-frame:focus {
  border-color: #66aaff;
}

.formulate-object-editor .add .formulate-controls-input {
  width: 100px;
  overflow: hidden;
  float: left;
}

.formulate-object-editor .add input::placeholder {
  color: #bbbbbb;
}

.formulate-object-editor .add .formulate-controls-select {
  width: auto;
}

.formulate-object-editor .add .formulate-controls-frame {
  border-color: #ffffff;
}

.formulate-object-editor .add .formulate-controls-select .display {
  padding: 0 20px 0 4px;
  color: #aaaaaa;
}

.formulate-object-editor .add .formulate-controls-dropdown-button {
  padding: 2px 0;
  background: #aaaaaa;
}

.formulate-object-editor .property {
  margin: 0 0 5px 0;
}

.formulate-object-editor .add .formulate-controls-searchselect {
  height: auto;
  width: auto;
}

.formulate-object-root {
  padding: 5px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 4px;
  overflow: hidden;
}

.objecttextarea textarea {
  background-image: repeating-linear-gradient(90deg, #f6f6f6 0 1px, transparent 1px 100%) !important;
  background-size: 14px 100px !important;
  background-position-x: 21px !important;
  white-space: pre;
  tab-size: 14px;
  text-decoration: underline 4px #99eebb;
  text-underline-offset: -7px;
}

.formulate-split {
  height: 100%;
  vertical-align: top;
  display: inline-block;
  overflow: auto;
}

@media only screen and (max-width: 700px) {
  .popupbox {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .popupbody {
    width: 91vw;
    height: 100vh;
    min-height: 95vh;
  }
}