:root {
  --base-font-size: 16px;

  --primary-color: #FFD02D;
  --secondary-color: #ff3300;

  --link-color: #FFD02D;
  --link-hover-color: #ffffff;

  --transition-speed: 0.2s;
}

        body {
            background-color: #808080;
            color: #ffffff;
    font-family: Roboto, Arial, sans-serif;
    font-size: var(--base-font-size); /* Use the base font size */
            margin: 0;
            padding: 0;
            line-height: 1.5;
        }


section {
    padding: 20px;
    margin: 20px 0;
}

/* Default all links to open in new window */
a {
    color: #FFD02D;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


.responsive-banner {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block; /* Removes any inline spacing issues */
}


        header, footer {
            background-color: #444;
            padding: 20px;
            text-align: center;
        }

        .hero-section {
            text-align: center;
            margin: 20px 0;
        }

        .hero-section img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
        }


.skip-link{
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  padding: 8px 12px;
  background: #fff;
  color: var(--link-color, #0645ad);
  border: 2px solid var(--primary-color, #111);
  border-radius: 999px;
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  opacity: .85;
}

.skip-link:hover,
.skip-link:focus,
.skip-link:focus-visible{
  opacity: 1;
  outline: 3px solid #000;
  outline-offset: 2px;
}

#main-entry{
  position: relative;
  display: block;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#main-entry:focus{
  width:auto;
  height:auto;
  overflow:visible;
  outline: 3px solid #000;
}

nav.main-navigation,nav.footer-navigation{margin-top:15px}.nav-menu,.footer-menu{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;font-size:1rem}.nav-menu li,.footer-menu li{margin:0 10px;position:relative}.nav-menu li::after,.footer-menu li::after{content:"|";position:absolute;right:-15px;color:var(--link-color);font-size:1rem}.nav-menu li:last-child::after,.footer-menu li:last-child::after{content:""}.nav-menu a,.footer-menu a{color:var(--link-color);text-decoration:none;transition:color var(--transition-speed)}.nav-menu a:hover,.footer-menu a:hover{color:var(--link-hover-color);text-decoration:underline}.button{display:inline-block;padding:10px 20px;border-radius:5px;text-decoration:none;color:white;font-size:0.9rem;transition:background var(--transition-speed),transform var(--transition-speed);background-color:var(--primary-color)}.button:hover{background-color:var(--secondary-color);transform:scale(1.05)}



/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    max-height: 70vh; /* Set maximum height to 70% of the viewport */
    margin: 20px auto;
    overflow: hidden;
    border-radius: 8px;
}

/* Carousel Inner */
.hero-carousel {
    display: flex;
    flex-wrap: nowrap;
    height: 100%; /* Allow it to fill the height of the container */
    transition: transform 0.5s ease;
}

/* Carousel Items */
.carousel-item {
    min-width: 100%;
    flex: 0 0 100%; /* Each item takes full width */
    height: auto; /* Adjust to fit */
    position: relative;
}

.carousel-item img{
  width: auto;
  height: 70vh;
  object-fit: cover;
  display:block;
  border-radius: 8px;
}


/* Carousel Captions */
.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

        h1 {
            font-size: 2.5rem;
            margin: 20px 0;
        }

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start; /* Ensures content aligns at the top */
}

.content-block img {
    max-width: 100%; /* Image will not exceed the container width */
    height: auto; /* Maintains the aspect ratio */
    border-radius: 10px;
    flex: 0 0 auto; /* Prevents the image from growing/shrinking */
}

/* Ensure text content flexes correctly */
.text-content {
    flex: 1; /* Allows text content to grow and shrink as needed */
    padding: 10px;
    min-width: 200px; /* Set a reasonable minimum width to maintain layout integrity */
}

        .link-group {
            text-align: center;
            margin: 20px 0;
        }

        .link-group a {
            color: #FFD02D;
            text-decoration: none;
            margin: 0 10px;
        }

        .book-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .book-card {
            background-color: #555;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
        }

        .book-card img {
            max-width: 100%;
            border-radius: 10px;
        }

        .book-card h3 {
            margin-top: 15px;
        }

        .cta-button {
            display: inline-block;
            padding: 10px 20px;
            margin-top: 10px;
            background-color: #FFD02D;
            color: #000;
            text-decoration: none;
            border-radius: 5px;
        }

.cta-button:hover {
    background-color: #ff3300;
}


        .iframe-container {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%;
            margin: 20px 0;
        }

        .iframe-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        .awards-section, .about-section {
            margin: 20px 0;
            padding: 20px;
            background-color: #687;
            border-radius: 8px;
        }
        
        .awards-achievements img {
    width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
}

        .about-section img {
            float: left;
            margin-right: 20px;
            border-radius: 8px;
            max-width: 40%;
        }

        .clearfix::after {
            content: "";
            display: table;
            clear: both;
        }
        
        .photo-gallery .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.photo-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


.close-up-section {
    background-color: #687;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    color: #fff;
}

.close-up-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

.close-up-section p {
    line-height: 1.6;
    margin-bottom: 10px;
}


/* Specialized styling for Robert Stanek pages */

/* Common Section Styling */
.title-section {
    font-size: 2rem;
    text-align: center;
    margin: 20px 0;
    color: #FFD02D; /* Matches the link color */
}

.subtitle-section {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
    color: #ccc; /* Subtle contrast to main text */
}

.author-intro {
    text-align: center;
    margin-bottom: 30px;
}

/* Content Block Specifics */
.content-block img.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.featured-books, .book-reviews, .behind-the-scenes {
    padding: 20px;
    background-color: #687;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Featured Books Section */
.book-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    background-color: #555; /* Background for book showcase */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.book-showcase img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.book-title {
    font-size: 1.5rem;
    margin-top: 10px;
    color: #FFD02D;
}

.purchase-links a {
    color: #FFD02D;
    text-decoration: none;
    margin-right: 10px;
}

.purchase-links a:hover {
    text-decoration: underline;
}

/* Review Section */
.book-reviews .review {
    margin-bottom: 15px;
}

.book-reviews h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #FFD02D;
}

/* Behind the Scenes Section */
.behind-the-scenes .content-block {
    padding: 20px;
    background-color: #444; /* Different shade for behind-the-scenes */
    border-radius: 8px;
}

.behind-the-scenes p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.behind-the-scenes em {
    color: #FFD02D;
    font-style: normal; /* To make highlighted text stand out subtly */
}


/* Add this CSS to handle dropdown visibility */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 230px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #f1f1f1;}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn { background-color: var(--secondary-color); }

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .carousel-item img {
        height: 50vh; /* Maintain the height of the carousel container */
    }

    .content-block {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: center; /* Center items */
    }

    .title-section {
        font-size: 1.8rem;
    }

    .book-showcase {
        flex-direction: column; /* Stack items vertically on small screens */
        text-align: center;
    }

    section, .main-content, .awards-section, .about-section, .close-up-section, .featured-books, .book-reviews, .behind-the-scenes {
        padding: 15px; /* Reduce padding */
        margin: 10px 0; /* Reduce margins */
    }

    .hero-section {
        margin: 10px 0; /* Reduce margins */
    }

    .book-card {
        padding: 15px; /* Reduce padding */
    }

    .carousel-container {
        margin: 10px auto; /* Reduce side margins */
    }
}
        
