.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    z-index: -1;
    transition: background-image 1s ease-in-out;
}

main {
    width: 100%;
    min-height: calc(100vh - 60px); /* allow it to grow on smaller screens */
    margin-top: 60px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    
    display: flex;
    flex-direction: column; /* <--- stack vertically */
    align-items: center;
    justify-content: center; /* or 'flex-start' if you want it closer to the top */
    row-gap: 50px; /* space between h1 and paragraph */
    padding: 10vh 20px 10vh; /* vertical spacing */
}

.main-head  {
    padding: 0 60px 0 60px;
}

.main-head h1  {
    font-family: clear;
    font-size: 6.4rem;
    text-align: center;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px  1px 0 black, 1px  1px 0 black;
    padding-bottom: 20px;
}

main h3 {
    font-size: 3rem;
    padding-bottom: 20px;
}

main p {
    font-size: 2.2rem;
    line-height: 1.75;
    max-width: 650px;
    text-align: center;
}

.main-intro p {
    text-align: center;
    margin: 0 auto;
}

.text-container {
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    max-width: 1000px;
    margin: 50px auto; /* Center it horizontally */

    display: flex;               /* NEW */
    flex-direction: column;      /* Stack vertically */
    align-items: center;         /* Center horizontally */
    justify-content: center;     /* Center vertically */
    min-height: 400px;           /* Optional: set height to better visualize centering */
}

.text-container h1, .text-container p, .text-container a {
    color: #fff; /* Ensure text is visible on dark background */
}

main a {
    margin: 30px auto;
    font-size: 1.8rem;
    display: block;
    background-color: var(--site-color-01-hover);
    padding: 10px 20px;
    width: fit-content;
    border: 1px #fff solid;
}

main a:hover {
    background-color: var(--site-color-01);
}

main .main-quotes p {
    border-left: 4px solid var(--site-color-01-hover);
    padding-left: 20px;
    margin: 40px 0;
}

main .main-intro {
    padding-bottom: 4vh;
}


/* CATEGORY SECTION */


.index-category {
    width: 100%;
    padding: 60px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.index-category-box {
    width: 40rem;
    height: 25rem;
    background-color: #111;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.index-category-box:nth-child(1) {
    border: #fff solid;
    background-image: url(../img/categories/dark.png);
    background-position: center 30%;
}

.index-category-box:nth-child(2) {
    border: #fff solid;
    background-image: url(../img/categories/human-furniture.jpg);
    background-position: center 61%;
    background-size: 200%;
}

.dark-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--site-color-01);
    opacity: 0.35;
    transition: all ease-in-out 200ms;
}

.index-category-box:hover .dark-overlay {
    opacity: 0;
}

.index-category-box h3 {
    font-size: 3rem;
    line-height: 1.3;
    padding-bottom: 10px;
    font-weight: bold;
    text-align: center;
    text-shadow: -2px 2px 4px #000;
    z-index: 100;
}

#age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-align: center;
    padding: 30px;
    backdrop-filter: blur(4px);
}

#age-gate h2 {
    font-size: 4rem;           /* Big dramatic text */
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 0 20px var(--site-color-01);
    line-height: 1.4;
}

#age-gate button {
    padding: 18px 40px;
    font-size: 2.2rem;           /* Bigger button text */
    background-color: transparent;
    color: #fff;
    border: 3px solid var(--site-color-01);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 8px;
    text-transform: uppercase;
}

#age-gate .age-buttons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}


#age-gate button:hover {
    background-color: var(--site-color-01-hover);
    color: #fff;
}




@media (max-width: 768px) {
  .main-head h1 { font-size: 2.6rem; padding: 0 10px; padding-bottom: 20px; }
  main h3 { font-size: 1.8rem; }
  main p { font-size: 1.4rem; line-height: 1.5; padding: 0px 10px; }
  .text-container {
    padding: 20px; min-height: auto; margin: 30px 10px;
  }
  main a {
    font-size: 1.4rem; padding: 8px 16px;
  }
  .index-category {
    flex-direction: column; align-items: center; gap: 20px; padding: 40px 0;
  }
  .index-category-box {
    width: 90%; height: 200px;
  }
  .index-category-box h3 { font-size: 2rem; }
}

@media (max-width: 500px) {
  .text-container {
    width: 90vw;              /* Condense width to viewport */
    padding: 15px;            /* Reduce padding */
    margin: 20px auto;        /* Center it */
    min-height: auto;         /* Allow it to shrink naturally */
    box-sizing: border-box;   /* Include padding in width */
  }
}

@media (max-width: 390px) {
  .main-head h1 {
    font-size: 2.3rem;
    padding: 0 10px;
    padding-bottom: 20px;
  }
  main h3 { font-size: 1.6rem; }
  main p { font-size: 1.2rem; }
  .text-container {
    padding: 15px;
  }
}

@media (max-width: 600px) {
  #age-gate h2 {
    font-size: 2.4rem;
  }

  #age-gate button {
    font-size: 1.4rem;
    padding: 12px 24px;
  }
}
