body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f4f4f4;
}

/* Title Styling */
.page-title {
  text-align: center;
  padding: 20px 0;
  background-color: #4CAF50;
  color: white;
  margin-bottom: 20px; /* Space between title and container */
}

.page-title h1 {
  margin: 0;
  font-size: 2.5em; /* Large font size for the title */
}

/* Container Styling */
.container {
  display: flex;
  text-align: center;
  flex-direction: column;
  width: 90%; /* General width for the container */
  margin: 0 auto; /* Center the container horizontally */
  padding: 20px;
}

/* Box Styling */
.box {
  padding: 20px;
  margin: 10px 0;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Form Box Specific Width */
.form-box {
  width: 80%; /* Keep the form box narrower */
  max-width: 1200px; /* Set a max-width for the form box */
  margin: 0 auto; /* Center the form box */
}

/* Result Box Specific Width */
.result-box {
  width: 100%; /* Make it wider, taking full width */
  max-width: 100%; /* Remove max-width limit */
  padding: 20px;
  margin: 10px 0;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  justify-content: center; /* Center content vertically */
  text-align: center; /* Center text inside the box */
}

/* Improved Form Styling */
h2 {
  margin-bottom: 20px;
  font-size: 2em; /* Larger font size for the section heading */
  color: #333;
  text-align: center;
}

/* Style for Section Labels */
.form-group > label {
  display: block;
  font-weight: bold;
  font-size: 1.5em; /* Larger font size for section labels */
  color: #333;
  text-align: center; /* Center the text */
  margin-bottom: 15px; /* Space between the label and the radio buttons */
}

/* Style for Radio Group */
.radio-group {
  display: grid; /* Use grid for even distribution */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Create columns with min-width */
  gap: 20px; /* Space between items */
  justify-content: center; /* Center the grid horizontally */
}

.radio-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.radio-option input[type="radio"] {
  margin-top: 5px; /* Space between the label and the radio button */
}

.radio-option label {
  font-size: 1.2em; /* Larger font size for the radio button labels */
  margin-bottom: 10px; /* Space between the label and the radio button */
}

/* Style for File Input and Submit Button */
.file-upload-group {
  display: flex; /* Display items in a row */
  justify-content: center;
  align-items: center; /* Center items vertically */
  gap: 10px; /* Space between the file input and submit button */
  margin-top: 20px; /* Space above the file input and submit button */
}

input[type="file"] {
  padding: 10px; /* Add padding for a larger appearance */
  font-size: 1em; /* Increase font size */
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Style for Submit Button */
input[type="submit"] {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: 2px solid #000; 
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em; /* Adjust font size */
  margin-left: 10px; /* Space between the file input and submit button */
}

input[type="submit"]:hover {
  background-color: #45a049;
}

/* Style for Element List Box */
.element-list-box {
  padding: 20px;
  margin: 10px 0;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Style for Element List Heading */
.element-list-box h2 {
  margin-bottom: 20px;
  font-size: 2em; /* Larger font size for the section heading */
  color: #333;
  text-align: center; /* Center the heading text */
}

/* Style for Element List */
.element-list {
  list-style-type: none; /* Remove default list styling */
  padding: 0; /* Remove default padding */
  display: grid; /* Use grid layout */
  grid-template-columns: repeat(5, 1fr); /* Two columns */
  gap: 10px; /* Space between items */
}

/* Style for List Items */
.element-list li {
  padding: 15px; /* Padding inside list items */
  border-radius: 5px; /* Rounded corners */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  display: flex; /* Flexbox for centering text */
  flex-direction: column;
  justify-content: space-between; /* Space between top and bottom sections */
  border: 2px solid #000; /* Border for the whole box */
  height: 50px; /* Fixed height for consistency */
}

/* Style for the Name (Top Half) */
.element-list li .name {
  font-size: 1em; /* Adjust font size */
  text-align: center; /* Center text horizontally */
  width: 100%; /* Full width of the box */
  margin-bottom: auto; /* Push name to the top */
}

/* Style for Bottom Section */
.element-list li .bottom {
  display: flex;
  width: 100%;
  justify-content: space-between; /* Ensure the two sections are separated */
  margin-top: auto; /* Push bottom section to the bottom */
}

/* Style for Bottom Left and Right */
.element-list li .bottom .left,
.element-list li .bottom .right {
  font-size: 1em; /* Adjust font size */
  flex: 1; /* Each section takes up equal space */
  display: flex; /* Flexbox within each section */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
}

/* Additional Adjustment for Right Element */
.element-list li .bottom .right {
  text-align: center; /* Center text horizontally */
}

/* Button to Toggle Text */
.toggle-text-button {
  position: fixed; /* Fix the button to the viewport */
  top: 10px; /* Distance from the top */
  left: 10px; /* Distance from the left */
  width: 60px; /* Width of the button (square shape) */
  height: 60px; /* Height of the button (square shape) */
  background-color: black; /* Black background */
  color: white; /* White text color */
  border: none;
  border-radius: 10px; /* Slightly rounded corners */
  font-size: 2em; /* Larger font size for the question mark */
  display: flex;
  align-items: center; /* Center the question mark vertically */
  justify-content: center; /* Center the question mark horizontally */
  cursor: pointer;
  z-index: 1000; /* Ensure it is above other elements */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Shadow for better visibility */
}

.toggle-text-button:hover {
  background-color: #333; /* Darker background on hover */
  color: #ccc; /* Grey text on hover */
}

/* Style for Text Message */
.text-message {
  display: none; /* Initially hidden */
  position: fixed; /* Fix to viewport */
  top: 80px; /* Distance from the top, adjusted to avoid overlap with button */
  left: 10px; /* Distance from the left */
  padding: 20px;
  background-color: #f9f9f9; /* Background color */
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Shadow for visibility */
  max-width: 300px; /* Max width of the message box */
  z-index: 1000; /* Ensure it is above other elements */
}

input[type="radio"] {
  transform: scale(1.5); /* Adjust the scale factor as needed */
  margin: 10px; /* Optional: adjust margin to align properly */
}

/* Enlarge Checkboxes (if you have any) */
input[type="checkbox"] {
  transform: scale(1.5); /* Adjust the scale factor as needed */
  margin: 10px; /* Optional: adjust margin to align properly */
}


/* Center the button container */
.button-container {
  text-align: center;
  margin-top: 20px;
}

/* Style for the larger button */
#copyButton {
  padding: 15px 30px; /* Increase padding for a larger button */
  font-size: 18px; /* Increase font size for larger text */
  cursor: pointer;
  border: 2px solid #000; /* Optional: add border for better visibility */
  border-radius: 8px; /* Optional: add rounded corners */
  background-color: #4CAF50; /* Optional: add background color */
  color : #f0f0f0 /* Optional: set text color */
}

#copyButton:hover {
  background-color: #45a049; /* Optional: change background color on hover */
  color : #f0f0f0
}


.large-text-input {
  font-size: 18px;
  padding: 5px;
  width: 180px;  
}

#downloadButton{
  background-color: #4CAF50;
  color : #f0f0f0;
  padding: 10px 20px;
  border: 2px solid #000; 
  border-radius: 5px;
  cursor: pointer;
}

#downloadButton:hover {
  background-color: #45a049;
}

/* Default class for not selected state */
.not_selected {
  background-color: #d6d4d4; /* Original color */
  color:#000;
}
.not_selected:hover {
  background-color: #ccc;
}

/* New class for selected state */
.selected {
  background-color: #4CAF50; /* Change to your desired color */
  color:#f0f0f0;
}
.selected:hover{
  background-color: #45a049;
}



#select-all-button {
  background-color: #4CAF50;
  color: #f0f0f0;
  padding: 15px 30px; 
  font-size: 1.2em; 
  width: 200px;
  border: 2px solid #000; 
  border-radius: 5px;
  cursor: pointer;
}


#select-all-button:hover {
  background-color: #45a049;
}

#unselect-all-button{
  padding: 15px 30px; 
  font-size: 1.2em; 
  width: 200px;
  border: 2px solid #000; 
  border-radius: 5px;
  cursor: pointer;
  background-color: #d6d4d4;
}

#unselect-all-button:hover {
  background-color:  #ccc;
}

div#loading {
  width: 350px;
  height: 250px;
  display: none;
  background: url(/static/loading.gif) no-repeat;
  background-position: top center;
  cursor: wait;

  width: 100%; /* Make it wider, taking full width */
  max-width: 100%; /* Remove max-width limit */
  padding: 20px;
  margin: 10px 0;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  }







  .form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f4f4f4;
}

/* Grid container for dropdowns */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns */
    gap: 20px; /* Space between grid items */
    width: 100%; /* Full width of the container */
    max-width: 1200px; /* Limit maximum width */
    padding: 20px; /* Padding around the grid */
    box-sizing: border-box;
}

/* Styling for grid items */
.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Styling for dropdown labels */
.dropdown-label {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 20px; /* Larger font size for labels */
}

/* Styling for dropdown selects */
.dropdown-select {
    width: 100%; /* Full width within grid item */
    height: 50px; /* Larger height for dropdown */
    padding: 10px; /* Larger padding for dropdown */
    border-radius: 6px; /* Larger border radius for dropdown */
    border: 1px solid #ddd;
    font-size: 18px; /* Larger font size for dropdown text */
}


.green {
  background-color: #4CAF50;
}
.red {
  background-color: red;
}

button {
  width: 200px;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-sizing: border-box;
}