body { margin: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; } header { height: 20vh; } main { height: 60vh; } footer { height: 10vh; font-size: 0.8em; } body { display: flex; flex-direction: column; } header, main, footer { padding: 1rem; margin: 0; border-radius: 40px; } header { font-family: "police1"; background: #9557b5ff; color: white; font-size: 2rem; display: flex; gap: 6%; padding: 1rem 4rem; .title { color: white; } } header section p:not(:first-child) { font-size: 14px; } header .title, header section, header nav { text-decoration: none; outline: none; font-size: 18px; text-decoration: none; line-height: 2.5rem; } /* Filter info banner */ .filter-info { background: rgba(149, 87, 181, 0.9); color: white; padding: 0.5rem 1rem; text-align: center; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 1rem; } .clear-filter { color: white; text-decoration: none; padding: 0.25rem 0.75rem; background: rgba(0, 0, 0, 0.2); border-radius: 15px; font-size: 0.85rem; transition: background 0.2s; } .clear-filter:hover { background: rgba(0, 0, 0, 0.4); } main { height: 60vh; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; /* critical: force column width so new columns form */ grid-auto-columns: 260px; gap: 1rem; padding: 1rem; box-sizing: border-box; overflow-x: auto; overflow-y: hidden; } .card { background: #eee; border-radius: 10px; padding: 1rem; } main { background: #3c856bff; } footer { background: #222222ff; overflow: hidden; } /* Years navigation in footer */ .years-nav { height: 100%; display: flex; align-items: center; } .years-scroll { display: flex; gap: 1rem; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; padding: 0.5rem 0; width: 100%; } /* Hide scrollbar but keep functionality */ .years-scroll::-webkit-scrollbar { height: 4px; } .years-scroll::-webkit-scrollbar-track { background: transparent; } .years-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 2px; } .year-link { color: white; text-decoration: none; padding: 0.5rem 1rem; border-radius: 20px; white-space: nowrap; transition: background 0.2s; font-size: 1rem; } .year-link:hover { background: rgba(255, 255, 255, 0.1); } .year-link.active { background: #9557b5ff; font-weight: bold; } /* .card { */ /* width: 20%; */ /* border: 1px solid white; */ /* color: white; */ /* margin: 1ch; */ /* padding: 2ch; */ /* } */ main { scroll-snap-type: x mandatory; } .card { scroll-snap-align: start; } .item { width: 50%; }