* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html, body {
    height: 100%;
    width: 100%;
    background-color: rgb(32,33,36);
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    overflow-x: hidden;
}

body{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body::-webkit-scrollbar{
    background-color: transparent;
    height: 10px;
    width: 10px;
}

body::-webkit-scrollbar-button{
    background-color: transparent;
}

body::-webkit-scrollbar-thumb{
    min-height: 70px;
    background-color: #5b5b5b;
}

/* body::-webkit-scrollbar-corner {
    background-clip: padding-box;
    background-color: rgb(32, 33, 36);
    border: solid rgb(95, 99, 104);
    border-width: 3px 0 0 3px;
    -webkit-box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .14);
    box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .14);
} */

header {
    position: sticky;
    top: 0px;
    height: 64px;
    width: 100vw;
    background: #202124;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgb(68, 68, 68);
    padding: 0 0 0 16px;
    /* justify-content: space-between; */
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.left-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.menu-btn {
    height: 40px;
    width: 40px;
    border: none;
    border-radius: 50%;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}
.menu-btn:hover {
    background-color: rgb(50, 50, 50);
}
.menu-logo {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    display: block;
}

.keep-logo-and-name {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}
.keep-logo-img {
    height: 38px;
    width: auto;
    display: block;
}
.keep-text {
    font-size: 1.5rem;
    color: rgb(218, 220, 224);
    font-weight: 500;
    letter-spacing: 0.5px;
    vertical-align: middle;
    user-select: none;
}

.nav-mid{
    height: 6.32vh;
    width: 50vw;
    background-color: RGB(82, 83, 85);
    display: flex;
    border-radius: 10px;
    margin-left: 100px;
    margin-right: 190px;
}

.search-bar{
    display: flex;
    height: 100%;
    width: 100%;
    border: none;
    padding: 10px;
}

.search-logo{
    display: flex;
    justify-content: center;
    align-items: center;
    filter:brightness(0) invert(1) ;
}
.search-input{
    display: flex;
    background-color: transparent;
    color: white;
}
.input-search {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    width: calc(20vw - 26px);
    font-size: 1.1rem;
    padding: 7px 10px;
    border-radius: 8px;
    transition: background 0.1s;
    width: 47vw;
}

.nav-right{
    /* background-color: red; */
    width: 19vw;
    height: 6.59vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.refresh{
    /* background-color: pink; */
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
}
.refresh:hover{
    background-color: rgb(50, 50, 50);
}

.refresh-btn{
    filter: brightness(0) invert(1);
}

.pfp{
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.pfp:hover{
    background-color: rgb(50, 50, 50);   
}

.pfp-img{
    background: url("https://lh3.google.com/u/0/ogw/AF2bZygW2XAoUURmsLCIFmhFKwIuoez4jpqTiy9qCFTt14tz4A=s64-c-mo");
    background-size: cover;
    height: 70%;
    width: 70%;
    border: none;
    border-radius: 50%;
}

.main-content {
  display: flex;
  align-items: flex-start; /* or center for vertical centering */
  gap: 0;
  flex-direction: row;
  margin-top: 150px;
}
aside {
  width: 17.22vw;
  /* min-width: 220px; */
  height: 100vh;
  background-color:#202124;
}

/* aside{
    position: fixed;
    width: 17.22vw;
    height: 12vh;
    display: flex;
    justify-items: center;
    align-items: flex-start;
} */

.content{
    height: auto;
    width: 17vw ;
    display: flex;
    flex-direction: column;
    margin-top: 5px;
    position: fixed;
    top: 64px;
}

.notes{
    /* background-color: red; */
    padding: 0 20px 0 20px;
    width: 100%;
    height: 6.59vh;
    display: flex;
    border: none;
    border-radius: 0 25px 25px 0;
    gap: 20px;
    align-items: center;
    cursor: pointer;
}

.notes:hover{
    background-color: #28292c;
}

#content-icon{
    fill: rgb(154,160,166);
}

h3{
    color: rgb(154,160,166);
    font-weight: 600;
    font-size: 15px;
}

.note-bar {
  display: flex;
  align-items: center;
  background: #292a2d;
  border: 1px solid #484848;
  border-radius: 10px;
  width: 750px;
  padding: 0 18px;
  gap: 0;
  height: 56px;
  box-sizing: border-box;
}

.note-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #c4c4c4;
  font-size: 1.27rem;
  padding: 0 6px;
  height: 46px;
  outline: none;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
}

.note-input::placeholder {
  color: #b0b3b8;
  font-weight: 400;
  opacity: 1;
}

.note-btn {
  background: transparent;
  border: none;
  padding: 0 10px;
  cursor: pointer;
  height: 46px;
  display: flex;
  align-items: center;
}

main{
    /* background-color: rosybrown; */
    height: auto;
    width: calc(100vw - 17.22vw);
    padding: 30px;
}

.main-content-main{
    /* background-color: royalblue; */
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

.take-note{
    /* background-color: red; */
    height: 6.87vh;
    width: 40vw;
    border: 2px solid rgb(82, 82, 82);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 10px;
    color: rgb(153, 153, 153);
    box-shadow:
    0 4px 24px 4px rgba(0,0,0,0.40),
    0 1.5px 3px 0px rgba(102, 102, 102, 0.22);
    /* box-shadow:
    0 4px 24px 4px rgba(0,0,0,0.40),
    0 1.5px 3px 0px rgba(102, 102, 102, 0.22); */
    /* box-shadow:
    0 4px 32px 0 rgba(160, 160, 160, 0.08),   /* faint, wide bright */
   /*  0 2px 8px 0 rgba(0,0,0,0.35); */
}

.take-note-icons{
    display: flex;
}

.make-note{
    /* position: fixed; */
   /* background-color:
    red; */
    height: auto;
    width: 40vw;
    border: 2px solid rgb(82, 82, 82);
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    padding: 10px;
    color: rgb(153, 153, 153);
    box-shadow:
    0 4px 24px 4px rgba(0,0,0,0.40),
    0 1.5px 3px 0px rgba(102, 102, 102, 0.22);
    /* box-shadow:
    0 4px 24px 4px rgba(0,0,0,0.40),
    0 1.5px 3px 0px rgba(102, 102, 102, 0.22); */
    /* box-shadow:
    0 4px 32px 0 rgba(160, 160, 160, 0.08),   /* faint, wide bright */
   /*  0 2px 8px 0 rgba(0,0,0,0.35); */
}

.note-form{
    display: flex;
    flex-direction:column;
    gap:8px;
    height: auto;
    width: 100%;
}

.add-title{
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: auto;
    align-items: center;
}

.text-title, .input-title{
    font-weight: 600;
    font-size: 20px;
    width: 98%;
    height: auto;
    background-color: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: inherit;
}

.take-a-note{
    font-size: 15px;
    width: 98%;
}

.body-note{
    padding: 3px;
    /* font-weight: 600; */
    font-size: 15px;
    width: 98%;
    height: auto;
    min-height:30px;
    background-color: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: inherit;
}

.body-note, .input-title {
  resize: none;
}

.body-note::-webkit-scrollbar {
  display: none;
}

.icons-title{
    justify-content: flex-start;
    align-items: center;
}

.third-section{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-right: 10px;
}

.close-btn{
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: red; */
    width: 6vw;
    height: 5vh;
    color: white;
    border-radius: 10px;
    cursor: pointer;
}

.close-btn:hover{
    background-color: rgba(154, 160, 166, 0.039);
}

/* .user-notes{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    flex-flow: column wrap;
    width: 68.134vw;
    height: auto;
    padding: 30px 0 0 0;
    gap: 20px;
} */

/* .user-notes{
    display: grid;                                                
    grid-auto-rows: 50px;                                         
    grid-gap: 10px;                                               
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    grid-auto-flow: dense;  
    gap: 20px;
    width: 68.134vw;
    padding: 30px 0 0 0;
    align-items: start;
} */

.user-notes {
    column-width: 240px;      
    column-gap: 20px;            
    width: 68.134vw;
    padding: 30px 0 0 0;
    /* display: flex;
    flex-wrap: wrap;
    flex-direction: column; */
}

.note {
    display: flex;
    flex-direction: column;              
    break-inside: avoid;         
    margin-bottom: 20px;         
    min-height: 100px;
    /* max-height: 1000px; */
    width: 100%;
    border: 2px solid rgb(81, 81, 81);
    border-radius: 10px;
}

.note:hover{
    box-shadow:
        0 4px 24px 4px rgba(0,0,0,0.40),
        0 1.5px 3px 0px rgba(102, 102, 102, 0.22);
}

.note-body p {
    display: -webkit-box;
    -webkit-line-clamp: 20;    
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;    
    /* max-height: 7.5em;        */
    line-height: 1.5em;
    white-space: pre-wrap;
    word-break:break-word;
    overflow-wrap:anywhere;
}

/* .note{
    min-height: 100px; 
    height: auto;    
    width: 238.4px;
    border: 2px solid rgb(81, 81, 81);
    border-radius: 10px;
} */

.note-title{
    padding: 16px 16px 0 16px;
    line-height: 25px;
    min-height: 38px;
    font-size: 20px;
}

.note-title h3{
    color: white;
}

.note-body{
    overflow-wrap: anywhere;
    padding: 12px 16px 12px 16px;
    color: white;
    font-size: 11pt;
}

/* .clampme {
  display: -webkit-box;
  -webkit-line-clamp: 20; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal; 
  word-break: break-all; 
} */

/* .full-note-modal{
    width: 40vw;
    min-height: 170px;
    height: auto;
    max-height: 90vh;
    background-color: #202124;
    border: 2px solid rgb(81, 81, 81);
    border-radius: 10px;
    box-shadow:
    0 4px 24px 4px rgba(0,0,0,0.40),
    0 1.5px 3px 0px rgba(102, 102, 102, 0.22);
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
} */

/* .full-note-modal {
    width: 40vw;
    min-height: 170px;
    height: auto;
    max-height: 90vh;
    background-color: #202124;
    border: 2px solid rgb(81, 81, 81);
    border-radius: 10px;
    box-shadow:
    0 4px 24px 4px rgba(0,0,0,0.40),
    0 1.5px 3px 0px rgba(102, 102, 102, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow-x:hidden;
    overflow-y: auto;
    position: fixed;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s cubic-bezier(.4,0,.2,1), transform .24s cubic-bezier(.4,0,.2,1);
} */

.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(19, 19, 19, 0.63);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s cubic-bezier(.4,0,.2,1);
  z-index: 998;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.full-note-modal{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 40vw;
    max-width: 96vw;
    min-height: 170px;
    max-height: 90vh;
    background: #202124;
    border: 2px solid rgb(81,81,81);
    border-radius: 10px;
    box-shadow: 0 4px 24px 4px rgba(0,0,0,0.4), 0 1.5px 3px 0px rgba(102,102,102,0.22);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s cubic-bezier(.4,0,.2,1), transform .24s cubic-bezier(.4,0,.2,1);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 999;
}

.full-note-modal.show {
  opacity: 1;
 transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.full-note-modal.hidden{
    /* opacity: 0;
    pointer-events: none; */
    display: none;
}

.modal-icons{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0px;
    background-color: #202124;
}

.more-option{
    background-color: rgb(32, 33, 36);
    border: none;
    border-radius:4px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.6), 0 2px 6px 2px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 450px;
    left: 700px;
    padding: 5px 0 5px 0;
    /* background-color: red; */
    cursor: pointer;
    color: #E8EAED;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* gap: 20px; */
    width: 168px;
    height: 220px;
}

.delete-option{
    padding: 0 10px 0 15px;
    display: flex;
    flex-grow: 1;
    justify-content: flex-start;
    align-items: center;
    font-size: 14px;
}

.delete-option:hover{
    background-color: #444547;
}

.modal-title{
    padding: 12px 12px 0;
    min-height: 30px;
    height: auto;
    width: 100%;
}

.modal-title textarea, .modal-body textarea{
    font-size: 20px;
    min-height: 30px;
    height: auto;
    width: 100%;
    color: #DADCDF;
    background-color: transparent;
    resize: none;
    border: none;
    outline: none;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    overflow: hidden !important;
}

.modal-body textarea{
    font-size:  15px;
    white-space: pre-line;
}

.modal-body{
    padding: 0 0 12px 12px;
}

.modal-close-btn{
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: red; */
    width: 6vw;
    height: 5vh;
    margin-right: 10px;
    color: white;
    border-radius: 10px;
    cursor: pointer;
}

.modal-close-btn:hover{
    background-color: rgba(154, 160, 166, 0.039);
}

.modal-body textarea::-webkit-scrollbar{
    background-color: transparent;
    height: 10px;
    width: 10px;
}

.modal-body textarea::-webkit-scrollbar-button{
    background-color: transparent;
}

.modal-body textarea::-webkit-scrollbar-thumb{
    min-height: 70px;
    background-color: #5b5b5b;
}

.list{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse;
}

.hidden{
    display: none;
}

.show { display: block; }

.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
}


.note:hover {
  background-color: #2a2b2f;
  transform: scale(1.02);
  transition: all 0.2s ease;
}
