body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .tooltip .tooltiptext {
        max-width: 90%;
    }
}

.dropzone, .madlib, .csv-instructions {
    margin-bottom: 20px;
}

h1 {
    color: #333;
}

.dropzone {
    border: 2px dashed #aaa;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.dropzone.dragging {
    border-color: #2196F3;
    background-color: #f0faff;
}

#fileLink {
    color: #2196F3;
    text-decoration: none;
}

#fileLink:hover {
    text-decoration: underline;
}

.madlib {
    margin-top: 20px;
}

.hidden {
    display: none;
}

#continueButton {
    display: block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #2196F3;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#continueButton:hover {
    background-color: #1976D2;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #2196F3;
    text-decoration: underline;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 500px;
    max-width: 100vw;
    background-color: #555;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    top: 125%; /* Position the tooltip below the text */
    left: 50%;
    transform: translateX(-50%); /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.email-input {
    margin-top: 10px;
}

.email-input input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

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

.download-section {
    display: flex;
    align-items: center;
}

.download-section p {
    margin-right: 10px;
}

.expandable-container {
    margin: 20px 0;
}

#factors-container {
    padding: 10px;
    border: 1px solid #ccc;
    margin-top: 10px;
}

.factors-section {
    margin-bottom: 20px;
}

.factors-section h3 {
    color: #333;
    margin-bottom: 10px;
}

.factors-section .checkbox-container {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
}

.factors-section .checkbox-container label {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.factors-section .checkbox-container input[type="checkbox"] {
    margin-right: 5px;
}

#expandLink {
    color: #2196F3;
    text-decoration: none;
}

#expandLink:hover {
    text-decoration: underline;
}


.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start; /* Align cards at the top */
}

.card {
    width: 46%; /* Adjust the width calculation to account for margin */
    background-color: #fff;
    padding: 1%;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Drop shadow */
    margin: 10px; /* Add padding between cards */
}

canvas {
    width: 100% !important;
}

.chart-wrapper {
  display: flex;
  position: relative;
}

.chart-container {
  flex-grow: 1;
  position: relative; /* Relative positioning for the canvas */
}

canvas {
  object-fit: contain; /* Contain the canvas within the bounds */
}

.gradient-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute; /* Absolute positioning for the gradient bar */
  right: 0;
  top: 0;
  height: 100%;
  width: 30px;
}

.gradient-bar {
  width: 10px;
  height: 80%; /* Full height for the gradient bar */
  background: linear-gradient(to bottom, red, blue);
}

.gradient-labels {
  position: absolute; /* Absolute positioning for the labels */
  right: 0;
  top: 0;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.high-label,
.low-label {
font-size: 20px;
    color: black;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: white;
}

@media screen and (max-width: 768px) {
  .card {
    width: 100%;
    margin: 10px 0;
  }
}

