body{
  background-color:#e6f3f6;
}
.editor-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  width: 83%;
  margin: auto;
  margin-top: 2%;
  margin-bottom: 2%;
  transition: width 0.5s ease;
}

.editor-container.expanded {
  width: 100%;
}

#loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.margin-view-overlays{
  background-color: #e3e4de;
}

#loaderCircle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

#loaderRing {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px solid #fff;
  border-radius: 50%;
  animation: colorChange 1s linear forwards;
}

#loaderBarContainer {
  position: absolute;
  width: 100%;
  height: 100%;
}

#loaderBar {
  width: 100%;
  height: 100%;
  background-color: #3498db;
  animation: fillAnimation 1s linear forwards;
}

#loaderPercentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  text-align: center;
  z-index: 1;
  color: #fff;
}

#loaderText {
  font-size: 16px;
  margin-top: 10px;
  text-align: center;
}

#loadingMessage{
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

@keyframes fillAnimation {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes colorChange {
  0% {
    border-color: #fff;
  }
  100% {
    border-color: #3498db;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  0%,
  10%,
  20%,
  30%,
  40%,
  50%,
  60%,
  70%,
  80%,
  90%,
  100% {
    opacity: 0;
  }
  5%,
  15%,
  25%,
  35%,
  45%,
  55%,
  65%,
  75%,
  85%,
  95% {
    opacity: 1;
  }
}

h2 {
  color: #333;
  margin-bottom: 20px;
}

#editor {
  display: flex;
  flex-direction: row; /* Default to horizontal alignment */
}

#jsonInput, #adActionBtn, #jsonOutput{
  height: 600px !important;
  font-size: 14px;
  box-sizing: border-box;
  resize: none;
}


#result {
  display: flex;
  flex-direction: row; /* Default to horizontal alignment */
  justify-content: space-between;
}

.output {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px;
  white-space: pre-wrap;
  overflow: auto;
}

#formattedJson{
  display: none;
}

button,
.upload, label {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
  background-color: #094550;
  color: #fff;
  border: none;
  transition: background-color 0.3s;
}

.json-in-out-formatter{
    display: flex;
    align-items: center;
}

.centered-text {
  flex: 1;
  text-align: center;
}
.icon-right {
  margin-left: 10px; /* Adjust margin as needed for spacing */
}

.btn-danger-red:hover {
  background-color: #8b0000;
}
.btn-danger-red {
  background-color: #dc3545;
}
button:hover,
label:hover {
  background-color:#005669;
}

#handleFileUpload {
  display: none;
}

@media (min-width: 767px) {
  .input-json-data{
    padding: 0 0 0 12px;
  }
  .output-json-data{
    padding-left: 1px;
  }
  .action-group{
    display: flex;
    gap: 15px;
    background-color:#06BBCC;
    padding: 20px;
    margin-top: -2px;
    padding-left: 4%;
  }
}
pre[class*=language-]{
  padding: 0 0 0 1em !important;
}
/* Media query for mobile devices */
@media (max-width: 767px) {
  #editor,
  #result,
  button,
  label {
    flex-direction: column;
    align-items: center;
  }
  #jsonInput, #jsonOutput{
    height: 150px;
  }
  .editor-container{
    width: 100%;
  }
  .action-group {
    position: relative;
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    flex-direction: column;
    background-color: #06BBCC;
    padding: 25px;
  }
  #sand-timer {
    margin: auto;
  }
  .input-json-data, .output-json-data{
    width: 100%;
    height: 150px;
    margin-bottom: 8%;
  }
  .cookie-consent-button {
    width: 50% !important;
  }
}

.action-json-formatter{
  border-radius: 10px;
}

#errorMsg {
  color: #C03;
}

.json-node.collapsed > .json-content {
    display: none;
}

.json-node .json-toggle {
    margin-left: 10px;
    color: blue;
}

.site-logo {
    width: 50px;
    height: 50px;
}

/* Styles for the JSON icon */
.json-icon {
    font-size: 24px; /* Adjust the size as needed */
    transform: translate(7.27755px, -13.3533px);
}

#sand-timer {
  position: relative;
  width: 10px;
  height: 30px;
  background-color: yellow;
  border-radius: 10px;
  overflow: hidden;
  animation: rotate 3s infinite linear;
  margin-left: 20px;
  margin-top: 3px;
  display: none;
  margin-right: 10px;
}

.sand {
  position: absolute;
  width: 100%;
  height: 50%;
  background-color: #e74c3c;
  animation: sandFall 3s infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(180deg);
  }
}

@keyframes sandFall {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

.header-container {
  display: flex;
  align-items: center;
}

.title,
.tagline {
  display: block;
  margin: 0;
  font-size: 24px;
}
.tagline{
  font-size: 11px;
}





