/* Global reset & box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Background settings */
body {
    background: url('kenpachi_bg.webp') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
    color: #ffffff;
}

/* General overlay for pages like login, register, index */
.overlay {
    background-color: rgba(0, 0, 0, 0.6);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container for centered content (login, register, index) */
.container {
    max-width: 600px;
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Headings */
h1, h2 {
    margin-bottom: 20px;
    letter-spacing: 2px;
}
h1 {
    font-size: 3em;
}
h2 {
    font-size: 2em;
}

/* Paragraphs */
p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Labels and inputs */
label {
    display: block;
    text-align: left;
    margin: 10px 0 5px;
}
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 8px;
    border: none;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Buttons and links */
a {
    text-decoration: none;
    color: #00ffff;
    font-weight: bold;
    margin: 0 10px;
}
a:hover {
    text-decoration: underline;
}
/* Alapértelmezett .button osztály (amit már használsz) */
.button {
    display: inline-block;
    padding: 12px 20px;
    margin: 5px;
    background-color: #00bfff;
    color: #000;  /* fekete szöveg */
    border-radius: 4px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}
.button:hover {
    background-color: #0099cc;
}

/* Egyedi letöltési gomb stílus (.button-download) */
.button-download {
    display: inline-block;
    padding: 12px 20px;
    margin: 5px;
    background-color: #27ae60;
    color: #000;  /* fekete szöveg */
    border-radius: 4px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}
.button-download:hover {
    background-color: #1e8449;  /* sötétebb zöld hover állapot */
}


/* Top navigation for server list page */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
.top-nav .logo h1 {
    margin: 0;
    font-size: 2em;
}
.top-nav .user-info {
    font-size: 1em;
}

/* Main container for server list page */
main.container {
    /*max-width: 1200px;*/
    max-width: 100%;
    margin: 100px auto 20px auto; /* margin-top to clear the fixed header */
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Table styles for server list */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
td {
    vertical-align: top;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}
img {
    max-width: 100px;
    margin-bottom: 10px;
}

/* Button hover for table actions */
.button:hover {
    background-color: #45a049;
}

/* Error & success messages */
.error {
    color: #ff4444;
    margin-bottom: 10px;
}
.success {
    color: #00ff00;
    margin-bottom: 10px;
}
.button-filelist {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px;
    background-color: #FFA500;
    color: #000;  /* fekete szöveg */
    border-radius: 4px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9em;
}
.button-filelist:hover {
    background-color: #CC8400;
}
/* Server logo: fix height of 300px, width auto */
.server-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0px;
}

.map-thumb {
    max-width: 300px;    /* Maximum szélesség 300px */
    max-height: 300px;   /* Maximum magasság 300px */
    width: auto;
    height: auto;
    object-fit: contain; /* A kép arányait megtartja, és nem torzul */
    display: block;
    margin: 0 auto 10px; /* Középre igazítás és alsó margó */
}

/* Map Info oldal külön szekciója */
.map-info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.map-info-left {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.map-info-left img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.map-info-right {
    flex: 2;
    min-width: 300px;
    text-align: center;
    padding: 10px;
}

.map-info-images {
    text-align: center;
    margin-top: 30px;
}

.map-info-images img {
    max-width: 200px;
    height: auto;
    margin: 10px;
}

.file-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.file-card:hover {
    transform: scale(1.05);
}

.file-card h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    word-wrap: break-word;
}

