/* No Alliance - Faithful recreation of the 2003 aesthetic */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #CCCCCC;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    min-height: 100vh;
}

a:link, a:visited {
    color: #999999;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #CCCCCC;
}

a:active {
    text-decoration: none;
    color: #CCCCCC;
}

/* Panel boxes - the signature look */
.panel {
    border: 1px solid #333333;
    margin-bottom: 8px;
}

.panel-header {
    background-color: #666666;
    text-align: center;
    padding: 4px 8px;
    font-weight: bold;
    color: #CCCCCC;
}

.panel-body {
    background-color: #333333;
    padding: 10px;
    text-align: center;
}

/* Layout */
.site-wrapper {
    width: 100%;
    min-height: 100vh;
}

.logo-bar {
    border: 1px solid #333333;
    background-color: #000000;
    text-align: center;
    padding: 10px;
}

.logo-bar img {
    max-width: 291px;
    height: auto;
}

/* Game frame layout - CSS recreation of the original HTML frames */
.game-layout {
    display: flex;
    min-height: calc(100vh - 100px);
    gap: 0;
}

.game-sidebar-left {
    width: 170px;
    min-width: 170px;
    background-color: #000000;
    border-right: 2px solid #00ff00;
    padding: 10px 5px;
}

.game-main {
    flex: 1;
    background-color: #000000;
    padding: 15px;
    min-height: 400px;
}

.game-sidebar-right {
    width: 170px;
    min-width: 170px;
    background-color: #000000;
    border-left: 2px solid #00ff00;
    padding: 10px 5px;
}

/* Game banner */
.game-banner {
    background-color: #000000;
    border-bottom: 2px solid #00ff00;
    padding: 8px;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-banner h1 {
    color: #FF0000;
    font-size: 24px;
    letter-spacing: 4px;
}

/* Game options menu (left sidebar) */
.game-options {
    text-align: center;
}

.game-options h3 {
    color: #FFFFFF;
    margin-bottom: 15px;
    font-size: 13px;
}

.game-options a {
    display: block;
    color: #FF0000;
    text-decoration: none;
    padding: 6px 4px;
    font-size: 11px;
    transition: color 0.15s;
}

.game-options a:hover {
    color: #00FF00;
    text-decoration: underline;
}

.game-options a.battle-link {
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 3px;
    margin: 10px 0;
}

/* Top ten sidebar */
.top-ten-entry {
    margin-bottom: 8px;
    font-size: 11px;
}

.top-ten-entry .rank {
    color: #FFFFFF;
    font-weight: bold;
}

.top-ten-entry .name {
    color: #CCCCCC;
    font-size: 12px;
}

.top-ten-entry .gold {
    color: #999999;
    font-size: 10px;
}

/* Homepage 3-column layout */
.home-layout {
    display: flex;
    gap: 8px;
    padding: 8px;
}

.home-sidebar {
    width: 20%;
    min-width: 160px;
}

.home-main {
    flex: 1;
}

/* Welcome page content */
.welcome-content {
    text-align: left;
    line-height: 1.6;
}

.welcome-content p {
    margin-bottom: 10px;
}

/* Forms */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    background-color: #222222;
    color: #CCCCCC;
    border: 1px solid #555555;
    padding: 5px 8px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: #999999;
    outline: none;
}

/* Buttons styled like the original image buttons */
.btn {
    background-color: #333333;
    color: #CCCCCC;
    border: 1px solid #666666;
    padding: 5px 15px;
    cursor: pointer;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #444444;
    color: #FFFFFF;
}

.btn-red {
    background-color: #660000;
    border-color: #990000;
    color: #FF6666;
}

.btn-red:hover {
    background-color: #880000;
    color: #FFFFFF;
}

.btn-green {
    background-color: #006600;
    border-color: #009900;
    color: #66FF66;
}

.btn-green:hover {
    background-color: #008800;
    color: #FFFFFF;
}

/* Game content headings */
h2 {
    color: #CCCCCC;
    font-size: 18px;
    margin-bottom: 15px;
}

h3 {
    color: #CCCCCC;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Color classes matching original */
.color-red { color: #FF0000; }
.color-yellow { color: #FFFF00; }
.color-blue { color: #0000FF; }
.color-lightblue { color: lightblue; }
.color-green { color: #00FF00; }
.color-white { color: #FFFFFF; }

/* Character images */
.character-img {
    width: 80px;
    height: auto;
    margin: 5px;
    image-rendering: pixelated;
}

.character-img-large {
    width: 120px;
    height: auto;
    margin: 10px;
    image-rendering: pixelated;
}

/* Weapon/Defence images */
.item-img {
    width: 60px;
    height: auto;
    margin: 5px;
    image-rendering: pixelated;
}

/* Tables */
table {
    border-collapse: collapse;
}

.game-table {
    width: 100%;
    border: 1px solid #333333;
}

.game-table th {
    background-color: #666666;
    color: #CCCCCC;
    padding: 5px 10px;
    text-align: center;
    font-size: 11px;
}

.game-table td {
    background-color: #222222;
    color: #CCCCCC;
    padding: 5px 10px;
    text-align: center;
    border-bottom: 1px solid #333333;
    font-size: 11px;
}

.game-table tr:hover td {
    background-color: #2a2a2a;
}

/* Flash messages */
.flash-messages {
    padding: 5px 10px;
}

.flash {
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 1px solid;
}

.flash-error {
    color: #FF6666;
    border-color: #660000;
    background-color: #1a0000;
}

.flash-success {
    color: #66FF66;
    border-color: #006600;
    background-color: #001a00;
}

/* Battle result */
.battle-result {
    text-align: center;
    padding: 20px;
}

.battle-result .vs {
    font-size: 24px;
    color: #FF0000;
    margin: 15px 0;
}

.battle-result .winner {
    font-size: 28px;
    color: #FFFF00;
    font-weight: bold;
    margin: 15px 0;
}

/* Lottery */
.lottery-ticket {
    padding: 8px;
    margin: 5px 0;
    text-align: left;
}

/* Crystal Ball */
.crystal-ball-img {
    width: 100px;
    height: auto;
}

/* Guestbook */
.guestbook-entry {
    border: 1px solid #333333;
    background-color: #1a1a1a;
    padding: 10px;
    margin-bottom: 10px;
}

.guestbook-entry .meta {
    color: #666666;
    font-size: 10px;
    margin-top: 5px;
}

/* Radio buttons */
input[type="radio"] {
    accent-color: #FF0000;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px;
    color: #666666;
    font-size: 10px;
    border-top: 1px solid #333333;
    margin-top: 20px;
}

/* Admin */
.admin-panel {
    padding: 15px;
}

.admin-nav {
    display: flex;
    gap: 15px;
    padding: 10px;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.admin-nav a {
    color: #FF6666;
    padding: 5px 10px;
}

.admin-nav a:hover {
    color: #FFFFFF;
}

/* Responsive - collapse frames on mobile */
@media (max-width: 768px) {
    .home-layout {
        flex-direction: column;
    }
    .home-sidebar {
        width: 100%;
        min-width: auto;
    }
    .game-layout {
        flex-direction: column;
    }
    .game-sidebar-left,
    .game-sidebar-right {
        width: 100%;
        min-width: auto;
        border: none;
        border-bottom: 2px solid #00ff00;
    }
    .game-sidebar-left {
        border-right: none;
    }
    .game-sidebar-right {
        border-left: none;
    }
    .game-options a {
        display: inline-block;
        padding: 6px 10px;
    }
}

/* Scrollbar styling for webkit */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0F1315;
}

::-webkit-scrollbar-thumb {
    background: #17222F;
    border: 1px solid #347684;
}

::-webkit-scrollbar-thumb:hover {
    background: #235059;
}
