@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@100;200;300;400;500;600;700;800;900&display=swap);

:root {
  --header-font-size: 2.8rem;
  --subtitle-font-size: 2rem;
  --normal-font-size: 1.6rem;
  --button-font-size: 1.4rem;
  --small-font-size: 1.4rem;
  --transition-time: 0.3s;
  --page-width: 75%;
  --header-footer-width: 95%;
  --min-width: 360px;
  --main-font: "Roboto", sans-serif;
  --secondary-font: "Lora", serif;
  --standard-padding-unit: 5px;
  --header-font: "Roboto", sans-serif;
  --main-bg-color: whitesmoke;
  --light-grey-shade-color: #4c4040;
  --text-color: #070606;
  --primary-accent-color: #ffed92;
  --secondary-accent-color: #4353ff;
  font-size: 62.5%;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--main-bg-color);
  font-family: var(--main-font);
  color: var(--text-color);
  min-height: 100vh;
  min-width: 350px;
  display: flex;
  flex-direction: column;
}

#aj-logo-link-dark {
  text-decoration: none;
  color: whitesmoke;
  transition: color 0.2s ease;
}

#aj-logo-link-dark:hover {
  color: #acacac;
}

img {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.blog-main-body {
  padding: 0 20px;
}

h3 {
  margin: 0;
  padding: 0;
  font-weight: 600;
  line-height: 26px;
  font-size: var(--subtitle-font-size);
}

p {
  padding: 0;
  margin: 0;
  line-height: 22px;
}

p.unaffected-p {
  padding: 0;
  margin: 0;
  line-height: 22px;
  font-size: var(--small-font-size);
}

.vanish {
  opacity: 0;
  transition: linear var(--transition-time);
}

.header-emphasis {
  color: inherit;
  text-decoration: none;
  background-position-y: 0%;
  background-image: linear-gradient(transparent 50%, #ccff00 50%);
  transition: background 200ms ease;
  background-size: auto 150%;
}

.item:hover .header-emphasis {
  background-position-y: 85%;
  background-size: auto 250%;
}

.dark-link,
.dark-link:link {
  color: inherit;
  text-decoration: none;
  background-position-y: 0%;
  background-image: linear-gradient(transparent 50%, #5e5353 50%);
  transition: background 200ms ease;
  background-size: auto 150%;
  font-weight: 400;
}

.dark-link:hover {
  background-position-y: 85%;
  background-size: auto 250%;
  text-decoration: underline;
  color: whitesmoke;
}

.darkest-link,
.darkest-link:link {
  color: #747373;
  transition: background 200ms ease;
}

.darkest-link:hover {
  color: #a8a8a8;
}

.light-link,
.light-link:link {
  color: inherit;
  text-decoration: none;
  background-position-y: 0%;
  background-image: linear-gradient(transparent 50%, #ccff00 50%);
  transition: background 200ms ease;
  background-size: auto 150%;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.light-link:hover {
  background-position-y: 85%;
  background-size: auto 250%;
  color: var(--text-color);
}

::-moz-selection {
  background: #ccff00;
  color: #000;
}

::selection {
  background: #ccff00;
  color: #000;
}

::-moz-selection {
  background: #ccff00;
  color: #000;
}

.subtitle-text {
  color: silver;
  font-size: var(--small-font-size);
  font-weight: 300;
}

#header-section {
  min-width: var(--min-width);
  z-index: 99;
  border-bottom: 1px solid #ebebeb;
}

header {
  background-color: var(--text-color);
  color: whitesmoke;
  font-weight: 400;
  height: 40px;
  text-align: center;
  padding: 10px;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  pointer-events: none;
  overflow: hidden;
}

.header {
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
  width: 100%;
  top: 0;
  z-index: 99;
}

.header-content {
  width: var(--header-footer-width);
  max-width: var(--max-width);
  min-width: var(--min-width);
  margin: 0 auto;
  padding: 0 5px;
  display: grid;
  grid-column-gap: 0px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr auto;
}

.has-padding {
  padding: 8px 20px 0 20px;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: whitesmoke;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.logo {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -1px;
  animation: fade 2s ease-in-out infinite;
}

.header-logo {
  padding: 18px 0;
  margin-left: 4px;
  letter-spacing: 0.5px;
  color: var(--text-color);
  grid-row: 1;
  grid-column: 1;
  text-align: left;
  font-size: var(--header-font-size);
  font-family: var(--header-font);
}

.show {
  opacity: 1;
}

.vanish {
  opacity: 0;
}

.header-search {
  align-items: center;
  grid-row: 1;
  grid-column: 2;
  color: var(--text-color);
  margin: auto 4px auto 0;
  text-align: right;
  font-size: var(--button-font-size);
  border-radius: 20px;
}

.header-search .search-input {
  background-color: transparent;
  border: none;
  border-radius: 20px;
  padding: 8px 4px;
  color: inherit;
  font-size: inherit;
  font-family: "Roboto", sans-serif;
  transition: background-color 0.2s ease;
  text-align: right;
}

#no-results {
  display: none;
  margin: auto;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.transition {
  transition: opacity 0.5s ease;
}

.header-search .search-input:not(:-moz-placeholder-shown) {
  background-color: var(--text-color);
  color: white;
}

.header-search .search-input:focus,
.header-search .search-input:not(:placeholder-shown) {
  background-color: var(--text-color);
  color: white;
}

.header-search input::-moz-placeholder {
  font-size: 1.8rem;
  color: #b3b3b3;
}

.header-search input::placeholder {
  font-size: 1.8rem;
  color: #b3b3b3;
}

.header-search input:focus::-moz-placeholder {
  color: white;
}

.header-search input:focus::placeholder {
  color: white;
}

.btn {
  color: var(--text-color);
  font-family: var(--main-font);
  background-color: #dddddd;
  font-size: var(--button-font-size);
  font-weight: 400;
  text-decoration: none;
  border: 0;
  border-radius: 5px;
  padding: 5px 6px;
  margin: 0 3px;
  cursor: pointer;
}

.btn:first-child {
  margin: 0 4px 0 0;
}

.btn:last-child {
  margin: 0 0 0 4px;
}

.btn-no-hover {
  color: var(--text-color);
  font-family: var(--main-font);
  background-color: #dddddd;
  font-size: var(--button-font-size);
  text-decoration: none;
  border: 0;
  border-radius: 5px;
  padding: 5px 6px;
  margin: 0 4px;
  cursor: pointer;
}

.btn-focus {
  background-color: var(--secondary-accent-color);
  color: white;
}

.hide-content {
  opacity: 0;
}

.filter-bar {
  grid-row: 2;
  grid-column: 1/3;
  align-items: left;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  padding: 0 0 8px 0;
  height: 36px;
  margin-left: 4px;
  margin-right: 4px;
  -webkit-overflow-scrolling: touch; /* Enables smooth inertia scrolling */
  scroll-snap-type: none; /* Removes snap scrolling for a looser feel */
  width: 100%;
  box-sizing: border-box;
}

.filter-bar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.filter-bar > * {
  scroll-snap-align: start;
  /* min-width: 80px; */ /* Removed to prevent unwanted spacing */
  display: inline-block;
}

.filter-nav-left {
  position: absolute;
  left: 0;
}

.filter-nav-right {
  position: absolute;
  right: 0;
}

.filter-nav-container {
  position: relative;
}

.btn-hide {
  display: non;
}

#main-content-section {
  min-width: var(--min-width);
}

.main {
  background-color: var(--main-bg-color);
  width: 100%;
  padding: 0 10px;
}

.grid {
  width: var(--page-width);
  min-width: var(--min-width);
  margin: 0 auto;
  padding: 0 0 30px 0;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fill, minmax(335px, 1fr));
  grid-auto-rows: 2.5px;
}

.item {
  position: relative;
  height: 100%;
  width: 100%;
  background-color: #ffffff;
  border-radius: 12px;
  text-align: left;
  vertical-align: middle;
  z-index: 1;
  transition: var(--transition-time);
  overflow: hidden;
}

.attention {
  background-color: #dbe1ff;
}

.count-element {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.count-element.show {
  opacity: 1;
}

.btn span {
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

#top-marquee {
  opacity: 1;
  transition: opacity 0.1s ease;
}

#top-marquee.hide {
  opacity: 0;
}

.blog-image img {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.blog-category {
  padding: 20px 20px 8px 18px;
  line-height: 33px;
}

.blog-date {
  color: silver;
  padding: 5px 0 14px 0;
  font-size: var(--button-font-size);
}

.blog-content {
  padding: 1px 0 12.5px 0;
  font-size: var(--normal-font-size);
}

#footer-section {
  min-width: var(--min-width);
  background-color: var(--text-color);
  color: whitesmoke;
}

main {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: auto;
}

#main-container {
  visibility: hidden;
}

footer {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
}

.footer {
  padding: 75px 0 0 0;
  width: 100%;
}

.disabled {
  display: none;
}

.no-pointer {
  pointer-events: none;
}

.footer-content {
  width: var(--header-footer-width);
  max-width: var(--max-width);
  min-width: var(--min-width);
  margin: 0 auto;
  display: grid;
  padding: 0 10px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 0.8fr 0.5fr;
  overflow: hidden;
  font-size: var(--button-font-size);
}

#footer-special {
  font-size: 22px;
}

.footer-about {
  grid-row: 1;
  grid-column: 1;
  text-align: left;
  font-weight: 300;
}

.footer-other {
  grid-row: 1;
  grid-column: 2;
  text-align: right;
}

.footer-subtext {
  grid-row: 2;
  grid-column: 1/3;
  color: #747373;
  font-weight: 400;
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 40px;
  text-align: justify;
  text-align: center;
}

.item:hover {
  cursor: pointer;
}

@keyframes fade {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.arrow::before {
  content: "↘"; /* Desktop character */
}

@media (max-width: 490px) {
  .header-search input::placeholder {
    font-size: 1.6rem;
    color: #b3b3b3;
  }

  .arrow::before {
    content: "↘"; /* Mobile character */
    font-size: 2.6rem;
    display: inline-block;
  }

  .grid {
    width: 95%;
  }

  .header-logo {
    font-size: 25px;
  }

  .item {
    box-shadow: rgba(100, 100, 111, 0.125) 0px 8px 10px 0px;
    border-radius: 12px;
    overflow: hidden;
    transform: translateZ(0);
  }
}

@media (min-width: 768px) {
  .btn:not(.btn-focus):hover {
    background-color: #666666;
    color: #ffffff;
  }
  .item:hover {
    box-shadow: rgba(100, 100, 111, 0.4) 0px 8px 30px 0px;
    border-radius: 12px;
    z-index: 98;
    overflow: hidden;
    transform: translateZ(0);
  }
  .item img {
    transition: transform 0.1s ease-in;
    transform-origin: bottom;
  }
  .item:hover img {
    transform: scale(1.01);
  }
}

@media (max-width: 970px) {
  :root {
    --page-width: 50%;
  }
}

@media (hover: none) {
  .dark-link:hover,
  .dark-link:active,
  .dark-link:focus,
  .darkest-link:hover,
  .darkest-link:active,
  .darkest-link:focus,
  .light-link:hover,
  .light-link:active,
  .light-link:focus,
  .header-emphasis:hover,
  .header-emphasis:active,
  .header-emphasis:focus {
    background-position-y: 0%;
    background-size: auto 150%;
    color: inherit;
    text-decoration: none;
    transition: none;
  }

  .item:hover,
  .item:active,
  .item:focus {
    box-shadow: none;
    transform: none;
  }
}
