body {
    text-align: center;
}
hr {
    opacity: 0.4;
}
button{
    color: black;
    cursor: pointer;
}
.hide {
    display: none !important;
}
.spin {
    animation: spinner 0.8s cubic-bezier(0.24, 0.03, 0.82, 1.02) infinite;
}
@keyframes spinner {
    from {
        transform: rotate(0);
    } to {
        transform: rotate(360deg);
    }
}

.mode {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}
.mode button {
    border: none;
    
    padding: 0.5rem 1rem;
    cursor: pointer;
}
.encrypt-mode {
    border-radius: 5px 0 0 5px;
}
.decrypt-mode {
    border-radius: 0 5px 5px 0;
}
.selected {
    background-color: black;
    color: white;
}

.image {
    margin-top: 1rem;
}
.image input {
    margin: 1rem 0;
}

img {
    max-height: 45svh;
    max-width: 45svw;
}

.password {
    margin: 2rem 0;
}
.password-label {
    margin: 0.2rem 0 0 0;
}
#password {
    font-size: 16px;
    width: 20rem;
    padding: 0.4rem;

    border-radius: 5px;
    border: 1.4px solid black;
    margin: 0.2rem 0 1.5rem 0;
}
.encrypt-image-button {
    font-size: 16px;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.encrypted-string-label, .input-file-label {
    font-size: 28px;
    font-weight: 800;
    margin: 2rem 0;
}

.save-button {
    font-size: 16px;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;

    color: white;
    background-color: black;
}