/* General for all the pages and header-footer*/ 
body {
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color:antiquewhite;
  margin: 0;
  padding: 0;
  /* height: 100%; */
  /* place-items: center;  */
  /* centers all the .body-div */
  
}

.body-div {
	margin: 20px auto; 
	width: 70%;
	background-color:rgb(253, 253, 253); 
	padding: 20px; 
  border-radius: 40px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
}

@media  (max-width: 768px) {
  .body-div {
    width: 90%;
    margin: 0px auto; 
    padding: 20px; 
    border-radius: 0px;
    /* box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4); */
  }
}

.embedded-img {
  width: 80%;
  display: block;
  height: auto;
  margin: 0 auto;
}

@media  (max-width: 768px) {
  .embedded-img {
    width: 100%;
    display: block;
    height: auto;
    margin: 0 auto;
  }
}

/* YT video embedding */
iframe {
  aspect-ratio: 16/9!important;
  width: 80%!important;
  height: auto;
  border: none;
  display: block;
  margin: 0 auto;
}
@media  (max-width: 768px) {
  iframe {
    aspect-ratio: 16/9!important;
    width: 100%!important;
    height: auto;
    border: none;
    display: block;
    margin: 0 auto;
  }
}

/* Header */
h1 {
  text-align: left;
  font-size: 24px;
}

h2 {
  text-align: left;
  font-size: 18px;
}
h3 {
  text-align: center;
  font-size: 24px;
}
h4 {
  text-align: left;
  font-size: 24px;
}
p, li {
  text-align: justify;
  font-size: 16px;
}

/* Navigation bar */
nav {
  background-color: black;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  /* height: 30px;
  width: 100%; */
}

nav ul {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end; /* Aligns the nav li items to the right */ 
  align-items: center;
}

nav li {
  height: 70px;
  /* margin-right: 20px; */
}
nav li:first-child {
  margin-right: auto;
}

.logo-DGEAR-nav {
  height: 70px;
	width: 70px;

}

.nav-logo-text {
  text-align: left;
}
nav a {
  height: 100%;
  padding: 0 20px;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  /* border-radius: 3px; */
  /* font-size: 18px; */
  font-weight: bold;
}

a.active,nav a:hover{
  background:white;
  transition: .3s;
  color: #000;
}
a.logo-DGEAR-nav:hover {
  background: black;
  transition: .3s;
}

/* sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 25%;
  background-color: #000000aa;
  backdrop-filter: blur(5px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.5);
  display: none; /* Hidden by default */
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;

}
.sidebar li {
  width: 100%;
}
.sidebar a {
  width: 100%;
}
.menu-button {
  display: none; /* Hidden by default */
}
@media (max-width: 950px) {
  .hideOnMobile {
    display: none; /* Hide nav items class hideOnMobile on mobile */
  }
  .menu-button {
    display: block; /* Show menu button class menu-button on mobile */
  }
}
@media  (max-width: 500px) {
  .sidebar {
    width: 100%;
  }
}

/* Footer */
footer {
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  padding: 0px;
  display: flex;
	text-align: center;
  align-items: center;
  justify-content: space-between;
  position: static;
  width: 100%;
  height: auto;
}
footer p {
	text-align: center;
	font-size: 12px;
}
footer .logo-Lin {
	margin-right:50px;
}
footer .logo-nbu {
	margin-left:50px;
}

/* Loader animation for refreash and loading*/
.loader-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: none; /* Hidden by default */
	justify-content: center;
	align-items: center;
  z-index: 9999; /* Makes it top */
}
.loader {
	border: 16px solid #f3f3f3;
	border-top: 16px solid #3498db;
	border-radius: 50%;
	width: 80px;
	height: 80px;
	animation: spin 2s linear infinite;
	display: block;
}
@keyframes spin {
	0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Home page contents*/
.main-content {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.left-section {
  width: 60%;
  padding: 30px;
  /* box-sizing: content-box; */
}

.right-section {
  width: 50%;
}

.left-section p {
  color: #000000;
  font-size: 18px;
  text-align: justify;
}
.right-section p {
  color: #000000;
  font-size: 18px;
  text-align: justify;
  font-weight: lighter;
}

.right-section img {
  width: 100%;
  height: auto;
}

/* Form Styles | Analysis page | Contact Us page */
form {
	width: 80%;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 15px;
    max-width: 600px; /* Adjust width */
    margin: auto; /* Center the form */
    padding: 20px;
    background: #eeeeee;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
}
.form-group {
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.file-upload, .drop-area, input[type="file"], button {
    grid-column: span 2;
}
.drop-area {
    width: 90%;
    padding: 20px;
    border: 2px dashed #007bff;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.drop-area:hover {
    background-color: #f0f8ff;
}
#file-name {
    margin-top: 10px;
    font-size: 14px;
    color: #4771e6;
    font-weight: bold;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 90%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="submit"] {
  margin-top: 10px;
}

button {
  background-color: #000;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #0056b3;
}

.download-btn {
    display: inline-block;
    padding: 10px;
    background-color: #068;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s;
}

.download-btn:hover {
    background-color: #0056b3;
}

.change-btn {
    display: inline-block;
    padding: 10px;
    background-color: #068;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s;
}

.change-btn:hover {
	background-color: #0056b3;
}
#active {
  color: white; /* Text color */
  background-color: #000; /* Background color */
  padding: 10px 20px; /* Padding for better button appearance */
  text-decoration: none; /* Remove underline */
  border-radius: 5px; /* Rounded corners */
}
/* Table | Analysis page*/
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid black;
  padding: 8px;
  text-align: left;
}
tbody tr td a {
  text-decoration: none;
  color: black;
  font-size: 18px;
  padding: 7px,13px;
  border-radius: 3px;
  font-weight: bold;
  text-align: center;
}
th {
  background-color: #f2f2f2;
}

@media screen and (max-width: 768px) {
  table, th, td {
    font-size: 14px;
    padding: 5px;
  }
}



/* results page plots gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 column */
  gap: 20px;
  justify-items: center;
  padding: 20px;
}

.plot-card {
  width: 100%;
  max-width: 300px;
  text-align: center;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  transition: transform 0.2s ease;
}

.plot-card:hover {
  transform: scale(1.02);
}

.plot-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.download-link {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #fff;
  background-color: #333;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
}

.download-link:hover {
  background-color: #878686;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* Two-column grid on tablets and larger screens */
@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Optional: More columns on very large screens */
@media (min-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .plot-card {
    max-width: 90%;
  }

  .download-link {
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* maanual page  */
.toc li a{
  text-decoration: none;
  color:#4771e6;
  
}