/* General reset, ensure lists retain default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style-type: disc; /* Ensure list-style is set to disc */
    margin-left: 20px; /* Default margin for list items */
}

li {
    margin-bottom: 5px; /* Add spacing between list items */
}

/* Header Banner with Flex Layout */
.banner {
    background-image: url('/images/textures/texture2-1.png');
    background-size: cover;
    background-position: top;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    height: 50px;
    top: 0;
    position: relative;
}

.banner h1 {
    margin-right: 10px;
    z-index: 2;
}

/* General Styles */
body {
    font-family: 'Philosopher', sans-serif;
    background-color: #1a1a1a;
    color: #f4e8c1;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

body, main {
    padding-bottom: 30px;
    font-family: 'Philosopher', sans-serif;
}

.description {
    padding-right: 10px;
    padding-bottom: 15px;
    font-family: 'Philosopher', sans-serif;
}

header a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    width: auto;
}

header, header * {
    margin: 0;
    padding: 0;
}

header a:hover {
    text-decoration: underline;
}

main {
    background: linear-gradient(to bottom, #000000b2, #210000);
    flex: 1;
    padding-left: 10px;
    padding-bottom: 0px;
    font-family: 'Philosopher', sans-serif;
}

.centered-heading {
    text-align: left;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    width: auto;
    max-width: 100%;
    background-color: #5d0e0e;
    border-radius: 10px;
    z-index: 1000;
    right: 0;
    box-sizing: border-box;
    font-family: 'Philosopher', sans-serif;
}

.mobile-menu ul {
    list-style-type: none; /* Set default list style for mobile menu */
    padding: 0;
    margin: 0 20px; /* Ensure there's some left margin for bullets */
    font-family: 'Philosopher', sans-serif;
}

.mobile-menu li {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-bottom: 5px;
    font-family: 'Philosopher', sans-serif;
}

.mobile-menu li a {
    display: block;
    padding: 10px 15px;
    background-color: #000000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
    font-family: 'Philosopher', sans-serif;
}

.mobile-menu li a:hover {
    background-color: #555;
    font-family: 'Philosopher', sans-serif;
}

.menu-toggle {
    display: block;
    position: relative;
    right: 10px;
    background-color: #5d0e0e;
    color: #f4e8c1;
    border: none;
    border-radius: 5px;
    padding: 7.5px 11.25px;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    margin-right: 10px;
    margin-left: auto;
    z-index: 3;
    font-family: 'Philosopher', sans-serif;
}

.submenu {
    display: none;
    background-color: #381aaf;
    color: #ffffff;
    font-family: 'Philosopher', sans-serif;
}

/* Media Query */
@media screen and (max-width: 600px) {
    .menu-toggle {
        order: 3;
    }
    footer {
        font-size: 10px;
        text-align: center;
        font-family: 'Philosopher', sans-serif;
    }
    .character-grid {
        padding-left: 0px;
        padding-right: 10px;
        gap: 10px;
        font-family: 'Philosopher', sans-serif;
    }
    .tabcontent {
        padding: 50px 20px;
        font-family: 'Philosopher', sans-serif;
    }
    .banner {
        flex-direction: row;
        align-items: center;
        height: 50px;
        font-family: 'Philosopher', sans-serif;
    }
    .banner h1 {
        font-size: 15px;
        font-family: 'Philosopher', sans-serif;
    }
}

/* Desc */
.desc-img, .desc-img-left {
    margin-bottom: 20px;
    margin-top: 10px;
    max-width: 100%;
    height: auto;
    gap: 10px;
    padding-right: 15px;
}

.desc-img {
    float: right;
    margin-left: 10px;
    padding-right: 20px;
}

.desc-img-left {
    float: left;
    margin-right: 10px;
}

.desc-img-center {
    display: block;
    margin: 0 auto;
    float: none;
    margin-top: 10px;
    padding-top: 10px;
}

/* Footer */
footer {
    font-family: 'Philosopher', sans-serif;
    background: linear-gradient(to right, #000000, #220133);
    color: #f4e8c1;
    text-align: center;
    padding: 0;
    height: 30px;
    padding-bottom: 15px;
    bottom: 0;
    position: fixed;
    width: 100%;
}

/* Character Item */
.character-item h3 {
    text-align: center;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding-right: 10px;
    padding-left: 10px;
}

.character-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 10px;
}

.character-item img {
    width: 100%;
    height: auto;
    margin-top: 10px;
}

/* Table */
table {
    border-collapse: collapse;
    width: auto;
    table-layout: auto;
    font-family: 'Philosopher', sans-serif;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-family: 'Philosopher', sans-serif;
}

th {
    background-color: #49305a;
}

tr:nth-child(even) {
    background-color: #5c5146;
}

.table-wrapped {
    float: left;
    width: 20%;
    margin: 20px;
}

.table-wrapped th {
    background-color: #5c5146;
    color: #fff;
    font-family: 'Philosopher', sans-serif;
}

.table-wrapped tr:nth-child(even) {
    background-color: #5c5146;
    color: #fff;
    font-family: 'Philosopher', sans-serif;
}

tr.special-row {
    background-color: #634966;
    font-family: 'Philosopher', sans-serif;
}

/* Spell Table */
.spell-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Philosopher', sans-serif;
}

.spell-table th, .spell-table td {
    padding: 8px;
    border: 1px solid black;
    text-align: left;
    font-family: 'Philosopher', sans-serif;
}

.spell-table th:first-child, .spell-table td:first-child {
    width: 150px;
}

/* Homebrew */
.homebrew-container {
    width: 100%;
}

.homebrew-rule {
    margin-bottom: 5px;
}

.homebrew-rule h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Philosopher', sans-serif;
}

.homebrew-rule p {
    margin: 0;
}

a {
    color: #ffffff;
}

/* Warning */
.warning {
    background-color: rgb(182, 59, 42);
    color: white;
    padding: 5px;
    text-align: center;
    border: 1px solid rgb(249, 252, 93);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1em;
    margin-top: 25px;
    font-family: 'Philosopher', sans-serif;
}

.warning-wip {
    background-color: rgb(55, 13, 104);
    color: white;
    padding: 5px;
    text-align: center;
    border: 1px solid rgb(250, 250, 250);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1em;
    margin-top: 25px;
    font-family: 'Philosopher', sans-serif;
}

.warning, .warning-wip {
    z-index: 30;
    position: relative;
    font-family: 'Philosopher', sans-serif;
}

/* Tablink */
.tablink {
    background-color: #5c5146;
    color: #f4e8c1;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 17px;
    width: 30%;
    border-radius: 15px;
    margin-right: 10px;
    margin-bottom: 0px;
    font-family: 'Philosopher', sans-serif;
}

.tablink:hover {
    background-color: #5c5146;
}

.tablink:last-child {
    margin-right: 0;
}

.tabcontent {
    color: #c4b09b;
    display: none;
    padding: 50px 20px;
    height: 100%;
}

/* Rounded Box */
.rounded-box {
    padding: 20px;
    border: 2px solid #d8cece;
    border-radius: 15px;
    background-color: #3e312c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    font-size: 16px;
    line-height: 1.5;
    font-family: 'Philosopher', sans-serif;
}

/* Collapsible Blocks */
.collapsible {
    background-color: #00000000;
    color: #d8cece;
    cursor: pointer;
    padding: 5px;
    width: 99%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 24px;
    border-radius: 5px;
    margin-top: 3px;
    font-family: 'Philosopher', sans-serif;
}

.active, .collapsible:hover {
    background-color: #634966;
}

.content {
    padding: 3px;
    border: 2px solid #5b1198;
    border-radius: 5px;
    background-color: #2505372b;
    margin: 20px auto;
    font-size: 16px;
    line-height: 1.5;
    display: none;
    overflow: hidden;
    font-family: 'Philosopher', sans-serif;
}

/* Audio Button */
.audioPlayButton {
    display: block;
    width: auto;
    background-color: #634966;
    color: #f4e8c1;
    border: none;
    border-radius: 5px;
    padding: 7.5px 11.25px;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    z-index: 3;
    font-family: 'Philosopher', sans-serif;
}