/* DEAR DIARY - SETTINGS */

.dear-diary-settings {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms;
}

.dear-diary-settings-active {
    opacity: 1;
    pointer-events: unset;
}

/* DEAR DIARY - SETTINGS INNER */

.dear-diary-settings-inner {
    width: 350px;
    padding: 15px;
    background-color: rgb(20, 20, 20);
    border-radius: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.02);
    box-shadow: 0 0 15px black;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.dear-diary-settings-inner-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* SETTINGS - PASSWORD */

.dear-diary-settings-inner-password {
    display: flex;
    flex-direction: column;
    row-gap: 3px;
}

.dear-diary-settings-inner-password label {
    color: white;
}

.dear-diary-settings-inner-password-container {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 5px;
    align-items: center;
}

.dear-diary-settings-inner-password-inner {
    height: 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 5px;
    background-color: rgb(12, 12, 12);
    border-radius: 0.2rem;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 5px;
}

.dear-diary-settings-inner-password-input {
    width: 100%;
    border-radius: 0.2rem;
    border: 0;
    outline: none;
    background-color: transparent;
    color: white;
    padding-inline: 5px;
    font-size: 1rem;
}

/* SETTINGS - SEE PASSWORD BUTTON */

.dear-diary-settings-inner-password-eye-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-inline: 4px;
    border-radius: 0.1rem;
    border: 0;
    background-color: rgb(25, 25, 25);
    border: 1px solid rgba(255,255,255,0.02);
    cursor: pointer;
}

.dear-diary-settings-inner-password-eye-button-svg {
    width: 20px;
    height: 20px;
    color: white;
}

.dear-diary-settings-inner-password-eye-button-svg-second {
    width: 20px;
    height: 20px;
    color: white;
    display: none;
}

.dear-diary-settings-inner-password-eye-button:hover {
    background-color: rgb(30, 30, 30);
}

.dear-diary-settings-inner-password-eye-button:active {
    background-color: rgb(27, 27, 27);
}

.dear-diary-settings-inner-password-eye-button-js .dear-diary-settings-inner-password-eye-button-svg {
    display: none;
}

.dear-diary-settings-inner-password-eye-button-js .dear-diary-settings-inner-password-eye-button-svg-second {
    display: unset;
}

/* SETTINGS - CHANGE PASSWORD BUTTON */

.dear-diary-settings-inner-password-button {
    height: 36px;
    padding-inline: 8px;
    border-radius: 0.1rem;
    border: 1px solid rgba(255,255,255,0.02);
    font-size: 1rem;
    text-transform: uppercase;
    background-color: rgb(30, 30, 30);
    color: white;
    cursor: pointer;
}

.dear-diary-settings-inner-password-button:hover {
    background-color: rgb(35, 35, 35);
}

.dear-diary-settings-inner-password-button:active {
    background-color: rgb(32, 32, 32);
}

/* CHANGE PASSWORD DISABLED BUTTON AND INPUTS */

.dear-diary-settings-inner-password-input:disabled {
    color: gray;
}

.dear-diary-settings-inner-password-eye-button:disabled {
    pointer-events: none;
}

.dear-diary-settings-inner-password-eye-button:disabled .dear-diary-settings-inner-password-eye-button-svg,
.dear-diary-settings-inner-password-eye-button:disabled .dear-diary-settings-inner-password-eye-button-svg-second {
    color: gray;
}

.dear-diary-settings-inner-password-button:disabled {
    color: gray;
    pointer-events: none;
}

/* PASSWORD CHANGE JS */

.dear-diary-settings-inner-password-inner-js {
    border: 1px solid red;
}

/* DELETE EVERYTHING BUTTON CONTAINER */

.dear-diary-settings-inner-delete {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.dear-diary-settings-inner-delete-text {
    color: rgb(255, 0, 0);
    font-size: 0.9rem;
}

.dear-diary-settings-inner-delete-itself {
    width: 100%;
    height: 40px;
    border-radius: 0.2rem;
    border: 0;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    color: white;
    background-color: rgb(30,30,30);
    border: 1px solid rgba(255,255,255,0.05);
}

.dear-diary-settings-inner-delete-itself:hover {
    background-color: red;
}

.dear-diary-settings-inner-delete-itself:active {
    background-color: rgb(223, 0, 0);
}

.dear-diary-settings-inner-delete-itself:disabled {
    background-color: rgb(20, 20, 20);
    color: gray;
    pointer-events: none;
}

/* BACKGROUND OF THE PAGE */

.dear-diary-settings-inner-background {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}

.dear-diary-settings-inner-background-header {
    color: white;
    font-weight: 400;
}

.dear-diary-settings-inner-background-themselves {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    height: 70px;
}

.dear-diary-settings-inner-background-itself {
    border: 0;
    border-radius: 0.2rem;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    background-color: rgb(12, 12, 12) !important;
}

.dear-diary-settings-inner-background-itself:first-of-type {
    background: url(../assets/bg/light-bg.svg) no-repeat;
    background-size: cover;
}

.dear-diary-settings-inner-background-itself:nth-of-type(2) {
    background: url(../assets/bg/light-bg-2.svg) no-repeat;
    background-size: cover;
}

.dear-diary-settings-inner-background-itself:last-of-type {
    background: url(../assets/bg/light-bg-3.svg) no-repeat;
    background-size: cover;
}

.dear-diary-settings-inner-background-itself-hover {
   border: 1px solid rgba(255,255,255,0.15);
}

.dear-diary-settings-inner-background-itself-active {
    border: 1px solid rgba(255,255,255,0.8);
}

/* MEDIA QUERIES */

@media (max-width: 500px) {
    .dear-diary-settings {
        padding-inline: 20px;
    }
    .dear-diary-settings-inner {
        width: 100%;
    }
}

@media (max-width: 450px) {
    .dear-diary-settings-inner {
        padding: 10px;
    }
}