html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    background-color: #d2b48c;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 80%;
    max-width: 1000px;
    margin: 40px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

header {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2em;
    color: #3d2c04;
}

#members-section {
    margin-bottom: 20px;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#members {
    width: 100%;
}

.member {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    white-space: normal;
}

.badges {
    margin-top: 10px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    background-color: #4CAF50;
    color: white;
    border-radius: 3px;
    font-size: 14px;
}

.controls {
    text-align: center;
}

input[type="text"],
input[type="date"],
select,
.progression-checkboxes,
.badges-checkboxes {
    padding: 10px;
    margin-top: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 80%;
    max-width: 300px;
}

button {
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 16px;
    color: #fff;
    background-color: #8B4513;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #704214;
}

#registrationForm {
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.progression-checkboxes,
.badges-checkboxes {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progression-checkboxes label,
.badges-checkboxes label {
    margin: 5px 0;
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.achievement-date {
    margin-left: 10px;
    width: calc(50% - 10px);
}

/* === ✅ Responsive Design Mobile === */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    header {
        font-size: 1.6em;
    }

    input[type="text"],
    input[type="date"],
    select {
        width: 100%;
        max-width: none;
    }

    .progression-checkboxes label,
    .badges-checkboxes label {
        max-width: 100%;
        font-size: 15px;
    }

    button {
        width: 100%;
        max-width: 100%;
    }

    .achievement-date {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }
}
