.question-item {
    position: relative;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px; /* Space between questions */
}

.edited-ribbon {
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
}

.edited-ribbon span {
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    line-height: 20px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    width: 100px;
    display: block;
    background: #79A70A;
    background: linear-gradient(#9BC90D 0%, #79A70A 100%);
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 19px;
    left: -21px;
}

.login-required {
    color: grey;
    cursor: not-allowed;
}

.material-symbols-rounded{
    cursor:pointer; 
    vertical-align: bottom;
}

.rating-container {
    padding: 0;
    margin: 0;
    /* Set the display to inline-block if it's not already, 
       so it only takes up as much space as necessary */
    display: inline-block;
}

#myToast {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050; /* Ensure it appears above other content */
}

#legend {
    background: white;
    padding: 10px;
    margin: 5px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    border: 2px solid #eee;
    border-radius: 5px;
  }
#legend h3 {
  margin-top: 0;
}
#legend div {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.legend-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}
@media (max-width: 992px) { /* Adjusts based on your navbar's collapsing point */
  .navbar-collapse.collapsing,
  .navbar-collapse.show {
      background-color: #ffffff; /* Set to your desired background color */
  }
} 
#piechart {
  width: 100%;
  /*max-width: 900px; /* Optional: you can adjust or remove this line */
  height: 600px; /* Adjust based on your preference */
}
.navbar-collapse {
  z-index: 1001; /* Ensuring it's above the navbar and map */
}
.navbar {
  z-index: 1000; /* Adjust the value as needed, ensuring it's higher than the map's z-index */
}
.navbar-brand{
  z-index:1001
}
#map {
  z-index: 500; /* Adjust the value as needed, ensuring it's higher than the map's z-index */
}
.navbar-collapse {
  background-color: white;  /*Or any other suitable color */
} 
.banner {
  position: relative;
  background: url('./img/banner2.png') no-repeat center center;
  background-size: cover;
  height: 100px;
  color: white;
}
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 100, 0.3); /* Black overlay with 50% opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.or-divider .line {
    flex-grow: 1;
    height: 1px;
    background-color: #ddd;
    margin: 0 15px;
}

.or-divider span {
    color: #666;
    background-color: #fff; /* Ensure 'or' stands out if there's a background color */
    padding: 0 10px;
}

.card-body{
  overflow: hidden;
}

.marquee {
  width: 100%;
  overflow: hidden,clip;
  position: relative;

}

.marquee-content {
    display: inline-block;
    width:auto ;
    overflow: hidden,clip;
    color:blue;
    white-space: nowrap;
    position: absolute;
    animation: scrollingText 30s linear infinite;

}

@keyframes scrollingText {
    0% {
        transform: translateX(150%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.message-header {
  background-color: #f9f9f9;
  padding: 10px;
  border: 1px solid #ccc;
  cursor: pointer;
}

.reply {
  background-color: #e9e9e9;
  margin-left: 20px;
  padding: 5px;
  border: 1px solid #ddd;
}

.replies {
  display: none; /* Hide replies initially */
}

.message-header i {
  float: right; /* Position the toggle icon on the right */
  padding: 5px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  /*color: #fff;*/
  /*background-color: #17a2b8; /* Bootstrap's 'btn-info' color */
  text-decoration: none;
  border: none;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s ease;
  margin: 10px 5px; /* Add spacing around buttons */
}

.btn:hover {
  background-color: #138496; /* Darker shade for hover effect */
  color: #fff; /* Ensure text remains visible */
}

.fw-bold {
  font-weight: bold;
}

/* Icon Styling */
.btn i {
  margin-left: 5px;
}

@media (max-width: 768px) {
  .icon-btn {
      display: inline-block;
  }
  .text-btn {
      display: none;
  }
}