* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #1a1a1a;
    border-bottom: 2px solid #b30000;
}

.top-left, .top-right {
    display: flex;
    gap: 15px;
}

.btn-header {
    background-color: #b30000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.btn-header:hover {
    background-color: #e60000;
    transform: translateY(-2px);
}

/* Main Content Container */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

/* Logo Image Styling */
.logo-container {
    margin-bottom: 25px;
    text-align: center;
}

.server-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 6px 12px rgba(0, 0, 0, 0.7));
    border-radius: 15px;
}

/* Titoli testuali alternativi (es. nelle altre pagine) */
.logo-title {
    font-size: 3rem;
    color: #ff3333;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Bottoni Centrali */
.center-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-center {
    background-color: #1f1f1f;
    color: white;
    border: 2px solid #b30000;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    min-width: 150px;
    transition: all 0.3s ease;
}

.btn-center:hover {
    background-color: #b30000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(179, 0, 0, 0.4);
}

/* Store Specific Box & Inputs */
.store-box {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.store-box h3 {
    margin-bottom: 10px;
    color: #ff4d4d;
}

.store-box input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: white;
    border-radius: 6px;
    font-size: 1rem;
}

.store-box input:focus {
    outline: none;
    border-color: #b30000;
}

/* Selettore Edizione Java / Bedrock */
.edition-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-edition {
    background-color: #2a2a2a;
    color: #aaa;
    border: 1px solid #444;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-edition.active {
    background-color: #b30000;
    color: white;
    border-color: #e60000;
}

/* Rules Specific List */
.rules-list {
    text-align: left;
    max-width: 650px;
    background-color: #1a1a1a;
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.rules-list ol {
    padding-left: 20px;
}

.rules-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #cccccc;
}

.rules-list li strong {
    color: #ff4d4d;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #222;
}