/* css style sheet of query page */

body {
	font-family: Arial, sans-serif;
	background-color: #fafafa;
	margin: 0;
	padding: 0;
	color: #333;
	}

.container {
	padding: 20px 40px;
	}

.banner {								/* add the background image */
	  background-image: url('http://103.18.1.10/sqf7007/Lijie/project/final/image/dnaBanner.jpg');
	  background-size: cover;
	  background-position: center;
	  width: 100%;
	  height: 230px;
	  display: flex;
	  align-items: center;
	  justify-content: flex-start; 			/* aligns the box to the left */
	  color: white;
}

.header {
	display: flex;
	align-items: center;
	padding: 50px 100px;
}

.footer {
	align-items: center;
	background-color: #5d3878;
	padding: 30px 100px;
}

.title {
	flex: 9;
	margin: 10px;
	color: white;
	font-size: 50px;
	font-family: "Lucida Console";
	font-weight: bold;
	text-shadow:
                0 0 5px #5d3878,
                0 0 10px #5d3878,
                0 0 20px #5d3878,
                0 0 40px #5d3878,
                0 0 80px #5d3878;
}

.navbar {
	display: flex;
	justify-content: flex-start;
	background-color: #CBC3E3;
	border-bottom: 3px solid #5d3878;
}

.navbar a {
	margin-left: 20px ;
	font-size: 16px;
	text-decoration: none;
	color: #333;
	font-weight: bold;
	padding: 10px;
}

.navbar a:hover {
	text-decoration: underline;
	background-color: #f7f0fc;
	padding: 10px;
	cursor: pointer;
}

a.highlight2 {
	font-weight: 500;
	color: white;
	text-decoration: none;
}

.highlight2:hover {
	text-decoration: underline;
	cursor: pointer;
}

.main-content {
  padding: 20px;
  margin:20px;
}

.topic {
    color: #3a1c61;
    font-weight: bold;
}

.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; /* hide the tooltip before hovering */
  width: 200px; /* size of 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 */
}

.query-box {
  width: 100%;
  height: 150px;
  margin-bottom: 15px;
  padding: 10px;
  font-family: monospace;
}

.file-input {
  margin-bottom: 50px;
  display:flex;
  justify-content: space-between; /* spread the content in this division */
}

.file {
  margin-right: 0px;
  background: #3a1c61;
  color: white;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  width: 300px;
  text-align: left;
}

.file:hover {
  background-color: #f5edfa;
  color: #3a1c61;
}

.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;
}


.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;
}

.number-input {
  width: 80px;
  padding: 5px 10px;
  font-size: 16px;
  border: 2px solid #3a1c61;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease;
}

.number-input:focus {
  border-color: #6a4fb3;
  box-shadow: 0 0 5px rgba(106, 79, 179, 0.5);
}

