/* ============================================ */
/* HTML5 Boilerplate Reset */
/* ============================================ */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

html, body { height: 100%; }

/* ============================================ */
/* BASE STYLING */
/* ============================================ */
body {
    /* MAIN BACKGROUND - Replace with your stone texture */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/bg_stone.png');
    background-attachment: fixed;
    background-size: 64px 64px;
    background-color: #111;
    
    font: 13px/1.4 'Helvetica Neue', Arial, sans-serif;
    color: #E0D0D0;
    line-height: 1.5;
}

a, a:active, a:visited {
    color: #aaf;
    text-decoration: none;
}

a:hover {
    color: #ccf;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 18px;
    margin-top: 2em;
    color: #fff;
}

h3 {
    font-size: 14px;
    margin-top: 2em;
}

h4 {
    font-size: 13px;
    margin-top: 2em;
}

p, ul, ol {
    margin-top: 1.5em;
}

section li {
    margin: 0.67em 0;
}

/* ============================================ */
/* CLEARFIX */
/* ============================================ */
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix { display: inline-block; }
* html .clearfix { height: 1%; }
.clearfix { display: block; }

/* ============================================ */
/* HEADER */
/* ============================================ */
header {
    height: 48px;
    /* HEADER BACKGROUND - Replace with your dirt texture */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('images/bg_dirt.png');
    background-attachment: fixed;
    background-size: 64px 64px;
    background-color: #211710;
    
    box-shadow: 0 2px 4px rgba(0,0,0,0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Glassy bubble overlay effect */
header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    pointer-events: none;
}

#header_container {
    width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

#logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    margin-right: 40px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    height: 48px;
}

#logo img {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

#logo:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

#logo:hover img {
    filter: drop-shadow(2px 2px 6px rgba(255, 255, 255, 0.3));
}

#menu {
    list-style: none;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    gap: 20px;
    flex: 1;
    margin: 0;
}

#menu li {
    position: relative;
}

#menu li a, #menu li a:active, #menu li a:visited {
    color: #fff;
    text-decoration: none;
}

#menu li a:hover {
    color: #aaf;
}

#menu li ul {
    margin: 0;
    padding: 0;
    position: absolute;
    display: none;
    z-index: 5;
    padding-top: 6px;
    top: 100%;
    left: 0;
    min-width: 150px;
}

#menu li:hover > ul {
    display: block;
}

#menu li ul li {
    float: none;
    margin: 0;
    display: block;
}

#menu li ul li a {
    display: block;
    padding: 6px 10px;
    background: #333;
    white-space: nowrap;
    color: #fff;
}

#menu li ul li a:hover {
    background: #444;
    color: #aaf;
}

#userbox {
    width: auto;
    text-align: right;
    font-size: 11px;
    margin-left: auto;
}

#userbox a {
    color: #aaf;
    margin: 0 5px;
}

/* ============================================ */
/* MAIN CONTAINER */
/* ============================================ */
#wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main {
    width: 1000px;
    margin: 0 auto;
    margin-top: 1em;
    position: relative;
    padding: 20px 0 40px;
    flex: 1;
}

/* ============================================ */
/* SECTIONS & LAYOUT */
/* ============================================ */
section, aside {
    margin-bottom: 3em;
}

section.left {
    width: 640px;
    float: left;
}

aside {
    width: 300px;
    margin-left: 40px;
    float: left;
}

aside h3 {
    font-size: 13px;
    color: #fff;
    margin-top: 0;
}

aside p {
    font-size: 12px;
    margin-top: 1em;
}

section.left p {
    color: #ddd;
    line-height: 1.8;
}

section.left code {
    background: #222;
    padding: 2px 6px;
    color: #ffb400;
    font-family: monospace;
}

/* ============================================ */
/* THREE COLUMN SECTIONS */
/* ============================================ */
section.left.three_col {
    width: 300px;
    float: left;
    clear: none;
}

section.mid.three_col, section.right.three_col {
    width: 300px;
    margin-left: 40px;
    float: left;
    clear: none;
}

section.social h2 {
    font-size: 16px;
    color: #fff;
    padding-left: 40px;
    background-repeat: no-repeat;
    padding-top: 3px;
    height: 29px;
    margin-bottom: 1em;
}

section.social h2 a {
    color: #aaf;
    text-decoration: none;
}

section.social h2 a:hover {
    color: #ccf;
}

section.social p {
    color: #aaa;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 1em;
}

section.social > div {
    background: #222;
    border: 1px solid #444;
    padding: 15px;
    min-height: 100px;
    color: #777;
    font-size: 11px;
    text-align: center;
    margin-top: 1em;
}

/* ============================================ */
/* SIDEBAR STYLING */
/* ============================================ */
#animals {
    text-align: center;
}

.status-box {
    background: #222;
    border: 1px solid #444;
    padding: 12px;
    margin-bottom: 15px;
    color: #ddd;
}

.status-box h3 {
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    color: #aaf;
}

.status-line {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 11px;
    border-bottom: 1px solid #333;
}

.status-line:last-child {
    border-bottom: none;
}

.status-label {
    font-weight: bold;
    color: #aaa;
}

.status-online {
    color: #5fbe30;
    font-weight: bold;
}

.status-offline {
    color: #ff3333;
    font-weight: bold;
}

.player-list {
    list-style: none;
    font-size: 11px;
    max-height: 200px;
    overflow-y: auto;
}

.player-item {
    padding: 5px 0;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-item:last-child {
    border-bottom: none;
}

.player-head {
    width: 16px;
    height: 16px;
    background: #444;
    flex-shrink: 0;
    background-size: cover;
    border: 1px solid #666;
}

.player-name {
    color: #aaf;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-name:hover {
    color: #ccf;
}

/* ============================================ */
/* BUTTONS */
/* ============================================ */
.button {
    display: inline-block;
    background-color: #5fbe30;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

.button:hover {
    background-color: #7fce50;
    text-decoration: none;
}

.button_buy_now {
    background-color: #ffb400;
    color: #000;
}

.button_buy_now:hover {
    background-color: #ffc530;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
footer {
    position: relative;
    margin-top: -40px;
    height: 26px;
    text-align: center;
    color: #444;
    padding-top: 14px;
    clear: both;
    background: #1a1a1a;
    border-top: 1px solid #333;
}

footer a, footer a:visited {
    color: #777;
    text-decoration: none;
}

footer a:hover {
    color: #aaa;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 1100px) {
    #header_container, #main {
        width: 95%;
    }

    section.left {
        width: 62%;
    }

    aside {
        width: 30%;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 10px 0;
    }

    #header_container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
        align-items: center;
        justify-content: space-between;
    }

    #logo {
        margin-right: 0;
        flex-shrink: 0;
    }

    #logo img {
        height: 35px;
        width: auto;
    }

    #menu {
        flex-direction: row;
        gap: 10px;
        width: auto;
        flex-wrap: wrap;
        order: 3;
        flex-basis: 100%;
        font-size: 11px;
    }

    #menu li {
        margin-left: 5px;
    }

    #menu li a {
        font-size: 11px;
    }

    #menu li ul {
        padding-top: 4px;
    }

    #menu li ul li a {
        padding: 4px 8px;
        font-size: 10px;
    }

    #userbox {
        width: auto;
        margin-left: 0;
        font-size: 10px;
        order: 2;
    }

    #userbox a {
        margin: 0 3px;
    }

    #main {
        width: 95%;
        padding: 10px 0 20px;
    }

    section.left {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }

    aside {
        width: 100%;
        margin-left: 0;
        float: none;
    }

    section.left.three_col,
    section.mid.three_col,
    section.right.three_col {
        width: 100%;
        float: none;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    header {
        height: auto;
        padding: 8px 0;
    }

    #header_container {
        padding: 8px;
        gap: 8px;
    }

    #logo img {
        height: 30px;
        width: auto;
    }

    #menu {
        gap: 8px;
        font-size: 10px;
    }

    #menu li {
        margin-left: 3px;
    }

    #menu li a {
        font-size: 10px;
    }

    #menu li ul li a {
        padding: 3px 6px;
        font-size: 9px;
    }

    #userbox {
        font-size: 9px;
    }

    #userbox a {
        margin: 0 2px;
    }

    h2 {
        font-size: 16px;
    }

    h3 {
        font-size: 12px;
    }

    section.left p {
        font-size: 12px;
    }
}