@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&family=Playpen+Sans:wght@100..800&display=swap');

#mySearch {
    font-size: 1.1em;
    padding: 8px 0;
}

#myMenu {
    display: none;
    list-style-type: none;

}

#myMenu li {
    padding: 5px 0;
    font-size: 1em;
}

#myMenu li a {
    font-size: 1.3em;
    text-decoration: none;

}

#myMenu li a:hover {
    text-decoration: underline;
    color: #6b68e2; /* Hover effect for search results */
}

/* Poem layout */
.poem-layout *,
.poem-layout *::before,
.poem-layout *::after {
  box-sizing: border-box;
}

.poem-layout {
    background-color: burlywood;
    font-family: Arial, Helvetica, sans-serif;
    padding: 20px;
    overflow-x: hidden;
}

.poem-layout .header-container {
    display: block;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.poem-layout h1 {
    font-size: 50px;
    color: rgb(235, 50, 60);

    
}

.poem-layout .navigation-menu {
    font-size: 20px;
    padding: 10px;
    background-color: white;
    border-radius: 8px;

}

.poem-layout .navigation-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    justify-content: space-evenly;
}

.poem-layout .navigation-menu ul li a {
    color:chocolate;
    text-decoration: none;
    padding: 10px;
    font-size: 1.2em;
    transition: color 0.3s;

}

.poem-layout .navigation-menu ul li a:hover {
    color:rgb(252, 179, 83);
    text-decoration: underline;
}

/* Content Container */
.poem-layout .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
    padding: 0 10px;
}


/* Main Poem Content */
.poem-layout .poem-content { 
    font-size: 20px; 
    flex: 3; 
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.poem-layout h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.7em;

}

.poem-layout .sidebar-card li {
    list-style-type: none;
    padding: 5px;
}

.poem-layout .sidebar-card li a {
    font-size: 1em;

}
.poem-layout p {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin-bottom: 18px;
    font-size: 1.2em;

}

/* Sidebar */
.poem-layout .right-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Styles */
.poem-layout .sidebar-card {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.poem-layout .sidebar-card h3 {
    text-align: center;
    margin-bottom: 10px;
    color: chocolate;
}

.poem-layout .author-photo {
    display: block;
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    margin:  auto;
}


.poem-layout .sidebar-card ul {
    list-style: none;
    padding-left: 0;
}

.poem-layout .sidebar-card ul li {
    font-size: 20px;
    margin-bottom: 10px;

}

.poem-layout .sidebar-card ul li a {
    text-decoration: none;
    transition: color 0.3s;
    color: chocolate;
}

.poem-layout .sidebar-card ul li a:hover {
    color:rgb(83, 77, 38);
}

.poem-layout .more-poems-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    text-decoration: none;
    color: #ffdd57;
    font-weight: bold;
    transition: color 0.3s;
}

.poem-layout .more-poems-link:hover {
    color: #ffab00;
}

.poem-layout .search-bar,
.poem-layout #poem-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 15px;
    margin: 20px auto;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.poem-layout .search-bar input[type="text"] {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 300px;
    max-width: 100%;
    margin-top: 10px;
}

.poem-layout #poem-count p {
    font-size: 20px;
    margin: 10px 0 0;
    font-weight: bold;
}


/* Footer */
.poem-layout footer {
    background-color: white;
    color: chocolate;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    padding: 5px;
    margin: 10px auto 0;
    width: 100%;

}

/* Responsive Design */

/* On large screens, no toggle needed */
@media (min-width: 769px) {
  .poem-layout .menu-toggle {
    display: none;
  }
}


@media (max-width: 768px) {

    .poem-layout .navigation-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .poem-layout .navigation-menu ul {
        flex-direction: column;
        text-align: center;
    }    
    
    .poem-layout .navigation-menu.open {
        display: flex;
    }

    .poem-layout .menu-toggle {
        display: block;
        background-color: chocolate;
        color: white;
        border: none;
        padding-left: 10px;
        font-size: 18px;
        border-radius: 5px;
        margin: 10px auto;
        cursor: pointer;
    }

    .poem-layout .container {
        flex-direction: column;
        align-items: center;
    }
    .poem-layout .poem-content {
        width: 100%;
        font-size: 18px;
    }

    .poem-layout .right-sidebar {
        width: 100%;
    }
    .poem-layout .author-photo {
        width: 200px;
        height: 200px;
    }

}

@media (max-width: 468px) {
    .poem-layout h1 {
        font-size: 38px;
        text-align: center;
    }
    .poem-layout h2 {
        font-size: 1.4em;
    }
    .poem-layout h3 {
        font-size: 1.2em;
    }
    .poem-layout .navigation-menu ul {
        flex-direction: column;
        align-items: center;
    }
    .poem-layout .navigation-menu ul li a {
        font-size: 1em;
    }
    .poem-layout .author-photo {
        width: 150px;
        height: 150px;
    }
    .poem-layout .search-bar input[type="text"] {
        width: 90%;
    }
    .poem-layout p {
        font-size: 18px;
    }
    
    .poem-layout input[type="text"] {
        font-size: 14px;
    }
    
    .poem-layout #poem-count p {
        font-size: 18px;
    }
    .poem-layout footer {
        font-size: 20px;
    }
}

/* Poem Layout 1 */
.poem-layout1 {
    font-family: Indie Flower;
    display: flex;
    flex-direction: column;
    background-color:#4a90e2
}

/* Header */

.poem-layout1-header {
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    position: relative;
}

.poem-layout1 .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.poem-layout1 h1 {
    font-size: 3rem;
    color: #4a90e2;
}


.poem-layout1 .site-logo {
    width: 90px;
    height: 90px;
    margin: 0 10px;
}

/* Navigation menu */
.layout1-menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.layout1-menu ul li {
    margin: 0 15px;
}

.layout1-menu ul li a {
    text-decoration: none;
    color: #4a90e2;
    font-size: 1.6rem;
    transition: color 0.3s;
}

.layout1-menu ul li a:hover {
    color: #ffdd57;
}

/* Hamburger toggle - mobile */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #4a90e2;
}


/* Content Container */
.poem-layout1 .container {
    display: flex;
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
}


/* Main Poem Content */
.poem-layout1 .poem-content {
    flex: 3;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);    
}

.poem-layout1 h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    color: #4a90e2;
}

.poem-layout1  .poem-content p {
    font-size: 1.7rem;
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: justify;
}

/* Sidebar */
.poem-layout1 .right-sidebar {
    display: flex;
    flex: 1;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 8px;
}

/* Card Styles */
.poem-layout1 .sidebar-card {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.poem-layout1 .sidebar-card h3 {
    text-align: center;
    font-size: 30px;
    color: #4a90e2;
}

.poem-layout1 .search-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.poem-layout1 .search-bar input {
    font-size: 1.2em;
    padding: 8px;
    border-radius: 10px;
    width: 90%;
    max-width: 250px;
    border: 1px solid #4a90e2;
    text-align: center;
}

.poem-layout #myMenu li {
    margin: 5px 0;
}

.poem-layout1 #myMenu li a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 1.1em;
}

.poem-layout1 #myMenu li a:hover {
    color: #ffab00;
}

.poem-layout .search-bar, #poem-count {
    margin-bottom: 20px;
}

.poem-layout1 .sidebar-card p {
    text-align: center;
    font-size: 1.2em;
}

.poem-layout1 .author-photo {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.poem-layout1 .sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.poem-layout1 .sidebar-card ul li {
    font-size: 25px;
    margin-bottom: 10px;
}

.poem-layout1 .sidebar-card ul li a {
    text-decoration: none;
    color: #4a90e2;
    transition: color 0.3s;
}

.poem-layout1 .sidebar-card ul li a:hover {
    color: #ffab00;
}

/* Footer */
.poem-layout1 footer p {
    background-color: white;
    color:#4a90e2;
    border-radius: 8px;
    text-align: center;
    font-size: 26px;
    padding: 5px;
    margin: 0 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .poem-layout1 .header-container{
        justify-content: space-evenly;
    }

    .poem-layout1 .site-logo {
        width: 50px;
        height: 50px;
    }

    .poem-layout1 h1 {
        font-size: 2rem;
        padding: 5px;
    }

    .poem-layout1 .menu-toggle {
        display: block; /* Forces visibility */
        z-index: 20; /* Ensure it is clickable over everything */
    }
    
    /* 2. HIDE the menu by default (High specificity selector) */
    .poem-layout1 .layout1-menu {
        display: flex; /* Guarantees hiding */
        
        /* Positioning and look (You can adjust these values) */
        width: 100%;
        position: absolute;
        top: 100%; /* Drops below the header */
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 15;
        border-radius: 0 0 8px 8px;
        padding: 0;
        text-align: center;
        flex-direction: column; /* Ensure vertical stacking on mobile */
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease-in-out;
    }

    /* 3. SHOW the menu when the JS adds the '.open' class (Highest specificity selector) */
    .poem-layout1 .layout1-menu.open {
        max-height: 400px;
        padding: 10px 0;
    }
    
    /* Ensure the links stack */
    .poem-layout1 .layout1-menu ul {
        flex-direction: column;
        gap: 10px;
    }

    .poem-layout1 .container {
        flex-direction: column;
        align-items: center;
    }

    .poem-layout1 .poem-content,
    .poem-layout1 .right-sidebar {
        width: 100%;
        max-width: 95%;
    }

    .poem-layout1 .search-bar {
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .poem-layout1 .author-photo {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    .poem-layout1 .sidebar-card ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .poem-layout1 .sidebar-card ul li {
        text-align: center;
    }    
  
    .poem-layout1 footer p{
        font-size: 1.3rem
    }
 }


/* For desktop, ensure the nav shows */
@media (min-width: 769px) {
    .poem-layout1 .menu-toggle {
        display: none;
    }
    /* Ensure the menu is always visible and horizontal on desktop */
    .poem-layout1 .layout1-menu {
        display: block;
        position: static;
    }
    .poem-layout1 .layout1-menu ul {
        flex-direction: row;
    }

}

@media (max-width: 468px) {
    .poem-layout1 h1 {
        font-size: 45px;
    }
    
    .site-logo {
        width: 60px;
        height: 60px;
    }

    .poem-layout1 h2 {
        font-size: 1.8em;
    }
    
    .poem-layout1 .poem-content p {
        font-size: 16px;
    }

        .poem-layout1 .author-photo {
        width: 80%;
        height: auto;
        max-height: 250px;
    }

    .poem-layout1 footer p{
        font-size: 1rem;
    }
}



/* Poem-Layout1-News */

.poem-layout1-news {
    display: block;
    background-color: #f0f0f0;
}

.poem-layout1-news .minimalist-header {
    text-align: center;
    padding: 10px;
}

.poem-layout1-news .minimalist-header h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 40px;
    color: #125481;
    text-align: center;
    padding: 10px;
    margin: 10px;
    background-color: white;
    border-top: 2px solid #da6b99;
}

.poem-layout1-news-menu .poem-layout1.collapsible {
    background-color: white;
    color: #125481;
    border: none;
    padding: 10px;
    margin: 0 auto;
    font-size: 20px; /* Button font size */
    cursor: pointer;
    width: auto;
    display: inline-block;
} 

.poem-layout1-news-menu .active, .poem-layout1.collapsible:hover {
    background-color: white;
    
}

.poem-layout1-news-menu {
    display: block;
    justify-content: center;
    margin: 10px;
    padding: 10px;
}

.poem-layout1-news-menu.active {
    display: block;
}

.poem-layout1-news-menu-toggle {
    display: none;
}

.poem-layout1-news-menu ul {
    display: flex;
    list-style-type: none;
    justify-content: center;
    padding: 5px; 
    margin: 5px; 
}

.poem-layout1-news-menu ul li {
    display: flex;
    padding: 10px;
    margin: 10px; /* Space between menu items */
}

.poem-layout1-news-menu ul li a {
    background-color: white;
    border-top: 2px solid #da6b99;
    color: #125481;
    text-decoration: none;
    font-size: 1.4em;
}

.poem-layout1-news-menu ul li a:hover {
    text-decoration: underline;
    color: #ffdd57;
}

.poem-layout1-news-menu.active ul {
    display: block; /* Show when active */
}

.poem-layout1-news .layout-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.poem-layout1-news .left-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 300px;
}

.poem-layout1-news .left-sidebar h3 {
    font-size: 1.3em;
    padding: 10px;
}

.poem-layout1-news .sidebar-card {
    width: 100%;
    text-align: center;
}

.poem-layout1-news .sidebar-card p {
    font-size: 1.3em;
    padding: 10px;
}

.poem-layout1-news .poem-content {
    flex: 3;
    padding: 10px;
    margin: 10px;

}

.poem-layout1-news .poem-content h2 {
    font-size: 1.9em;
    padding: 10px;
    margin: 15px;
}

.poem-layout1-news .poem-content p {
    font-size: 1.3em;
    padding: 10px;
    margin: 15px;
}

.poem-layout1-news .news-images {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 10px;
}

.poem-layout1-news .news-images .image {
    width: 30%;
    max-width: 300px;
    height: auto;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.poem-layout1-news .news-images .image:hover {
    transform: scale(1.05);
}

.poem-layout1-news .left-sidebar img {
    width: 90%;
    max-width: 250px;
    height: auto;
}

.poem-layout1-news footer {
    font-family: 'Raleway', sans-serif;
    color: #125481;
    text-align: center;
    padding: 10px;
    background-color: white;
    border-bottom: 2px solid #da6b99;
}

/*  Layout1-News  */
@media screen and (min-width: 769px) {
    .poem-layout1-news .poem-layout1-collapsible {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    /* Adjustments for smaller tablets */
    .poem-layout1-news .minimalist-header h1 {
        font-size: 30px;
        padding: 8px;
    }

    .poem-layout1-news-menu {
        display: none; /* Hide the full menu */
    }

    .poem-layout1-news-menu.active {
        display:block;
    }

    .poem-layout1-news-menu-toggle {
        display: block;
        
    }

    .poem-layout1-news-menu .poem-layout1-collapsible {
        display: block; /* Show the collapsible button */
    }

    .poem-layout1-news-menu ul {
        display: none; /* Start collapsed */
    }

    .poem-layout1-news-menu.active ul {
        display: block; /* Show menu items when active */
    }

    .poem-layout1-news-menu ul li {
        margin: 10px 0;
    }

    .poem-layout1-news .layout-wrapper {
        flex-direction: column;
    }

    .poem-layout1-news .left-sidebar {
        max-width: 100%;
    }

    .poem-layout1-news-menu ul li a {
        font-size: 1.1em;
    }

    .poem-layout1-news .poem-content {
        padding: 8px;
        margin: 8px;
    }

    .poem-layout1-news .poem-content h2 {
        font-size: 1.3em;
        padding: 8px;
    }

    .poem-layout1-news .poem-content p {
        font-size: 1.1em;
        padding: 8px;
    }

    .poem-layout1-news .news-images .image {
        width: 45%;
    }
}

@media (min-width: 768px) {

    .poem-layout1-news-menu {
        display: flex;
    }

    .poem-layout1-news-menu-toggle {
        display: none; /* Show full menu on larger screens */
    }
}



@media screen and (max-width: 480px) {
    /* Adjustments for mobile devices */
    .poem-layout1-news .minimalist-header h1 {
        font-size: 28px;
        padding: 5px;
    }

    .poem-layout1-news-menu ul {
        flex-direction: column;
        align-items: center;
    }

    .poem-layout1-news-menu ul li {
        margin-bottom: 8px;
    }

    .poem-layout1-news-menu ul li a {
        font-size: 1em;
    }

    .poem-layout1-news .poem-content {
        padding: 5px;
        margin: 5px;
    }

    .poem-layout1-news .poem-content h2 {
        font-size: 1.2em;
        padding: 5px;
    }

    .poem-layout1-news .poem-content p {
        font-size: 1em;
        padding: 5px;
    }

    .poem-layout1-news .news-images .image {
        width: 90%;
    }
}

/* .split-screen-layout */
 
.split-screen-layout {
  font-family: 'Georgia', serif;
  background-color: #FFF5E1;
  color: #333;
  margin: 0;
  padding: 0;
}

.split-screen-layout header {
  background-color: #FFDDEE;
  text-align: center;
  padding: 1rem;
  position: relative;
}

.split-screen-layout header h1 {
  font-size: 3rem;
  margin: 1rem 0;
  color: #8B008B;
}

.split-screen-layout .topnav-menu ul {
  display: flex;
  justify-content:space-evenly;
  list-style: none;
  padding: 0;
  margin: 0;
}

.split-screen-layout .topnav-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
}

.split-screen-layout .topnav-menu li a:hover {
  color: #4ac0cf;
}

.split-screen-layout .toggledown-over-menu {
  display: none;
  justify-content: flex-end;
  padding: 0.5rem 1rem;
}

.split-screen-layout .toggledown-over-menu .icon {
  font-size: 2rem;
  color: #8B008B;
  cursor: pointer;
}

.split-screen-layout .nav-links {
  display: none;
  background-color: #FFDDEE;
  flex-direction: column;
  padding: 1rem;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.split-screen-layout .nav-links a {
  margin: 0.5rem 0;
  color: #333;
  text-decoration: none;
  text-align: center;
}

.split-screen-layout .nav-links a:hover {
  color: #4ac0cf;
}

.split-screen-layout .content-container {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  gap: 2rem;
}

.split-screen-layout .poem-content {
  flex: 3;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow-wrap: break-word;
}

.split-screen-layout .poem-content h2 {
  color: #8B008B;
  font-size: 2rem;
}

.split-screen-layout .poem-content p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.split-screen-layout .right-sidebar {
    flex: 1;
    max-width: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

}

.split-screen-layout .sidebar-card {
  background-color: #FFF5E1;
  padding: 1rem;
  margin: 0;
  border-radius: 10px;
  text-align: center;
}

.split-screen-layout .right-sidebar h3 {
    text-align: center;
    font-size: 24px;
    color: darkmagenta;
    margin-bottom: 0.5rem;
}

.split-screen-layout .right-sidebar a {
    text-decoration: none;
    color: darkmagenta;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 6px;
}

.split-screen-layout .right-sidebar a:hover {
    color: #4ac0cf;
}

.split-screen-layout .sidebar-card img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.split-screen-layout .sidebar-card input[type="text"] {
  width: 90%;
  padding: 0.5rem;
  margin: 0.5rem auto;
  display: block;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.split-screen-layout #poem-count {
  margin-top: 1rem;
  font-size: 1.1rem;
}

.split-screen-layout footer {
  text-align: center;
  background-color: #FFDDEE;
  padding: 1rem;
  font-size: 1.4rem;
  color: #333;
  margin-top: 2rem;
  border-top: 1px solid #ccc;
}

.split-screen-layout header,
.split-screen-layout footer {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Responsive Design */

@media screen and (max-width: 767px) {
  .split-screen-layout header,
  .split-screen-layout footer,
  .split-screen-layout .content-container {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  .split-screen-layout .poem-content,
  .split-screen-layout .right-sidebar {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 769px) {
  .split-screen-layout header,
  .split-screen-layout footer {
    padding-left: calc((100vw - 1200px) / 2);
    padding-right: calc((100vw - 1200px) / 2);
  }
}

@media screen and (max-width: 768px) {
  .split-screen-layout .topnav-menu {
    display: none;
  }

  .split-screen-layout .toggledown-over-menu {
    display: flex;
    
  }

  .split-screen-layout .nav-links.open {
    display: flex;
  }

  .split-screen-layout .content-container {
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
  }

  .split-screen-layout .poem-content h2 {
  color: #8B008B;
  font-size: 1.5rem;
}

.split-screen-layout .poem-content p {
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
  .split-screen-layout .poem-content, 
  .split-screen-layout .right-sidebar  {  
    width: auto;
  }

 .split-screen-layout .right-sidebar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .split-screen-layout .sidebar-card {
    margin: 0 0 1rem 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  }
  
  .split-screen-layout .sidebar-card input[type="text"] {
    width: 100%;
  }

  .split-screen-layout header h1 {
    font-size: 2rem;
  }
}

@media screen and (min-width: 468px) and (max-width: 767px) {
  .split-screen-layout .content-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .split-screen-layout .poem-content {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  .split-screen-layout .right-sidebar {
    width: auto;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    box-sizing: border-box;
  }

  .split-screen-layout .sidebar-card {
    width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  }

  .split-screen-layout .sidebar-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
  }

  .split-screen-layout .sidebar-card h3 {
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .split-screen-layout .sidebar-card input[type="text"] {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 90%;
    padding: 0.5rem 0;
  }

  .split-screen-layout #poem-count {
    text-align: center;
    margin-top: 1rem;
  }

  .split-screen-layout header h1 {
    font-size: 1.8rem;
    text-align: center;
    padding: 0.5rem 0;
  }

  .split-screen-layout .poem-content h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .split-screen-layout .poem-content p {
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
  }

  .split-screen-layout footer p {
    text-align: center;
    font-size: 0.9rem;
    padding: 1rem;
  }
}

@media screen and (max-width: 467px) {
  .split-screen-layout .content-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .split-screen-layout header h1 {
    font-size: 1.5rem;
    text-align: center;
    padding: 0.5rem 0;
    line-height: 1.2;
  }

  .split-screen-layout .topnav-menu {
    display: none;
  }

  .split-screen-layout .toggledown-over-menu {
    display: flex;
    justify-content: center;
    background-color: #8B008B;
    padding: 0.5rem;
  }

  .split-screen-layout .toggledown-over-menu .icon {
    color: #fff;
}

  .split-screen-layout .nav-links.open {
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .split-screen-layout .nav-links a {
    padding: 0.5rem 0;
    font-size: 1rem;
    text-align: center;
  }

  .split-screen-layout .poem-content {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.4;
    box-sizing: border-box;
  }

  .split-screen-layout .poem-content h2 {
    font-size: 1.3rem;
    text-align: center;
    color: #8B008B;
  }

  .split-screen-layout .poem-content p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-align: left;
  }

  .split-screen-layout .right-sidebar {
    width: 100%;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
  }

  .split-screen-layout .sidebar-card {
    width: 100%;
    margin-bottom: 1rem;
    margin-right: 1rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  }

  .split-screen-layout .sidebar-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
  }

  .split-screen-layout .sidebar-card h3 {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .split-screen-layout .sidebar-card input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  .split-screen-layout #poem-count {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.5rem;

  }

  .split-screen-layout footer p {
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
  }
}

/* Poem-layout 2 */

/*    ((    Layout2 Styles   ))*/

.poem-layout2 {
    font-family: 'Dancing Script', cursive;
}

.poem-layout2 .overlay-header {
    text-align: center;
    padding: 10px;
    position: relative;
}


.poem-layout2 .overlay-header h1 {
    font-size: 4.5em;
    color: #da6b99;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    border-top: solid #7d51e6;
    border-bottom: solid #7d51e6;
    margin: 0px;
}

.poem-layout2 .overlay-header .openbtn {
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    color: #7d51e6;
    display: none; /* Hide by default */
}

/* The overlay (curtain) menu */
.poem-layout2 .overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #d4cbe9;
    overflow-x: hidden;
    transition: 0.5s;
}

.poem-layout2 .overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.poem-layout2 .overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #da6b99;
    display: block;
    transition: 0.3s;
}

.poem-layout2 .overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

.poem-layout2 .overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    color: #ffffff;
    cursor: pointer;
}

.poem-layout2 nav {
    padding: 5px;
    margin: 10px;

}

.poem-layout2 nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    font-size: 1.2em;
   
}

.poem-layout2 nav ul li a {
    font-size: 1.5em;
    text-decoration: none;
    margin: 10px;
    padding: 10px;
    
}

.poem-layout2 nav ul li a:hover {
    color: #ffdd57;
}

.poem-layout2 .menu-toggle {
    display: none;
}

/* Layout 2 Container */

.poem-layout2 .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.poem-layout2 main {
    flex: 1;
    padding: 20px;
    font-size: 1.4em;
}

.poem-layout2 main p {
    font-size: 1.2em;
}
.poem-layout2 .author-image {
    display: block;
    margin: 20px auto;
    width: 300px;
    max-width: 100%;
    height: auto;
    text-align: center;
}

.poem-layout2 .right-sidebar {
    font-family: 'Dancing Script', cursive;
    border-left: solid #7d51e6;
    font-size: 1.5em;
    width: 25%;
    padding: 15px;
}

/* Search Bar Styles */
.poem-layout2 .search-bar {
    margin: 20px;
}

.poem-layout2 .search-bar input {
    font-size: 1.0em;
    width: 80%; 
    padding: 5px;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.poem-layout2 .search-bar button {
    font-size: 1.1em;
    padding: 5px;
    background-color: #7d51e6; 
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

.poem-layout2 .search-bar button:hover {
    background-color: #ffdd57; 
}

/* Search Results List Styling */
.poem-layout2 #search-results {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
}

.poem-layout2 #search-results li {
    padding: 5px 0;
}

.poem-layout2 #search-results li a {
    color: #abdafc;
    text-decoration: none;
}

.poem-layout2 #search-results li a:hover {
    text-decoration: underline;
    color: #7d51e6; /* Hover effect for search results */
}

/* Poem Menu Styling */
.poem-layout2 .poem-menu h3 {
    padding: 10px;
    margin: 10px;
}

.poem-layout2 .poem-menu ul {
    list-style-type: none;
    padding: 10px;
    margin: 5px;
}

.poem-layout2 .poem-menu ul li {
    margin-bottom: 10px;
}


.poem-layout2 .poem-menu ul li a:hover {
    text-decoration: underline;
    color: #ffdd57; /* Change hover color for poem links */
}

.poem-layout2 footer {
    display: flex;
    font-size: 1.5em;
    justify-content: center;
    margin: 5px;
    padding: 5px;
    color: #da6b99;
    border-top:solid #7d51e6;
    border-bottom: solid #7d51e6;
}



/* RIGHT SIDE SEARCH BAR AREA */
/* This contains the styles for the SEARCH BAR, the POEM Menu */

.poem-layout2 .right-sidebar {
    font-family: 'Dancing Script', cursive;
    border-left: solid #7d51e6;
    font-size: 1.5em;
    width: 25%;
    padding: 15px;
}

.poem-layout2 .right-sidebar h3 {
    text-align: center;
    padding: 10px;
    margin: 10px;
}

.poem-layout2 #mySearch {
    font-size: 1.1em;
    padding: 8px;
}

/* Search Results List Styling */
.poem-layout2 #myMenu {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
}

.poem-layout2 #myMenu li {
    padding: 5px 0;
}

.poem-layout2 #myMenu li a {
    color: #da6b99;
    text-decoration: none;
}

.poem-layout2 #myMenu li a:hover {
    text-decoration: underline;
    color: #abdafc; /* Hover effect for search results */
}

.poem-layout2 .poem-count {
    margin-top: 10px;
    font-size: 0.9rem;
}

.poem-layout2 #count {
    display: block;
    text-align: center;
}

/* Poem Menu Styling */

.poem-layout2 .poem-menu ul {
    list-style-type: none;
    padding: 10px;
    margin: 5px;
}

.poem-layout2 .poem-menu ul li {
    margin-bottom: 10px;
}

.poem-layout2 .poem-menu ul li a {
    font-size: 1.1em;
    color: #7d51e6;
    text-decoration: none;
}

.poem-layout2 .poem-menu ul li a:hover {
    text-decoration: underline;
    color: #ffdd57; /* Change hover color for poem links */
}

/* Full-screen navigation for larger screens */
@media screen and (min-width: 769px) {
    .poem-layout2 .overlay-header nav {
        display: block; /* Ensure nav is displayed on larger screens */
        position: relative; /* Adjust as necessary */
        background-color: transparent;
        text-align: center;
        padding-top: 20px;
    }

    .poem-layout2 .overlay-header nav ul {
        display: flex; /* Make sure nav items are horizontal */
        justify-content: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .poem-layout2 .overlay-header nav ul li {
        margin: 0 15px;
    }

    .poem-layout2 .overlay-header nav ul li a {
        text-decoration: none;
        font-size: 1.2em;
        color: #da6b99; /* Use the color that fits your site */
        transition: color 0.3s;
    }

    .poem-layout2 .overlay-header nav ul li a:hover {
        color: #ffdd57;
    }

    .poem-layout2 .openbtn {
        display: none; /* Hide curtain menu button on full screens */
    }
}


    @media screen and (max-width: 768px) {
        .poem-layout2 .overlay-header h1 {
            font-size: 2em;
        }
    
        .poem-layout2 .overlay-header nav {
            display: none; /* hide the reg nav on small screens */
        }

        .poem-layout2 .overlay-header .openbtn {
        display: block; /* Show the curtain menu button */
        }

        .poem-layout2 nav ul {
            display: none;
            flex-direction: column;
        }
    
        .poem-layout2 nav ul.active {
            display: flex;
        }
    
        .poem-layout2 nav ul li {
            margin-bottom: 10px;
        }
    
        .poem-layout2 .menu-toggle {
            display: block;
            font-size: 1.5em;
            cursor: pointer;
            background-color: #da6b99;
            padding: 10px;
            text-align: center;
        }

      .poem-layout2 main {
        font-size: 1em;
        padding: 10px; /* Reduce padding for smaller screens */
    }

    .poem-layout2 .search-bar input,
    .poem-layout2 .search-bar button {
        width: 100%;
    }

    .poem-layout2 .search-bar button {
        margin-top: 10px;
    }

    /* Right Sidebar Adjustments */
    .poem-layout2 .right-side-search {
        width: 100%;
        padding: 10px;
    }

    /* Author Image */
    .poem-layout2 .author-image {
        max-width: 80%;
    }

    /*  Footer */
    .poem-layout2 footer {
        font-size: 1em;
        padding: 10px;
    }

}



/* Poem-layout 3 */

 /* Base Layout */
.poem-layout3 .layout-wrapper {
  display: flex;
}

.poem-layout3 header {
    border-bottom: 5px solid #88b947;
    padding: 20px;
    text-align: center;
}
.poem-layout3 header h1 {
    font-size: 55px;
    text-align: center;
    margin: 5px;
    color: darkgreen;
}

.poem-layout3 .main-nav {
    position: relative;
}

.poem-layout3 .main-nav::after {
  content: "⇠ swipe ⇢";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #88b947;
  opacity: 0.7;
}

.poem-layout3 .main-nav .nav-links {
  display: flex;
  justify-content: space-between;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  padding: 0;
  margin: 0;
  list-style: none;
  color: #88b947;
}

.poem-layout3 .main-nav .nav-links::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.poem-layout3 .main-nav .nav-links li {
  margin: 0 1rem;
}

.poem-layout3 .main-nav .nav-links li a {
  text-decoration: underline;
  color: #88b947;
  font-weight: bold;
}

.poem-layout3 .main-nav .nav-links li a:hover {
  color: #f7df0f; /* Hover effect for navigation links */
}

.poem-layout3 .search-container input[type="text"] {
  width: 50%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.poem-layout3 .left-sidebar {
    width: 25%;
    padding: 20px;
    box-sizing: border-box;
    font-size: 1.2rem;
    text-align: center;
    border-right: 5px solid darkgreen;
    margin: 0 10px 0 10px;
}

.poem-layout3 .left-sidebar ul {
    padding: 0;
}

.poem-layout3 .left-sidebar ul li{
    list-style-type: none;
    padding: 10px;
}

.poem-layout3 .left-sidebar ul li a {
    color: darkgreen;
    text-decoration: none;
    font-size: 22px;
}

.poem-layout3 ul li a:hover {
    color: lightgreen;
}

.poem-layout3 .left-sidebar-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.poem-layout3 .left-sidebar-image img {
    width: auto;
    max-width: 200px;
    border-radius: 10px;
}

.poem-layout3 .poem-content {
    flex: 1;
    text-align: center;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    margin: 0 10px 0 10px;
    
}

.poem-layout3 .poem-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: darkgreen;
}

.poem-layout3 .poem-content p {
    font-size: 22px;
    line-height: 1.8;
    padding: 20px;
    border-radius: 10px;
}

.poem-layout3 .left-sidebar-poems {
    margin-top: 20px;
}

.poem-layout3 .left-sidebar-poems a {
    display: block;
    margin: 10px 0;
    color: darkgreen;
    text-decoration: none;
    font-size: 20px;
}
.poem-layout3 .left-sidebar-poems a:hover {
    color: lightgreen;
}

.poem-layout3 footer {
    font-size: 20px;
    border-top: 5px solid  darkgreen; 
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .poem-layout3 .layout-wrapper {
    flex-direction: column;
  }

  .poem-layout3 .main-nav {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
  }
  
  .poem-layout3 .main-nav .nav-links {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  /* Move search bar from header to sidebar */
  .poem-layout3 .header-search {
    display: none;
  }

  .poem-layout3 .sidebar-search {
    display: block;
  }

  .poem-layout3 .poem-content {
    width: 100%;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
  }


  .poem-layout3 .left-sidebar {
    width: 100%;
    margin: 0;
    padding: 1rem;
    border: none;
  }
}

/* Large screen search layout */
@media screen and (min-width: 769px) {
  .poem-layout3 .sidebar-search {
    display: none;
  }

  .poem-layout3 .header-search {
    display: block;
  }
}   

/* Poem Layout 4 */

/* basic reset */
.poem-layout4 * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.poem-layout4 {
    font-family: 'Raleway', sans-serif;
    min-height: 100vh;
    flex-direction: column;   
    background: #fefefe;  
}

/* Header */
.poem-layout4 header {
    padding: 20px 15px;
    background-color: #e7cbe5; /* Light tan background color */
    position: relative;
 
}

.poem-layout4 header h1 {
    font-size: 3rem;
    text-align: center;   
    margin-bottom: 10px;
}

.poem-layout4 .openbtn {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #333;
}

.poem-layout4 nav.desktop-nav {
    display: flex;
    justify-content: space-evenly;

    padding: 15px;
    background-color: #e7cbe5;
}

.poem-layout4 .nav-container {
    
    margin: 0 auto;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 15px 0;
}

.poem-layout4 nav.desktop-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
}

.poem-layout4 nav.desktop-nav a:hover {
    color: #007acc;
}

/* The Overlay (background) */
.poem-layout4 .curtainslideleft-menu {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */   
    height: 100vh;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 10;
    left: 0;
    top: 0;
    background-color: rgba(243, 210, 210, 0.95); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
  }
  
  /* Position the content inside the overlay */
  .poem-layout4 .curtainslideleft-menu .overlay-content {
    position: relative;
    top: 25%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
  }
  
  /* The navigation links inside the overlay */
  .poem-layout4 .curtainslideleft-menu  a {
    padding: 10px;
    display: block; /* Display block instead of inline */
    font-size: 32px;
    color: #dc56f7;
    text-decoration: none;
    transition: color 0.3s; /* Transition effects on hover (color) */
  }
  
  /* When you mouse over the navigation links, change their color */
  .poem-layout4 .curtainslideleft-menu a:hover {
    color: #f7fd9f;
  }
  
  /* Position the close button (top right corner) */
  .poem-layout4  .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    cursor: pointer;
  }

.poem-layout4 .poem-count {
    margin-top: 10px;
    font-size: 0.9rem;

}

.poem-layout4 #count {
    display: block;
    align-items: center;
}


/* Sidebar */
.poem-layout4 aside.left-sidebar {
    width: 25%;
    min-width: 250px;
    background-color: #f4f4f4;
    padding: 15px;
}

.poem-layout4 .left-sidebar .sidebar-image {
    display: flex;
    width: 100%;
    height: 400px;
    justify-content: center;

}

.poem-layout4 .left-sidebar h3 {
    font-size: 22px;
    padding: 10px;
    align-items: center;
}

.poem-layout4 .left-sidebar .search-bar {
    padding: 5px;
}

.poem-layout4 .left-sidebar .search-bar input {
    border: 1px solid #ccc;
    border-radius: 5px;
}

.poem-layout4 .left-sidebar .poem-menu {
    list-style: none;
    padding: 0;
    margin: 10px;
}

.poem-layout4 .left-sidebar .poem-menu li {
    margin-bottom: 10px;
}

.poem-layout4 .left-sidebar .poem-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 20px;
    transition: color 0.3s;
}

.poem-layout4 .left-sidebar .poem-menu li a:hover {
    color: #137dbb;
}

/* Main Content */

.poem-layout4 .main-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;   
}

.poem-layout4 main {
    flex: 1;
    padding: 20px;

}

.poem-layout4 .main-content h2 {
    text-align: center;
    font-size: 30px;
}

.poem-layout4 .main-content p {
    font-size: 23px;
    text-align: center;
    line-height: 1.5;
}

/* Poem aligned leftside*/
.poem-layout4 .main-content .leftside-lined h2 {
    font-size: 35px;
    text-align:justify;
    padding: 0 0 10px 0;
}

.poem-layout4 .main-content .leftside-lined p {
    font-size: 23px;
    text-align: justify;
}

/* Footer */
.poem-layout4 footer {
    background-color: #e7cbe5; /* Light tan background to match header */
    text-align: center;
    font-size: 20px;
    padding: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .poem-layout4 nav.desktop-nav {
        display: none;
    }

    .poem-layout4 header h1 {
        font-size: 2rem;
    }

    .poem-layout4 .content {
        flex-direction: column;
    }

    .poem-layout4 .openbtn {
        display: block;
    }

    .poem-layout4 .overlay {
        display: block;
    }


    .poem-layout4 aside.left-sidebar {
        width: 100%;
    }

    .poem-layout4 .content {
        flex-direction: column;
    }

    .poem-layout4 .search-bar {
        text-align: center;
      }
    
    .poem-layout4 .search-bar input {
        margin: 0 auto;
        display: block;
        max-width: 300px;
      }
    
    .poem-layout4 .poem-menu {
        padding-left: 0;
        list-style: none;
        text-align: center;
      }
    
    .poem-layout4 .poem-menu li {
        margin-bottom: 5px;
      }
    .poem-layout4 footer {
        width: 100%;
        text-align: center;
        position: relative;
        margin-top: 20px;
    }
}

/* General Layout Styles for Poem Layout 5 */
body.poem-layout5 {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.poem-layout5 header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;

}

.poem-layout5 h1 {
    color: #c4414c;
    font-size: 40px;
    margin: 0;
    filter: drop-shadow(1px 1px 0px rgba(0, 0, 0, 0.5));
}
/* Navigation Menu */
.poem-layout5 .top-nav {
    display: flex;
    color: #007acc;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    font-size: 35px;
}
.poem-layout5 .top-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
}

.poem-layout5 .top-nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}

.poem-layout5 .top-nav ul li a:hover {
    color: #a72a35;
}


/* The side navigation menu */
.poem-layout5 .sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1001; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  background-color: white; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: width 0.3s ease; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.poem-layout5 .sidenav a {
  display: block;    
  padding: 10px 30px;
  text-decoration: none;
  font-size: 22px;
  color: #9b2731 ;
  transition: color 0.2s;
}

/* When you mouse over the navigation links, change their color */
.poem-layout5 .sidenav a:hover {
  color: #88d681;
}

/* Position and style the close button (top right corner) */
.poem-layout5 .sidenav .closebtn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 36px;
  cursor: pointer;
}

/* Hamburger button */
.poem-layout5 .hamburger {
    font-size: 30px;
    cursor: pointer;
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Backdrop (overlay) */
.poem-layout5 .backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* semi-transparent */
  z-index: 1000; /* behind sidenav */
  transition: opacity 0.3s ease;
}

/* Show states */
.poem-layout5 .sidenav.open {
  width: 75%;
}

.poem-layout5 .backdrop.show {
  display: block;
}

/* Container */
.poem-layout5 .container {
    display: flex;
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.poem-layout5 h2 {
    font-size: 26px;
    margin: 10px;

}

/* Main Content */
.poem-layout5 .poem-content {
    flex: 3;
    padding: 20px;
    font-size: clamp(18px, 2.5vw, 22px);
    border-right: 2px solid rgba(196, 65, 76, 0.6);
}

.poem-layout5 .poem-content p {
    margin-bottom: 1.6em;
    line-height: 1.7;
}

/* Right Sidebar */
.poem-layout5 .right-sidebar {
    flex: 1;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}



.poem-layout5 .right-sidebar img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.poem-layout5 .right-sidebar h3 {
    text-align: center;
    padding: 10px;
    margin: 10px;
    font-size: 22px;
}


.poem-layout5 .right-sidebar .search-bar input {
    width: 90%;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 10px;

}

.poem-layout5 .poems-link {
    text-decoration: none;
    color: black;
}

.poem-layout5 .poems-link:hover {
    color: #5159b0;
}

.poem-layout5 #mySearch {
    font-size: 1.1em;
    padding: 8px 0;
}

.poem-layout5 #myMenu {
    display: none;
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
    border-radius: 10px;
}

.poem-layout5 #myMenu.show {
    display: block;
}

.poem-layout5 #myMenu li {
    padding: 6px 0;
    font-size: 1em;
}

.poem-layout5 #myMenu li a {
    display: block;
    padding: 6px 10px;
    font-size: 1.3em;
    text-decoration: none;
    color: #2f3e46;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.poem-layout5 #myMenu li a:hover {
    text-decoration: underline;
    color: #9f0f0f; /* Hover effect for search results */
}

.poem-layout5 .right-sidebar .poem-count {
    text-align: center;
    padding: 20px;
}

.poem-layout5 #count {
    font-size: 24px;
    font-weight: bold;
}

.poem-layout5 .right-sidebar .ads {
    margin-top: 20px;
    text-align: center;
}

/* Footer */
.poem-layout5 footer {
    background-color: #2f3e46;
    color: white;
    font-size: 20px;
    text-align: center;
    padding: 10px;
}

/* Poem Layout 5 Media Queries */
/* Responsive Design */
@media (max-width: 768px) {
    .poem-layout5 header {
        flex-direction: column; /* Stacks h1 and nav on smaller screens */
        height: auto;
        padding: 20px;
    }

    .poem-layout5 .top-nav {
        display: none;
    }

    .poem-layout5 .hamburger {
        display: block;
    }

    .poem-layout5 .sidenav a {
        font-size: 19px;
        padding: 8px 25px;
    }

    .poem-layout5 .container {
        flex-direction: column;
    }

    .poem-layout5 h2 {
    font-size: 22px;
    margin: 10px;
    }

    .poem-layout5 .poem-content {
        width: 100%; /* Main content takes full width */
        font-size: 20px;
        
    }

    .poem-layout5 .right-sidebar {
        width: 100%; /* Right-side search takes full width */
        margin-top: 20px;
        border-top: 4px solid #c4414c;
    }

    .poem-layout5 .right-sidebar h3 {
        font-size: 20px;

    }
    .poem-layout5 .right-sidebar img {
        width: 100%;
        height: auto;
    }

    .poem-layout5 footer {
        margin: 10px 0;
        border-top: solid 2px darkgreen;
    }
}

@media screen and (max-height: 450px) {
.poem-layout5   .sidenav {padding-top: 15px;}
.poem-layout5  .sidenav a {font-size: 18px;}
}


@media (max-width: 468px) {
    .poem-layout5 header {
        flex-direction: column;
        align-items: center; /* Center-align h1 and nav */
        height: auto;
        padding: 10px; /* Reduce padding for small screens */
    }

    .poem-layout5 h1 {
        font-size: 24px; /* Smaller font size for h1 */
        text-align: center; /* Center text */
    }

    .poem-layout5 nav ul {
        flex-direction: column; /* Stack nav items */
        align-items: center; /* Center items */
        margin-top: 10px;
    }

    .poem-layout5 nav ul li {
        padding: 5px 0; /* Reduce padding for better fit */
    }

    .poem-layout5 .sidenav a {
        font-size: 17px;
    }
    
    .poem-layout5 .container {
        margin: 8px; /* Reduced margin to fit content */
    }

    .poem-layout5 .poem-content h2 {
        font-size: clamp(20px, 4vw, 30px);
    }

    .poem-layout5 .poem-content {
        font-size: 18px;

    }

    .poem-layout5 main, .poem-layout5 .right-sidebar {
        width: 100%; /* Full width for both */
        margin-top: 10px;
    }

    
    .poem-layout5 .right-sidebar {
        padding: 5px; /* Reduce padding */
    }

    .poem-layout5 .right-sidebar h3 {
        font-size: 15px;
        padding: 5px;
    }
    .poem-layout5 footer {
        font-size: 16px; /* Adjust font size */
        border-top: solid 2px rgb(16, 39, 16);
    }
}



/* SPECIFIC STYLING FOR INDIVIDUAL POEM PAGES (IF ANY) */

 .letmeloveyou {
    background-image: url('tearsimages/waterfrontscene.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    padding: 20px;  /* Optional: Add padding for better content spacing */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5); /* Optional: Adds shadow to text for better readability */
 }

#livingalone {
    display: block;
    background-image: url(tearsimages/fencedflower.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

/* Poem Layout6 */
.poem-layout6 {
    background-image: var(--poem-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80vh;

}

.poem-layout6 h1 {
        padding: 10px;
        text-align: center;
        font-size: 3.5rem;
        color:white;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.poem-layout6 header h1.shift {
    margin-left: 250px;
    transition: margin-left 0.5s ease-in-out;
}

.poem-layout6 .sidebar {
    height: 100%;
    width: 0; /* initially hidden */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: white;
    overflow-x: hidden;
    padding-top: 60px;
    transition: width 0.5s ease-in-out;
}

.poem-layout6 .sidebar.open {
    width: 250px;
}

/* Shift main content and footer */
.poem-layout6 #main, 
.poem-layout6 #footer {
    transition: margin-left 0.5s ease-in-out;
}

.poem-layout6 #main.shift, 
.poem-layout6 #footer.shift {    
    margin-left: 250px;

}

/* The sidebar links */
.poem-layout6 .sidebar li {
    list-style-type: none;
}

.poem-layout6 .sidebar a {
  padding: 12px 24px;
  text-decoration: none;
  font-size: 25px;
  color: #333;
  display: block;
  transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.poem-layout6 .sidebar a:hover {
  color: rgb(0, 0, 0,0.5);
}

/* Position and style the close button (top right corner) */
.poem-layout6 .sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

/* Style the button that is used to open the sidepanel */
.poem-layout6 .openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #d9dedf;
  color: white;
  padding: 10px 15px;
  border: none;
}

.poem-layout6 .openbtn:hover {
  background-color: black;
}

/* === Sidebar Overlay for Poem Layout 6 === */
.poem-layout6 .sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(250, 250, 249, 0.815); /* dark, soft transparency */
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Show the overlay when active */
.poem-layout6 .sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto; /* allows clicking to close menu */
}

/* Poem Content */
.poem-layout6 .poem-content {
    padding: 20px;
    max-width: 800px;
    margin: auto;

    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 20px;
    backdrop-filter: blur(3px);
}

.poem-layout6 .poem-content h2 {
    text-align: center;
    color: rgb(146, 176, 196);
    font-size: 3em;
    margin-bottom: 20px;
}

.poem-layout6 .poem-content p {
    font-size: 2em;
    color: #f5f5f5;
    line-height: 1.6;
    padding: 15px;
    margin-bottom: 15px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);

}

.poem-layout6 .horizontal-search {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(255, 255, 255, 0.2); /* Light border */
    color: white;
    gap: 20px;
    flex-wrap: wrap;
}

.poem-layout6 .horizontal-search .search-bar,
.poem-layout6 .horizontal-search .poem-count {
    flex: 1;
    text-align: center;
    padding: 10px;
    max-width: 400px;
}

/* Ensure the input field is properly sized */
.poem-layout6 .horizontal-search .search-bar input {
    width: 75%;
    max-width: 250px;
    padding: 8px;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
}

.poem-layout6 .layout6-search-results {
  color: #2b2b2b;
  padding: 0.5rem 0;
  margin-top: 10px;
  box-shadow: 1 12px 28px rgba(0, 0, 0, 0.7);
  background-color: #f6f1e8;
  border-radius: 10px;
  z-index: 999;
}

.poem-layout6 .layout6-search-results ul {
    margin: 0;
    padding: 0;
}

.poem-layout6 .layout6-search-results li {
  list-style: none;
}

.poem-layout6 .layout6-search-results a {
  color: #2b2b2b;
  text-decoration: none;
  display: block;
  padding: 0.6rem 1rem;
  font-weight: 500;
}

.poem-layout6 .layout6-search-results a:hover {
  background-color: #e9e1d3;
}

.poem-layout6 #footer {
    color: white;
    text-align: center;
    font-size: 1.5em;
    padding: 10px;
    margin: 20px;
}


/* Media query for tablets (max-width: 768px) */
@media (max-width: 768px) {
    .poem-layout6 .poem-content {
        flex: 1;
        width: 100%;
    }

    .poem-layout6 h1 {
        font-size: 1.5em;
    }

    .poem-layout6 h2 {
        font-size: 1em;
    }

    .poem-content p {
        font-size: 0.7em;
    }

    .poem-layout6 .horizontal-search {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .poem-layout6 .horizontal-search .search-bar,
    .poem-layout6 .horizontal-search .poem-count {
        width: 90%; /* Make both sections fit */
        max-width: 100%;
    }
    .poem-layout6 .horizontal-search .search-bar input {
        width: 100%;
        max-width: 100%;
    }

    .poem-layout6 #footer {
        font-size: 1em;
    }
}

/* Media query for mobile (max-width: 480px) */
@media (max-width: 480px) {
    .poem-layout6 h1 {
        font-size: 2rem;
    }

    .poem-layout6 h2 {
        font-size: 1.5em;
    }

    .poem-layout6 .poem-content p {
        font-size: 1em;
    }

    .poem-layout6 .horizontal-search .search-bar input {
        width: 90%;
    }
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .poem-layout6 .sidebar {
        padding-top: 15px;
    }
    .poem-layout6 .sidebar a {
        font-size: 18px;
    }
}




/* SPLIT SCREEN 2 */

.split-screen-layout2,
.split-screen-layout2 * {
    box-sizing: border-box;
}

.split-screen-layout2 {
    display: flex;
    flex-direction: column;
    font-family: 'Indie Flower', cursive;
    background-color: lightslategrey;

}

.split-screen-layout2 header {
    background-color: white;
    padding: 20px;
    margin: 20px;
    border-radius: 30px;
}

.split-screen-layout2 .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.split-screen-layout2 h1 {
    margin:  0;
    font-size: 3rem;
    color: rgb(163, 159, 158);
   
}

.split-screen-layout2 .dropbtn {
  background-color: #3f88aa;
  color: white;
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.split-screen-layout2 .dropdown {
  display: none;
  position: relative;
}

.split-screen-layout2 .dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  top: 100%;
  right: 0;
  min-width: 180px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

.split-screen-layout2 .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.split-screen-layout2 .dropdown-content a:hover {
    background-color: #f1f1f1
}

.split-screen-layout2 .dropdown:hover .dropdown-content {
  display: block;
}

.split-screen-layout2 .dropdown:hover .dropbtn {
  background-color: #617780;
}

.split-screen-layout2 .main-nav {
    width: 100%;
    max-width: 1000px;
}

.split-screen-layout2 .main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
}


.split-screen-layout2 .main-nav li a {
    text-decoration: none;
    color: black;
    font-size: 1.5em;
    transition: color 0.3s;
}

.split-screen-layout2 .main-nav ul li a:hover {
    color: rgb(163, 159, 158);
    text-decoration: underline;
}

/* Content Container */
.split-screen-layout2 .content-container {
    display: flex;
    width: 100%;
    padding: 20px;
    gap: 20px;
}

/* Poem Content */
.split-screen-layout2 .poem-content {
    flex: 3;
    background-color: white;
    padding: 30px;
    border-radius: 40px;

}

.split-screen-layout2 .poem-content h2 {
    text-align: center;
    color: rgb(163, 159, 158);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.split-screen-layout2 .poem-content p {
    font-size: 1.6em;
    line-height: 1.6;
    margin: 0 auto;
    text-align: center;
    max-width: 700px;
}

/* Split screen sidebar */
.split-screen-layout2 .right-sidebar,
.split-screen-layout2 .left-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.split-screen-layout2 .sidebar-card {
    background-color: white;
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.split-screen-layout2 .sidebar-card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: rgb(163, 159, 158);
  cursor: default;
  pointer-events: none;
}

.split-screen-layout2 .sidebar-card img {
    width: 100%;
    height: 100%;
    object-fit:cover;
    border-radius: 40px;

}

.split-screen-layout2 .search-card input {
    width: 100%;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.split-screen-layout2 .sidebar-card a {
    color: black;
    text-decoration: none;
    font-size: 1.5rem;

}

.split-screen-layout2 .sidebar-card a:hover {
   color: rgb(163, 159, 158); 
}
  
.split-screen-layout2 #myMenu {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    display: none;
}

.split-screen-layout2 .count-card #count {
    font-size: 1.8em;
    display: block;
    margin-top: 10px;
}

.split-screen-layout2 .poem-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.split-screen-layout2 .poem-links li {
  margin: 8px 0;
}

.split-screen-layout2 .poem-links a {
    display: inline-block;
    padding: 4px 0;
    text-decoration: none;
  font-size: 1.3rem;
  color: black;
}

.split-screen-layout2 .poem-links a:hover {
  color: rgb(163, 159, 158);
}

.split-screen-layout2 footer {
    background-color: white;
    color: rgb(163, 159, 158);
    font-size: 1.5em;
    text-align: center;
    padding: 10px;
    border-radius: 50px;
    margin: 20px;
}

/* Media query for tablets (max-width: 768px) */
@media (max-width: 768px) {
    .split-screen-layout2 {
        flex-direction: column;
    }

    .split-screen-layout2 .content-container {
        flex-direction: column;

    }

    .split-screen-layout2 .dropdown {
        display: block;

    }

    .split-screen-layout2 .main-nav ul {
        display: none;
    }

    .split-screen-layout2 .poem-content p {
        font-size: 1.3em;
    }

    .split-screen-layout2 .sidebar {
        flex: 1;
        width: 100%;
        margin-top: 20px;
    }

    .split-screen-layout2 .sidebar-card img {
        width: 100%;
        height: auto; /* Keep aspect ratio */
    }
}

/* Media query for mobile (max-width: 480px) */
@media (max-width: 480px) {
    .split-screen-layout2 h1 {
        font-size: 2rem;
    }

    .split-screen-layout2 .main-nav ul {
        flex-direction: column;
    }

    .split-screen-layout2 .sidebar-card img {
        width: 100%;
        height: auto; /* Ensures it scales properly */
        max-height: 400px; /* You can adjust this value to your needs */
    }

    .split-screen-layout2 .content-container {
        width: 100%;
        padding: 5px;
    }

    .split-screen-layout2 .poem-content {
        padding: 20px;
    }

    .split-screen-layout2 .poem-content p {
        font-size: 1.1em;
    }


}


/* Stylings for poem search links and count specifically */

.poems-link {
    text-decoration: none;
    color: black;
}

.poems-link:hover {
    color: blue;
}

#mySearch {
    font-size: 1.1em;
    padding: 8px 0;
}

#myMenu {
    display: none;
    list-style-type: none;

}

#myMenu li {
    padding: 5px 0;
}

#myMenu li a {
    color:#333;
    text-decoration: none;
}

#myMenu li a:hover {
    text-decoration: underline;
    color: #6b68e2; /* Hover effect for search results */
}