@font-face {
    font-family: "Ginto";
    src:
        url("../fonts/ABCGinto-Regular.woff2") format("woff2"),
        url("../fonts/ABCGinto-Regular.woff") format("woff"),
        url("../fonts/ABCGinto-Regular.otf") format("otf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Ginto";
    src:
        url("../fonts/ABCGinto-RegularItalic.woff2") format("woff2"),
        url("../fonts/ABCGinto-RegularItalic.woff") format("woff"),
        url("../fonts/ABCGinto-RegularItalic.otf") format("otf");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Redaction";
    src:
        url("../fonts/Redaction-Regular.woff2") format("woff2"),
        url("../fonts/Redaction-Regular.otf") format("otf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Redaction";
    src:
        url("../fonts/Redaction-Italic.woff2") format("woff2"),
        url("../fonts/Redaction-Italic.otf") format("otf");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Redaction-20";
    src:
        url("../fonts/Redaction_20-Regular.woff2") format("woff2"),
        url("../fonts/Redaction20-Regular.otf") format("otf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Redaction-20";
    src:
        url("../fonts/Redaction_20-Italic.woff2") format("woff2"),
        url("../fonts/Redaction20-Italic.otf") format("otf");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Redaction-35";
    src:
        url("../fonts/Redaction_35-Regular.woff2") format("woff2"),
        url("../fonts/Redaction35-Regular.otf") format("otf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Redaction-35";
    src:
        url("../fonts/Redaction_35-Italic.woff2") format("woff2"),
        url("../fonts/Redaction35-Italic.otf") format("otf");
    font-weight: normal;
    font-style: italic;
}

body {
    background-color: #9fa899;
    font:
        14px "Redaction",
        serif;
    color: #63695f;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center; /* Center horizontally */
}

.center-vertically {
    align-items: center; /* Center vertically */
}

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

h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
}

h3 {
    margin: 0 auto 13vh;
    font-size: 1.7 rem;
}

h4 {
    font-size: 1.5rem;
    margin: 0;
    text-transform: uppercase;
}

#advert {
    text-align: center;
    margin: 0 auto;
    color: #6000da;
}

#logo {
    position: fixed;
    top: 10vh;
    right: 3vw;
    width: 4vw;
    height: auto;
}

#stamp {
    text-align: right;
    position: fixed;
    bottom: 4vh;
    right: 3vw;
}

#copyright {
    font:
        0.5rem "Ginto",
        sans-serif;
}

#remined {
    font-size: 1.6rem;
    color: rgba(99, 105, 95, 0.4);
}

.branded {
    font-family: "Redaction-20", serif;
}

a.disabled {
    pointer-events: none;
    cursor: not-allowed;
}

button {
    padding: 10px 20px;
    background-color: transparent;
    color: #63695f;
    border: 1px solid #63695f;
    border-radius: 3rem;
    cursor: pointer;
    font-family: "Ginto", sans-serif;
    display: block;
}

button:hover {
    background-color: rgba(99, 105, 95, 0.1);
}

select {
    cursor: pointer;
}

button.orange {
    background: #fc6363 !important;
}

button.orange:hover {
    background: transparent !important;
}

.row {
    display: flex;
    justify-content: space-between; /* Space buttons equally */
    align-items: center; /* Center the text vertically within the buttons */
    width: 100%; /* Make the row 100% wide */
}

.row a {
    flex: 1; /* Ensure buttons take equal width */
    text-align: center; /* Center the text in each button */
    padding: 0.2rem; /* Add some padding for better appearance */
    border: none; /* Remove default button border */
    cursor: pointer; /* Pointer cursor on hover */
    margin: 0;
    font-size: 0.7rem;
    text-decoration: none;
    border-radius: 3rem;
    color: #63695f;
    background-color: rgba(99, 105, 95, 0.1);
}

nav .row a.disabled,
#libraries .list a.disabled,
#library .list a.disabled {
    background-color: transparent;
    text-decoration: none;
    color: rgba(99, 105, 95, 0.4);
}

#libraries .list a.disabled,
#library .list a.disabled {
    border: 1px solid rgba(99, 105, 95, 0.4);
}

.row a:hover {
    background-color: rgba(99, 105, 95, 0.3);
}

.row a:nth-child(2) {
    margin-left: 5%;
}

#login {
    margin: 2vh auto 0;
}

header {
    text-align: left;
    position: fixed;
    left: 3vw;
    top: 10vh; /* bottom: 4vh; */
    width: 14vw;
    height: 86vh;
    font:
        0.9rem "Ginto",
        sans-serif;
}

header .nav-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

#annotes {
    text-align: left;
    font-size: 1.2rem;
}

.nav-bottom ul {
    margin: 0;
    padding: 0;
}

.nav-top ul {
    padding: 0;
    margin: 0 0 2rem;
}

.nav select {
    padding: 0.1rem 0.5rem;
    outline: none;
    transition: border-color 0.3s;
    text-align: center;
    background-color: transparent;
    color: #63695f;
}

.nav select.highlight {
    background-color: #63695f;
    color: #848b7e;
}

#annotes li,
.nav li {
    list-style: none;
    padding: 0;
}

.nav-top li {
    margin: 0 0 1rem;
}

.nav-bottom li {
    margin: 1rem 0 0;
}

.nav .selected {
    border-bottom: 1px solid #63695f;
}

.pill {
    align-items: center;
    border: 1px solid #63695f; /* The same color as the left background */
    border-radius: 3rem; /* Creates the pill shape */
    overflow: hidden; /* Ensures the text is contained within the pill */
    width: 100%;
    background-color: transparent; /* Transparent background for the right side */
    color: #63695f;
}

.pill-box {
    display: inline-flex;
}

.pill a,
.pill span {
    text-align: center;
    padding: 0.1rem 0.5rem;
    margin: 0;
    width: 100%;
    display: block;
}

.pill.selected {
    background: #63695f;
    color: #848b7e; /* Text color for the left side */
}

.pill a {
    text-decoration: none;
    padding: 0.1rem 0.5rem;
    margin: 0;
    cursor: pointer;
}

.pill a:hover {
    background: linear-gradient(270deg, #fc6363, #63695f);
    background-size: 150% 150%;
    color: #63695f; /* Text color for the left side */
}

.pill .left {
    padding: 0.1rem 0.5rem;
    border-right: 1px solid #63695f; /* Matches the pill border color */
}

.pill .right {
    padding: 0.1rem 0.5rem;
}

.container {
    width: 50vw;
    margin: 10vh auto 7vh;
    text-align: center;
}

.contract {
    font-size: 1.7rem;
    line-height: 3rem;
    text-align: center;
}

.contract p {
    margin-bottom: 4rem;
}

.contract .underlined,
.contract .underlined:focus,
.contract .underlined:-internal-autofill-selected {
    font:
        1.7rem "Redaction-20",
        serif;
    text-align: center;
    margin: 0 auto;
    background-color: rgba(99, 105, 95, 0.1);
    border-radius: 3rem;
    border: none;
    color: #6000da;
}

.contract button {
    margin: 20px auto 0;
}

#dashboard {
    font-size: 1.7rem;
    line-height: 3rem;
    text-align: center;
}

.headerRow {
    font-family: "Ginto", sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.headerRow h3 {
    margin: 0;
    font-size: 1.5em;
    flex-grow: 1;
    text-align: left;
}

.headerRow button {
    text-align: right;
    margin: 0;
}

.containerRow {
    font-family: "Monaco", monospace;
    text-align: left;
    margin-bottom: 1rem;
    padding-bottom: 10rem;
    border-bottom: 1px solid #63695f;
}

.containerRow li {
    font-size: 1rem;
}

/* stylesheets/style.css */
#new-annote {
    font-family: "Redaction", serif;
    color: #6000da;
    text-align: left;
    font-size: 1.4rem;
}

textarea {
    font-family: "Redaction", serif;
    font-weight: normal;
    border: none;
    background: transparent;
    outline: none;
    resize: none; /* Prevent the user from manually resizing */
    overflow: hidden;
    resize: none;
    box-sizing: border-box;
    padding: 0;
}

#annoteTitle,
#libraryName {
    margin-top: 0.4em; /* To match with the body */
    height: 1.6em;
    padding: 0 3%;
    width: 94%;
    color: #63695f;
    text-align: center;
}

#libraryName {
    margin-top: 1rem;
    font-family: "Redaction", sans-serif;
    font-weight: normal;
}

div.list textarea.title {
    text-align: left;
    color: #6000da;
    height: 2rem;
    display: block;
}

.title,
.name {
    font-size: 1.4rem;
    line-height: 1.6em;
}

#annoteSummary {
    font-size: 0.8rem;
    margin-top: 3vh;
    display: block;
    width: 100%;
    height: 40vh;
    background: rgba(252, 99, 99, 0.3);
    padding: 0.6rem;
    border-radius: 0.6rem;
    color: #63695f;
}

#annoteDate {
    margin: 0;
    padding: 0 0.4rem;
    height: 2vh;
    text-align: center;
}

.date {
    font-size: 0.5rem;
    text-transform: uppercase;
    font-family: "Ginto", sans-serif;
}

#new-annote .ce-block--selected .ce-block__content,
#new-annote .codex-editor ::selection {
    background-color: rgba(96, 0, 218, 0.1);
}

.container .list {
    width: 100%;
    padding: 1rem;
    margin: 0;
    text-align: left;
    text-decoration: none;
    border-radius: 0.3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#annotes .list {
    padding: 1rem 1rem 0.5rem;
}

#annotes .list .metadata {
    flex: 0 0 80%;
}

#libraries .list .metadata {
    flex: 0 0 60%;
}

.container .list .tasks,
.container .list .description,
.container .list .body {
    flex: 0 0 auto;
    align-self: flex-start;
}

.container .list .description,
.container .list .body {
    padding: 0;
    text-align: left;
    margin: 0.5rem 0 0;
    color: #63695f;
    width: 100%;
}

.container div.list .description,
.container div.list .body {
    color: #6000da;
    overflow-y: scroll;
    height: 5rem;
}

.container .list .tasks,
.container .list .totalCount,
.container .list #save {
    font:
        0.6rem "Monaco",
        monospace;
    text-transform: uppercase;
    border-radius: 3rem;
    padding: 0.2rem 1rem;
    margin: 0.3rem 0 0;
    text-align: center;
}

.container .list .tasks {
    background-color: rgba(119, 251, 81, 0.1);
    color: #77fb51;
    border: 1px solid #77fb51;
}

.container .list .totalCount {
    background-color: rgba(99, 105, 95, 0.1);
    color: #63695f;
    border: 1px solid #63695f;
}

.container .list #save {
    background-color: rgba(96, 0, 218, 0.1);
    color: #6000da;
    border: 1px solid #6000da;
    text-decoration: none;
}

.container div.list {
    border-bottom: 1px solid rgba(99, 105, 95, 0.2);
    margin-bottom: 10vh;
}

.container a.list:hover {
    background-color: rgba(99, 105, 95, 0.2);
}

.container .list .title,
.container .list .name {
    margin: 0;
    color: #6000da;
    font-family: "Redaction", serif;
}

.container a.list .date {
    margin: 0.3rem 0;
    line-height: 1rem;
    color: #63695f;
}

.nav input[type="text"]::placeholder,
.nav textarea::placeholder {
    color: rgba(99, 105, 95, 0.5);
}

.codex-editor [data-placeholder-active]:empty:before,
.codex-editor [data-placeholder-active][data-empty="true"]:before {
    color: rgba(96, 0, 218, 0.5);
}

.ce-toolbar__plus,
.ce-toolbar__settings-btn {
    color: #6000da;
}

.ce-toolbar__plus:hover,
.ce-toolbar__settings-btn:hover {
    color: #6000da;
    background-color: rgba(96, 0, 218, 0.2);
}

.nav-top {
    position: absolute;
    top: 0vh;
    left: 0;
    width: 100%;
}

.nav-top button {
    background-color: transparent;
    color: #63695f;
    text-decoration: none;
    padding: 0.1rem 0.5rem;
    border: none;
    width: 100%;
    margin: 0 auto 1rem;
}

.nav-top button:hover {
    background-color: rgba(99, 105, 95, 0.1);
}

/* Define the blur effect for all elements */
.blur {
    filter: blur(2px);
    pointer-events: none; /* Prevent interaction while blurred */
}

.blur .unblur {
    filter: none;
}

/* Gradient animation for the background */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-background {
    background: linear-gradient(270deg, #848b7e, #fc6363);
    background-size: 200% 200%;
    animation: gradientAnimation 3s ease infinite;
}
