body {
    background-image: url('/static/resources/background.png');
    background-size: cover;         /* Make image cover the whole background */
    background-repeat: no-repeat;   /* Prevent tiling */
    background-position: center;    /* Center the image */
    background-attachment: fixed;   /* Keep image fixed on scroll */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: lightgray;
    font-family: Arial, sans-serif;
    margin: 0;
}

.logo-container {
    margin-top: -10px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-container img {
    max-width: 18%;      /* Makes the logo smaller */
    height: auto;
}

.server-name {
    font-family: 'MyFont', Arial, sans-serif;
    font-size: 40px;
    font-weight: initial;
    letter-spacing: 3px;
    text-align: center;
    background: linear-gradient(180deg, #b3b3b3 0%, #e7e7e7 40%, #b3b3b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: initial;
    color: #b3b3b3;
    /* Outline for WebKit browsers */
    -webkit-text-stroke: 2px #222;
    /* Fallback outline using text-shadow */
    text-shadow:
            0 0 2px #222,
            1px 1px 0 #222,
            -1px -1px 0 #222,
            1px -1px 0 #222,
            -1px 1px 0 #222,
            0 3px 0 #444,
            0 6px 0 #444,
            0 9px 2px #111,
            0 12px 8px #000,
            0 18px 16px rgba(0,0,0,0.7),
            0 24px 24px rgba(0,0,0,0.5);
    margin-top: 18px;
    margin-bottom: 32px;
    padding: 0;
    display: block;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    transition: color 0.3s, text-shadow 0.3s;
}


.container {
    text-align: center;
    background: rgba(30, 30, 30, 0.85); /* Semi-transparent dark background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    width: 100%;
    box-sizing: border-box;
    color: #f0f0f0; /* Light text for contrast */
    border: 1px solid #444; /* Subtle border */
}

h2 {
    color: #f0f0f0; /* Light text for dark background */
}

label {
    color: #e0e0e0; /* Lighter label text */
}

.page-wrapper {
    width: 100%;
    max-width: 600px; /* Limit the maximum width */
    padding: 20px;
    box-sizing: border-box; /* Include padding in the element's total width and height */
}


.status {
    margin: 20px 0;
}

.status img {
    vertical-align: middle;
    width: 30px;
    height: 30px;
}

.status-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.85); /* Match .container background */
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-height: 40px;
    max-width: 400px;
    margin: 18px auto;
    color: #f0f0f0; /* Light text for contrast */
}

.status-text-icon {
    width: 22px;
    height: 22px;
    margin-right: 12px;
}


.buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
    justify-content: center; /* Center all buttons */
    gap: 10px; /* Add space between buttons */
    margin-top: 20px;
}

.buttons button {
    background-color: #4CAF50;
    color: white;
    padding: 15px 32px; /* Reduced padding to make the button smaller */
    font-size: 14px; /* Slightly smaller font size */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-grow: 1; /* Allow buttons to stretch */
    max-width: 200px; /* Limit the button width */
}

.buttons button:hover {
    background-color: #45a049;
}

.buttons button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    button {
        font-size: 12px; /* Make buttons even smaller on very small screens */
        padding: 8px 16px; /* Adjust padding */
        width: 100%; /* Make buttons full-width on mobile */
    }
}

#stopButton {
    background-color: #e82525; /* Red color */
    color: #fff; /* White text color */
}

#stopButton:hover {
    background-color: #a10101; /* Darker red on hover */
}

#stopButton:disabled {
    background-color: #cccccc; /* Light grey color when disabled */
    color: #fff; /* Dark grey text color when disabled */
    cursor: not-allowed; /* Change cursor to indicate disabled state */
}

#stopButton:disabled:hover {
    background-color: #cccccc; /* Ensure hover does not change color when disabled */
}

/* Login page overrides */
.login-container {
    background: rgba(30, 30, 30, 0.85);
    color: #f0f0f0;
    border: 1px solid #444;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    margin-top: -5px;
    color: #f0f0f0;
    text-align: center;
}

.login-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-container label {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
    color: #e0e0e0;
    font-size: 18px;
    text-align: left;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    text-align: left;
}

.login-container button {
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    transition: background-color 0.3s;
}

.login-container button:hover {
    background-color: #0056b3;
}

@media (max-width: 600px) {
    .login-container {
        padding: 10px;
    }
    .logo-container img {
        max-width: 50%;
    }
    .login-container h2 {
        font-size: 16px;
    }
    .login-container input[type="text"],
    .login-container input[type="password"],
    .login-container button {
        font-size: 14px;
        padding: 10px;
    }
}

@font-face {
    font-family: 'MyFont';
    src: url('/static/fonts/MinecraftTitleFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}