/* 

---------- TYPOGRAPHY ----------

FONT SIZES
12px / 16px / 20px / 24px / 32px / 40px / 48px / 62px

FONT WEIGHTS
400 / 700

LINE HEIGHTS
1.2 / 1.5

LETTER SPACING
0 / -2px

FONT FAMILY
Poppins

---------- COLORS ----------

PRIMARY
Base: #339af0 (Sky Blue)
Tint: #d0ebff (Arctic)
Shade: #1c7ed6 (Deep Sea)

SECONDARY
Base: #9775fa (Lavendar)
Tint: #e5dbff (Moonligh Iris)
Shade: #7048e8 (Velvet Night)

TERTIARY
Base: #ff922b (Pumpkin)
Tint: #ffe8cc (Dawn)
Shade: #f76707 (Lava)

GREY
Base: #495057 (Slate)
Tint: #f1f3f5 (Pebble)
Shade: #212529 (Graphite)
White: #ffffff (White)
Black: #000000 (Black)

---------- BORDER RADIUS ----------

4px / 8px / 20px

---------- SPACING SYSTEM ----------

5px / 10px / 15px / 20px / 25px / 30px / 40px / 50px / 60px / 70px / 80px / 90px / 100px / 125px / 150px / 200px / 250px / 300px / 400px / 500px

*/

/* ----------------------- VARIABLES ----------------------- */
:root {
    /* Font Size */
    --text-sm: 1.2rem;
    --text-base: 1.6rem;
    --text-paragraph: 2rem;
    --text-h5: 2rem; /*2.4rem;*/
    --text-h4: 2.5rem;
    --text-h3: 3rem;
    --text-h2: 3.5rem; /*4.8rem;*/
    --text-h1: 4rem; /*6.2rem;

  /* Font Weight */
    --font-weight-normal: 400;
    --font-weight-bold: 700;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;

    /* Letter Spacing */
    --letter-spacing-tight: -2px;

    /* Font Family */
    --font-family: "Arial", sans-serif;

    /* Colors */
    /* --primary-base: #339af0; */
    /* --primary-base: #f26a8d; */
    --primary-base: #e9d1c7;
    --secondary-base: #a2d2ff;

    --white: #ffffff;
    --black: #000000;

    /* Miscellaneous */
    --nav-height: 100px; /* Update the value in the flexbox topic */

    /* Back Shadow */
    --back-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

/* ----------------------- STYLES ----------------------- */

/*------------General-----------*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 62.5%; /* 10px / 16px = 62.5% */
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--grey-base);
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    font-family: var(--font-family);
    color: var(--grey-shade);
}

h1 {
    font-size: var(--text-h1);
}

h2 {
    font-size: var(--text-h2);
}

h3 {
    font-size: var(--text-h3);
}

h4 {
    font-size: var(--text-h4);
}

h5 {
    font-size: var(--text-h5);
}

p {
    font-size: var(--text-paragraph);
    word-break: normal !important;
    overflow-wrap: normal !important;
}

a,
p,
th,
td {
    text-decoration: none !important;
    font-size: var(--text-base);
    display: inline-block;
}

a:link,
a:visited,
a:hover,
a:active {
    color: var(--grey-base);
}
small {
    margin-top: 7px;
}
/* ul,
li {
    list-style: none;
} */

span {
    display: inline-block;
    font-size: var(--text-base);
}

form {
    /* box-shadow: var(--back-shadow); */
    padding: 20px;
    border-radius: 10px;
}

input {
    font-size: var(--text-base);
    padding: 10px;
}
textarea {
    padding: 5px 10px;
}

select {
    font-size: var(--text-base);
    padding: 10px;
}

input,
select,
option {
    width: 100% !important;
    margin-bottom: 5px;
    margin-top: 5px;
    height: 50px;
}

label {
    font-size: var(--text-sm);
    background-color: var(--white);
    margin-top: 20px;
}

button {
    font-size: var(--text-base);
    width: 100%;
    height: 37px;
    padding: 5px;
    background-color: var(--primary-base);
    border: none;
    color: var(--black);
    box-shadow: var(--back-shadow);
    cursor: pointer;
    margin-top: 10px;
}

thead tr,
tbody tr {
    display: flex;
    padding: 10px 10px !important;
}
th {
    border-bottom: #000000 solid 1pt;
}

th,
td,
td a,
td p {
    padding: 5px 10px 5px 0px;
    width: 130px;
    font-size: var(--text-sm);
    text-align: left;
    vertical-align: top;
}

img {
    width: 100%;
}

/* i {
    font-size: 15pt;
    color: #000000;
} */
hr {
    border-color: var(--primary-base);
}

/*------------DOCUMENT READY-----------*/
.edit-icon {
    visibility: hidden;
    background-color: var(--white);
    z-index: 1000;
}
.loading-section {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 100px;
    gap: 20px;
    padding-top: 150px;
    /* height: 100vh; */
    /* visibility: hidden; */
}

.active {
    background-color: var(--tertiary-base) !important;
}

.small-text-offline {
    color: black !important;
}

.link {
    cursor: pointer;
}

#subscription-message {
    display: none;
    margin-bottom: -5px;
}

#login-message {
    display: none;
}

#user-message {
    display: none;
}

#article-message {
    display: none;
}

/*---------General Components-----------*/
.link-tag-button,
.link-tag-button-main {
    box-shadow: var(--back-shadow);
    padding: 6px;
    margin-left: 5px;
    cursor: pointer;
    font-size: var(--text-sm);
    width: fit-content;
    height: fit-content;
    /* background-color: var(--primary-base); */
    background-color: var(--secondary-base);
    border-radius: 5px;
}

.selected {
    background-color: red;
}

.navigation-button {
    border-radius: none;
    /* box-shadow: var(--back-shadow); */
    padding: 10px;
}

.icon {
    width: 20px;
    height: 20px;
}

.button-with-icon {
    width: fit-content;
}

/*------------Forms-----------*/

#login-form {
    width: 300px;
    height: fit-content;
    /* box-shadow: var(--back-shadow); */
    padding: 10px;
    border-radius: 10px;
}

#reset-password-form {
    width: 300px;
    height: fit-content;
    /* box-shadow: var(--back-shadow); */
    /* padding-bottom: 30px; */
    border-radius: 10px;
    margin-bottom: 100px;
    background-color: white;
    padding: 15px;
}

.inputs-group {
    width: 100%;
    display: none;
}

.attachments {
    outline: black solid 1pt;
}

#create-account-form input,
#create-account-form select,
#create-account-form option {
    width: 100% !important;
}

#get-password-reset-otp-form {
    width: 300px;
    height: fit-content;
}

#enter-password-reset-otp-form {
    width: 300px;
    height: fit-content;
}

#modal-reset-password-form {
    width: 300px;
    height: fit-content;
}

#profile-details {
    box-shadow: none;
    display: block;
    justify-content: space-between;
    padding: 0px;
    margin-top: 50px;
}

#logout-form {
    box-shadow: none;
    margin-right: -20px;
    margin-left: -20px;
    margin-top: -5px;
}

#search-form {
    display: flex;
    flex-direction: row;
    gap: 10px;
    box-shadow: none;
    width: 300px;
    height: 50px;
}

/*------------Header-----------*/
#header {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    /* height: 50px; */
    background-color: var(--primary-base);
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000000;
}
#logo-container {
    width: fit-content;
    display: flex;
    justify-content: left;
}

#logo {
    width: 80px;
    height: auto;
}

#page-navigation-container div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

#page-navigation-container-mobile-tablet {
    background-color: var(--primary-base);
    margin-top: 50px;
    display: none;
    padding-bottom: 5px;
    z-index: 1000000;
}

.hide-mobile-navigation {
    display: none;
}
.header-link {
    color: white !important;
}

.header-search-input {
    height: 40px;
    outline: var(--white);
    border: var(--white) solid;
    height: 40px;
}

.header-icon {
    width: 20px;
}

.header-search-icon {
    margin-top: -10px;
}

#account-container {
    margin-right: 0px;
}
#account-not-loggedin,
#account-loggedin {
    display: flex;
    justify-content: right;
    gap: 10px;
    align-items: center;
}

.header-profile-image {
    border-radius: 50%;
    box-shadow: var(--back-shadow);
    margin: auto;
}

.show-workspace-button {
    cursor: pointer;
}

.logout-button {
    box-shadow: none;
}

/*------------Modal-----------*/

.website-modal {
    z-index: 1000000;
    margin: auto !important;
    display: none;
}

.note-modal {
    z-index: 500000;
    margin: auto !important;
    margin-top: 100px !important;
}

.website-modal-wrapper {
    position: fixed;
    z-index: 400000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh !important;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-content: center;
}

/* Modal Content Box */
.website-modal-content {
    background-color: #fefefe;
    margin: auto; /*  centered */
    margin-top: 50px;
    padding: 20px 20px 20px 20px;
    border-radius: 8px;
    width: fit-content; /* Could be more or less, depends on screen size */
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#modal-add-edit-article-content {
    border-radius: 0px !important;
}

#modal-show-image {
    z-index: 500000;
}

#modal-upload-image {
    z-index: 500000;
}

#modal-confirm-delete {
    z-index: 500000;
}

.close-modal-container {
    display: flex;
    justify-content: right;
    width: 100%;
}
/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    width: fit-content;
    margin-bottom: 0px;
}

.close:hover,
.close:focus {
    color: black;
}

.modal-delete-form,
.modal-image-update-form {
    box-shadow: none;
}

.modal-image-update-form {
    width: 100%;
}

.modal-replace-image-warning {
    margin: 10px 0px 0px 0px;
    width: 100%;
}

.modal-description {
    width: 50vw;
    margin-bottom: 10px;
    padding: 50px;
}

.modal-subscription-form {
    box-shadow: none;
    width: 400px;
}

.workspace-list {
    display: inline;
}

.workspace-list a {
    margin-bottom: 10px;
}

.website-modal-content-for-readmore {
    width: 50%;
}

.read-more-button {
    color: var(--primary-base);
}

#modal-show-image div {
    width: 350px;
    height: auto !important;
}

/* #home-image-links {
  background-color: #0ec9c0;
} */

.new {
    display: none;
}

/*---------------- Profile -----------------------*/
.profile {
    display: block;
    width: 100%;
    margin-top: -20px;
}

#profile-top {
    display: block;
    margin-bottom: -70px;
}

#cover-photo-container {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border: var(--primary-base) solid 1px;
}

#cover-photo {
    margin-bottom: -30px;
}

#cover-photo-camera-container {
    display: flex;
    justify-content: right;
    margin-bottom: 6px;
    padding-right: 10px;
    z-index: 2000;
    background-color: transparent !important;
}
#cover-photo-camera-icon {
    width: 20px;
    cursor: pointer;
}

#profile-picture-summary {
    width: 100%;
    padding: 0px 10px 20px 10px;
    display: flex;
    justify-content: flex-start;
    margin-top: -80px;
}

#profile-picture-container {
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 2000;
}

#profile-picture {
    padding: 0px;
    background-color: var(--white);
    border: var(--primary-base) solid 1px;
    width: 150px;
    height: 150px;
    margin: 20px 0px 0px 0px;
}

#profile-camera-icon {
    width: 20px;
    cursor: pointer;
    margin: -50px 5px 5px 0px;
}

.profile-details-icon {
    background-color: var(--primary-base);
    border-radius: 25%;
}
#profile-summary {
    width: 100%;
    padding: 80px 10px 10px;
}

#profile-update-message {
    display: none;
}
#profile-details {
    margin-top: 60px;
}

.profile-description {
    resize: none;
    width: 100%;
    height: 100px;
}
.profile-details-group {
    width: 100%;
}

#profile-details-top,
#profile-details-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#profile-details {
    margin-top: 100px;
}
#profile-details-bottom {
    justify-content: left !important;
    gap: 20px;
    align-items: start;
}

.profile-details-edit {
    display: none;
}
.account-access-details-container {
    display: block;
    margin-top: 50px;
    margin-bottom: 50px;
}
.account-access-message-container {
    text-align: center;
    margin-bottom: -50px;
}
.account-access-message {
    width: fit-content;
    padding: 10px;
    border-radius: 5px;
}

.account-contents-filter {
    display: flex;
    flex-direction: row;
    vertical-align: middle;
    gap: 10px;
}

/*----------------Home-------------------------*/

#home-page {
}

/*----------------Dashboard-------------------------*/

#dashboard-page {
    display: flex;
    gap: 10px;
    padding: 15px;
}

#dashboard-menus {
    width: 50px;
    height: max-content;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-sections {
    width: 100%;
    height: auto;
    background-color: #fcfcfc;
    padding: 20px;
    box-shadow: var(--back-shadow);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    /* justify-content: start; */
}

#dashboard-profile {
    display: flex;
    flex-direction: column;
}

.list-title:hover {
    cursor: pointer;
}

.panel {
    border: none !important;
}

.note-editor {
    border: none !important;
}

.note-resizebar {
    display: none;
}

.note-statusbar {
    display: none;
}
.note-status-output {
    display: none;
}
.panel-heading {
    display: inline-block;
    justify-content: center;
    background-color: var(--white) !important;
    border: none;
    gap: 10px;
}

.note-btn-group {
    display: inline-flex;
}

#dashboard-add-edit-article-buttons {
    width: fit-content;
    display: flex;
    gap: 10px;
    padding: auto;
    background-color: var(--white);
    height: fit-content;
    margin: 15px 0px auto 0px;
    padding: 7px;
    box-shadow: var(--back-shadow);
    border-radius: 5px;
}
.note-editable {
    height: 90vh;
}

#change-password-page {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 100px 50px 50px 50px;
}

.form-page-content-container {
    display: flex;
    flex-direction: column;
    margin: auto;
    padding: auto;
}

.page {
    background-attachment: fixed;
    background-size: cover;
    /* Set background color as a fallback if the image fails to load */
    background-color: #000000;
    /* Ensure the body and html elements cover the full viewport height */
    min-height: 100vh;
    background-color: white;
    justify-content: space-between;
    margin-top: -20px !important;
}

.article-pagination {
    display: none;
}

.user-pagination {
    display: none;
}

#article-version,
#article-version option {
    width: fit-content !important;
}

.settings-container {
    width: 350px;
    margin: auto;
    height: fit-content;
    min-height: 500px;
    box-shadow: var(--back-shadow);
    padding: 15px;
}
#article-meta-container,
#article-versions-container {
    display: none;
}

#live-article-details-container {
    display: inline-block !important;
}

#live-article-details-container span {
    display: inline-flex !important;
    margin-right: 10px;
    border-bottom: var(--primary-base) solid 1pt;
}
