body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    color: #333;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.top-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
}

.left-panel {
    flex: 1;
    min-width: 320px;
}

.right-panel {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#resetButton {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    margin: 0 0 20px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#resetButton:hover {
    background-color: #45a049;
}

#notesBox {
    width: 100%;
    height: 150px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 6px;
    background-color: #fff1ff;
    font-size: 18px;
    resize: vertical;
}

#engineers {
    text-align: left;
}

#engineers h3 {
    margin: 0 0 12px 0;
}

.engineer-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    border: 1px solid #bbb;
    border-radius: 6px;
    box-sizing: border-box;
    font-weight: bold;
    background-color: white;
    color: black;
}

#potentialImposters {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f8f8f8;
    min-height: 200px;
    max-height: 220px;
    overflow-y: auto;
    box-sizing: border-box;
    text-align: left;
}

#potentialImposters h3 {
    margin: 0 0 12px 0;
    text-align: center;
}

#imposterList {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 3;
    column-gap: 20px;
}

#imposterList li {
    font-size: 1.2em;
    font-weight: bold;
    margin: 4px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    break-inside: avoid;
}

#characters {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    align-items: start;
}
.character {
    border: 2px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    background-color: #f3f3f3;
    text-align: center;
}

.color-box {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    position: relative;
}

.color-box span {
    text-shadow: 1px 1px 2px black;
    z-index: 2;
}

.character.crossed-out .color-box::after {
    content: 'X';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 6em;
    color: rgb(0, 0, 0);
    z-index: 1;
}

.character[data-color="black"].crossed-out .color-box::after {
    color: white;
}

/* Specific adjustments for lighter colors */
.character[data-color="yellow"] .color-box,
.character[data-color="lime"] .color-box,
.character[data-color="banana"] .color-box,
.character[data-color="white"] .color-box,
.character[data-color="tan"] .color-box {
    color: black;
}

.character[data-color="yellow"] .color-box span,
.character[data-color="lime"] .color-box span,
.character[data-color="banana"] .color-box span,
.character[data-color="white"] .color-box span,
.character[data-color="tan"] .color-box span {
    text-shadow: none;
}

.status-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
    font-weight: bold;
}

.status-btn.neutral {
    background-color: gray;
    color: white;
}

.status-btn.safe {
    background-color: green;
    color: white;
}

.status-btn.suspicious {
    background-color: red;
    color: white;
}

.status-btn.dead {
    background-color: black;
    color: white;
}

@media (max-width: 900px) {
    .top-layout {
        flex-direction: column;
    }

    #imposterList {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    #imposterList {
        column-count: 1;
    }

    #notesBox {
        height: 140px;
    }
}