.hide-scrypt,
.hide-argon2 {
    display: none !important;
}

.hash-kdf-toggles {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.hash-kdf-toggle {
    box-sizing: border-box;
    width: 350px;
    margin: 0;
    padding: 8px 4px;
    background-color: black;
    color: white;
    border: 1px solid black;
    border-radius: 5px;
    font-size: 0.9rem;
    user-select: none;
}

#see-argon2,
#see-scrypt {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 36px;
    width: 350px;
    margin: 0;
    padding: 8px 4px;
    font-family: inherit;
    line-height: 18px;
}

.hash-kdf-toggle:hover {
    cursor: pointer;
    background-color: #c00000;
    color: white;
    border-color: white;
}

#see-argon2:hover,
#see-scrypt:hover {
    margin: 0;
    height: 36px;
    width: 350px;
    padding: 8px 4px;
}

#scrypt-salt {
    box-sizing: border-box;
    width: 310px;
    padding: 8px;
    margin-top: 2px;
    border: 1px solid white;
    border-radius: 5px;
}

.scrypt-length-options {
    width: fit-content;
    margin: 12px auto;
    padding: 8px 16px;
    padding-top: 4px;
    padding-bottom: 12px;
    border: 1px solid yellow;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.argon2-memory-options {
    width: fit-content;
    margin: 12px auto;
    padding: 8px 16px 12px;
    border: 1px solid yellow;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.argon2-memory-options legend {
    color: yellow;
}

.argon2-memory-options label {
    display: inline-block;
    margin: 0 8px;
}

.scrypt-length-options legend {
    color: yellow;
}

.scrypt-length-options label {
    display: inline-block;
    margin: 0 8px;
}

#scrypt-panel {
    width: 93%;
    border: 1px solid white;
    border-radius: 5px;
    margin: 0 auto;
    padding: 20px 0;
    background-color: #4d6aff;
}

.scrypt-license {
    margin-top: 18px;
    color: white;
    font-size: 0.75rem;
}

#argon2-salt {
    box-sizing: border-box;
    width: 310px;
    padding: 8px;
    margin-top: 2px;
    border: 1px solid white;
    border-radius: 5px;
}

.scrypt-license a,
.scrypt-license a:hover {
    color: white;
    text-decoration: underline;
}

.license-modal[hidden] {
    display: none !important;
}

.license-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.48);
    cursor: default;
}

.license-modal-box {
    box-sizing: border-box;
    width: min(680px, 100%);
    max-height: 85vh;
    overflow: auto;
    padding: 20px;
    border: 1px solid white;
    border-radius: 8px;
    background: #4d6aff;
    color: white;
    text-align: left;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.license-modal-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.license-source {
    margin-bottom: 12px;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.license-source a,
.license-source a:hover {
    color: white;
    text-decoration: underline;
}

.license-modal-heading h2 {
    margin: 0;
    color: yellow;
    font-size: 1.1rem;
}

#close-scrypt-license,
#close-argon2-license {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid white;
    border-radius: 5px;
    background: black;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

#scrypt-license-content,
#argon2-license-content {
    margin: 18px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: 0.85rem/1.5 monospace;
}

@media (max-width: 700px) {
    .hash-kdf-toggles {
        flex-direction: column;
        align-items: center;
    }

    #see-argon2,
    #see-scrypt {
        width: 90%;
        height: auto;
        max-width: 100%;
        font-size: 0.85rem;
        padding: 10px 8px;
    }

    #see-argon2:hover,
    #see-scrypt:hover {
        width: 90%;
        height: auto;
        padding: 10px 8px;
    }

    #scrypt-salt {
        width: 88%;
        font-size: 0.85rem;
    }

    #argon2-salt {
        width: 88%;
        font-size: 0.85rem;
    }
}
