* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f4f4;
    color: #333;
}
.building[data-type="wall"] {
    background: rgba(128, 128, 128, 0.8); /* Sur için gri ton */
}
.resources {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.resources span {
    margin-right: 10px;
}

.map-menu {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 20;
}

.menu-toggle {
    background: #007bff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.menu-content {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 20;
}

.menu-content a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
}

.menu-content a:last-child {
    border-bottom: none;
}

.menu-content a:hover {
    background: #f0f0f0;
}

.map-menu:hover .menu-content {
    display: block;
}

.alliance-btn {
    position: fixed;
    top: 50px;
    right: 10px;
    background: #007bff;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.quests-btn {
    position: fixed;
    top: 130px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.leaderboard-btn {
    position: fixed;
    top: 170px;
    right: 10px;
    background: #17a2b8;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.chat-btn {
    position: fixed;
    top: 210px;
    right: 10px;
    background: #6f42c1;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.messages-btn {
    position: fixed;
    top: 250px;
    right: 10px;
    background: #fd7e14;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.profile-btn {
    position: fixed;
    top: 290px;
    right: 10px;
    background: #6610f2;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.trade-btn {
    position: fixed;
    top: 330px;
    right: 10px;
    background: #20c997;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.map-btn {
    position: fixed;
    top: 370px;
    right: 10px;
    background: #17a2b8;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.help-btn {
    position: fixed;
    top: 410px;
    right: 10px;
    background: #6c757d;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.admin-btn {
    position: fixed;
    top: 450px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.build-menu {
    position: fixed;
    top: 50px;
    left: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.build-menu select, .build-menu button {
    padding: 5px;
    margin: 5px 0;
}

.game-map {
    position: relative;
    width: 500px;
    height: 500px;
    background: #e0e0e0;
    margin: 60px auto;
    border: 2px solid #333;
}

.building {
    position: absolute;
    width: 50px;
    height: 70px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #333;
    border-radius: 5px;
    cursor: move;
}

.building img {
    width: 40px;
    height: 40px;
}

.building p {
    margin: 2px 0;
    font-size: 10px;
}

.notification {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: none;
    z-index: 10;
}

.notifications {
    position: fixed;
    top: 50px;
    left: 150px;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.notifications ul {
    list-style: none;
}

.notifications li {
    margin: 5px 0;
    font-size: 14px;
}

.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.auth-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.auth-container button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.auth-container button:hover {
    background: #0056b3;
}

.alliance-container, .quests-container, .leaderboard-container, .chat-container, .messages-container, .profile-container, .trade-container, .help-container, .error-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.alliance-container ul, .quests-container ul, .leaderboard-container ul, .chat-container ul, .messages-container ul {
    list-style: none;
}

.alliance-container li, .quests-container li, .leaderboard-container li, .chat-container li, .messages-container li {
    margin: 10px 0;
}

.alliance-container form, .quests-container form, .messages-container form {
    margin: 10px 0;
}

.alliance-container input, .quests-container input, .messages-container select, .messages-container textarea {
    padding: 5px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.alliance-container button, .quests-container button, .messages-container button {
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.alliance-container button:hover, .quests-container button:hover, .messages-container button:hover {
    background: #0056b3;
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
}

.chat-container textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.leaderboard-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.leaderboard-container th, .leaderboard-container td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
}

.leaderboard-container th {
    background: #f8f9fa;
}

.profile-container input, .trade-container input, .trade-container select {
    padding: 5px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.profile-container button, .trade-container button {
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.profile-container button:hover, .trade-container button:hover {
    background: #0056b3;
}

.game-map-container {
    width: 100%;
    height: 80vh;
    overflow: auto;
    position: relative;
    z-index: 1;
}

.game-map {
    position: relative;
    width: 1000px;
    height: 1000px;
    background: url('assets/images/map-background.jpg') no-repeat top left;
    background-size: cover;
    border: 2px solid #333;
    margin: 60px auto;
    z-index: 1;
}

.map-entity {
    position: absolute;
    width: 50px;
    height: 70px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #333;
    border-radius: 5px;
    z-index: 2;
}

.map-entity img {
    width: 40px;
    height: 40px;
}

.map-entity p {
    margin: 2px 0;
    font-size: 10px;
}

.map-entity button {
    font-size: 10px;
    padding: 2px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    z-index: 3;
}

.map-entity button:hover {
    background: #0056b3;
}

.player {
    background: rgba(0, 128, 255, 0.8);
}

.resource {
    background: rgba(255, 215, 0, 0.8);
}

.npc {
    background: rgba(255, 0, 0, 0.8);
}

.admin-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.admin-container h3, .admin-container h4 {
    margin-top: 20px;
}

.admin-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.admin-container th, .admin-container td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
}

.admin-container th {
    background: #f8f9fa;
}

.admin-container input, .admin-container select {
    padding: 5px;
    margin: 2px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.admin-container form {
    margin: 10px 0;
}

.admin-container button {
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.admin-container button:hover {
    background: #0056b3;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .resources, .build-menu, .notifications {
        left: 5px;
        right: 5px;
        width: auto;
        z-index: 10;
    }

    .map-menu {
        top: 50px;
        right: 5px;
    }

    .game-map-container {
        height: 60vh;
    }

    .game-map {
        width: 600px;
        height: 600px;
    }

    .building, .map-entity {
        width: 40px;
        height: 60px;
    }

    .building img, .map-entity img {
        width: 30px;
        height: 30px;
    }

    .building p, .map-entity p {
        font-size: 8px;
    }

    .admin-container table, .leaderboard-container table {
        font-size: 12px;
    }

    .admin-container input, .admin-container select {
        width: 50px;
        font-size: 10px;
    }

    .chat-messages {
        max-height: 200px;
    }

    .menu-toggle {
        padding: 5px;
        font-size: 14px;
    }

    .menu-content {
        top: 30px;
    }

    .menu-content a {
        padding: 5px;
        font-size: 12px;
    }
}