* {
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgb(150, 150, 150);
}

::-webkit-scrollbar-thumb {
    background: rgb(100, 100, 100);
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(80, 80, 80);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}

html {
    background-color: rgb(10, 20, 30);
    height: 100%;
}

body {
    margin: auto;
    max-width: 1200px;
    min-width: 850px;
    background-color: rgb(40, 50, 60);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loginScreen {
    display: none;
    align-items: center;
    flex-direction: column;
}

#loginScreen img {
    max-width: 150px;
    max-height: 150px;
}

#loginScreen h2 {
    color: white;
}

#loginScreen p {
    margin-bottom: 10px;
    color: rgb(200, 200, 200);
}

#loginScreen button {
    border: none;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 10px;
}

#loginScreen button img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

#loadingScreen {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

#loadingScreen div {
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
    background-color: rgb(50, 50, 50);
    padding: 20px;
    border-radius: 20px;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgb(50, 150, 150);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 0.5s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loadingScreen div h3 {
    margin-left: 20px;
}

#enterApinScreen {
    display: none;
    flex-direction: column;
    align-items: start;
    color: white;
}

#createApinScreen {
    display: none;
    flex-direction: column;
    align-items: start;
    color: white;
}

.cApinBlocks {
    margin: 10px;
}

.apinInputTitle {
    margin: 5px 0;
}

.apinInput {
    padding: 5px;
    font-size: 110%;
    letter-spacing: 5px;
}

.signoutBtn {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: crimson;
    color: white;
    margin-left: 10px;
}

.proceedBtn {
    margin: 10px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: blue;
    color: white;
}

#selfAlert {
    padding: 10px;
    border-radius: 5px;
    background-color: white;
    position: fixed;
    top: 50px;
    right: 50px;
    display: none;
    justify-content: center;
    align-items: center;
}

#selfAlertText {
    margin-right: 10px;
}

#selfAlertClose {
    border: none;
    padding: 5px;
    border-radius: 10px;
    background-color: rgb(0, 155, 255);
    color: white;
}

#homeScreen {
    color: white;
    display: none;
    grid-template-rows: auto 1fr;
    width: 100%;
    height: 100vh;
}

.homeScreenTitleBar {
    padding: 10px;
}

.homeScreenTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appNameAndIcon {
    display: flex;
    align-items: center;
    gap: 5px;
}

#appListSearchInput {
    padding: 5px;
    font-size: 110%;
    border-radius: 5px;
    width: 100%;
}

.homeScreenBody {
    display: flex;
    overflow-y: auto;
}

#appList {
    flex: 1;
    overflow-y: auto;
}

.appEditor {
    flex: 1;
    overflow-y: auto;
}

.appListItem {
    margin: 10px;
    background-color: rgb(60, 70, 80);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.appListItem:hover {
    background-color: rgb(80, 90, 100);
}

.appIcon {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.appNameAndUsername {
    flex: 1;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.appEditorTitleBar {
    background-color: rgb(60, 70, 80);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 10px;
}

#appDeleteButton {
    padding: 5px 10px;
    background-color: red;
    color: white;
    border-radius: 10px;
}

.inputContainer {
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px;
    border-radius: 10px;
}

.inputField {
    padding: 5px;
    font-size: 110%;
    border-radius: 5px;
    width: 100%;
    margin-top: 10px;
}

.passwordField {
    display: flex;
}

#showPasswordBtn {
    margin: 10px 0 0 10px;
    padding: 0 5px;
}

.editorButtons {
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-evenly;
    gap: 10px;
}

.editorButtons button {
    flex: 1;
    padding: 10px 0;
    border-radius: 10px;
    cursor: pointer;
    background-color: blue;
    color: white;
    font-weight: bold;
}

.generateOptionsContainer {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
}

.generateOptionsContainer>div {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    background-color: rgb(60, 70, 80);
    margin: 0 10px;
    border-radius: 10px;
    cursor: pointer;
}

#passwordLength {
    margin-left: 10px;
    flex: 1;
}

#profileImg {
    background-color: white;
    width: 40px;
    border-radius: 10px;
}

#encKeyFile {
    width: fit-content;
}

.unencrypted-data {
    background-color: rgba(200, 200, 0, 0.2);
}

input:disabled {
    background-color: lightgray;
    color: black;
}

#searchBar {
    position: sticky;
    top: 0;
    padding: 0 10px;
    display: flex;
    gap: 10px;
    background-color: rgb(40, 50, 60);
    padding: 10px;
}