body {
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

.background-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('https://ainamachi.neocities.org/Assets/20250725.jpg') no-repeat center top;
  background-size: cover;
  background-position: 0% 35%;
  z-index: -10;
}

  
.top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 25px;
  margin-top: 1rem;
  flex-wrap: wrap; /* allow wrap on small screens */
  gap: 1rem;
}

.top-logo img {
  height: 250px;
  width: auto;
}

.temp-text {
  background: rgba(128, 128, 128, 0.5);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap; /* prevents wrapping */
}
.main-content {
  position: relative;
  padding-bottom: 550px; /* Give space so fixed previews don’t cover content */
}
.latest-previews {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  filter: drop-shadow(12px 12px 12px #808080);
  z-index: 10;
  box-sizing: border-box;
}

.preview-card {
  display: flex;
  width: 100%;
  max-width: 300px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  transition: transform 0.2s ease;
}

.preview-card:hover {
  transform: scale(1.02);
}

.preview-card .info {
  width: 37.5%;
  padding: 1rem;
  color: white;
  font-family: sans-serif;
}

.preview-card .info .new {
  font-size: 0.75rem;
  background: #ffcc99;
  color: white;
  padding: 4px 4px;
  border-radius: 6px;
}

.preview-card .info .title {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0.2rem 0;
  filter: drop-shadow(4px 4px 4px #808080);
}

.preview-card .info .date {
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 0.2rem 0;
}

.preview-card .info .source {
  font-size: 0.75rem;
  background: #798686;
  color: white;
  padding: 4px 4px;
  border-radius: 6px;
}

.preview-card .thumb {
  width: 62.5%;
  aspect-ratio: 1 / 1; /* forces square */
  background-size: cover;
  background-position: center;
}
  
  @media (max-width: 828px) {
      body {
        margin: 0;
      padding: 0;
      background-repeat: no-repeat;
      background-size: 100vh;
      background-position: 50% 10%;
      }
      
   .top-bar {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
  }

  .top-logo img {
    max-width: 200px;
  }

  .temp-text {
    font-size: 0.8rem;
}
  .main-content {
  position: relative;
  padding-bottom: 390px; /* Give space so fixed previews don’t cover content */
}
 .latest-previews {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem;
  }

  .preview-card {
    flex: 0 0 auto;
    width: 85vw;
    scroll-snap-align: start;
  }

  .latest-previews::-webkit-scrollbar {
    height: 6px;
  }

  .latest-previews::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }
}