input {
    padding: 10px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

#results {
    margin-top: 10px;
}

#results .skill-table {
    display: flex;
    width: 100%;
    border-collapse: collapse;
    justify-content: stretch;
    margin-bottom: 1em;
}

#results .skill-table .info-group {
    display: flex;
    width: 40%;
}

#results .skill-table .desc-group {
    display: flex;
    width: 60%;
}

.character-cell, .skill-name-cell, .skill-image-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 5px;
    border: 2px solid #1f1f1f;
    border-right: none;
}

body.dark .character-cell, body.dark .skill-name-cell, body.dark .skill-image-cell {
    border: 2px solid #f1f1f1;
    border-right: none;
}

.description-cell {
    width: 100%;
    padding: 5px;
    text-align: left;
    border: 2px solid #1f1f1f;
}

body.dark .description-cell {
    border: 2px solid #f1f1f1;
}

.character-image {
    width: 100%;
}

.skill-image {
    width: 80%;
}

@media (max-width: 768px) {
    #results .skill-table .info-group {
        width: 96px;
        flex-direction: column;
    }
    
    #results .skill-table .desc-group {
        width: calc(100% - 96px);
    }
    
    .character-cell, .skill-name-cell {
        width: auto;
        border: 2px solid #1f1f1f;
        border-right: none;
        border-bottom: none;
    }

    .skill-image-cell {
        width: auto;
        border: 2px solid #1f1f1f;
        border-right: none;
    }
    
    body.dark .character-cell, body.dark .skill-name-cell {
        border: 2px solid #f1f1f1;
        border-right: none;
        border-bottom: none;
    }

    body.dark .skill-image-cell {
        border: 2px solid #f1f1f1;
        border-right: none;
    }
    
    .description-cell {
        border: 2px solid #1f1f1f;
    }
    
    body.dark .description-cell {
        border: 2px solid #f1f1f1;
    }
}