/* Basic style reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Roboto, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  color: #333;
  background-color: #f9f9f9;
}

/* Header and Navigation Bar */
/* Main title and subtitle styles */
.header h1 {
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: 700;
  /* color: #022c2c; */
  text-shadow: 1px 1px 3px;
  background: -webkit-linear-gradient(#006e58, #022c2c);
  transition: color 0.3s;
  text-align: center;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-family: "Space Grotesk", sans-serif;
}

.header p {
  color: #333;
  font-size: 16px;
  max-width: 900px;
  text-align: center;
  font-weight: bold;
}

/* Top navigation area - with background image */
.navbar {
  background-image: url("../assets/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 15px;
  box-shadow: 0 2px 4px #333;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Secondary navigation bar - dark area */
.topnav {
  overflow: hidden;
  background-color: #56767a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome {
  flex: 1;
  text-align: center;
  color: #fcfbf8;
  font-size: 16px;
  font-weight: 500;
}

/* Navigation link style */
.nav-links a {
  float: left;
  display: block;
  color: #fcfbf8;
  text-align: center;
  padding: 15px 20px;
  text-decoration: none;
}

.nav-links a:hover {
  background-color: #7ba7ae;
  color: black;
}

/* Search box style */
.nav-search {
  float: left;
  display: flex;
  align-items: center;
  padding: 15px 20px;
}

.nav-search .logo1 {
  margin-right: 5px;
  width: 20px;
  height: 20px;
}

.nav-search .search-box {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 150px;
  background-color: white;
}

/* Main content area */
.main-section {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin: 30px auto;
  width: 100%;
  max-width: 1300px;
  padding: 0 20px;
}

/* Left column - image and palindrome description */
.image-column {
  flex: 0 0 350px;
  max-width: 350px;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.diagram-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 6px;
}

.palindrome-description {
  margin-top: 20px;
  background-color: #f8f9fa;
  padding: 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.palindrome-description strong {
  color: #0078d4;
  font-weight: 600;
}

/* Right Column - Inquiry Form */
.right-column {
  flex: 1;
  min-width: 400px;
}

.query-form {
  background-color: #f5f9fc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Form Section Title */
h2 {
  font-size: 18px;
  background-color: #e8f4f8;
  padding: 8px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* Form Control Styles */
.form-group {
  margin-bottom: 15px;
}

.form-control {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

textarea.form-control {
  height: 120px;
  font-family: monospace;
}

/* Parameters section style */
.parameter-section {
  margin-top: 20px;
  border-top: 1px solid #eaeaea;
  padding-top: 20px;
}

/* Button Style */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  height: 40px;
  line-height: 24px;
  font-size: 14px;
}

.btn-primary {
  background-color: #f0f0f0;
  color: #333;
}

.btn-secondary {
  background-color: #f0f0f0;
  color: #333;
}

.btn-primary:hover {
  background-color: #7ba7ae;
}

.btn-secondary:hover {
  background-color: #7ba7ae;
}

.button-group {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* File upload button style */
label.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Display the style of the selected file name */
.file-name {
  margin-left: 10px;
  font-size: 12px;
  font-style: italic;
  color: #666;
}

/* Footer Style */
.footer {
  background-color: #56767a;
  color: #fff;
  padding: 40px 0 0 0;
  margin-top: 50px;
  border-top: 4px solid #022c2c;
  width: 100%;
  clear: both;
  position: relative;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.footer-section h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 15px;
  padding: 8px 0;
  border-bottom: 2px solid #022c2c;
  background-color: transparent;
  border-left: none;
  border-radius: 0;
}

.team-list {
  list-style: none;
  padding: 0;
}

.team-list li {
  padding: 5px 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

.footer-section p {
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 14px;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

/******** FOR RESULTS **********/

.parameter-container {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 20px;
  background-color: white;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.btn-primary {
  background-color: #9abfeb;
}

.formattedPalindrome {
  font-family: "Share Tech Mono", monospace;
  font-size: 18px;
  white-space: pre;
  overflow: scroll;
  border-radius: 10px;
  padding: 10px;
  background-color: #e8f4f8;
}

.results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  row-gap: 20px;
  padding: 20px;
  column-gap: 20px;
  border-radius: 8px;
}

.result {
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: grid;
  row-gap: 20px;
  transition: transform 0.2s;
}

.result:hover {
  background-color: #e8f4f8;
  .formattedPalindrome {
    background-color: #f8f9fa;
  }
  transform: scale(1.15);
}

.palindromeInfo td {
  font-size: 15px;
}

.space-grotesk-header {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.roboto-regular {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

#summary {
  margin: 10px;
  padding: 20px;
  display: grid;
  row-gap: 20px;
  border-radius: 8px;
}

.summary {
  display: grid;
  row-gap: 110px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}
