
@font-face {
  font-family: 'Nulshock'; /* A name you choose to use later in your CSS */
  src: url('resources/Nulshock Bd.otf');
  /* font-weight: normal;
  font-style: normal;
  font-display: swap; /* Prevents render-blocking, improves performance */ */
}

:root {
  --background-color: #ccc;
  --foreground-color: #eee;
  --edge-thickness: 10px;
  /* --font-size-large: 1.2rem;
  --spacing-medium: 16px; */
}

html {
  /* Firefox */
  scrollbar-width: none;
  /* IE and Edge */
  -ms-overflow-style: none;
}

/* For Chrome, Safari, Opera, and most WebKit-based browsers */
html::-webkit-scrollbar {
  display: none;
  /* Or use width: 0; for vertical, or height: 0; for horizontal scrollbars */
}

body {
  background-color: var(--background-color);
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE 10 and IE 11 */
  user-select: none;         /* Standard syntax */
  margin: 0;
  /* overflow: hidden; */
}

#toolbar {
  margin: var(--edge-thickness);
}

canvas {
  background-color: var(--foreground-color);
}

input.randomizeInput {
  width: 8ch;
}

label.randomizeLabel {
  margin: 0 1ch 0 0;
}

div.randomizeValueContainer {
  margin: 0 0 0 4ch;
}

div.randomizeValueContainer > * {
  float: left;
}
div.randomizeValueContainer .plusmn {
  margin: 0 1ch;
}

#randomizeNeuronAttributesDialog form {
  display: flex;
  flex-direction: column;
}

button.icon {
  margin: 0;
  padding: 0 2px;
  border-width: 2px;
  border-radius: 6px;
  background-color: var(--foreground-color);
  border-style: outset;
  border-color: var(--background-color);
}
button.icon.disabled {
  background-color: var(--background-color);
}
button.icon:active {
  border-style: inset;
  border-width: 2px;
}
button.icon > svg {
  color: #000;
  width: 24px;
  height: 24px;
  margin: 3px 3px;
}

#scopeCanvas {
  background-color: #fff;
}

#page {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
#top-bar {
  display: flex;
}
#title {
  float: right;
}
#title > h1 {
  margin: 5px;
  padding: 0px;
  font-family: 'Nulshock', sans-serif;
}
#toolbar {
  flex: 1;
  display: flex;
  height: 30px;
  align-items: center;
  width: 400px;
}
button {
  background-color: var(--foreground-color);
  border: 2px outset var(--background-color);
}
button:active {
  border: 2px inset var(--background-color);
}

#runSpeedContainer {
  display: flex;
  align-items: center;
  margin: 0 10px;
}

#toolbar button {
  flex: 0;
  height: 100%;
}

#toolbar select {
  padding: 6px 0;
}

#toolbar div.toolDivider {
  width: 2px;
  height: 90%;
  border-width: 2px;
  border-style: inset;
  margin: 0 5px;
}

#toolbar label, div.toolLabel {
  margin: 0 4px 0 0;
}

#toolbar .toolGroup {
  display: flex;
  align-items: center;
}

#runButton {
  padding: 0px 10px;
  margin: 0px 5px;
}
#modeContainer {
  display: flex;
  height: 100%;
  align-items: center;
  margin: 0 10px;
}
/* .modeButton {
  flex: 1;
} */

#toolbar input[type="range"] {
  flex: 0;
  margin: 0px 5px;
  /* height: 100%; */
}
#toolbar label {
  text-align: right;
  margin: 0px 5px;
}

.column_container {
  flex: 1;
  display: flex; /* Enables flexbox layout */
  width: 100%;   /* Optional: makes the container span the full page width */
  /* overflow: auto; */
  /* height: 100%; */
  /* Optional styles for visibility */
  /* border: 2px solid #ccc; */
  /* padding: var(--edge-thickness); */
  background-color: var(--background-color);
}

.left-column {
    flex: 1 0 70%; /* Shorthand for flex-grow: 0, flex-shrink: 0, flex-basis: 30% */
    /* background-color: #f0a3a3; /* Light red background */ */
    /* padding: 15px; */
    box-sizing: border-box; /* Ensures padding/border are included in the 30% width */
}

.right-column {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 30%;
    /* flex: 0 0 200px; /* Shorthand for flex-grow: 0, flex-shrink: 0, flex-basis: 70% */ */
    /* background-color: #a3def0; /* Light blue background */ */
    /* padding: 15px; */
    box-sizing: border-box; /* Ensures padding/border are included in the 70% width */
}

.context-menu {
  display: none; /* Hidden by default */
  position: absolute; /* Positioned by JS */
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
  /* Add padding, border-radius, etc. */
}
.context-menu ul { list-style: none; padding: 0; margin: 0; }
.context-menu li { padding: 8px 12px; cursor: pointer; }
.context-menu li:hover { background: #f0f0f0; }
.context-menu input { padding: 8px 12px; cursor: pointer; }
.context-menu input:hover { background: #f0f0f0; }

.tabs-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0px 5px 0px 5px;
}

.tab-buttons {
  display: flex;
  flex: 0;
  /* background-color: #f1f1f1; */
}

.tab-panels {
  flex-grow: 1;
  background-color: #eee;
  padding: 12px 12px 0px 12px;
}

h1,h2,h3,h4,p {
  margin: 0px;
  padding: 0.25em 0;
}

.tab-button {
  background-color: #ddd; /* Inactive tab color */
  /* float: left; */
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  border-radius: 15px 15px 0px 0px; /* Top corners rounded */
  border: 0px solid #ccc; /* General border */
  border-bottom: none; /* Hide bottom border for inactive tabs */
  box-sizing: border-box;
  flex: 1;
  height: 50px;
}

/* Styling for the content areas */
.tabpanel {
  /* display: none; /* Hide by default */
  /* border: 1px solid #000; */
  border-top: none; /* Connects visually with the active tab */
  height: 100%;
}

@keyframes flash-bg {
  0% { background-color: initial; } /* Start with the original color */
  50% { background-color: yellow; } /* Flash to yellow */
  100% { background-color: initial; } /* Return to original color */
}
.flash {
  animation: flash-bg 0.25s ease-out 30; /* Run 3 times over 0.5s each */
}
