:root {
  --color-black100: #000000ff;
  --color-black90: #00000090;
  --color-black60: #00000099;
  --color-black50: #00000080;
  --color-black40: #00000066;
  --color-black30: #0000004C;
  --color-black20: #00000033;
  --color-black10: #00000020;
  --color-black8: #00000014;
  --color-black6: #0000000f;
  --color-black5: #0000000d;
  --color-black4: #0000000a;
  --color-brand100: #3679ecff;
  --color-white100: #ffffffff;
  --color-white50: #ffffff80;
  --thumbnail: inset 0px 0px 0px rgba(255, 255, 255, 0.2), 0px 8px 40px rgba(0, 0, 0, 0.04), 0px 2px 5px rgba(0, 0, 0, 0.05), 0px 0px 2px rgba(0, 0, 0, 0.25);
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Custom easing curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Timing */
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("font/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "InterDisplay";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("font/InterDisplay-Medium.woff2") format("woff2");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: 0;
  list-style: none;
  font-family: var(--font-family);
  border: none;
  font-size: 15px;
  transition: all 0.2s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}
body {
  font-family: var(--font-family);
  color: var(--color-black100);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
h1 {
  font-family: "InterDisplay";
  font-size: 38px;
  line-height: 110%;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
h2 {
  font-family: "InterDisplay";
  font-size: 24px;
  line-height: 130%;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
.container{
  max-width: 1200px;
  margin: auto;
  position: relative;
  padding: 0 16px;
}
.container.small{
  max-width: 534px;
}


a {
  text-decoration: none;
  color: var(--color-black100);
}
a:hover {
  text-decoration: none;
  color: var(--color-black90);
}
.button {
  transition: all 0.2s ease;
  display: flex;
  height: 32px;
  padding: 4px 12px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  border: 1px solid var(--color-black8);
  text-overflow: ellipsis;
  white-space: nowrap;
  /* overflow: hidden; */
  line-height: 100%;
  align-items: center;
  align-content: center;
  align-self: center;
}
.button:hover {
  color: var(--color-black100);
  border: 1px solid var(--color-black10);
  scale: 1.02;
}
.button:active {
  scale: 0.99;
}
.button.selected {
  border: 1px solid var(--color-black40);
}

.pagination section {
  display: flex;
  width: 100%;
  gap:8px;
  flex-wrap: wrap;
}
.pagination section a{
  flex:1;
  width: 100%;
}

.ghost {
  border: none;
}
.ghost:hover {
  border: none;
}
.brand {
  color: var(--color-brand100);
}
.brand:hover {
  color: var(--color-brand100);
}
header a.brand {
  color: var(--color-brand100);
}
header a.brand:hover {
  color: var(--color-brand100);
}
span.brand {
  color: var(--color-brand100);
}
.solid {
  background-color: var(--color-black90);
  color: var(--color-white100);
  border: none;
}
.solid {
  background-color: var(--color-black100);
  color: var(--color-white100);
  border: none;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 0 0;
}
header span {
  display: flex;
 /* Changed to flex for desktop */
}
header span a:last-child {
  margin-left: 8px;
}
header .desktop {
  display: none;
}
.homepageHeadline{
  padding: 18vh 0 17vh 0;
  text-align: center;
  max-width: 530px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.homepageHeadline p:first-child{
  color: var(--color-black50);
}
.homepageHeadline h2{
  margin: 0 0 16px 0;
}
.homepageHeadline .newsletter{
  margin-bottom: 16px;
}
.homepageHeadline p a{
  color: var(--color-black100);
}
.homepageHeadline p a span{
  color: var(--color-black50);
}
.homepageHeadline p a:hover span{
  color: var(--color-black100);
}
.homepageHeadline .deckman img {
  width: 168px;
}
.newsletter {
  display: flex;
  max-width: 340px;
  min-width: 340px;
  justify-content: space-between;
  align-items: center;
  border-radius: 100px;
  background: var(--color-black5);
  padding: 0 18px;
  height: 42px;
  border: 1px solid var(--color-white100);
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.20);
  position: relative;
}
.newsletter:hover {
  background: var(--color-black4);
}
.newsletter input[type="email"]:focus {
  outline: none;
}
.newsletter:focus-within {
  border: 1px solid var(--color-white100);
  background: var(--color-black5);
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.10);
}
.newsletter form{
  display: flex;
  width: 100%;
  align-items: center;
  align-items: stretch;
}
.newsletter button {
  background: none;
  cursor: pointer;
  align-items: center;
  align-items: center;
  display: flex;
}
.newsletter input[type="email"] {
  height: 40px;
  flex: 1 1 auto;
  background: none;
}
.newsletter input[type="email"]::placeholder {
  color: var(--color-black40);
}
.newsletter input[type="email"]::-ms-input-placeholder {
 /* Edge 12 -18 */
  color: var(--color-black40);
}
.newsletter .newsletter-success{
  position: absolute;
  z-index: 9;
}
.newsletter .newsletter-back-button{
  position: absolute;
  z-index: 90;
  right: 16px;
  font-size:20px
}
.newsletter .newsletter-back-button:hover{
  text-decoration:none;
  border: none;
}
.newsletter .newsletter-success-message{
 color:#25BC29 !important;
}
.newsletter .newsletter-error-message{
 color:#FF4F40 !important;
}
.newsletter .newsletter-error{
  position: absolute;
}
.newsletter .newsletter-loading-button svg{
  width: 16px;
}

.filtersScroll{
  overflow-y: scroll;
}
.filtersScroll {
  -ms-overflow-style: none;
 /* Internet Explorer 10+ */
  scrollbar-width: none;
 /* Firefox */
}
.filtersScroll::-webkit-scrollbar {
  display: none;
 /* Safari and Chrome */
}
.filters{
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
}
.filters span{
  color: var(--color-black20);
}
.decks {
  padding: 0 0 40px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.deck {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16/9;
}
.deck::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  border-radius: 8px;
}
.deck:hover .deck-overlay {
  opacity: 1;
}
.deck:hover .deck-pill {
  opacity: 1;
}
.deck img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark overlay on hover */
.deck-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

/* Pill label on hover */
.deck-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(82, 82, 82, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}
.pagination .button{
  display: block;
  text-align: center;
  line-height: 150%;
}
.pagination .button:hover{
  scale: 1.002;
}
footer{
  margin-top: 104px;
  border-top: 1px solid var(--color-black6);
}
footer .container{
  padding-top: 32px;
}
footer .columns{
  display: flex;
  justify-content: space-between;
}
footer .columns .right{
  display: flex;
  justify-content: space-between;
}
footer .columns .right .column{
  display: flex;
  flex-direction: column;
  min-width: 160px;
}
footer .foot{
  padding: 24px 0;
  color: var(--color-black40);
  font-size: 13px;
  margin-top: 104px;
}
footer .foot a{
  color: var(--color-black50);
  font-size: 13px;
}
footer .foot a:hover{
  color: var(--color-black60);
  font-size: 13px;
}
footer .newsletter{
  min-width: 424px;
  max-width: 424px;
  margin: 12px 0;
}
footer .secondaryText{
  color: var(--color-black60);
}
footer .ast{
  position: absolute;
  top: -12px;
  left: 50%;
  font-size: 24px;
}

.about{
  margin: 96px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about .button{
  display: inline-flex;
  margin-bottom: 24px;
}
.secondaryText{
  color: var(--color-black60);
  margin-bottom: 16px;
}
.detail .secondaryText{
  margin-bottom: 0;
}
.detail .button{
  color: var(--color-black50);
  margin-bottom: 8px;
  margin-right: 8px;
}
.detail .button span{
  color: var(--color-black100);
  padding: 0 4px;
}
.detail h2{
  text-wrap:balance;
}
.detail p{
  text-wrap:balance;
}

@media only screen and (max-width: 1024px) {
  header{
      padding-top:16px;
 }
}
@media only screen and (max-width: 768px) {
.deck-pill {
  bottom: 8px;
  left: 8px;
}
header span a:last-child{
  display: none;
}
  header{
      padding-top:16px;
 }
  .decks {
      grid-template-columns: 1fr;
 }
  footer .columns{
      flex-direction:column;
      gap:48px 
 }
  footer .right{
      flex-direction:column;
 }
  footer .foot {
      margin-top: 24px;
 }
  footer .newsletter{
      max-width:100%;
      min-width:100%;
 }
  .homepageHeadline .newsletter{
      max-width: none;
      min-width: auto;
      width: 90%;
 }
 .homepageHeadline h2{
     font-size:20px;
     margin-top:8px 
}
  header{
      flex-wrap: wrap;
 }
  header .menu {
      display: block;
      text-align: right;
 }
  header .menu .button.brand {
      display: none;
 }
  header .desktop {
      display: block;
      flex: 1 0 100%;
      text-align: center;
      margin-top: 8px;
      line-height: 140%;
 }
}

/* ==========================================================================
   Loading States
   ========================================================================== */
.loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out-quart);
}

/* ==========================================================================
   Deck Viewer
   ========================================================================== */
.deck-viewer {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: start;
  gap: 16px;
}

.deck-viewer__slide {
  position: relative;
  background: var(--color-black4);
  border-radius: 8px;
  overflow: hidden;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-viewer__slide img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
}

.deck-viewer__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  border-radius: 8px;
}

.deck-viewer__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  cursor: pointer;
  z-index: 10;
}

.deck-viewer__nav--prev {
  left: 0;
  cursor: w-resize;
}

.deck-viewer__nav--next {
  right: 0;
  cursor: e-resize;
}

.deck-viewer__counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px 1px 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
}
.deck-viewer__counter .sep {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 2px;
}

.deck-viewer__empty {
  color: var(--color-black50);
  padding: 48px;
}

.deck-viewer__grid {
  overflow-y: auto;
  background: var(--color-black4);
  border-radius: 16px;
  padding: 8px;
  scroll-padding: 8px;
}

.deck-viewer__thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 4px;
  margin: -4px;
}

.deck-viewer__thumb {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  overflow: visible;
  transition: box-shadow var(--duration-fast) var(--ease-out-quart);
}

.deck-viewer__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  border-radius: 8px;
}

.deck-viewer__thumb:hover::after {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.deck-viewer__thumb.active {
  outline: 2px solid var(--color-brand100);
  outline-offset: 2px;
  border-radius: 8px;
}

.deck-viewer__thumb.active::after {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.deck-viewer__thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Deck Viewer Responsive */
@media (max-width: 900px) {
  .deck-viewer {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .deck-viewer__slide {
    max-height: 50vh;
  }

  .deck-viewer__slide img {
    max-height: 50vh;
  }

  .deck-viewer__grid {
    max-height: 180px;
  }

  .deck-viewer__thumbs {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 600px) {
  .deck-viewer__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .deck-viewer__grid {
    max-height: 140px;
  }
}

/* ==========================================================================
   Pagination / Load More
   ========================================================================== */
#load-more-container {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

#load-more-btn {
  min-width: 200px;
}

#load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
