@import url(http://fonts.googleapis.com/css?family=Mako);
@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css);

html, body {
    margin: 0 !important;
    padding: 0 !important;
}
body {
    background-color: #191919;
    color: #e6e1dc;
    font: normal 16px/150% 'Mako', sans-serif;
    margin: 0;
}
a {
    text-decoration: none;
    color: #79BFA1;
    border-bottom: 1px dotted #79BFA1;
}
a:hover {
    border-bottom: 1px solid #4fa07a;
    color: #4fa07a;
}
h1, h2 {
    margin-bottom: 0;
    color: #ffffff;
}
blockquote {
    color: #b7ffd6;
    background: #18241a;
    border-left: 15px solid #79BFA1;
    border-right: 2px solid #79BFA1;
    box-shadow: 2px 2px 15px #162017;
    display: block;
    padding: 15px 20px;
    width: 90%; 
    position: relative;
    margin: 0 auto; 
}

.sub {
    font-size: 95%;
    padding: 3px 0;
    margin: 5px;
}
.clear {
    clear: both;
}

#banner {
    background-color: #79BFA1;
    color: #fff;
    display: table; 
    width: 100%;
    height: 150px;
    margin-top: 18px; 
}
#header {
    display: table-cell; 
    vertical-align: middle;
    padding-left: 4%;
    position: relative;
}
#header .back-button {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    border-bottom: 2px solid #79BFA1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}
#header .back-button:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #79BFA1;
    color: #79BFA1;
}
#content {
    display: block;
    width: 90%; 
    margin: 0 auto 15px auto; 
    padding: 0;
}
#footer {
    border-top: 2px solid #79BFA1;
    color: inherit;
    background: none;
    text-align: right;
    padding: 15px;
    font-size: 75%;
    line-height: 70%;
    clear: both;
}
#show-menu {
    display: none;
}
.open, .close {
    background-color: inherit;
    color: #79BFA1;
    text-align: right;
    font-weight: normal;
    font-size: 1.5em;
    padding: 0;
    position: absolute;
    top: 135px;
    left: 4%;
    display: none;
}

/* Wiki Container Layout */
.wiki-container {
    display: grid;
    grid-template-columns: 1300px 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Character Infobox */
.character-infobox {
    background: #252725;
    border: 2px solid #79BFA1;
    border-radius: 6px;
    padding: 15px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.infobox-header {
    margin-bottom: 15px;
}

.character-image {
    width: 100%;
    border: 2px solid #79BFA1;
    border-radius: 6px;
    display: block;
    margin-bottom: 15px;
}

.character-quote {
    background: #18241a;
    border-left: 4px solid #79BFA1;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.character-quote p {
    margin: 0;
    color: #b7ffd6;
    font-style: italic;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.infobox-header h2 {
    text-align: center;
    margin: 10px 0 20px 0;
    font-size: 24px;
    color: #ffffff;
}

.infobox-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.infobox-table tr {
    border-bottom: 1px solid #79BFA1;
}

.infobox-table td {
    padding: 8px 5px;
}

.infobox-table .label {
    font-weight: bold;
    color: #79BFA1;
    width: 40%;
}

.infobox-table .value {
    color: #b7ffd6;
}

/* Wiki Content Sections */
.wiki-content {
    display: block;
}

/* Overview Box */
.overview-box {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: #1a2a1e;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #79BFA1;
    border: 2px solid #79BFA1;
    box-shadow: 0 0 15px rgba(121, 191, 161, 0.2);
}

.overview-img {
    flex-shrink: 0;
    width: 120px;
}

.overview-img img {
    width: 100%;
    border: 2px solid #79BFA1;
    border-radius: 6px;
    display: block;
}

.overview-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.overview-description h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #79BFA1;
    font-size: 20px;
}

.overview-description p {
    margin: 0;
    color: #b7ffd6;
    line-height: 1.6;
}

.wiki-section {
    background: #252725;
    border-left: 4px solid #79BFA1;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    color: #e6e1dc;
}

.wiki-section h2 {
    color: #79BFA1;
    border-bottom: 2px solid #79BFA1;
    padding-bottom: 10px;
    margin-top: 0;
}

.wiki-section h3 {
    color: #b7ffd6;
    margin-top: 15px;
    margin-bottom: 10px;
}

.wiki-section p {
    text-align: justify;
    line-height: 1.6;
}

/* Abilities Grid */
.abilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ability-card {
    background: #1a2a1e;
    border: 2px solid #79BFA1;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
}

.ability-card:hover {
    background: #18241a;
    box-shadow: 0 0 15px rgba(121, 191, 161, 0.3);
    transform: translateY(-2px);
}

.ability-card h4 {
    color: #79BFA1;
    margin-top: 0;
}

.ability-card p {
    font-size: 14px;
    color: #b7ffd6;
    margin: 10px 0 0 0;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-caption {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    color: #79BFA1;
}

/* Relationships Table */
.relationships-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.relationships-table thead {
    background: #1a2a1e;
}

.relationships-table th {
    color: #79BFA1;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #79BFA1;
    font-weight: bold;
}

.relationships-table td {
    padding: 12px;
    border-bottom: 1px solid #79BFA1;
    color: #e6e1dc;
}

.relationships-table tbody tr:hover {
    background: #1a2a1e;
}

/* Abilities List */
.abilities-list {
    display: block;
    margin: 15px 0 0 0;
    list-style: none;
    padding: 0;
}

.ability-item {
    margin-bottom: 15px;
    padding-bottom: 0;
    padding-left: 0;
    position: relative;
    line-height: 1.6;
    text-align: justify;
    color: #ffffff;
}

.ability-item:last-child {
    margin-bottom: 0;
}

.ability-name {
    color: #79BFA1;
    font-weight: bold;
    font-size: 16px;
    margin-right: 5px;
}

/* Trivia List */
.trivia-list {
    list-style: disc;
    padding-left: 25px;
    margin: 15px 0 0 0;
}

.trivia-list li {
    padding: 10px 0;
    color: #b7ffd6;
    line-height: 1.6;
}

/* Responsive styles */
@media screen and (max-width: 1000px) {
}
@media screen and (max-width: 750px) {
    #content {
        width: calc(100% - (2% * 2));
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #header {
        padding-left: 4%;
    }
    ul#menu {
        display: none !important; 
    }
    .hide, .open, .close {
        display: none !important; 
    }
    #show-menu {
        display: none !important; 
    }
    .wiki-container {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 650px) {
    #footer {
        text-align: center;
    }
}
