.credbox_wrapper
{
    position: relative;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    font: inherit;
    gap: 10px;
    background: #e1e1d0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 5vw;
    line-height: 1.5;
    font-size: 90%;
    transition: all 0.3s ease;
}
.credbox_wrapper[data-color="blue"]
{
    background: #d0e1e1;
}
.credbox_wrapper[data-open="0"]:hover
{
    filter: brightness(90%);
}

.credbox_wrapper > div
{
    box-sizing: border-box;
}
.credbox_title
{
    flex: 1;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
}

.credbox_icon
{
    flex: 1;
    flex-grow: 0;
    flex-basis: auto;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.credbox_icon img
{
    width: clamp(35px, 9vw, 65px);
    height: auto;
    aspect-ratio: 1/1;
}
.credbox_boxcontent
{
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 1vh;
}
.credbox_userinfo
{
    
}
.credbox_credentials
{
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-left: 1vw;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
    margin-top: 1vh;
}
.credbox_credentials[data-visible="0"],.credbox_clickmsg[data-visible="0"]
{
    display: none;
}
.credbox_credentials > div
{
    box-sizing: border-box;
}
.credbox_clickmsg
{
    cursor: pointer;
    flex: 1;
    flex-direction: row;
    color: dimgray;
    transition: all 0.3s ease;
    user-select: none;
    padding: 1vh;
}
.credbox_clickmsg:hover
{
    color: black;
}
.credbox_clickmsg img
{
    width: auto;
    height: clamp(25px, 3vh, 40px);
    aspect-ratio: 1/1;
    float: left;
    margin-right: 2vw;
}
.category
{
    flex: 1;
    background: rgba(0,0,0,0.2);
    padding: 2px 10px;
    border-bottom-left-radius: 10px;
    color: black;
    font-size: 90%;
    text-align: right;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    text-shadow: 0px 0px 2px silver;
    white-space: nowrap;
}
.credbox_title .credname
{
    font-size: 115%;
    flex: 2;
    font-weight: bold;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 2px;
    white-space: nowrap;
}
.credrow
{
    flex: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    flex-basis: auto;
    flex-wrap: wrap;
    gap: 1vw;
    width: 100%;
    box-sizing: border-box;
}

.credrow > div
{
    box-sizing: border-box;
}


.cred_caption
{
    flex: 1;
    flex-grow: 0;
    padding: 2px 5px;
    white-space: nowrap;
    min-width: 12vw;
}
.cred_item
{
    flex: 1;
    flex-grow: 1 !important;
    display: flex;
    white-space: normal;
    letter-spacing: 1px;
    color: darkgreen;
    cursor: pointer;
    
}
.cred_item2
{
    flex: 1;
    flex-grow: 1 !important;
    display: flex;
    white-space: normal;
    letter-spacing: 1px;
    color: black;
    padding: 2px 5px;
}
.cred_item[data-type="password"]
{
    color: maroon;
}
.cred_item > div
{
    transition: all 0.2s ease;
    padding: 2px 5px;
    border-radius: 5px;
}
.cred_item:hover > div
{
    background: whitesmoke;
}
.cred_item[data-empty="1"]
{
    pointer-events: none;
    color: dimgray !important;
}
.cred_item:active,.credbox_clickmsg:active
{
    transition: none;
    filter: invert(100%);
}

.cred_item[data-custom="1"]
{
    cursor: default;
    color: black;
}
.cred_item[data-custom="1"]:hover
{
    background: unset;
}

.cred_item[data-custom="1"]:active
{
    filter: none;
}



.cred_link
{
    flex: 1;
    flex-grow: 0;
    flex-basis: auto;
    background: rgba(255, 255, 255, 0.6);
    padding: 2px 5px;
    font-size: 90%;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    min-width: max(100px, 20vw);
    color: blue;
}
.cred_link img
{
    width: max(20px, 2.5vw);
    height: auto;
    aspect-ratio: 1/1;
    float: left;
    margin-right: 1vw;
}
.cred_link:hover
{
    border-color: black;
}

@media screen and (max-width: 900px)
{
    .cred_caption
    {
        min-width: unset;
    }
}

@media screen and (max-width: 500px)
{
    .category
    {
        display: none;
    }
    .credbox_icon
    {
        position: absolute;
        z-index: 10;
        top: 0;
        right: 0;
        margin-left: auto;
        z-index: 10;
    }
}

@media screen and (max-width: 325px)
{
    .credbox_icon
    {
        display: none;
    }
}

