body {
    margin: 0;
    font-family: "Roboto", "Noto", sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    background-color: white;
    color: black;
    font-size: 100%;
  }

  .vertical {
    flex-direction: column;
  }

  .horizontal {
    flex-direction: vertical;
  }

  .center {
    align-items: center;
  }

  .layout {
    display: flex
  }

  .flex {
    flex: 1
  }

  .wrap {
    flex-wrap: wrap;
  }

  .card {
    margin: 10px;
    padding: 10px;
    color: white;
    border-radius: 5px;
    background-color: #000;
    box-shadow: 0 1px 5px 0 rgba(255, 255, 255, 0.14), 0 1px 5px 0 rgba(255, 255, 255, 0.12), 0 1px 5px 0 rgba(255, 255, 255, 0.2), 0 1px 5px 0 rgba(255, 255, 255, 0.2);
  }

  input {
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  input:focus {
    border-color: #4a90e2;
    box-shadow: 0px 4px 8px rgba(74, 144, 226, 0.3);
  }
  
  input::placeholder {
    color: #aaa;
  }

  textarea {
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  }
  textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0px 4px 8px rgba(74, 144, 226, 0.3);
  }
  textarea::placeholder {
    color: #aaa;
  }

  .grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
  }

  .grid5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0 auto;
  }
  
  .cell {
    padding: 5px;
    text-align: left;
   }
   .cell-right {
    padding: 5px;
    text-align: right;
   }

  /* Wrapper styling */
.light-flash {
  position: relative;
  display: inline-block;
  padding: 20px;
  background-color: #333;
  color: #fff;
  font-size: 18px;
  border-radius: 8px;
  overflow: hidden; /* Ensure the light effect is contained */
}

/* Light effect */
.light-flash::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%; /* Start off-screen */
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-45deg);
  z-index: 1;
  animation: flash 1s ease-out forwards;
}

/* Content should be on top */
.light-flash > * {
  position: relative;
  z-index: 2;
}

/* Keyframes for the light flash */
@keyframes flash {
  0% {
    left: -100%;
    opacity: 1;
  }
  50% {
    left: 50%;
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.file-input-container {
  width: 90%; /* Makes it responsive for mobile */
  max-width: 400px; /* Sets a maximum width */
  text-align: center; /* Centers the label */
}

.file-input-label {
  display: inline-block;
  width: 80%; /* Full width of the container */
  padding: 12px 20px;
  font-size: 16px; /* Readable font size */
  text-align: center; /* Centers the text */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Hand cursor on hover */
  border: none;
}

.file-input-label:hover {
  background-color: #0056b3; /* Slightly darker blue on hover */
}

.file-input {
  display: none; /* Hides the default file input */
}

.json-tree {
  font-family: monospace;
  margin-bottom: 3px;
  padding: 0;
}

.json-tree ul {
  list-style-type: none; /* Remove default bullet points */
  margin-left: 20px; /* Indentation for nested levels */
  padding: 0;
}

.json-tree li {
  margin: 5px 0;
}

.json-tree .key {
  color: rgb(178, 195, 250);
  font-weight: bold;
  cursor: pointer;
}

.json-tree .value {
  color: rgb(2, 216, 2);
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
  position: relative;
  padding: 10px;
  margin: 5px 0;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #ccc;
  border-radius: 4px;
  margin-right: 10px;
  transition: background-color 0.3s;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #4caf50;
}

.checkbox-container input:checked ~ .checkmark:after {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.button {
  padding: 5px 10px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: #494949;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-red {
  padding: 5px 10px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: #880000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;  
}

.button-red:hover {
  background-color: #ff0000;
  color: black;
}

.button-red:active {
  transform: scale(0.95);
}

.button-red.disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.button-red.loading {
  background-color: #6c757d;
  cursor: progress;
}

.button-small {
  padding: 4px 7px;
  font-size: 12px;
}

.button-big {
  font-size: 20px;
}

.button:hover {
  background-color: #b3b1b1;
  color: black;
}

.button:active {
  transform: scale(0.95);
}

.button.disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.button.loading {
  background-color: #6c757d;
  cursor: progress;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

.tabs {
  font-family: Arial, sans-serif;
  margin: 20px auto;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background: #000;
}

.tab-titles {
  display: flex;
  border-bottom: 1px solid #ddd;
  background-color: #000;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
}

.tab-title {
  flex: 1;
  padding: 10px 20px;
  text-align: center;
  cursor: pointer;
  background: #000;
  border-bottom: 2px solid black;
  outline: none;
  transition: background 0.3s, color 0.3s;
  font-size: 16px;
}

.tab-title:last-child {
  border-right: none;
}

.tab-title.active {
  background: #04172c;
  color: white;
  border-bottom: 2px solid white;
  text-shadow: 0 0 1px #ffffff, 0 0 1px #ffffff, 0 0 1px #ffffff
}

.tab-title:not(.active):hover {
  background: #000000;
}

.tab-content {
  box-sizing: border-box;
  padding: 20px;
}

.saved {
  color:green;
}


.saving {
  font-weight: bold;
  color: #ffffff; 
  text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc, 0 0 30px #00ffcc;

  animation: glow-pulse 1s infinite; 
}

@keyframes glow-pulse {
  0% {
    text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc, 0 0 20px #00ffcc;
  }
  50% {
    text-shadow: 0 0 20px #00ffcc, 0 0 40px #00ffcc, 0 0 60px #00ffcc;
  }
  100% {
    text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc, 0 0 20px #00ffcc;
  }
}

.callout-overlay {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; 
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.4); 
  z-index: 1000; 
}

.callout-overlay.visible {
  display: flex;
}

.callout {
  position: relative;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 90%; 
  max-width: 400px; 
  z-index: 1001;
}

.callout-info {
  border-left: 4px solid #2196f3;
  color: #3178c6;
}

.callout-warning {
  border-left: 4px solid #ffc107;
  color: #ff9800;
}

.callout-error {
  border-left: 4px solid #f44336;
  color: #d32f2f;
}

.callout-success {
  border-left: 4px solid #4caf50;
  color: #388e3c;
}

.callout-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

.callout-close-btn:hover {
  color: #000;
}

.img-container {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 1s;
}

.img-loading {
  align-self: end;
  min-height: 0;
  transition: visibility 1s;
  visibility: hidden;
}

.img-container-loaded {
  grid-template-rows: 1fr;
}

.img-loaded {
  visibility: visible;
}

.i-code {
  background-color: #232323;
  padding: .15rem .3rem;
  border-radius: .25rem;
  font-weight: 500;
}

.i-no-code {
  padding: .15rem .3rem;
  font-weight: 500;
}

.hint-container {
  display: rel;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hint-callout {
  color: black;
  background-color: #cbf3bf;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  font-size: 16px;
  box-shadow: 0 8px 9px rgba(255, 255, 255, 0.5);
}

.hint-bouncing-arrow {
  margin-top: 8px;
  font-size: 24px;
  color: green;
  animation: hint-bounce 1s infinite;
}

@keyframes hint-bounce {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
}

.table-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: sans-serif;
  color: black;
}

.row {
  display: flex;
  padding: 8px 0;
}

.cell {
  flex: 1;
  padding: 4px 8px;
}

/* Header styling */
.row.header {
  font-weight: bold;
  background-color: #444;
  color: white;
}

/* Alternate row colors using CSS only */
.table-container .row:nth-child(odd):not(.header) {
  background-color: #f9f9f9;
}

.table-container .row:nth-child(even):not(.header) {
  background-color: #ffffff;
}