body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #fff;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

h1,
h2 {
    text-align: center;
    color: #4caf50;
}

#addPersonForm {
    margin-bottom: 20px;
}

form {
    display: grid;
    gap: 10px;
}

label {
    font-weight: bold;
    color: #4caf50;
}

input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    background-color: #555;
    border: none;
    color: #fff;
}

button {
    width: 100%;
    background-color: #4caf50;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

#clear {
    background-color: #f44336;
    color: #fff;
}

#tierList {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    margin-top: 20px;
}

.tier-s,
.tier-a,
.tier-b,
.tier-c,
.tier-d {
    flex: 1 1 200px;
    margin: 0 10px 20px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #fff;
}

.tier-s {
    background-color: #4caf50;
}

.tier-a {
    background-color: #8bc34a;
}

.tier-b {
    background-color: #ffeb3b;
}

.tier-c {
    background-color: #ff9800;
}

.tier-d {
    background-color: #f44336;
}

.person-info {
    margin-bottom: 10px;
}

img {
    width: 256px;
    height: 256px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #4caf50;
}

/* Add some styles for image preview */
#imagePreview {
    margin-top: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

/* Dark mode styles */
.dark-mode body {
    background-color: #333;
    color: #fff;
}

.dark-mode .container {
    background-color: #1a1a1a;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.dark-mode label {
    color: #4caf50;
}

.dark-mode input {
    background-color: #555;
    color: #fff;
}

.dark-mode .tier-s,
.dark-mode .tier-a,
.dark-mode .tier-b,
.dark-mode .tier-c,
.dark-mode .tier-d {
    background-color: #4caf50;
}

/* Responsive styles for smaller screens */
@media screen and (max-width: 600px) {

    .tier-s,
    .tier-a,
    .tier-b,
    .tier-c,
    .tier-d {
        flex: 1 0 100%;
        margin: 0 0 10px;
    }

    img {
        width: 128px;
        height: 128px;
        object-fit: contain;
    }
}