@font-face {
  font-family: 'FoundersGrotesk-Regular';
  src: url("../fonts/TestFoundersGrotesk-Regular.otf");
}

@font-face {
  font-family: 'FoundersGrotesk-Bold';
  src: url("../fonts/TestFoundersGrotesk-Bold.otf");
}

body {
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; */
  font-family: 'FoundersGrotesk-Regular', apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";;
  font-size: 1.05rem;
  background-color: #000;
  color: #fff;
}

header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 100vw;
}

/* header a, header a:visited, #categories_container a:visited  {
  color: white;
} */
h1 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: white !important;
  font-family: "FoundersGrotesk-Bold";
  text-transform: uppercase;
  letter-spacing: -.03rem;
  font-size: 2.4rem;
  width: auto;
  flex
}

h2 {
  width: auto;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

h2 a:hover {
  text-decoration: underline;
}

h2>a, h2>a:visited {
  display: inline-block;
  color: white !important;
  font-family: "FoundersGrotesk-Bold";
  text-transform: uppercase;
  letter-spacing: -.03rem;
  font-size: 2.4rem;
}

div.banner a:visited, a:link {
  text-decoration: none;
  color: white;
}
/* 
.news-grid a:link {
  /* color: #fff; */
  /* color: #459afb; */
/* } */ 

.news-grid ul li a:visited  {
  /* text-decoration: line-through !important;
  text-decoration-color: red; */
  background-color: #000;
  color: #fff
}

.selected {
background-color: white;
color: black !important;
}

/* 
a[href*="/source/"] {
  text-decoration: none;
  color: white;
} */

button {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

.news-grid {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(3, 1fr);
}

.news-grid ul  {
  list-style-type: none;
  padding-left: 1rem;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0;
  overflow-wrap: break-word; /* Break long words */
  word-wrap: break-word; /* Legacy support */
}

.news-grid ul li {
  text-transform:  uppercase;
  padding: 0.15rem;
  line-height: 1.10rem;
}

.news-grid h2 {
  overflow-wrap: break-word; /* Break long titles if needed */
  word-wrap: break-word;
}

@media screen and (-webkit-min-device-pixel-ratio:0) { 
  .news-grid ul li {
    line-height: 1.2rem;
}

.news-grid ul li a {
  background-color: #fff;
  color: #000;
}

.news-grid ul li a:hover {
  color: #fff;
  background-color: #000;
}

.news-grid > div {
  padding: 0.5rem;
  min-width: 0; /* Allow shrinking below content size */
}

li {
  padding-bottom: 0.5rem;
}

#login-container{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 350px;
}

form p {
  margin: 0.5rem 0;
}

form input, form select {
  height: 2rem;
  font-size: 1rem;
  width: 100%;
  /* width: auto; */
}

form [type="checkbox"]{
  width: 10%;
}

div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

div label {
  font-family: "FoundersGrotesk-Bold";
  text-transform: uppercase;
  letter-spacing: -.03rem;
  font-size: 1.8rem;
}

#add-feed-container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#categories_container{
  margin-left: -1rem;
}

#categories_container ul {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin: 0;
  flex-wrap: wrap;
}

#categories_container ul li {
  list-style-type: none;
} 


#header_action_buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

#header_action_buttons_right {
  display: flex;
  flex-direction: row;
  gap: 1rem
}

#header_action_buttons a {
color: white
}

header button, header a {
  height: 0.95rem;
  text-transform: uppercase;
}

header a:hover {
  text-decoration: underline;
}

header a {
  color: white;
}

#loader_container{
  width: 20px;
}

.entry_suffix {
  text-transform: uppercase;
  font-size: 0.75rem;
}

.btn {
  padding: 0.5rem;
  text-transform: uppercase;
}

.btn-primary {
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
}

.btn-primary:hover {
  background-color: #fff;
  color: #000;
}


@media (max-width: 800px) {
  header{
    flex-direction: column-reverse;
    gap: 0;
  }

  #categories_container {
    margin-left: 0;
  }

  .news-grid {
    display: flex;
    flex-direction: column;
  }

  #header_action_buttons {
    justify-content: space-between;
  }

  #categories_container ul {
    gap: 1rem;
    row-gap: 0.5rem;
    padding: 0.25rem;
  }

  #categories_container ul li {
    padding-bottom: 0rem;
  } 
}

#loader,
#loader:before,
#loader:after {
  background: #ffffff;
  -webkit-animation: load1 1.75s infinite ease-in-out;
  animation: load1 1.75s infinite ease-in-out;
  width: 3px;  
  height: 15px;
}
#loader {
  color: #ffffff;
  text-indent: -9999em;
  margin: 2px auto;
  position: relative;
  font-size: 11px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
#loader:before,
#loader:after {
  position: absolute;
  top: 0;
  content: '';
}
#loader:before {
  left: -8px;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
#loader:after {
  left: 8px;
}
@-webkit-keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 8px;
  }
  40% {
    box-shadow: 0 -4px;
    height: 5px;
  }
}
@keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 18px;
  }
  40% {
    box-shadow: 0 -2px;
    height: 12px;
  }
}