/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;  /* Light gray background */
  /*display: flex;*/
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #333; /* Dark text color */
  max-width: 100%;
  /*max-height: 1200px;*/
}

.logo {
  width: 200px;     /* Adjust to your desired size */
  height: auto;     /* Keeps aspect ratio */
  display: block;   /* Prevents inline spacing issues */
  margin: 0 auto;   /* Center the image horizontally */
}


/* Box container with background */
.container {
  position: relative;
  /*display: flex;*/
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /*background-color: red;*/
  background-color: #f5f5f5;  /* Very light gray background */
  border-radius: 10px;  /* Rounded corners */
  border: 2px solid #ccc;  /* Light gray border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Light shadow for depth */
  /*width: 90%;*/
  /*max-width: 1200px; */ /* Max width for larger screens */
  max-width: 80%;
  padding: 40px;
  margin: 20px;
  box-sizing: border-box;
  
}

.wide-section {
  width: 100%;
  margin: auto;
}
.checkboxContainer {
  width: 100%;
  margin: auto
}

/* Title and description styling */
.container h1,
h3 {
  text-align: center;
  color: #333;
}

.container h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.container h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Section headings */
.container section h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Form Styling */
.container form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.container form label {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #555;
}

.container form input[type="text"],
form input[type="file"] {
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  color: #333;
}

.container form input[type="text"]:focus,
form input[type="file"]:focus {
  outline: none;
  border-color: #007bff; /* Highlighted blue border */
}

.container form button {
  padding: 10px 20px;
  font-size: 1rem;
  color: white;
  background-color: #4CAF50; /* Green button */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 12px;
}

.container form button:hover {
  background-color: #45a049; /* Darker green on hover */
}

.container form button:disabled {
  background-color: #ccc; /* Disabled button style */
  cursor: not-allowed;
}

/* Form action buttons: Submit and Reset */
.container form .form-actions {
  display: flex;
  justify-content: space-between;
}

.container form .form-actions button {
  width: 48%;
}

.container form select {
  padding: 8px;
  font-size: 14px;
  border: 2px solid #007BFF;
  border-radius: 5px;
  background-color: white;
  cursor: pointer;
  outline: none;
  transition: 0.3s;
}

.container form select:hover {
  border-color: #0056b3;
}

.container form  select:focus {
  border-color: #ff9800;
}

/* Media Query for responsiveness */
/* The purpose of this CSS media query is to adjust the layout and styling of elements 
for screens with a maximum width of 768px (typically tablets and mobile devices). */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  form .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  form .form-actions button {
    width: 100%;
    margin: 5px 0;
  }
}

/* HTML jQuery Autocomplete */
.suggestions {
  border: 1px solid #ccc;
  height: 150px;    /* fixed height*/ 
  overflow-y: auto; /* scroll if overflow*/
  display: none;
  position: absolute;
  background: white;
  z-index: 1000;
  width: 100%; /**/
  border-radius: 8px; /* Add rounded corners*/
}

.suggestions div {
  padding: 8px;
  cursor: pointer;
}

.suggestions div:hover {
  background-color: #f0f0f0;
}

/* Styling popup help menu */
.my-checkbox-container {
  display: flex;
  gap: 20px;  /* Space between each checkbox group */
}

.checkbox-group {
  display: flex;
  align-items: first baseline;
  gap: 5px;  /* Space between elements */
}

.color-square {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.help-button {
  position: relative;
  display: inline-block;
  font-weight: normal;
  cursor: pointer;
}

.help-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 300px;
  padding: 16px;
  border-radius: 12px; /* Rounded corners */
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.help-button:hover .help-content {
  display: block;
}

.help-title {
  color: #007bff; /* Blue title */
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.1em;
}

/* This is the table that display the intersection of individual studies  */
.styled-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

/* Table cells */
.styled-table td {
  border: 1px solid #ccc;
  padding: 10px; /* Adds space between checkbox/label and cell border */
  vertical-align: middle;
}

/* Label: Aligns checkbox and description horizontally */
.styled-table label {
  display: flex;
  align-items: center;
  gap: 8px; /* Space between checkbox and description */
  cursor: pointer;
}

/* Optional: Style the checkbox */
.styled-table input[type="checkbox"] {
  transform: scale(1.2);
}

/* Optional: Style the description */
.styled-table .desc {
  font-size: 14px;
  color: #333;
}

/* Styling error */
flash {
  font-size: 1.5rem; /* Adjust size as needed */
  color: red;
  font-weight: bold;
}

.flash.error {
  font-size: 1.5rem;
  color: red;
  font-weight: bold;
}

/* checkbox styling*/
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;  /* Space between checkbox and label */
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  max-width: 50%;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 10px; /* Space between checkbox and label */
}

/* cbioportalstudies table */
.table-checkbox-container {
  display: flex;
  align-items: first baseline;
  gap: 10px;  /* Space between checkbox and label */
  /*padding: 8px;*/
  /*margin-bottom: 10px;*/
  padding: 0px;
  margin-bottom: 0px;
}

.table-checkbox-container input[type="checkbox"] {
  margin-right: 5px; /* Space between checkbox and label */
}
/*cbioportalstudies table end*/

.details-container {
  margin-bottom: 1.5rem;
}

fieldset {
  padding: 1.5rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  /*background-color: red;*/
  /*max-width: 90%;*/
}

fieldset legend {
  padding: 0 0.5rem;
  font-weight: bold;
}

/* Color squares for categories*/


.my-checkbox-container {
  /*display: flex;*/
  display: grid;
  align-items: center;
  gap: 10px; /* Space between elements */
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  /*max-width: 80%;*/
  max-width: 50%;
  padding-right: 10px;
}
.my-checkbox-container input[type="checkbox"] {
  margin-right: 10px; /* Space between checkbox and label */
}

.color-container {
  display: flex;
  gap: 2px;  /* Space between squares */
}

.color-square {
  width: 10px;
  height: 10px;
  flex-shrink: 0;  /* Prevents shrinking */
}

.checkbox-label {
  flex-grow: 1; /*Takes available space */
}
