/* Import czcionki Minecraft */
@font-face {
    font-family: 'Minecraft';
    src: url('fonts/Minecraft.ttf') format('truetype');
}

body {
    background-image: url('img/tlo.png');
    background-color: #1a1a1a;
    background-size: cover;
    background-attachment: fixed;
    color: #f0f0f0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 120px 0; /* Zostaw miejsce na paski */
}

h1, h2, h3 {
    font-family: 'Minecraft', Arial, sans-serif;
    letter-spacing: 2px;
}

.top-bar, .bottom-bar {
    position: fixed;
    left: 0;
    width: 100%;
    height: 90px;
    background-size: cover;
    background-repeat: repeat-x;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar {
    top: 0;
    background-image: url('img/gora.png');
    border-bottom: 4px solid #000;
}

.top-bar h1 {
    color: white;
    text-shadow: 2px 2px 4px #000000;
    font-size: 2.5em;
    margin: 0;
}

.bottom-bar {
    bottom: 0;
    background-image: url('img/dol.png');
    border-top: 4px solid #000;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Styl listy serwerów */
.server-card {
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #555;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s;
    text-decoration: none;
    color: #f0f0f0;
}
.server-card:hover {
    transform: scale(1.02);
    border-color: #00AA00;
}
.server-card.offline {
    opacity: 0.6;
}
.server-card.offline:hover {
    border-color: #AA0000;
}

.server-card img {
    width: 64px;
    height: 64px;
    margin-right: 15px;
    border-radius: 4px;
}

.server-info {
    flex-grow: 1;
}
.server-info h3 {
    margin: 0 0 5px 0;
    color: #fff;
}
.server-info .motd {
    margin: 0;
    font-size: 0.9em;
    color: #ccc;
}

.server-stats {
    text-align: right;
    min-width: 120px;
}
.server-stats .players {
    font-size: 1.2em;
    font-weight: bold;
    display: block;
    color: #00FF00;
}
.server-stats .version {
    font-size: 0.8em;
    color: #aaa;
}
.server-stats .status-offline {
    font-weight: bold;
    color: #FF5555;
}

/* Styl przycisku i modala */
#add-server-btn, .back-button {
    font-family: 'Minecraft', Arial, sans-serif;
    background-color: #3e8e41;
    color: white;
    padding: 12px 25px;
    border: 2px solid #000;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    text-shadow: 1px 1px 2px #000;
    transition: background-color 0.2s;
    text-decoration: none;
}
#add-server-btn:hover, .back-button:hover {
    background-color: #4caf50;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #2a2a2a;
    border: 2px solid #444;
    border-radius: 10px;
    margin: 15% auto;
    padding: 25px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover { color: #fff; }

.modal-content h2 { margin-top: 0; }
.modal-content input[type="text"] {
    width: calc(100% - 24px);
    padding: 12px;
    margin-bottom: 15px;
    background-color: #1a1a1a;
    border: 1px solid #555;
    color: #f0f0f0;
    font-size: 1em;
}
.modal-content button {
    width: 100%;
    padding: 12px;
    background-color: #4caf50;
    border: none;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
}
#modal-message {
    margin-top: 15px;
    font-weight: bold;
}

/* Styl podstrony serwera */
.server-details .details-header { display: flex; align-items: center; margin-bottom: 20px; }
.server-details .details-header img { width: 96px; height: 96px; margin-right: 20px; }
.server-details .details-body p { font-size: 1.2em; line-height: 1.6; }