/* de/style.css - generated copy of ../style.css for the German shelf (no Google Fonts import, image paths adjusted).
   If you change ../style.css, regenerate this file. */


/* Google Fonts @import removed on purpose: the German pages load no third-party servers (GDPR). */


body {
    font-family: "Bebas Neue", sans-serif;
    max-width: 100%;
    overflow-x: hidden;
    
    margin: 0;
    padding: 0;
    
}

html{
    scroll-behavior: smooth;
}

#animated-title-bg{
    /* background: linear-gradient(45deg, hsl(205, 44%, 81%), rgb(126, 142, 156), rgb(98, 117, 124), #7a9d9c, rgb(203, 229, 237)); */
    background: linear-gradient(
  45deg,
  #f7d7f7,   /* pastel pink */
  #f9e9b8,   /* soft butter yellow */
  #cfe8ff,   /* baby blue */
  #d7f5e9,   /* mint green */
  #fce4ec    /* light blush */
);

    background-size: 200% 200%;
    animation: color 12s ease-in-out infinite;
}

@keyframes color {
    0%{
        background-position: 0 50% ;
    }
    50%{
        background-position: 100% 50%;
    }
    100%{
        background-position: 0 50% ;
    }
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px 30px;
    
}



/* Header Styles */

/* games section  demakation*/
.games-content {
    background-color: #f2f2f2;
    /* background-image: url(../images/catagoryBG.png); */
     background: linear-gradient(
  225deg,
  #1a2a6c 0%,   /* bright navy highlight */
  #16225a 30%,  /* rich mid‑navy */
  #0f1a45 65%,  /* deep inky navy */
  #0a122f 100%  /* glossy midnight shadow */
);
    background-size: cover;
    background-repeat: no-repeat;
    padding: 0px 0;
    text-align: center;

}

/* games banner ad */

.library-banner-ads {
    position: relative;
    background-color: #f2f2f2;
    padding: 10px 0;
    text-align: center;
    /* background-color: pink; */
   
}

/* Banner Ad Styles */
.banner-ad {
    max-width: 100%;
    height: auto;
}

/* -------------------------------- */

#banner1{
    padding-bottom: 0;

}

.book img {
    max-width: 100%;
    width: 100%;

    /* Clamp every cover to one shape so each category row reads evenly.
       Measured across all 105 covers the range is 0.65-0.72 with a median of
       0.68, so 17/25 sits dead centre and the crop stays symmetrical: the
       tallest loses about 2% off each edge, the widest about 3% off each
       side. Nothing is stretched - `cover` crops rather than distorts. */
    aspect-ratio: 17 / 25;
    object-fit: cover;
    object-position: center top;   /* favour the title end of the cover */
}

.book h3 {
    margin: 0;
    font-size: 18px;
}

.book p {
    margin: 5px 0;
}

.book {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.book:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.books-games{
    position: absolute;
    top: 50px;
    z-index: 200;   /* dropdowns must clear the carousel and banners */
}

.books-games ul{
    font-size: 1.1em;
    list-style-type: none;   
}
.book > p {
    font-size: 10px;
}
/* ----------------------------------banner carousel ----------------------------- */
.carousel-container {
    box-sizing: border-box;
    position: relative;

    max-width: 95.5%;
    margin: 20px auto;
    margin-bottom: 0 ;
    
    overflow: hidden; /* Ensure the carousel container hides overflow */
  }

  .carousel-wrapper {
    display: flex;
    align-items: flex-start;   /* don't stretch slides to the tallest one */
    transition: transform 0.5s ease;
  }

  .carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;    /* slide 1's 10px border must sit inside the 100% */
    overflow: hidden;
  }

  .carousel-item img {
    display: block;
    width: 100%;
    height: auto;              /* keep the image's own aspect ratio */
    object-fit: cover;
  }

  .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* padding: 0 0px; */
    z-index: 100;
  }

  .carousel-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 18px;
  }

  .carousel-nav button:hover {
    background: rgba(0, 0, 0, 0.7);
  }

  .carousel-nav .left-btn {
    left: 0;
  }

  .carousel-nav .right-btn {
    right: 0;
  }
 

  /* --------------------------end banner carousel--------------------------------- */


ul{
    
    background-color: none;


}

li{
    
    color:rgb(129, 224, 239);
    
}

ul > a {
    text-decoration: none;
}


.game-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px 30px;
}



.game img {
    max-width: 100%;
    width: 100%;

    /* Same clamp as the book covers, so every row on the page shares one
       shape. Measured across all 29 game images the range is 0.65-0.73 with
       a median of 0.67, all portrait, so 17/25 crops only a few percent and
       nothing is stretched. */
    aspect-ratio: 17 / 25;
    object-fit: cover;
    object-position: center;
}

.game h3 {
    margin: 0;
    font-size: 18px;
}

.game p {
    margin: 5px 0;
}

.game {
    /* border: 1px solid #ccc; */
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    /* background-color: rgb(237, 218, 230); */
    border: 1px solid skyblue;
    border-radius: 2px;
}

.game:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.game-title{
    color:darkblue;
    
}
.game-title + p {
    color:black;
    font-size: 10px;
}



/* Header Styles */
.header {
    position: relative;
    background-image: url('../images/bookledge.jpg'); /* Replace 'header-background.jpg' with your image path */
    background-size: cover;
    background-position: center;
    color: white;
    /* text-align: center; */
    text-align: center;
    padding: 20px 0;
    padding-top: 0;
    padding-bottom: 60px;
    margin-bottom: 10px;

}

.header-content {
    /* position: relative; */
    max-width: 600px;
    margin: 0 auto;
}

.title {
    font-weight: bold;
    font-size: 48px;
    margin-bottom: 10px;
    color:rgb(23, 127, 143);
}

.subtitle {
    position: relative;
    font-weight: bold;
    font-size: 24px;
    margin-top: 0;
    color: rgb(43, 61, 62);
}

.bubble{
    width: 20px;
    height: 20px;
    position: absolute;
    top: 0;
    opacity: 0;
    z-index: 100;
    animation: floatUp 5s forwards;

    /* Star Shape  */
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );

    /* Bubble Color */
    background-color: rgb(176, 176, 229);

    /* Glossy Highlight */
    background-image: radial-gradient(40% 40% at 75% 25%, rgba(255, 255, 255, 0.9), transparent);

    /* Soft Glow */
    filter: drop-shadow(0 0 8px rgba(150, 150, 255, 0.4));
    border: 2px solid rgba(87, 85, 180, 0.35);
    box-sizing: border-box;

}
    

/* .bubble{
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-image: radial-gradient(40% 40% at 75% 25%, rgba(255, 255, 255, 2),
    transparent);
    background-color: rgb(176, 176, 229);
    border: 2px solid rgba(87, 85, 180, 0.336);
    box-sizing: border-box;
    position: absolute;
    z-index: 100;
    top: 0;
    opacity: 0;
    animation: floatUp 5s forwards;
} */
@keyframes floatUp {
    0%{

    }
    25%{
        opacity: 0.75;
    }
    100%{
        top: var(--top);
        opacity: 0;
    }
    
}



/* What's New Section Styles */
.whats-new {
    padding: 20px;
    padding-top: 0;
    text-align: center;
    background-color: rgba(48, 125, 212, 0.11);
    margin: 0 30px;

}

.section-title {
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 10px;
}

/* --------------------------media scroller------------------------------------------------------- */
.media-scroller{
    gap: 1.4rem;
    display:grid;
    grid-auto-flow: column;
    grid-auto-columns: 21%;
    overflow-x: auto;
}

.media-cover{
    position: relative;
}


.media-cover > img{
    inline-size: 65%;
    padding-bottom: 10px;

    /* Clamp every icon to one shape so the row reads evenly.
       The source art is already near-uniform (measured 0.68-0.72, median
       0.69). Pinned to 17/25 to match the book and game rows, so every
       scroller on the page shares one shape. Crop is a few percent at most,
       and nothing is stretched - `cover` crops rather than distorts. */
    aspect-ratio: 17 / 25;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 850px) {
    
    .banner-ad{
        max-width: 90%;
    
    }

   
}

/* Adjust book cover size for different screen sizes */
@media (max-width: 768px) {
    .media-cover > img{
        inline-size: 120%; /* Adjust aspect ratio for smaller screens */

    }
    .banner-ad{
        max-width: 90%;
        min-height: 40px;
    }

    .media-scroller{
       
        grid-auto-columns: 34%;
    }  
    .carousel-container{
        max-width: 90% ;
    }
}

@media (max-width: 480px) {
    .book-cover {
        inline-size: 130%; /* Adjust aspect ratio for even smaller screens */

    }
    .banner-ad{
        max-width: 90%;
        min-height: 40px;
    }
    li{
        font-size: 1rem;
    }

    .media-scroller{
       
        grid-auto-columns: 31%;
    }  
    
    .title{
         font-size: 40px;
    }
    .subtitle{
        font-size: 16px;
        }

    .container{
        padding: 20px 20px;
    }

    .search-container{
        padding: 20px 20px;
        
    }
    .game-container{
        padding: 20px 20px;
    }
    .whats-new{
        margin: 20px 20px;
        margin-bottom: 0px;
    }
    button > img{
        height: 2em;
     }

}

.privacy-terms{
    display: inline;
}

.title-image{
    /* height: 100px; */
    width: 40%;
}



/* Footer Styles */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info p,
.copywrite-info p {
    margin: 5px 0;
}

.search{
    position: absolute;
    right: 10%;
    top:25%;
    height: 50px;
    width: 70px;
    /* border: 1px solid white; */
    padding: 20px 0;
    padding-bottom: 0px;
    z-index: 99;
}

.search-box {
    position: fixed;
    z-index: 1000;   /* sit above the header, title art and Halloween layers */
    top: -30%;
    right: 0;
    width: 80%;
    background-color: #333;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border: 1px solid white;
    border-radius: 10px 0 0 10px;
    background-color: rgba(169, 162, 162, 0.4)

}
.search-box.show {
    transform: translateY(450%);
}

.search-btn{
    
     padding: 8px 6px;
    cursor: pointer;   
    margin: 0;
}


.btn{
    position: relative;
    bottom: 20px;
}

button{
    background: transparent;
    border: 1px solid transparent;
}
button > img{
   height: 4em;
}

button:hover{
    border-radius: 10px;
    border: 1px inset white;
}





.social-media-icons a {
    margin: 0 5px;
}

.social-media-icons img {
    width: 30px;
    height: auto;
}

@media (max-width: 480px) {
   
    .btn{
        bottom: 10px;
        left: 20px;
    }
    button > img{
        height: 3em;
     }

}

/* -----------------------search page results------------------------ */

.search-container{
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px 30px;
    /* margin: 0 90px; */

}

.search-results img {
    max-width: 100%;
    height: auto;
}

.search-results h3 {
    margin: 0;
    font-size: 18px;
}

.search-results p {
    margin: 5px 0;
}

.search-results {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.search-results:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.search-results > p {
    font-size: 10px;
}

#clear-search{
    display: none;
    background-color: none;
    padding: 0 30px;
    margin: 10px 0px;
}

#clear-search-btn{
 padding: auto;
 background-color: rgba(0, 255, 255, 0.2);
 font-size: 1em;
 border-radius: 30px;
 color:rgba(0, 0, 0, 0.4)
}
@media (max-width: 480px) {
   
    .search-container{
        padding: 20px 20px;
        
    }

}
/* ---------------------------------------Top Text Scroller-------------------------- */

.text-scroller-container {
    overflow: hidden;
    height: auto; /* Use the full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    
    
    /* background-color: rgb(64, 149, 165); */
  background: linear-gradient(
  225deg,
  #1a2a6c 0%,   /* bright navy highlight */
  #16225a 30%,  /* rich mid‑navy */
  #0f1a45 65%,  /* deep inky navy */
  #0a122f 100%  /* glossy midnight shadow */
);

  

/* Insert border effect */
outline: 3px solid white;
outline-offset: -6px;
  }
  
  .text-scroller {
    width: 100%;
  }
  
  .text-scroller-content {
    text-align: center;
    color: lightcyan;
  }
  
  .text-scroller-content p {
    margin: 0;
    padding: 0;
    font-size: 1.2em;
    line-height: 1.5;
  }
  
  /* Optional styles for better visibility */
  .text-scroller-content p {
    background-color: rgba(92, 113, 120, 0.39); /* Semi-transparent background */
    padding: 10px;
    border-radius: 5px;
  }

  /* ---------------------------------------------------------Fav COntainer----------------------- */
 

  .fav-container {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    
    
}
.fav-title{
    color:rgb(68, 25, 14);
    margin:  5px;
    
}

.fav-book{
    background-color: #f0f0f0;
    background-image: url(../images/softColors.png);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px;
    text-align: center; 
}

.fav-book p{
    font-size: 0.9em;
    margin: 5px;
}

.fav-book img{
    height: 230px;;
}

@media (max-width: 400px) {
    .fav-container {
        grid-template-columns: repeat(2, 1fr);
        margin:  0px ;
        
    }
    .text-scroller-content p{
        font-size: 1em;
    }
    .subtitle{
        font-size: 0.8em;
    }
}

.shake:hover {
    animation: shake 1s; /* Run for 1 second */
    animation-iteration-count:initial; /* Repeat the animation indefinitely */
    box-shadow: 3px 3px 3px 3px rgba(66, 66, 64, 0.75);
  }

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
  }

  /* ---------------------------whats new image pop-up---------------------- */
  

  .pop-up {
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50% -50%;
    width: 60%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    color: white;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.5s;
  }

  .media-cover:hover .pop-up{
    opacity: 1; /* Show the banner on hover */
  }



 

  #carousel-img1 {
    
    box-sizing: border-box;
    border: 10px solid;
    animation: colorSlide 4s linear infinite;
    
  }

  @keyframes colorSlide {
    0% { border-color: red; }
    25% { border-color: yellow; }
    50% { border-color: blue; }
    75% { border-color: green; }
    100% { border-color: red; }
  }

  


/* ---------------------------Games category rows (side scrollers)---------------------- */

.game-row {
    padding: 5px 30px;
}

.game-row-title {
    color: darkblue;
    font-size: 22px;
    margin: 10px 0 5px;
    text-align: left;
}

.game-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 175px;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 4px 15px;
    scroll-snap-type: x proximity;
}

.game-scroller .game {
    scroll-snap-align: start;
    background-color: white;
}

/* Slightly smaller hover zoom inside scroller so cards don't clip */
.game-scroller .game:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .game-scroller {
        grid-auto-columns: 34%;
    }
}

@media (max-width: 480px) {
    .game-row {
        padding: 5px 20px;
    }
    .game-scroller {
        grid-auto-columns: 42%;
    }
    .game-row-title {
        font-size: 18px;
    }
}

/* Book cards inside category scrollers (Books section rows) */
.game-scroller .book {
    scroll-snap-align: start;
    background-color: white;
}

.game-scroller .book:hover {
    transform: scale(1.05);
}

/* ---------------------------Featured banners (Books & Games sections)---------------------- */

.featured-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 10px 30px 20px;
}

.featured-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    border-radius: 8px;
    background: linear-gradient(
        225deg,
        #1a2a6c 0%,
        #16225a 30%,
        #0f1a45 65%,
        #0a122f 100%
    );
    border: 1px solid skyblue;
    transition: all 0.3s ease;
}

.featured-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.featured-item img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.featured-info {
    text-align: left;
}

.featured-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    color: #f9e9b8;
    border: 1px solid #f9e9b8;
    border-radius: 20px;
    padding: 2px 10px;
}

.featured-info h3 {
    color: lightcyan;
    margin: 6px 0 4px;
    font-size: 20px;
}

.featured-info p {
    color: #b8c4e0;
    margin: 4px 0 10px;
    font-size: 13px;
}

.featured-btn {
    display: inline-block;
    background-color: rgba(129, 224, 239, 0.9);
    color: #0a122f;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
}

@media (max-width: 700px) {
    .featured-banner {
        grid-template-columns: 1fr;
        margin: 10px 20px 20px;
    }
    .featured-item img {
        width: 80px;
        height: 80px;
    }
}

/* Featured banner - taller presence on desktop screens */
@media (min-width: 1024px) {
    .featured-banner {
        gap: 20px;
        margin: 15px 30px 25px;
    }
    .featured-item {
        min-height: 190px;
        padding: 25px 30px;
        gap: 25px;
    }
    .featured-item img {
        width: 170px;
        height: 170px;
    }
    .featured-tag {
        font-size: 12px;
    }
    .featured-info h3 {
        font-size: 26px;
        margin: 8px 0 6px;
    }
    .featured-info p {
        font-size: 15px;
        margin: 6px 0 14px;
    }
    .featured-btn {
        font-size: 15px;
        padding: 8px 22px;
    }
}

/* Even larger on big monitors */
@media (min-width: 1600px) {
    .featured-item {
        min-height: 230px;
        padding: 30px 40px;
    }
    .featured-item img {
        width: 200px;
        height: 200px;
    }
    .featured-info h3 {
        font-size: 30px;
    }
    .featured-info p {
        font-size: 16px;
    }
}

/* ---------------------------Animated site title---------------------- */

.title {
    font-family: "Fredoka One", "Bebas Neue", sans-serif;
    font-size: 54px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.title span {
    display: inline-block;
    animation: letterWave 3s ease-in-out infinite;
    text-shadow:
        2px 2px 0 rgba(255, 255, 255, 0.85),
        5px 5px 0 rgba(23, 127, 143, 0.18);
    transition: transform 0.25s ease;
    cursor: default;
}

/* candy palette cycling across the letters */
.title span:nth-child(5n+1) { color: #177f8f; }  /* deep teal   */
.title span:nth-child(5n+2) { color: #e05c8a; }  /* berry pink  */
.title span:nth-child(5n+3) { color: #f0a500; }  /* honey gold  */
.title span:nth-child(5n+4) { color: #5a6fc0; }  /* cornflower  */
.title span:nth-child(5n+5) { color: #4caf7d; }  /* leaf green  */

/* alternate letters tilt slightly for a hand-placed look */
.title span:nth-child(odd)  { rotate: -3deg; }
.title span:nth-child(even) { rotate: 2.5deg; }

.title span:hover {
    transform: scale(1.25);
}

@keyframes letterWave {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -7px; }
}

@media (max-width: 480px) {
    .title {
        font-size: 34px;
        letter-spacing: 2px;
    }
}

/* ---------------------------Nav overlap fix (small screens)---------------------- */
/* Below 850px the absolutely-positioned nav collides with the centered
   title. Switch it into normal flow as a centered horizontal row. */
@media (max-width: 850px) {
    .books-games {
        position: static;
    }
    .books-games ul {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin: 8px 0 0;
        padding: 0;
    }
    .books-games li {
        font-size: 1rem;
    }
}

/* Featured banner: long summaries stay tidy on small screens */
@media (max-width: 700px) {
    .featured-info p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ---------------------------Search results extras---------------------- */

.result-kind {
    display: inline-block;
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0a122f;
    background-color: rgba(129, 224, 239, 0.85);
    border-radius: 20px;
    padding: 2px 10px;
}

.search-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #555;
    font-size: 1.05em;
}

/* ---------------------------Carousel height stability---------------------- */
/* The three slides have very different native aspect ratios (the Barnes &
   Noble banners are ~3200x860, the picture-books panel is much squarer), so
   without a fixed ratio the carousel jumps height as it rotates. Pinning the
   ratio keeps every slide the same height and stops the tablet distortion. */

.carousel-item img {
    aspect-ratio: 32 / 9;
    object-position: center;
}

@media (max-width: 900px) {
    .carousel-item img {
        aspect-ratio: 21 / 9;   /* a little taller so detail stays legible */
    }
}

@media (max-width: 480px) {
    .carousel-item img {
        aspect-ratio: 16 / 9;
    }
}

/* ---------------------- search results pop-up card ---------------------- */
#sr-overlay{
    position: fixed;
    inset: 0;
    z-index: 9200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 14, 24, 0.7);
}
#sr-overlay.open{ display: flex; }
body.sr-locked{ overflow: hidden; }
.sr-panel{
    position: relative;
    width: min(1000px, 100%);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #222;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.sr-title{
    margin: 0;
    padding: 16px 52px 12px 24px;
    font-size: 1.25rem;
    border-bottom: 1px solid #e3e3e3;
}
.sr-close{
    position: absolute;
    top: 8px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 28px;
    line-height: 1;
    color: #444;
    cursor: pointer;
    border-radius: 50%;
}
.sr-close:hover{ background: #eee; border: 1px solid transparent; }
.sr-body{
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
}
.sr-body .search-container{ padding: 20px 24px; }
.sr-body #clear-search{ text-align: center; margin: 0; padding: 0 24px; }
@media (max-width: 480px){
    #sr-overlay{ padding: 8px; }
    .sr-body .search-container{ padding: 14px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
}

/* ------------------- nav category dropdowns (Books / Games) ------------------- */
.books-games li.has-dd{
    position: relative;
}
.books-games .nav-dd{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 200;
    min-width: 200px;
    max-width: 80vw;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    font-size: 0.9em;
    text-align: left;
    background: rgba(18, 28, 38, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.books-games li.has-dd:hover > .nav-dd,
.books-games li.has-dd:focus-within > .nav-dd,
.books-games li.has-dd.open > .nav-dd{
    display: block;
}
.books-games .nav-dd li{
    display: block;
    font-size: 1em;
    white-space: nowrap;
}
.books-games .nav-dd a{
    display: block;
    padding: 9px 18px;
    color: #fff;
    text-decoration: none;
}
.books-games .nav-dd a:hover,
.books-games .nav-dd a:focus{
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}
@media (max-width: 850px){
    .books-games .nav-dd{
        left: 50%;
        transform: translateX(-50%);
    }
    .books-games .nav-dd a{ padding: 12px 18px; }   /* bigger tap targets */
}
/* land on the row with a little air above it */
.game-row[id]{ scroll-margin-top: 12px; }

/* ---- German shelf additions ---- */
.coming-soon{
    display: inline-block;
    margin: 4px auto 0;
    padding: 2px 10px;
    font-size: 11px !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #14463f;
    background: #f2c14e;
    border-radius: 10px;
}
.footer .lang-link{ color: #9fd3e0; }
