.panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    text-align: center;
    background-color: var(--pannel-background-color);
    color: var(--pannel-text-color);
}

.result {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--result-text-color);
    margin: 4px;
    padding: 4px;
    text-align: left;
    border-radius: 4px;
    background-color: var(--result-background-color);
    overflow-x: hidden;
    overflow-y: scroll;
    word-wrap: break-word;
    hyphens: auto;

    line-height: 1.2;
    font-size: 15px;
    font-family: 'FiraCode Nerd Font Mono', 'LXGW WenKai Mono', 'LXGW WenKai', monospace;
}

.dict {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.dict-pos {
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--dict-pos-text-color);
    background-color: var(--dict-pos-background-color);
    font-weight: bold;
    margin: 2px;
    height: 25px;
    line-height: 25px;
    font-size: 15px;
}

.dict-term {
    padding: 1px 5px;
    border-radius: 4px;
    background-color: var(--dict-term-background-color);
    margin: 2px;
    height: 25px;
    line-height: 25px;
    font-size: 15px;
}

.update {
    position: absolute;
    bottom: 10px;
    right: 10px;
    cursor: pointer;
}

:root {
    --pannel-background-color: #1e2227;
    --pannel-text-color: #ffffff;
    --result-background-color: #262a30;
    --result-text-color: #ffffff;
    --dict-pos-background-color: #07c3f2;
    --dict-pos-text-color: #434244;
    --dict-term-background-color: #434244;
}

[data-theme="light"] {
    --pannel-background-color: #dadada;
    --pannel-text-color: #1e2227;
    --result-background-color: #ffffff;
    --result-text-color: #262a30;
    --dict-pos-background-color: #07c3f2;
    --dict-pos-text-color: #434244;
    --dict-term-background-color: #e3e3e3;
}