@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #2a2c2b;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #333;
    padding: 20px 0;
    text-align: center;
}

header p{
    margin: 20px
}

h1 {
    color: #CD412B;
    font-weight: 700;
}

p {
    color: #fff;
    line-height: 1.6;
    margin-bottom: 20px;
}

main {
     flex: 1;
     padding: 20px;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-direction: column;
     text-align: center;
}
 
.input-form {
    background-color: #333;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.form-field {
    margin-bottom: 10px;
}

.input-form input[type=text], .input-form input[type=submit] {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid #555;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #444;
    color: #fff;
}

.input-form input[type=submit] {
    background-color: #CD412B;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-form input[type=submit]:hover {
    background-color: #A8322D;
}


input[type=text], select {
    width: calc(100% - 24px);
    padding: 12px;
    margin-bottom: 8px;
    display: inline-block;
    border: 1px solid #555; 
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #333; 
    color: #fff;
}

input[type=submit] {
    width: calc(100% - 24px); 
    padding: 12px;
    background-color: #CD412B;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type=submit]:hover {
    background-color: #A8322D; 
}

.server-card {
     background-color: #333;
     color: #fff;
     margin: 20px;
     padding: 20px;
     border-radius: 8px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
 }

 .server-header h1 {
    color: white;
    margin: 0 0 10px 0;
}
 
 .server-header h2 {
     color: #CD412B;
     margin: 0 0 10px 0;
 }

.gametags p {
    word-wrap: anywhere;
    white-space: pre-wrap;
}
 
 .server-details p, .gametags p {
     margin: 5px 0;
 }
 
.server-details p strong, .gametags p strong {
     color: #CD412B;
}
 
table.table {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    width: 80%; 
    margin-bottom: 20px; 
}

table.table th, table.table td {
    border-bottom: 1px solid #555;
    padding: 8px;
    text-align: left;
}

table.table th {
    background-color: #CD412B; 
}

table.table tr:last-child td {
    border-bottom: none;
}

table.table tr:nth-child(even) { background-color: #333; }

table.table tr:hover { background-color: #444; }

footer {
    background-color: #CD412B;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .gametags p {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 768px) {
    input[type=text], select, input[type=submit] {
        width: calc(100% - 24px);
    }
}
