body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
    background-color: #2a2a2a;
    color: #87CEEB;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.logo {
    max-width: 400px;
    height: auto;
    image-rendering: pixelated;
}

.pokemon-selector {
    display: flex;
    justify-content: space-around;
    width: 80%;
    margin-bottom: 20px;
}

.pokemon-select {
    width: 45%;
    text-align: center;
}

.pokemon-info {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 10px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
    background-color: #3a3a3a;
    text-align: center;
}

.pokemon-info img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    margin-bottom: 10px;
    image-rendering: pixelated;
}

.moveset {
    margin-top: 10px;
    padding: 5px 10px;
    border: 1px dashed #aaa;
    background-color: #444;
    width: calc(100% - 20px);
    box-sizing: border-box;
    text-align: left;
}

.moveset h4 {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #333;
}

.moveset ul {
    padding-left: 20px;
    margin: 0;
    list-style: disc;
}

.moveset p {
    margin: 2px 0;
    font-size: 0.9em;
}

#fusion-result {
    width: 80%;
    max-width: 500px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#fusion-result h2 {
    margin-bottom: 5px;
    margin-top: 0;
    width: 100%;
}

#discovery-message {
    font-size: 1.1em;
    padding: 5px 0;
    margin-bottom: 10px;
    min-height: 1.2em;
}

#fusion-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#fusion-details h3 {
    margin-top: 5px;
    margin-bottom: 10px;
}

#fusion-details p,
#fusion-details ul,
#fusion-details .moveset {
    text-align: left;
    width: 90%;
    box-sizing: border-box;
}

#fusion-details ul {
    padding-left: 30px;
    margin-bottom: 10px;
}

#fuse-button {
    padding: 10px 20px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 10px;
}

#fuse-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#fusion-result.message-only #fusion-details {
    padding: 15px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    margin-top: 5px;
    min-height: 50px;
    justify-content: center;
}

#fusion-result.message-only img,
#fusion-result.message-only ul,
#fusion-result.message-only .moveset,
#fusion-result.message-only h3,
#fusion-result.message-only p {
    display: none;
}

#toggle-fusiondex-button {
    margin-top: 30px;
    padding: 8px 15px;
}

#fusiondex {
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 15px;
    width: 80%;
    max-width: 600px;
    background-color: #3a3a3a;
    text-align: center;
}

#fusiondex h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 15px;
}

#fusiondex-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fusiondex-item {
    display: flex;
    align-items: center;
    background-color: #444;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    justify-content: flex-start;
}

.fusiondex-item:hover {
    background-color: #555;
}

.fusiondex-sprite {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    object-fit: contain;
    image-rendering: pixelated;
    background-color: #555;
    border-radius: 3px;
}

.fusiondex-info {
    display: flex;
    flex-direction: column;
}

.fusiondex-name {
    font-weight: bold;
    font-size: 1.1em;
}

.fusiondex-parents {
    font-size: 0.9em;
    color: #555;
}

.fusiondex-discoverer {
    font-size: 0.8em;
    color: #777;
    margin-top: 2px;
}

.footer-note {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9em;
    color: #87CEEB;
    opacity: 0.8;
}