/* Basic reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
    body {
        font-family: Times New Roman;
        background-color: #ffffff;
        color: #483c32;
        line-height: 1.6;
        background-image: url("../../src images/characterbackground.jpg");
}

    header {
        background: #4e0705;
        color: black;
        padding: 1rem 0;
        text-align: center;
        position: static;
        bottom: 50px;
    }

    nav {
        background: rgb(243, 219, 187);
        padding: 0.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
     }

    nav a {
        color: black;
        text-decoration: none;
        margin: 0 1rem;
        }
    nav a:hover,
    .dropdown .dropbtn:hover {
        text-decoration: underline;
    }

    main {
        background: #ffffff7c;
        max-width: 1200px;
        margin: auto;
    }
footer {
        background: rgb(243, 219, 187);
        color: black;
        text-align: center;
        padding: 1rem;
        margin-top: 2rem;
    }


/* Dropdown container */
    .dropdown {
        position: relative;
    }

/* Dropdown button */
    .dropdown .dropbtn {
        font-size: 16px;
        font-family: Times New Roman;
        border: none;
        outline: none;
        color: rgb(0, 2, 3);
        padding: 14px 20px;
        background-color: transparent;
        cursor: pointer;
    }

    .dropdown:hover .dropbtn {
        background-color: rgba(0, 0, 0, 0.15);
        border-radius: 4px;
    }

/* Dropdown content (hidden by default) */
    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgb(243, 219, 187);
        min-width: 160px;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
        z-index: 1;
    }

/* Links inside dropdown */
    .dropdown-content a {
        float: none;
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }
    .dropdown-content a:hover {
        background-color: rgb(243, 219, 187);
    }

/* Show dropdown on hover */
    .dropdown:hover .dropdown-content {
        display: block;
    }
    
/*Character file button styling*/
button.character-box {
    border: none;
    cursor: pointer;
    border-radius: 4px;
    background-color: rgb(243, 219, 187);
    padding: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

button.character-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button.character-box a {
    color: #4e0705;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    transition: color 0.2s;
}

button.character-box a:hover {
    color: #4e0705;
    text-decoration: none;
}
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
main section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}
.greeting {
    padding: 1rem;
    margin: 1rem;
    text-align: center;
    font-size:17px;
}
.category-title {
    width: 100%;
    text-align: center;
    margin: 2rem 0 1rem;
    color: #131313;
    font-size: 1.5rem;
}
.character-box {
    width: 260px;
    background-color: #ffffff;
    border: 1px solid #ececec;
    display: inline-grid;
    flex-wrap:wrap;
    margin: 1rem;
}

.character-img {
    width: 220px;
    display: block;
}

.character-img img,
.character-profile {
    width: 220px;
    display: block;
    border: 2px solid #000000;
    border-radius: 8px;
    margin: 1rem;
}
.character-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem;
    text-align: center;
    color: #131313;
    text-decoration: bold;
}
.character-description {
    font-size: 0.9rem;
    color: #131313;
    text-align: center;
    margin-bottom: 0.5rem;
    text-decoration: italic;
}
