body {
    font-family: 'Roboto', sans-serif;
    background-color: #F5F5F5;
    color: black;
    margin: 0;
    padding-bottom: 60px; /* Adjust this value if necessary */
}

html {
    height: 100%;
}

/* Add this content to the style.css file */

.jssp-generator {
  user-select: none;
  /* Add your styles for the generator container here */
}

.jssp-generator label {
  /* Styles for the labels */
  margin-right: 8px;
}

.first-row-button{
  background-color: #4A90E2 !important; /* Blue */
}

.popup-button{
  background-color: #4A90E2 !important; /* Blue */
  display: block !important; /* Makes the button a block element */
  width: auto !important; /* Ensure the button's width is not full-width */
  margin: 10px auto !important; /* Adds top margin for space, centers horizontally */
  text-align: center !important; /* Centers the text inside the button */
}
.second-row-button{
  background-color: #7ED321 !important;; /* Blue */
}

#ResetStartBtn {
  background-color: #7ED321; /* Green */
}

#autoSolBtn {
  background-color: #7ED321; /* Green */
}

#CompactBtn {
  background-color: #7ED321; /* Green */
}


#HideBtn {
  background-color: #D0021B; /* Red */
  /* Rest of the button styles */
}

#ShowBtn {
  background-color: #7ED321; /* Green */
  /* Rest of the button styles */
}

.jssp-generator input[type="number"] {
  /* Styles for the number inputs */
  margin-right: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px;
  width: 35px;
  font-size: 14px; /* Increased font size */
  /* Explicitly specifying the 'Roboto' font for inputs if needed */
  font-family: 'Roboto', sans-serif;
  margin-top: 10px; /* This adds space between rows of buttons */
}

.jssp-generator button {
  /* Styles for the buttons */
  background-color: #007bff;
  font-weight: bold;
  border: 2px solid black;
  border-radius: 4px;
  padding: 6px 12px;
  margin-right: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  /* Explicitly specifying the 'Roboto' font for buttons */
  font-family: 'Roboto', sans-serif;
  font-size: 16px; /* Increased font size */
  background-color: transparent; /* Make the background transparent to begin with */
  /* Rest of the button styles */
}

.jssp-generator button:hover {
  /* Hover state for buttons */
  transform: scale(1.01); /* 1.01 means the element will be scaled to 101% of its original size */
}

.jssp-generator button:active {
  /* Active state for buttons */
  background-color: #cccccc; /* Darker grey background on active */
  border-color: #999999; /* Even darker border color on active */
}

.controls {
  display: flex; /* This will align the control-group divs horizontally */
  flex-wrap: wrap; /* This allows for wrapping items if they don't fit in one line */
  gap: 20px; /* This adds space between the control groups */
}

.control-group {
    display: flex; /* This will also align the button and textarea vertically */
    flex-direction: column; /* This stacks the button and textarea on top of each other */
    align-items: flex-start; /* This aligns items to the start of the flex container */
    margin-top: 10px; /* This adds space between rows of buttons */
}

.labels-container {
    display: flex; /* Use flexbox for the labels container as well */
    gap: 60px; /* Add some space between the labels */
    align-items: center;
    margin-top: 10px; /* This adds space between rows of buttons */
}

/* The Pop-up window */
.popup-window {
  position: fixed;
  width: auto; /* Omogoča prilagoditev širine */
  min-width: 350px; /* Minimalna širina, ki jo želite ohraniti */
  max-width: 90%; /* Maksimalna širina, da ne zapolni celotnega zaslona */
  left: 50%;
  top: 10%; /* Change this to move it closer to the top */
  transform: translateX(-50%); /* Change this to only affect the horizontal alignment */
  background-color: #fff;
  padding: 20px;
  border: 2px solid #444;
  z-index: 10000; /* Sit on top */
}

/* The Close Button */
.closePopUp {
  color: black;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.closePopUp:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.textarea-button {
  /* Styles for the buttons */
  user-select: none;
  background-color: #007bff;
  color: black;
  font-weight: bold;
  border: 2px solid black;
  border-radius: 4px;
  padding: 6px 12px;
  margin-right: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  /* Explicitly specifying the 'Roboto' font for buttons */
  font-family: 'Roboto', sans-serif;
  font-size: 16px; /* Increased font size */
  background-color: transparent; /* Make the background transparent to begin with */
  /* Rest of the button styles */
}

.textarea-button:hover {
  transform: scale(1.01); /* 1.01 means the element will be scaled to 101% of its original size */
}

.textarea-button:active {
  background-color: #cccccc;
  border-color: #999999;
}

#textarea-container {
  display: none; /* Hide the text areas initially */
}

textarea {
  width: 100%; /* Full-width text areas */
  margin-top: 10px; /* Space between text areas if stacked */
}

textarea#inputData,
textarea#solutionData {
  font-family: 'Roboto', sans-serif; /* Sets the Roboto font */
  font-size: 14px; /* Sets a standard font size, adjust as needed */
  /* Other styles for your textarea */
  border: 1px solid #ccc; /* Example border */
  border-radius: 4px; /* Rounded corners */
  padding: 8px; /* Inner spacing */
  width: 100%; /* Full width */
  box-sizing: border-box; /* Ensures padding doesn't add to the width */
  margin-bottom: 10px; /* Spacing after the textarea */
}
.content-wrap {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}

.row-separator {
  border-bottom: 1px solid #ccc; /* Color and thickness of the line */
  margin-top: 10px; /* Space above the line */
}

footer {
    margin-top: auto; /* Keeps the footer at the bottom */
}


/* Container for the menu icon */
.menu-icon-container {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
}

/* Styling the hamburger icon */
.menu-icon {
  display: inline-block;
  cursor: pointer;
  padding: 15px;
}

.bar1, .bar2, .bar3 {
  width: 35px;
  height: 5px;
  background-color: #333;
  margin: 6px 0;
  transition: 0.4s;
}

/* The menu content styling */
.menu-content {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background-color: #F5F5F5;
  box-shadow: -8px 0 6px -6px #222;
  padding-top: 60px; /* adjust padding to avoid overlap with the icon */
}

.menu-list {
  list-style-type: none; /* This removes the bullet points */
  padding: 0;
  margin: 0;
}

.menu-list li a {
  padding: 10px 20px;
  text-decoration: none;
  font-size: 16px; /* Adjust size as needed */
  display: block;
  background-color: #7ED321; /* The specified color */
  color: black;
  font-weight: bold;
  margin-bottom: 10px; /* Space between buttons */
  margin-right: 10px; /* Right margin */
  margin-left: 10px; /* Left margin */
  text-align: center;
  border: 2px solid black;  /* outline for each box */
  border-radius: 5px; /* Rounded corners for button effect */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
}

.menu-list li a:hover, .menu-list li a:focus {
  background-color: #9ee659; /* Darker shade for hover effect */
}

/* Style for close button */
.closebtn {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 36px; /* Adjust size as needed */
  margin-left: 50px;
  cursor: pointer;
  color: #333; /* Close button color */
  background-color: transparent; /* No background */
  text-decoration: none; /* This removes the underline */
}

.email-link {
    background-color: #89C9B8; /* This is a shade of blue */
    padding: 2px 4px; /* Optional: Adds some spacing around the text */
    border-radius: 4px; /* Optional: Rounds the corners of the background */
}

.floating-button {
  position: fixed;
  bottom: 20px;
  right: 10px;
  z-index: 10;

  padding: 10px 15px;
  background-color: #4A90E2;
  color: black;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid black;  /* outline for each box */
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 1000; /* Higher z-index value than the menu */
  /* Set a fixed width for both buttons */
  width: 147px; /* Example width - adjust as needed */
  text-align: center; /* Center the text inside the button */
}

.floating-button:hover {
  background-color: #99c1ef;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
    max-width: 100vw;
    overflow-x: hidden;
}

#gameBoard {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.jobOrder {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto; /* Add horizontal scrollbar if content overflows */
    white-space: nowrap; /* Prevent content from wrapping */
}

.orderName {
    user-select: none;
    font-weight: bold;
    width: 30px;
    text-align: center;
    margin-right: 10px;
}

.orderContainer {
    width: 100%; /* or set a fixed width if you prefer */
}

.machineUnit {
    user-select: none;
    height: 30px;
    display: inline-flex;
    align-items: center; /* Vertically centers the content */
    justify-content: center; /* Horizontally centers the content */
    line-height: 30px;
    overflow: hidden; /* Hide text that overflows */
    text-overflow: ellipsis;
  /*  font-size: clamp(8px, 5vw, 16px); /* Adjusts between 12px and 20px as the viewport width changes */
    color: black;
    font-weight: bold;
    border: 1px solid black;  /* outline for each box */
    transition: transform 0.3s ease; /* This provides a smooth transition effect when scaling */
    margin: 1px; /* Adding a little margin so adjacent machine boxes don't touch each other */
}

.machineUnit:hover {
    transform: scale(1.01); /* 1.01 means the element will be scaled to 101% of its original size */
}


.orderLabel {
    height: 30px;
    display: inline-flex;
    text-align: center;
    line-height: 30px;
    color: white;
    font-weight: bold;
    border: 2px solid white;  /* outline for each box */
    width: 30px;  /* adjust this width according to your needs */
    margin-right: 10px; /* spacing between the label and the machines */
}

.orderGroup {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 1px;
}


body {
    background-color: #F5F5F5;
    color: black;
}

h1, h2, h3, p {
  margin-left: 20px; /* Adjust the value as needed for your layout */
}

h1 {
    font-size: 2em; /* Change to the desired size */
    color: #2c3e50; /* deep blue */
    font-weight: bold; /* Adjust the weight of the font */
}

h2 {
    font-size: 1.5em; /* Change to the desired size */
    color: #4f8a8b; /* deep green */
    font-weight: normal; /* Adjust the weight of the font */
}

h3 {
    font-size: 1em; /* Change to the desired size */
    color: #4f8a8b; /* deep green */
    font-weight: normal; /* Adjust the weight of the font */
}
a, .button-primary {
    background-color: #89C9B8; /* Primary Color */
    color: black;
}

.button-secondary {
    background-color: #FFDAB9; /* Secondary Color */
    color: black;
}

.highlight {
    background-color: #FFB6C1; /* Accent Color */
    color: black;
}

.border-element {
    border: 1px solid #D1D1D1; /* Borders */
}

.box-shadow-element {
    box-shadow: 0 4px 8px 0 rgba(209, 209, 209, 0.2); /* Shadows */
}

/* Style the modal's background */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(255, 255, 255, 0.50); /* Light background with slight opacity */
  position: absolute; /* Stay in place */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px; /* You can adjust this as needed */
}

/* The Close Button */
.close {
  position: absolute;
  top: 10px; /* Adjust the top position as needed */
  right: calc((100vw - 700px) / 2); /* This assumes the modal content is 700px wide */  color: #000;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1000;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Add Animation - Zoom in the Modal */
.modal-content {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

.scheduled {
    opacity: 0.5; /* Makes the job a bit transparent to indicate it's scheduled */
    pointer-events: none; /* Makes the job not clickable anymore */
}

#machinesContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.machineRow {
    display: flex;
    width: 100%;
    align-items: center;
    margin-bottom: 2px;
}

.machine {
    user-select: none;
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    height: 30px;
    text-align: center;
    color: black;
    font-weight: bold;
    border: 2px solid black;
}

.maxTime {
    user-select: none;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    position: relative;  // or 'relative' depending on your layout needs
    left: 0; // To ensure it starts from the left boundary of its container
    // other desired styles
}

.jobContainer {
    position: relative;
    flex-grow: 1; /* This makes it take all available space */
    border: 1px dashed #aaa; /* Dashed border to visualize the container */
    height: 30px;
}

.jobPreview {
    position: absolute;
    bottom: -1px;  /* Adjust as needed based on your design*/
    z-index: 10;
    border: 5px dotted black;
    background-color: transparent;
    box-sizing: border-box;  /* Ensure width and height do not include the border*/
}

.jobPlace {
    user-select: none;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center; /* This aligns items horizontally */
    bottom: -1px;
  /*  font-size: clamp(8px, 5vw, 16px); /* Adjusts between 12px and 20px as the viewport width changes */
    z-index: 10;
    border: 1px solid black !important;  /* outline for each box */
    box-sizing: border-box;
}

.job.highlighted {
    border: 2px solid green;
}

.job.dimmed {
    opacity: 0.5;
}

.dimmed {
    opacity: 0.5;  // Make it semi-transparent
    pointer-events: none;  // Disable any mouse events like clicking
}

.tooltip {
    position: absolute;
    background-color: #F5F5F5;
    padding: 10px;
    font-size: 12px;
    border: 1px solid #D1D1D1;
    border-radius: 4px;
    z-index: 1000;
    white-space: nowrap;
}

.job:hover .tooltip {
  display: block;
}

.highlighted-job {
    border: 2px solid #1E88E5 !important;
    box-shadow: 0px 0px 5px rgba(30, 136, 229, 0.5) !important;
}

.highlighted-last-job {
    border: 2px solid #1E88E5 !important;
    box-shadow: 0px 0px 5px rgba(30, 136, 229, 0.5) !important;
}

.dottedLine {
    border-left: 1.5px dashed #888;
    height: 0; /* We'll set this dynamically using JavaScript */
    width: 0;
    position: absolute;
    left: 0; /* This will be updated with JS */
    top: 0;
}

#dottedLine2 {
    border-left-color: #DC143C; /* Gold color for dottedLine2 */
}

#dottedLine3 {
    border-left-color: darkgreen; /* Dark green color for dottedLine3 */
}

#benchmark-buttons {
  max-width: calc(100% - 200px); /* Replace [MenuWidth] with the actual width of your menu */
  margin: 0 20px; /* Add horizontal margin to the container */
}

#benchmark-buttons h2 {
  max-width: none; /* This removes the max-width restriction for h2 elements within the container */
  margin-left: 0px; /* This ensures h2 elements have a left margin */
  margin-right: 0px; /* Optional: adds a right margin if desired */
  /* Any other specific styling for h2 goes here */
}
.benchmark-btn {
  background-color: #4A90E2;
  color: black;
  font-weight: bold;
  border: 2px solid black;
  border-radius: 4px;
  padding: 6px 12px;
  margin-right: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  width: 100px; /* Smaller width */
  margin-bottom: 8px; /* Add margin to the bottom of each button */
}

.benchmark-btn:last-child {
  margin-bottom: 16px; /* More margin below the last button of each group */
}

.benchmark-divider {
  margin-top: 16px; /* Add more space above each new group */
  border-bottom: 2px solid #ccc; /* Optional: a line to visually separate groups */
  padding-top: 8px; /* Space above the line */
}

.benchmark-btn:hover {
  transform: scale(1.01);
  background-color: #99c1ef; /* You can change this if you want a different hover color */
}




hr {
  margin-top: 16px; /* Space above the divider */
  border: 0;
  height: 1px;
  background: #ccc;
  margin-bottom: 16px; /* Space below the divider */
}
