.uliddiv{
    border: 1px solid #e8e8fd;
    padding: 0.5rem;
    border-radius: 4px;
}

.night .uliddiv{
    border: 1px solid #444;
}

.uliddiv h3{
    margin-bottom: 0.5rem;
    font-size: 0.6rem;
}

.uliddiv input{
    border: 1px solid #e8e8fd;
    color: rgba(0, 0, 0, .85);
    width: 100%;
    padding: 0.5rem;
    border-radius: 3px;
}

.ulidbut{
    margin-top: 0.5rem;
}

.ulidbut button{
    padding: 0.4rem 1rem;
    text-align: center;
    border: 0;
    background-color: #607D8B;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}

.ulidbut button:nth-child(1){
    background-color: #009688;
}

.ulidbut button:nth-child(2){
    
}

.ulidres{
    border: 1px solid #e8e8fd;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.75rem;
    display: none;
}

.night .ulidres{
    border: 1px solid #444;
}

.ulidres h3{
    margin-bottom: 0.5rem;
    font-size: 0.6rem;
    border-bottom: 1px solid #e8e8fd;
    padding-bottom: 0.5rem;
}

.night .ulidres h3{
    border-bottom: 1px solid #444;
}

.example-list{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.example-item{
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
}

.night .example-item{
    background-color: #444;
}

.example-item>div:nth-child(1){
    font-weight: 600;
    color: #3498db;
    margin-bottom: 8px;
    font-size: 0.6rem;
}

.example-item>div:nth-child(2){
    font-size: 0.6rem;
    word-wrap: break-word;
}

.example-item100{
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.night .example-item100{
    background-color: #444;
}

.example-item100>div:nth-child(1){
    font-weight: 600;
    color: #3498db;
    margin-bottom: 8px;
    font-size: 0.6rem;
}

.example-item100>div:nth-child(2){
    font-size: 0.6rem;
    word-wrap: break-word;
}

.ulidbase32{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.ulidbase32>div{
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-family: monospace;
    font-size: 14px;
} 

.ulidbase32>div.time{
    background: #d4edda;
    color: #155724;
}

.night .ulidbase32>div.time {
    background: #333;
    color: #bbb;
}

.ulidbase32>div.random{
    background: #d1ecf1;
    color: #0c5460;
}

.night .ulidbase32>div.random{
    background: #444;
    color: #bbb;
}

.ulidbase32>div>div:nth-child(1){
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0.25rem;
} 

.ulidbase32>div>div:nth-child(2){
    font-size: 0.8em;
    color: #666;
    margin-bottom: 0.25rem;
} 

.night .ulidbase32>div>div:nth-child(2) {
    color: #999;
}

.ulidbase32>div>div:nth-child(3){
    font-size: 0.7em;
    color: #999;
} 

.ulidhex16{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.ulidhex16>div{
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-family: monospace;
    font-size: 14px;
}

.ulidhex16>div.time{
    background: #d4edda;
    color: #155724;
}

.night .ulidhex16>div.time {
    background: #333;
    color: #bbb;
}

.ulidhex16>div.random{
    background: #d1ecf1;
    color: #0c5460;
}

.night .ulidhex16>div.random{
    background: #444;
    color: #bbb;
}

.ulidhex16>div>div:nth-child(1){
    font-size: 1.2em;
    margin-bottom: 0.25rem;
}

.ulidhex16>div>div:nth-child(2){
    font-size: 0.7em;
    color: #999;
}

.night .ulidhex16>div>div:nth-child(2){
    color: #999;
}

@media screen and (max-width: 465px){
    .example-list{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 390px){
    .ulidbut button:nth-child(1){
        width: calc(50% - 0.25rem);
        float: left;
    }
    .ulidbut button:nth-child(2){
        width: calc(50% - 0.25rem);
        float: right;
    }
    .ulidbut button:nth-child(3){
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media screen and (max-width: 340px){
    .ulidhex16 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
    .ulidbase32{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
}

@media screen and (max-width: 250px){
    .ulidhex16 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
    .ulidbase32{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
}