:root {
    --color-eid-primary: #003168;
}

.eid-box {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-color: var(--color-eid-primary);
    border-style: solid;
    border-width: 2px;
    border-radius: 6px;
    flex-wrap: wrap;
    min-height: 320px;
    padding: 10px;
}

.eid-tools {
    display: flex;
    padding: 10px;
    gap: 10px;
}

@media (max-width: 550px) {
    .eid-tools {
        flex-direction: column;
        padding: 0;
    }
}

.eid-tool {
    border: 1px solid var(--color-eid-primary);
    border-radius: 6px;
    color: var(--color-eid-primary);
    font-weight: bold;
    padding: 10px 20px;
}

.eid-tool:hover {
    background-color: var(--color-eid-primary);
    color: white;
}

.eid-tool.selected {
    background-color: var(--color-eid-primary);
    color: white;
}

.eid-content {
    display: flex;
    flex-direction: column;
    padding: 10px;
    flex: 1;
}

.eid-content > div:not(.selected) {
    display: none;
}

.eid-content > div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.eid-tool-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eid-tool-content-title {
    font-weight: bold;
    color: var(--color-eid-primary);
    font-size: 1.2em;
}

.eid-sign-button {
    border: 1px solid var(--color-eid-primary);
    background: var(--color-eid-primary);
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    width: max-content;
}

.eid-input-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.eid-number-input {
    max-width: 350px;
    width: 100%;
    border: 1px solid var(--color-eid-primary);
    border-radius: 6px;
    height: 2em;
    padding-left: 5px;
}

.eid-button-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

.eid-cancel-button {
    border: 1px solid red;
    background: red;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
}

.eid-challenge-code {
    font-weight: bold;
    color: var(--color-eid-primary);
    font-size: 1.5em;
}

.eid-error {
    color: red;
    font-weight: bold;
}
