﻿.share-this-page {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between links */
}

    .share-this-page p {
        margin: 0;
        font-weight: bold;
    }

    .share-this-page a {
        text-decoration: none;
        padding: 5px 10px;
        border-radius: 5px;
        color: white;
        font-size: 14px;
        transition: background-color 0.3s;
    }

        .share-this-page a:hover {
            opacity: 0.8;
        }

        .share-this-page a:nth-child(1) {
            background-color: #3b5998; /* Facebook Blue */
        }

        .share-this-page a:nth-child(2) {
            background-color: #1da1f2; /* Twitter Blue */
        }

        .share-this-page a:nth-child(3) {
            background-color: #bd081c; /* Pinterest Red */
        }
.hide {
    display: none;
}

.featured {
    background-color: #fff;
    margin: 10px 0;
    padding: 15px 15px 15px 15px;
}

h1, h2, h3, h4, h5 {
    color: #333 !important;
    font-weight: bolder !important;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

h4 {
    margin-top: 40px !important;
}

h3{
    font-size:1.5em !important;
    margin-top: 30px !important;
}
h2:not(:first-of-type) {
    margin-top: 40px !important;
}
blockquote{
    border-left:3px solid #ccc;
    padding-left:20px;
    max-width:90%;
    margin-top:20px !important;
    margin-bottom:30px !important;
}
ul li {
    margin-top:12px;
}
/* Main container styling */
#name-list.example-names {
    width: 100%;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    padding-bottom: 25px; /* Additional bottom padding */
}

    /* Column styling */
    #name-list.example-names > div {
        flex: 1 1 400px;
        min-width: 300px;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        margin: 0;
    }

    /* Section container */
    #name-list.example-names section {
        height: 100%;
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border-radius: 8px;
        margin: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        padding-bottom: 20px; /* Extra padding at the bottom */
    }

    /* Header styling */
    #name-list.example-names h4 {
        background: linear-gradient(135deg, #5a8fd6, #7ca5e0); /* Lighter blue gradient */
        color: white;
        padding: 15px 20px;
        margin: 0 !important;
        font-size: 1.3rem;
        text-align: center;
        border-bottom: none;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }

    /* Gender-specific headers */
    #name-list.example-names div:first-child section h4 {
        background: linear-gradient(135deg, #5a8fd6, #7ca5e0); /* Lighter blue gradient for male */
    }

    #name-list.example-names div:last-child section h4 {
        background: linear-gradient(135deg, #e27396, #f7a9c3); /* Lighter pink gradient for female */
    }

    /* Main list styling */
    #name-list.example-names > div > section > ul {
        list-style: none;
        padding: 10px 20px 20px;
        margin: 0;
        flex-grow: 1;
    }

        /* Main list item styling (superhero names) */
        #name-list.example-names > div > section > ul > li {
            padding: 15px;
            margin: 10px 0;
            border: 1px solid #eaeaea;
            border-radius: 8px;
            background-color: #ffffff;
            transition: all 0.2s ease;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            position: relative;
        }

            #name-list.example-names > div > section > ul > li:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                border-color: #d0d0d0;
            }

            /* Superhero name styling */
            #name-list.example-names > div > section > ul > li > strong {
                font-size: 1.1rem;
                color: #2c3e50;
                font-weight: 700;
                display: block;
                margin-bottom: 8px;
                text-transform: capitalize;
            }

            /* Nested list styling (powers) */
            #name-list.example-names > div > section > ul > li > ul {
                list-style: none;
                padding: 0;
                margin: 5px 0 0 0;
                background-color: #f9f9f9;
                border-radius: 5px;
                padding: 8px 12px;
                border-left: 3px solid #e0e0e0;
            }

                /* Power list items */
                #name-list.example-names > div > section > ul > li > ul > li {
                    padding: 4px 0;
                    margin: 0;
                    font-size: 0.9rem;
                    color: #555;
                    border: none;
                    background: transparent;
                    box-shadow: none;
                }

                    /* Style the first item in the power list (power name) */
                    #name-list.example-names > div > section > ul > li > ul > li:first-child {
                        font-weight: 600;
                        color: #444;
                    }

                    /* Style the second item in the power list (power description) */
                    #name-list.example-names > div > section > ul > li > ul > li:last-child {
                        font-style: italic;
                        font-size: 0.85rem;
                        color: #666;
                        padding-left: 8px;
                    }

/* Responsive adjustments */
@media (max-width: 768px) {
    #name-list.example-names > div {
        flex: 1 1 100%;
    }
}

/* Optional title for the entire section */
#name-list.example-names::before {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 20px 0 10px;
    padding: 0 15px;
}
/*.featured .example-names {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

    .featured .example-names div {
        max-width:95%;
        margin:30px auto;*/
     /*   display: flex;*/
       /* flex-direction: column;
        align-items: center;*/
        /*border: 1px solid #ddd;*/ /* Faint border around each column */
        /*border-radius: 5px;*/ /* Adds rounded corners */
        /*margin-bottom: 25px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/ /* Subtle shadow for depth */
        /*background: #fff;*/ /* White background */
    /*}

    .featured .example-names h4 {
        background: #f0f0f0;*/ /* Slightly darker background for the header */
        /*padding: 10px;
        width: 100%;
        margin-top:0 !important;
        text-align: center;
        border-bottom: 1px solid #ccc;
        border-radius: 5px 5px 0 0;*/ /* Rounded corners for the top header */
        /*margin: 0;
    }

    .featured .example-names ul {
        text-align:left;
        list-style: none;*/ /* Removes default list style */
        /*padding: 0;
        margin: 0;
        width: 100%;
    }

        .featured .example-names ul li {
            background: #ffffff;
            margin: 5px 0;*/ /* Reduced margin for less space between items */
            /*padding: 10px;*/ /* Reduced padding inside each item */
            /*border-bottom: 1px solid #ccc;*/ /* Faint border at the bottom of each item */
            /*border-radius: 5px;*/ /* Adds rounded corners */
         /*   display: flex;
            flex-direction: column;
            align-items: center;*/
        /*}

            .featured .example-names ul li p {
                margin: 5px 0 0 0;*/ /* Adjusts the margin for the paragraph */
            /*}

            .featured .example-names ul li strong {
                font-size: 1.1em;*/ /* Increases font size for the name */
            /*}*/


    #name-container, #name-container-d {
        max-width: 600px; /* Limit width for better mobile viewing */
        margin: auto; /* Center align the container */
        padding: 10px;
        border: 1px solid #ccc; /* Subtle border */
        background-color: #f9f9f9; /* Light background for the container */
        overflow-y: auto; /* Enable scrolling if list is long */
        height: 300px; /* Fixed height */
    }

.name-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

    .name-item:last-child {
        border-bottom: none;
    }

.remove-btn {
    margin-left: 10px; /* Added padding between the name and the button */
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px; /* Larger font size for easier touch */
    color: red; /* Red color to signify deletion */
}


ul.btn-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

    ul.btn-list li {
        margin: 10px;
        flex: 0 1 calc(33.33% - 30px); /* Adjust the width to fit 3 items per row */
    }

    ul.btn-list a {
        display: block;
        background-color: #f2f2f2;
        padding: 10px 15px;
        text-align: center;
        border-radius: 5px;
        color: #333;
        text-decoration: none;
        transition: background-color 0.3s, color 0.3s;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

        ul.btn-list a:hover {
            background-color: #e0e0e0;
            color: #000;
        }

/* typical phone screen resolution */
@media only screen and (max-width : 450px) {
    ul.btn-list li {
        margin: 10px;
        flex: 0 1 100%;
    }
    .featured .example-names ul li {
        background: #ffffff;
        margin: 5px; /* Reduced margin for less space between items */
        padding: 10px; /* Reduced padding inside each item */
        border-bottom: 2px solid #ccc;
        max-width: 100%;
        border-radius: 5px; /* Adds rounded corners */
        /*box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    }
}
