/* Global Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  color: #111;
  
}

/* Header */
header {
  background-color: #000;
  color: white;
  padding: 20px 0;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.header-container{
  position:relative;
  z-index: 2;
}
.header-container h2 {
  margin: 0;
}

.header-container p {
  margin: 5px 0 0;
}

/* Main Content */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 59.4vh;
  z-index: 1000;
}

.container {
  background-color: rgba(255, 255, 255, 0.75); /* translucent */
  backdrop-filter: blur(8px); /* blurred background behind */
  -webkit-backdrop-filter: blur(99999999999999999999999px);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
  width: 90%;
  max-width: 400px;

  position: relative; /* add this */
  z-index: 20;         /* add this to make it on top */
}


.container h1 {
  margin-bottom: 20px;
  color: #444;
}

.logo {
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(to right, #d7ebed, #b9cedf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 2px;
}

@media (max-width: 600px) {
  .logo {
    font-size: 24px;
  }
}

/* Search Row */
.search-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 15px;
}

.search-row input[type="text"] {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.search-row button {
  padding: 10px 18px;
  font-size: 16px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.search-row button:hover {
  background-color: #218838;
}

@media (max-width: 480px) {
  .search-row {
    flex-direction: row;
    align-items: stretch;
  }

  .search-row input[type="text"],
  .search-row button {
    font-size: 14px;
    padding: 10px;
  }
  main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 64vh;
    z-index: 1000;
  }
  
}

#result {
  margin-top: 20px;
  font-size: 17px;
  font-weight: bold;
}

#alternativesTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#alternativesTable th,
#alternativesTable td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

#alternativesTable img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
table img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
/* Suggestion Box */
.suggestion-box {
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  background-color: white;
  position: absolute;
  z-index: 999;
  width: 300px;
  display: none;
}

.suggestion-item {
  padding: 8px;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

.suggestion-item.active {
  background-color: #e0e0e0;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: #007A3D;
  color: #ccc;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
  font-size: 14px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
}
footer p{
  position: relative;
  z-index: 2;
}
div.poly {
  position: absolute;       /* scrollable body-এর সাথে চলবে */
  top: 0px;
  left: 0;
  width: 33%;
  height: 100%;
  background: #D60000;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  z-index: 1;              /* উপরে থাকবে, তবে fixed-এর মতো না */
}
