/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-image: url('images/MCbackground.webp'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #f1f1f1;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0 10px; /* Add some padding to avoid content touching edges on mobile */
}

/* Header Styles */
header {
    background-color: rgba(60, 158, 43, 0.8);
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 3em;
    color: #f1f1f1;
    text-shadow: 2px 2px #1a5c14;
}

h3 {
    font-size: 1em;
    color: #f1f1f1;
    text-shadow: 2px 2px #1a5c14;
}

header p {
    font-size: 1.2em;
    color: #d1d1d1;
}

/* Main content area */
main {
    padding: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 150px;
    flex-grow: 1;
}

.server {
    background-color: rgba(45, 45, 45, 0.8);
    width: 30%;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.server:hover {
    transform: scale(1.05);
}

.server img {
    width: 100%;
    height: auto;
    border-bottom: 3px solid #3c9e2b;
}

.server-info {
    padding: 15px;
}

.server-info h2 {
    color: #3c9e2b;
    font-size: 1.8em;
}

.server-info p {
    color: #e1e1e1;
    font-size: 1em;
}

/* Footer styles */
footer {
    background-color: #1b1b1b;
    text-align: center;
    padding: 10px;
    color: #f1f1f1;
}

footer p {
    font-size: 1.1em;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2.5em; /* Reduce the size of the header on smaller screens */
    }

    header p {
        font-size: 1.1em;
    }

    main {
        margin-top: 100px; /* Reduce margin above the main content */
    }

    .server {
        width: 100%; /* Make server cards take up 100% width on mobile */
        margin-bottom: 20px; /* Add spacing between stacked cards */
    }

    footer p {
        font-size: 1em;
    }
}

@media screen and (max-width: 480px) {
    header h1 {
        font-size: 2em; /* Further reduce the size of the header */
    }

    main {
        margin-top: 80px; /* Smaller margin above main content */
    }

    .server {
        width: 100%; /* Ensure server cards take up full width */
        margin-bottom: 20px; /* Add spacing between stacked cards */
    }

    .server-info h2 {
        font-size: 1.5em; /* Reduce font size of server title */
    }

    footer p {
        font-size: 0.9em; /* Adjust footer text size */
    }
}

