:root {
    --primary-color: #000000;
    --secondary-color: #FFFFFF;
    --accent-color-1: #800080;
    --accent-color-2: #008000;
    --highlight-color: rgba(128, 255, 25, 0.5); /* Highlight color for selected traits */
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.container {
    max-width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

canvas {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-bottom: 20px;
}

#controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    background-color: var(--accent-color-1);
    color: var(--secondary-color);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: var(--accent-color-2);
}

#traitCategories {
    width: 100%;
}

.trait-category {
    margin-bottom: 20px; /* Space between categories */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center the category title */
}

.trait-options {
    display: flex;
    overflow-x: auto; /* Allow horizontal scrolling */
    padding: 10px 0;
    width: 100%; /* Make it full width */
    justify-content: center; /* Center the options */
}

.trait-option {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative; /* For positioning the highlight */
}

.trait-option.selected {
    border: 2px solid var(--highlight-color); /* Change this to your desired border style */
    box-shadow: 0 0 10px var(--highlight-color); /* Highlight effect */
}

.selected-traits {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    width: 100%;
}

.selected-trait {
    width: 60px;
    height: 60px;
    margin: 0 10px;
    border: 2px solid var(--accent-color-2);
    position: relative;
}

@media (min-width: 768px) {
    .container {
        padding: 40px;
    }

    canvas {
        max-width: 700px;
    }
}

.header {
    background-color: #000000; /* Black background */
    text-align: center;
    padding: 20px;
    padding-bottom: 0; /* Remove bottom padding */
}

.gradient-text {
    background: linear-gradient(135deg, #00ff00 40%, #cd0acd 60%); /* More control over color stops */
    -webkit-background-clip: text; /* For Safari */
    -webkit-text-fill-color: transparent; /* For Safari */
    font-size: 2.5em;
    margin: 0;
}

.header .slogan {
    color: var(--secondary-color); /* White text */
    font-size: 1.2em;
    margin-top: 10px;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: purple; /* Purple background */
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    color: white; /* Text color */
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    text-align: center; /* Center text */
    position: relative; /* Position relative for absolute positioning of close button */
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute; /* Position absolute to the modal */
    top: 10px; /* Distance from the top */
    right: 20px; /* Distance from the right */
    cursor: pointer; /* Pointer cursor on hover */
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

button {
    margin: 0 10px; /* Add space between buttons */
    padding: 10px 20px; /* Button padding */
    background-color: rgb(199, 24, 196); /* Button background color */
    color: rgb(255, 255, 255); /* Button text color */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
}

button:hover {
    background-color: #29a41b; /* Change background on hover */
}
