body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.header {
  display: flex;
  align-items: center;
  padding: 50px 100px;
  background-color: #f5edfa;
  border-bottom: 3px solid #5d3878;
}

.logo {
  flex: 1;
  font-size: 1.5rem;
  font-weight: bold;
  border: 2px solid ;
}

.title {
  flex: 4;
  margin: 10px;
}

.navbar {
  display: flex;
  justify-content: flex-start;
  background-color: ghostwhite;
  border-bottom: 3px solid #5d3878;
}

.navbar a {
  margin-left: 20px ;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 10px;
}

.navbar a:hover {
  text-decoration: underline;
  background-color: #f7f0fc;
  padding: 10px;
  cursor: pointer;
}

.main-content {
  padding: 20px;
  margin:20px;
}

.query-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 18px;
  position: relative;
}

.query-label .tooltip {
  visibility: hidden;
  width: 150px;
  background-color: #666;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 5px;
  font-size: 10px;
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  margin-left: -60px;
}

.query-label:hover .tooltip {
  visibility: visible;
}

.query-box {
  width: 100%;
  height: 150px;
  margin-bottom: 15px;
  padding: 10px;
  font-family: monospace;
}

.file-input {
  margin-bottom: 15px;
  background-color: mediumpurple;
}

.file {
  margin-right: 0px;
  background: #3a1c61;
  color: white;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 12px;
  border: none;
  cursor: pointer;
  width: 300px;
  text-align: left;
}

.file:hover {
  background-color: #974bfa;
}

.seq {
  margin-right: 10px;
  background: white;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 12px;
  border-width: 3px;
  border-color: #3a1c61;
  cursor: pointer;
}

.seq:hover {
  background-color: #f5edfa;
}

.types {
  margin-top: 40px;
  margin-right: 20px;
}

.buttons {
  margin-top: 40px;
}

.buttons button {
  margin-right: 10px;
  padding: 15px;
  font-weight: bold;
  border-color: #5d3878;
  background-color: white;
}

.buttons button:hover {
  cursor: pointer;
  background-color: #f5edfa;
}

.footer {
  background-color: #f9f9f9;
  text-align: center;
  padding: 15px 0;
  border-top: 1px solid #ccc;
  margin-top: 30px;
}


.palindrome-type-options {
  margin-top: 10px;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 14px;
}

.palindrome-type-options label {
  margin-right: 20px;
  cursor: pointer;
}

.palindrome-type-options input[type="radio"] {
  margin-right: 5px;
}

.query-label {
  position: relative; /* needed for tooltip positioning */
  display: inline-block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 18px;
}

.query-label .tooltip {
  visibility: hidden;
  width: 200px; /* wider tooltip */
  background-color: #666;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;

  /* Position tooltip to the right, centered vertically */
  position: absolute;
  top: 50%;
  left: 105%; /* slightly right of the label */
  transform: translateY(-50%);
  
  z-index: 10;
  
  /* smooth fade-in */
  opacity: 0;
  transition: opacity 0.3s;
  
  pointer-events: none;
  box-sizing: border-box;
}

.query-label:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Arrow pointing left at the left side of tooltip */
.query-label .tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;  /* at the left edge */
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent #666 transparent transparent; /* arrow pointing left */
}
