/* General Styles */
/* body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: #f0f8ff;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
} */

/* header h1 {
    background-color: #ffeb3b;
    padding: 20px;
    margin: 0;
} */

.containerMain {
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
}

/* .container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
} */

.stories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.story-item {
    margin: 10px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 10px;
    width: 200px;
}

.story-item img {
    width: 100%;
    border-radius: 10px;
}

.story-item h3 {
    color: #e91e63;
}

.story-content {
    text-align: left;
    padding: 20px;
}

.backToHomeLink {
    margin-bottom: 10px; 
    float: left;
    text-align: right;
    padding: 20px;
}

footer {
    background-color: #ffeb3b;
    padding: 10px;
}

footer p {
    margin: 0;
    color: #ffeb3b;
}

/* Calculator Styles */
.calculator {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    margin: 20px auto;
}

input[type="number"], select {
    width: calc(100% - 22px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    /* font-family: 'Comic Sans MS', cursive, sans-serif; */
    font-family: 'Comic Sans MS';
}

button {
    padding: 10px 15px;
    border: none;
    background-color: #007BFF;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    /* width: 100%; */
}

button:hover {
    background-color: #0056b3;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 5px;
}

/* Responsive Design */
/* @media (max-width: 768px) {
    .stories-list {
        flex-direction: column;
        align-items: center;
    }
} */

/* @media (max-width: 480px) {
    .calculator {
        padding: 15px;
    }

    input[type="number"], select, button {
        width: calc(100% - 14px);
    }
} */

.ads-left, .ads-right, .ads-top, .ads-bottom {
    text-align: center;
    margin-bottom: 10px;
}
.ads-left, .ads-right {
    position: fixed;
    top: 50px;
    width: 160px;
}
.ads-left {
    left: 0;
}
.ads-right {
    right: 0;
}
.ads-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
}
/* .story-item img {
    width: 100%;
    border-radius: 10px;
    display: block;
} */
.cookie-consent {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 9999;
}

.cookie-consent button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* font-family: 'Comic Sans MS', cursive, sans-serif; */
    font-family: 'Comic Sans MS';
    background-color: #f0f8ff;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Header and Footer Styling */
.header {
    width: 100%;
    min-height: 100px;
    max-height: 100px;
    background-color: #cbff3bc6;
    /* display: flex; */
    justify-content: left;
    align-items: left;
    /* padding: 0; */
    padding-bottom: 2px;
    /* margin: 0; */
    /* margin-bottom: 20px; */
}

/* Header and Footer Styling */
.footer {
    width: 100%;
    min-height: 100px;
    max-height: 100px;
    background-color: #cbff3bc6;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Top and Bottom Ads Styling */
.top-google-ads, .bottom-google-ads {
    width: 100%;
    /* min-height: 150px;
    max-height: 200px;
    min-width: 320px;
    max-width: 1100px; */
    margin: 0 auto;
    /* background-color: lightblue; */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main layout container */
.container {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
}

/* Left and Right Ads Styling */
.left-google-ads, .right-google-ads {
    /* min-width: 200px;
    max-width: 250px;
    height: 750px; */
    /* background-color: lightgreen; */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main content styling */
.main-content {
    flex-grow: 1;
    min-width: 600px;
    min-height: 600px;
    background-color: rgba(245, 233, 192, 0.996);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
}

/* Main content styling */
.story-main-content {
    flex-grow: 1;
    min-width: 600px;
    min-height: 600px;
    background-color: rgba(245, 233, 192, 0.996);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
}

/* Responsive Design */
@media (max-width: 500px) {
    .left-google-ads, .right-google-ads {
        display: none; /* Hide left and right ads on small screens */
    }
    .main-content {
        min-width: 100%; /* Make the main content take the full width */
    }
    .header, .footer {
        min-height: 50px; /* Reduce header and footer height on small screens */
    }
}

.btn {
    background-color: DodgerBlue;
    border: none;
    color: white;
    padding: 12px 16px;
    font-size: 16px;
    cursor: pointer;
  }

  .anchorToBtn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.anchorToBtn:hover {
    background-color: #0056b3;
}

.anchorToBtn i {
    margin-right: 8px;
}

/* Button styles for interactivity */
.read-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    /* font-family: 'Comic Sans MS', cursive, sans-serif; */
    font-family: 'Comic Sans MS';
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-button:hover {
    background-color: #0056b3;
}

.read-button:active {
    transform: scale(0.95);
}

.read-button.reading {
    background-color: #28a745;
}

/* Dropdown styles */
.voice-select {
    margin-top: 10px;
    padding: 5px;
    font-size: 16px;
    border-radius: 5px;
}

/* Progress bar container */
.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    height: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

/* Progress bar itself */
.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #007bff;
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Time display */
.time-info {
    font-size: 14px;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.responsive-image {
    max-width: 100%;
    height: auto;
  }

  /* Logo styles */
  .logo {
    text-align: left;
  }