input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f0f0f inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

body {
  background-image: linear-gradient(rgb(142, 0, 0), black 30%);
  min-height: 100vh;
  width: auto;
  margin: 0;
  overflow-y: hidden;
}

.outer-container {
  max-width:500px;
  margin: 0 auto;
  padding: 0 20px;
}

.fa-search {
  color: white;
}

#Top-title{
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  align-items: center;
  margin: 0;
  margin-bottom: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.box-container {
  display: flex;
  align-self: start;
}

.rounded-box {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 125px;
  height: 50px;
  background: linear-gradient(to bottom, #a70000 50%, #610000 50%);
  border-radius: 10px;
  color: #ffffff;
  font-weight: bold;
  border: 1px solid #ffffff;
  font-family: 'Roboto', sans-serif;
  margin-left:22px;
  margin-top: 15px

}

.month-year {
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  white-space: nowrap; /* Prevent line break */
}

.year {
  font-size: 0.9rem;
}


#news {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 390px;
  max-height: 390px;
  margin: 0;
}

.news-container {
  min-height: 40px;
  max-height: 15%;
  min-width: 450px;
  border-radius: 1rem;
  background-color: #1A1A1A;
  padding: 0 30px 0px 30px;
  margin: 0 0 10px 0;
  font-family: 'Google Sans', sans-serif;
}

.time {
  padding-top: 10px;
  font-size: 1rem;
  color: #aeaeae;
  /* nothing */
}

.headline {
  padding-top: 5px;
  padding-left: 15px;
  font-weight: 900;
  font-size: 0.8rem;
  color: white;
}

.news {
  padding-bottom: 15px;
  padding-left: 15px;
  color: #aeaeae;
  font-size: 0.9rem;
}

#news-link a {
  color: #aeaeae;
  text-decoration: none;
}

a:hover {
  color: red;
}

#info {
  color: white;
}

.see-more {
  display: flex;
  justify-content: center;
  font-family: 'Roboto', sans-serif;
}

.see-more button {
  background-color: #FF0000;
  border: none;
  border-radius: 20px;
  color: white;
  cursor: pointer;
  font-size: 13px;
  padding: 5px 20px;
  margin-bottom: 2.2em;
}

.search-container {
  border-radius: 2rem;
  background-color: #1A1A1A;
  padding: 3px;
  margin-top: 5px;
  margin-bottom: 10px;
  z-index: 2000; /* Higher z-index for larger screens */
  position: relative; /* Required for z-index to take effect */
}

.search-title {
  color: white;  /* Title color */
  margin-bottom: 5px;
  margin-left: 5px;  /* Space between title and search container */
}

.inner-search {
  background-color: #0F0F0F;
  border-radius: 2rem;
  border: 2px solid #FF0000;  /* Added red border */
  display: flex;
  align-items: center;
  padding: 5px;
}

.icon-container {
  margin-left: 10px; /* Space between icon and input */
}

.inner-search input {
  border: none;
  outline: none;
  flex-grow: 1;
  font-size: 0.9rem;
  background-color: #0F0F0F;
  border-radius: 15px;
  padding-left: 25px; /* Space for the icon */
  font-weight: 600;

}

.inner-search ::placeholder {
  color: #757575;
}

input[type=text] {
  color: white;
}

.inner-search button {
  background-color: #FF0000;
  border: none;
  border-radius: 20px;
  color: white;
  cursor: pointer;
  padding: 2px 20px;
  font-weight: 500;
}

.output {
  color: white;
}

.grecaptcha-badge {
  visibility: hidden;
}

.search-index-container{
  display:flex;
  justify-content: center;
  max-width:500px;
  margin: 30vh 5px 0 5px;
}



/* Responsive Styles */
@media (max-width: 768px) {
  .rounded-box {
    width: 90px;
    height: 45px;
  }

  #Top-title{
    margin: 0;
  }

  #news {
    min-height: 300px;
    max-height: 300px;
  }

  .month-year,
  .year {
    font-size: 0.6rem;
  }

  .news-container {
    padding: 10px 20px 15px 20px;
    margin: 0 0 15px;
  }

  .time {
    font-size: 0.9rem;
  }

  .headline {
    font-size: 0.7rem;
  }

  .news {
    font-size: 0.8rem;
    padding-bottom: 5px;
  }

  .outer-container {
    padding: 0 10px;
  }

  .box-container {
    padding: 10px 0 10px 0px;
  }

  .news-container {
    max-width: 100vw;
    padding: 0 20px 10px;
  }

  .headline,
  .news {
    font-size: 1rem, 0.9rem;
  }

  .see-more button,
  .inner-search input,
  .inner-search button {
    font-size: 14px;
    padding: 5px 15px;
  }

  .search-container {
    z-index: 1; /* Lower z-index for mobile devices */
  }

}

@media (max-width: 480px) {
  .rounded-box {
    width: 70px;
    height: 40px;
  }

  .month-year,
  .year {
    font-size: 0.7rem;
  }

  #news{
    min-height: 350px;
    max-height: 350px;
  }
  

  .news-container {
    min-width: 80vw;
    max-height: none;
    font-size: 0.8rem;

  }

  .time {
    font-size: 0.7rem;
  }

  .headline {
    font-size: 0.6rem;
  }

  .news {
    font-size: 0.7rem;
  }

  .box-container {
    padding: 10px 0 10px 0px;
  }

  .rounded-box {
    width: 100px;
    height: 45px;
  }

  .headline {
    font-size: 0.9rem;
  }

  .news {
    font-size: 0.8rem;  
  }

  .search-container {
    margin-top: 0px;
    z-index: 1; /* Lower z-index for mobile devices */

  }

  .see-more button,
  .inner-search input,
  .inner-search button {
    font-size: 12px;
  }

}

@media (max-width: 320px) {
  .rounded-box {
    width: 60px;
    height: 35px;
  }

  .month-year,
  .year {
    font-size: 0.6rem;
  }

  .news-container {
    padding: 10px;
  }

  .time {
    font-size: 0.3rem;
  }

  .headline {
    font-size: 0.3rem;
  }

  .news {
    font-size: 0.1rem;
  }

  .box-container {
    padding: 8px 0 8px 0px;
  }

  .see-more button,
  .inner-search input,
  .inner-search button {
    font-size: 8px;
    padding: 4px 10px;  
  }

  .search-container {
    z-index: 1; /* Lower z-index for mobile devices */
  }
}