* {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/*GLOBAL*/
.input-container, .json-results {
height: calc(80vh - 100px);
}

button:disabled {
opacity: .5;
cursor: not-allowed;
}
button:active {
scale: 0.95;
}

/* Input areas */

#global-input {
  display: flexbox;
  flex-direction: row;
  position: relative;
  height: 30px;
}
#global-input #funnel-name {
  flex-grow: 4;
  min-width: 250px;
}
.name-btns {
  float: right;
  position: absolute;
  right: 0%;
  top: 10%;
  height: 100%;
  flex-grow: 1;
}
.name-btns button {
  border-radius: 999px;
  margin-left: 5px;
  margin-right: 5px;
  font-weight: 500;
  font-size: 14px;
  padding: 2px 10px;
  width: 70px;
  border: 1px solid lightgrey;
  box-shadow: 0px 4px 9px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease 0s;
  text-transform: uppercase;
}
.name-btns button:focus:not(button:disabled),
.name-btns button:hover:not(button:disabled) {
  transform: translateY(-2px);
  border: 1px solid darkgray;
}
.name-save {
  background-color: rgba(46, 229, 157, .8);
  color: rgba(0,0,0,1.0);
}
.name-save:focus:not(button:disabled),
.name-save:hover:not(button:disabled) {
  background-color: rgba(46, 229, 157, 1);
}
.name-edit {
  background-color: white;
}
#fstep-form {
  display: flexbox;
  border: 1px solid #2EE59D;
  border-radius: 25px;
  width: 600px;
  background-color: white;
  box-shadow: 0px 1px 30px 1px rgba(0, 0, 0, 0.3);
  margin-top: 30px;
}
#fstep-input {
  padding-left: 20px;
  padding-right: 20px;
}

#fstep-input .input-item  {
  display: flex;
  flex-direction: column;
}

#fstep-input .input-item label,
#fstep-input .input-item input {
  display: flex;
  flex-direction: column;
}
#fstep-input .input-item label {
  margin-top: 20px;
  margin-bottom: 5px;
  font-weight: 400;
}
label {
  color: rgba(0,0,0,0.7);
  font-size: 15px;
  margin-left: 5px;
}

/* Two Fields / 1 Row */
#fstep-input .row-1_2 {
  display: flex;
}
#fstep-input .row-1_2 .input-item.one {
  flex: 1
}
#fstep-input .row-1_2 .input-item.two {
  flex: 2;
  margin-left: 10px;
}
/*Single field one item*/
#fstep-input .row-1 {
  display: flex;
}
#fstep-input .row-1 .input-item.one {
  width: 60%;  
}

input {
border-radius: 999px;
}
textarea {
  border-radius: 20px;
}
input,
textarea {
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  color: rgba(0, 0, 0,.6);
  font-size: 15px;
  background-color: rgba(204, 249, 231,.2);
  border: 1px solid rgba(0,0,0,0.3);
  transition: all 0.1s ease 0s;
}
input:disabled,
textarea:disabled {
  background-color: rgba(0, 0, 0, .1);
  cursor: not-allowed;
}
#fstep-input .input-item textarea {
  width: 100%;
  resize: vertical;
}

input:active:not(input:disabled),
textarea:active:not(textarea:disabled),
input:focus:not(input:disabled),
textarea:focus:not(textarea:disabled) {
  color: rgba(0,0,0,0.7);
  outline: 1px solid rgba(0, 0, 0, 0.6);
  background-color: rgba(204, 249, 231,0.5);
}

/*Step Editor Buttons*/
.action-btns {
  margin-top: 30px;
  width: 100%;
  margin-bottom: -1px;
  background-color: white;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
}
.fstep-cancel,
.fstep-save {
  width: 50%;
  height: 40px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.2s ease 0s;
}
.fstep-cancel {
  border-bottom-left-radius: 25px;
  background-color: rgba(255, 46, 46, 0.8);
  color: white;
}
.fstep-save {
  border-bottom-right-radius: 25px;
  background-color: rgba(46, 229, 157, 0.7);
  color: rgba(0,0,0,0.6);
}
.fstep-cancel:hover:not(button:disabled),
.fstep-save:hover:not(button:disabled),
.fstep-cancel:active:not(button:disabled),
.fstep-save:active:not(button:disabled) {
  transform: translateY(-5px);
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.3);
}
.fstep-cancel:hover:not(button:disabled),
.fstep-cancel:active:not(button:disabled) {
  background-color: rgba(255, 46, 46, 1);
}
.fstep-save:hover:not(button:disabled),
.fstep-save:active:not(button:disabled) {
  background-color: rgba(46, 229, 157, 1);
}

/* Output areas */

.json-results {
padding: 10px;
display: flex;
flex-direction: column;
border: 1px solid #2EE59D;
  border-radius: 25px;
  width: 500px;
  background-color: white;
  box-shadow: 0px 1px 30px 1px rgba(0, 0, 0, 0.3);
}
.funnel-name-out {
font-size: 14px;
font-weight: 500;
text-align: center;
margin-bottom: 5px;
border-bottom: 1px solid gray;
padding-bottom: 5px;
}

.json-pretty {
margin-bottom: 20px;
padding: 5px;
flex: 3;
overflow-y: scroll;
overflow-wrap: break-word;
word-break: break-all;
}
.json-pretty .comma {
  margin-left: 20px;
}

.pre-div {
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Space items at the start and end of the container */
  align-items: center; 
  position: relative;
}

.pre-div:hover,
.pre-div:hover > .pre-btn-div {
background-color: rgba(181, 252, 201, 0.3);
display: flex;
}

pre.json {
margin: 0;
font-size: 12px;
white-space: pre-wrap;
padding-left: 5px;
padding-right: 5px;
transition: all 0.2s ease 0s;
flex: 1;
}

.pre-btn-div {
  position: absolute;
  bottom: 0;
  right: 0;
  float: right;
  display: none;
  margin-bottom: 10px;
}
.pre-btn-div button {
border-radius: 999px;
margin-right: 5px;
font-size: 12px;
font-weight: 500;
transition: all 0.2s ease 0s;
border: 1px solid lightgray;
padding: 3px 8px;
text-transform: uppercase;
}
.pre-btn-div button:hover {
transform: translateY(-2px);
border: 1px solid darkgray;
}
.pre-delete-btn {
background-color: rgba(255, 46, 46, 0.8);
color: white;
}
.pre-delete-btn:hover {
background-color: rgba(255, 46, 46, 1.0)
}
.pre-edit-btn {
background-color: rgba(224, 224, 224, 0.7);
color: rgba(0,0,0,0.6);
}
.pre-edit-btn:hover {
background-color: rgba(224, 224, 224, 1.0);
}

.json-string {
border: 1px solid lightgray;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
flex: 1;
overflow-y: scroll;
}

.copy-container {
display: inline-flex;
text-align: center;
padding: 1px 5px 1px 5px;
position: sticky;
background-color: white;
width: 100%;
}
.copy-text {
flex: 1;
font-weight: 500;
font-size: 12px;
padding-top: 5px;
color: blue;
}
.copy-img  {
opacity: .8;
width: 25px;
margin-right: 10px;
}
.copy-img:hover {
opacity: 1;
scale: 1.05;
}
.copy-img:active {
scale: 0.9;
}

.json-results .json-string #output-string {
font-size: 12px;
padding: 10px 15px 10px 10px;
overflow: scroll;
}

/* Style for the move buttons and JSON output */
.move-buttons {
  display: flex;
  flex-direction: column; /* Vertically oriented */
}

.move-buttons button {
  border: 1px solid lightgray;
  padding: 10px 0;
  margin-bottom: 0px; /* Add some space between the buttons */
  text-align: center; /* Center the button text */
  width: 15px; /* Adjust the width as needed */
}

/* Style for the Up button */
.move-buttons .pre-up-btn {
  background-color: rgba(46, 229, 157, 0.8);
  color: white;
  border-top-right-radius: 7.5px;
  border-top-left-radius: 7.5px;
}

.move-buttons .pre-up-btn:hover {
  background-color: rgba(46, 229, 157, 1.0);
}

/* Style for the Down button */
.move-buttons .pre-down-btn {
  background-color: rgba(46, 229, 157, 0.8);
  color: white;
  border-bottom-right-radius: 7.5px;
  border-bottom-left-radius: 7.5px;
}

.move-buttons .pre-down-btn:hover {
  background-color: rgba(46, 229, 157, 1.0);
}

.move-buttons .pre-up-btn:disabled {
  background-color: lightgray; /* Disabled background color */
  cursor: not-allowed;
}

.move-buttons .pre-down-btn:disabled {
  background-color: lightgray; /* Disabled background color */
  cursor: not-allowed;
}


