@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* GLOBAL */
body {
    background: #f5e6c8; /* parchment */
    font-family: 'Trebuchet MS', serif;
    color: #fdf3d6; /* light parchment */
    margin: 0;
    padding: 0;
}

/* HEADER */
.header-wrapper {
    width: 100%;
    background: #f5e6c8; /* parchment tan */
    border-bottom: 3px solid #c49b3a; /* gold trim */
    box-shadow: 0 0 10px #c49b3a;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
}

.game-header h1 {
    color: #5a3e1b; /* warm pirate brown */
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.menu a {
    color: #5a3e1b;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu a:hover {
    color: #c49b3a; /* gold hover */
}

.nav-icon {
    width: 22px;
    height: 22px;
}

/* CONTENT PANELS */
.content {
    background: #fdf3d6; /* light parchment */
    border: 3px solid #c49b3a; /* gold trim */
    border-radius: 12px;
    padding: 25px;
    margin: 30px auto;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 0 12px rgba(196, 155, 58, 0.6); /* soft gold glow */
    color: #c49b3a; /* light parchment */
}

.news-box {
    background: #fff7e2; /* lighter parchment inside */
    border: 2px solid #c49b3a;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 8px rgba(196, 155, 58, 0.4);
}

.news-box h3 {
    color: #5a3e1b;
    margin-top: 0;
}

.admin-button {
    display: inline-block;
    background: #c49b3a; /* gold button */
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}

.admin-button:hover {
    background: #d8b45a;
}

.content h2 {
    font-size: 28px;
    color: #ffd77a;
    text-align: center;
}

.content h3 {
    margin-top: 25px;
    color: #5a3e1b;
    border-bottom: 2px solid #c49b3a;
    padding-bottom: 5px;
    font-size: 20px;
    text-align: center;
}

/* FORMS */
.login-form {
    background: #fff7e2; /* parchment */
    border: 3px solid #c49b3a; /* gold trim */
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(196,155,58,0.4); /* soft gold glow */
}

.login-button {
    background: #c49b3a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.login-button:hover {
    background: #d8b45a;
}

.social-login {
    margin-top: 15px;
    margin-bottom: 20px;
}

.fb-button {
    display: inline-block;
    background: #4267B2;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.fb-button:hover {
    background: #365899;
}

.login-form input,
.login-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: #fdf3d6; /* parchment */
    border: 2px solid #c49b3a; /* gold trim */
    color: #5a3e1b; /* pirate brown */
    border-radius: 6px;
    font-size: 16px;
}
.login-form input:focus,
.login-form textarea:focus {
    border-color: #ffd77a; /* bright gold */
    outline: none;
    box-shadow: 0 0 8px #ffd77a;
}

/* TABLES */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff7e2;
    border: 3px solid #c49b3a;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    border: 1px solid #c49b3a;
    padding: 10px;
    text-align: center;
    color: #5a3e1b;
}

.admin-table th {
    background: #f0d9a0;
    font-weight: bold;
}

/* ============================
   WORLD MAP + MINIMAP MODULE
   ============================ */

/* Map wrapper (centers entire map page) */
.map-wrapper {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* ============================
   MINIMAP (32px TILE VERSION)
   ============================ */

.minimap {
    margin: 20px auto;
    padding: 8px;
    background: #8aacce;
    border: 3px solid #c49b3a;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 0 15px #8aacce;
}

.mini-row {
    display: flex;
}

.mini-tile {
    width: 32px;
    height: 32px;
    margin: 1px;
    border-radius: 4px;
    image-rendering: pixelated;
    border: 2px solid #c49b3a;
}

.mini-tile:hover {
    transform: scale(1.05);
    border-color: #ffd77a;
}

/* Compass movement buttons */
.compass {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
}

.compass-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
}

.compass-btn {
    background: #c49b3a;
    color: #000;
    font-size: 22px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border: 3px solid #ffd77a;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.compass-btn:hover {
    background: #ffd77a;
    transform: scale(1.1);
}

.compass-center {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border: 3px solid #c49b3a;
    border-radius: 8px;
    color: #ffd77a;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
}

.news-box strong {
    color: #ffd77a;
}

.news-title {
    font-size: 20px;
    color: #ffd77a;
    margin-bottom: 10px;
    border-bottom: 2px solid #c49b3a;
    padding-bottom: 5px;
}

.ship-box {
    text-align: center;
    margin: 0 auto;
}

.ship-image {
    width: 200px;
    height: auto;
    border: 4px solid #c49b3a;
    border-radius: 8px;
    box-shadow: 0 0 10px #8aacce;
}

.ship-title {
    font-size: 22px;
    color: #ffd77a;
    border-bottom: 2px solid #c49b3a;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.ship-stats {
    background: #fff7e2; /* parchment */
    border: 3px solid #c49b3a;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    color: #5a3e1b;
    text-align: left;
    margin: 0 auto;
    max-width: 300px;}

/* ============================
   CREW MODULE
   ============================ */

.crew-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.crew-box {
    background: rgba(0,0,0,0.4);
    border: 3px solid #c49b3a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #ffd77a;
    box-shadow: 0 0 15px #8aacce;
}

.crew-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #c49b3a;
    margin-bottom: 10px;
    box-shadow: 0 0 10px #8aacce;
}

.crew-box p {
    margin: 6px 0;
}

.attack-box {
    background: #fff7e2; /* parchment */
    border: 3px solid #c49b3a;
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
    color: #5a3e1b;
    box-shadow: 0 0 10px #8aacce;
}

.attack-box a {
    color: #ffd77a;
    font-weight: bold;
    text-decoration: none;
}

.attack-box a:hover {
    color: #fff;
    text-shadow: 0 0 10px #ffd77a;
}

/* Two-column map layout */
.map-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Left side: islands + players + position */
.map-left {
    flex: 2;
}

/* Right side: compass + minimap */
.map-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Make minimap and compass centered in right column */
.map-right .compass,
.map-right .minimap {
    margin-bottom: 20px;
}

.footer-wrapper {
    width: 100%;
    background: #f5e6c8; /* parchment */
    border-top: 3px solid #c49b3a; /* gold trim */
    box-shadow: 0 0 10px #c49b3a;
    margin-top: 30px;
}

.game-footer {
    text-align: center;
    padding: 15px;
    color: #5a3e1b; /* warm pirate brown */
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
}
.fb-button {
    display: inline-block;
    background: #4267B2;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}
.fb-button:hover {
    background: #365899;
}

.admin-menu {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.admin-menu li {
    margin: 10px 0;
}

.admin-menu a {
    display: inline-block;
    background: #c49b3a;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.admin-menu a:hover {
    background: #d8b45a;
}


.admin-form {
    background: #fff7e2; /* parchment */
    border: 3px solid #c49b3a; /* gold trim */
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 0 10px rgba(196,155,58,0.4);
}

.admin-label {
    font-weight: bold;
    color: #5a3e1b; /* pirate brown */
}

.admin-input,
.admin-textarea {
    width: 100%;
    padding: 10px;
    background: #fdf3d6; /* parchment */
    border: 2px solid #c49b3a;
    color: #5a3e1b;
    border-radius: 6px;
    font-size: 16px;
}

.admin-input:focus,
.admin-textarea:focus {
    border-color: #ffd77a;
    outline: none;
    box-shadow: 0 0 8px #ffd77a;
}
.resource-icon {
    width: 16px;
    height: 16px;
    position: absolute;
    bottom: 2px;
    right: 2px;
}
.combat-log {
    background: #ffd77a !important;
    color: #5a3e1b !important;
    padding: 20px;
    border: 2px solid #ff0000;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px #ff0000;
}
/* CABIN LAYOUT */
.cabin-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.cabin-left {
    flex: 1;
}

.cabin-right {
    flex: 2;
}


