/* Note side panel */ 
@media (min-width:750px){
    #mobile-menu{
    display: none;
    }
}
@media (max-width:750px){
    #mobile-menu{
        font-size: 50px;
        color: white;
        /* top:0vw; */
        background-color: rgb(0, 47, 255, 0.7);
        border-bottom-right-radius: 10px;
        border-top-right-radius: 10px;
        border: #000000 1px solid;
        border-left: rgb(0, 47, 255);
        position: fixed;
        transform: translateX(-10%);
        transition: transform 1s ease;
        left: 0;
        z-index: 10;
        top: 60px;
    }
}
@media (max-width:495px){
    #mobile-menu{
        top: 100px;
    }
}


#mobile-menu.scrolling {
    transform: translateX(-60%);
}
@media (max-width:750px){
    #mobile-menu.show{
        display: block;
        transform: translateX(89vw) !important;
    }
}



@media (max-width:750px){
.note-tab.show{
    display: block;
    transform: translateX(0%);
    width: 100%;
    max-width: 90%;
    z-index: 5;
    }
}

.note-tab{
    justify-content: right;
    /* overflow: hidden; */
    /* margin-top: 20px; */
    background-color: #00dcfe;  
    height: 85%;
    position: fixed;
    left: 0;
    /* top: 3%; */
    border-right: rgb(0, 47, 255) 2px solid;
    border-bottom: rgb(0, 47, 255) 2px solid;
    max-width: 300px;
    width: 300px;
    z-index: 1;
    top: 0;  
    padding-top: 55px;
}
@media (max-width:1180px){
    .note-tab{
        width: 25%;
    }
}
@media (max-width:750px){
    .note-tab{
        transition: transform 1s ease;
        transform: translateX(-101%);
        display: none;
        width: 100%;
        max-width: 90%;
    }
}
@media (max-width:400px){
    .note-tab{
        padding-top: 100px;
    }
}

.note-tab h1{
    padding: 10px;
}
h1{
    color: white;
    font-family: kanit, sans-serif;
    font-size: 30px;
    font-weight: 700;
    font-style: oblique;
    text-align: center;
    background-color: #323232;
    margin-top: 10px;
    border-bottom:rgb(0, 47, 255) 5px solid; ;
}
h3 {
    font-family: kanit, sans-serif;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
}
p{
    margin-bottom: 0;
    margin-top: 0;
}
.text-style{
    font-family: sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 5px;
}
.inline{
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
    padding: 0px;
}
.inline p{
    text-decoration: underline;
    font-family: kanit, sans-serif;
    font-weight: 700;
}
#inline-button{
    max-width: 58%;
    width: 100%;
    border-radius: 10px 10px 10px 10px;
    cursor: pointer;
    background-color: #fbfbfb;
    border: 1px solid #000000;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
#inline-button:hover{
    transform: scale(1.03);
}
.paragraph{
    margin: 0;
    border-bottom: blue 1px solid;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0px;
    text-decoration: underline;
    font-family: kanit, sans-serif;
    font-weight: 700;
}
ul{
    list-style-type: none;
    display: inline;
    margin: 0;
    padding-inline-start: 0;
  
}
li a{
    text-decoration: none;
    color: inherit;
}
.note {
    position: relative;
    box-shadow: 1px -1px rgba(0, 0, 0, 1), 1px 1px rgba(0, 0, 0, 1);
    background-color: #ffffff;
    text-overflow: clip;
    overflow-wrap: break-word;
    overflow: hidden;
    padding: 2px;
    max-height: 100px;
    margin-bottom: 2px;
}

.note:hover {
    box-shadow: 1px -1px rgba(0, 0, 0, 1), 1px 1px rgba(0, 0, 0, 1), 1px 1px 10px rgba(0, 0, 0, 1);
    z-index: 1;
}

.note-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.note-tab-content{
  display: block;
}
#note-list{
    position: absolute;
    max-height: 61.6%;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #000000 #f1f1f1;
    width: 100%;    
    cursor: pointer;
    z-index: 6;
}
@media (min-height:800px){
    #note-list{
        max-height: 67%;
    }
}

.note-name {
    font-family: kanit, sans-serif;
    padding: 1px;
    padding-right: 5px;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    margin-left: 25px;    
}
#trash{
    font-family: kanit, sans-serif;
    font-size: 30px;
    font-weight: 500;
    margin-left: -4px; 
    position: absolute;
    top: -4px;
    text-decoration: none;
    color: inherit;
}
.note-date {
    font-family: kanit, sans-serif;
    padding: 1px;
    padding-left: 10px; 
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    margin-right: 0px;
    position: absolute;
    right: 0;
    top: -8px;
    
}


a:hover #trash{
    color: rgb(255, 0, 0);
}
.note-tab-buttons{
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
}
#newnote-side{
    font-size: 30px;
    color: white;
    padding: 5px;
    background-color: rgb(0, 47, 255, 0.5);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border: #000000 1px solid;
}
#sharenote{
    font-size: 30px;
    color: white;
    padding: 5px;
    background-color: rgb(0, 47, 255, 0.5);
    border: #000000 1px solid;
}
#reloadnotes{
    font-size: 30px;
    color: white;
    padding: 5px;
    background-color: rgb(0, 47, 255, 0.5);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border: #000000 1px solid;
}

#newnote-side:hover .bi-plus-circle, #sharenote:hover .bi-share, #settings-button:hover .bi-gear, #settings-button2:hover .bi-gear, #logout-button:hover .bi-x-square, #reloadnotes:hover .bi-arrow-repeat { 
    display: none;
}
#newnote-side .bi-plus-circle-fill,#sharenote .bi-share-fill ,#settings-button .bi-gear-fill, #settings-button2 .bi-gear-fill, #logout-button .bi-x-square-fill,#reloadnotes .bi-arrow-clockwise {
    display: none;
}
#newnote-side:hover .bi-plus-circle-fill ,#sharenote:hover .bi-share-fill ,#settings-button:hover .bi-gear-fill, #settings-button2:hover .bi-gear-fill, #logout-button:hover .bi-x-square-fill, #reloadnotes:hover .bi-arrow-clockwise { 
    display: inline;
}
#login-button {
    font-size: 50px;
    color: white;
    padding: 25px 50px 0px 50px;
    background: linear-gradient(
        to right,
        rgb(0, 47, 255, 0.5),
        rgb(0, 220, 254),
        rgb(0, 47, 255, 0.5)
    );
    background-size: 200% 100%;
    border-radius: 10px;
    border: #000000 1px solid;
    animation: gradientFlow 2s ease infinite;
    box-shadow: black 1px 1px 10px;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

#bar-login {
    background: linear-gradient(
        to left,
        #ffffff 0%,
        #008cff 50%,
        #ffffff 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textFlow 2s linear infinite;
    transition: background-color 0.4s ease;
    /* Add this to force color rendering */
    -webkit-text-fill-color: transparent;
}

#bar-login:hover {
    background-clip: border-box;
    /* Make color more explicit */
    color: #ffffff;
    /* Add this to override the transparent fill */
    -webkit-text-fill-color: #ffffff;
    background: rgba(0, 47, 255, 0.7);
    animation: none;
    transition: background-color 0.4s ease;
}

@keyframes textFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

#login-button p{
    font-family: kanit, sans-serif;
    font-size: 30px;
    font-weight: 700;
    transform: translate(-20%,-75%);
    position: absolute;
}
#newnote-main:hover, #logout:hover, #login-button:hover{
    transition: background-color 0.1s ease-in-out;
    background-color: rgb(0, 47, 255, 0.7);
}

#logout-button{
    font-size: 50px;
    color: white;
    padding: 25px 50px 0px 50px;
    background-color: rgb(0,134,255);
    border-radius: 10px;
    border: #000000 1px solid;
    position: relative;
    margin-top: 10px;
}
#logout-button p{
    font-family: kanit, sans-serif;
    font-size: 30px;
    font-weight: 700;
    transform: translate(-30%,-75%);
    position: absolute;

}

/* Note side panel END */ 
/* Settings popout */

.settings-block {
    overflow: hidden;
    justify-content: right;
    /* margin-top: 50px; */
    background-color: rgb(0, 220, 254);  
    height: 85%;
    position: fixed;
    right: 0;
    /* top: 3%; */
    border-left: rgb(0, 47, 255) 2px solid;
    border-bottom: rgb(0, 47, 255) 2px solid;   
    width: 300px;
    max-width: 300px;
    display: block;
    transition: transform 1s ease;
    transform: translateX(0%);
    z-index: 8; /* fixed the settings popout not showing on top of the spinner */
    padding-top: 55px;
}
.settings-block.show{
    display: block;
    transform: translateX(0%);
    left: 0;
    border-right: rgb(0, 47, 255) 2px solid;;
    /* margin-top: -80px; */
    
} 

@media (max-width:1180px){
     .settings-block{
        width: 25%;
    }
}
@media(max-width:750px){
    .settings-block{
        width: 550vw;
        max-width: 90%;
        display: none;
        transform: translateX(-115%);
        height: 100%;
        /* margin-top: -80px; */
    }
}

@media (max-width:400px){
    .settings-block{
        padding-top: 97px;
    }
}

.settings-block2 {
    justify-content: right;
    margin-top: 141px;
    background-color: #00dcfe;  
    height: 80%;
    position: absolute;
    right: 0;
    top: 70px;
    border-left: rgb(0, 47, 255) 2px solid;
    border-right: rgb(0, 47, 255) 2px solid;
    width: 300px;
    max-width: 300px;
    display: block;
    transition: transform 1s ease;
    transform: translateY(80%);
    z-index: 8; /* fixed the settings popout not showing on top of the spinner */
}
.settings-block2.show{
    display: block;
    transform: translateY(4%);
    right:  0;
    border-right: rgb(0, 47, 255) 2px solid;;
    
} 

@media (max-width:1180px){
     .settings-block2{
        width: 25%;
    }
}
@media(max-width:750px){
    .settings-block2.show {
        width: 550vw;
        max-width: 90%;
        display: none;
        transform: translateX(115%);
    }
}




.settings-button {
    font-size: 30px;
    color: white;
    padding: 5px;
    background-color: rgb(0, 47, 255, 0.5);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border: #000000 1px solid;
    position: absolute;
    right: 0;
    display: none;
    transition: transform 1s ease;
    transform: translateX(0%);
    z-index: 12; 
}
.settings-button.show{
    transform: translateX(-710%);

}
@media(max-width:750px){
    .settings-button{   
     display: block;
    }
}
@media(max-width:750px){
    .settings-button.show{   
    z-index: 12;
    /* right: -20; */
    transform: translateX(100%);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    }
}
@media(max-width:495px){
    .settings-button.show{   
        top: 180px;
    }
}

.settings-pop h1{
   padding: 10px;
}
.user {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    color: white;
    font-family: kanit, sans-serif;
    font-size: 30px;
    font-weight: 700;
    /* font-style: oblique; */
    text-align: center;
    background-color: #323232;
    margin-top: 10px;
    border-bottom:rgb(0, 47, 255) 5px solid; 
    border-top:rgb(0, 47, 255) 5px solid; 
}
.content {
    /* display: flex; */
    justify-content: center;
    color: white;
    text-align: center;
    background-color: #797979;
    padding: 10px;
    /* margin-top: 10px; */
    border-bottom:rgb(0, 47, 255) 5px solid; 
    /*  border-top:rgb(0, 47, 255) 5px solid;  */
}
.settings-content p{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.settings-content button{
    padding: 10px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    background-color: #fbfbfb;
    border: 1px solid #000000;
    transition: transform 0.3s ease;
}
.settings-content button:hover{
    background-color: #f1f1f1;
    transform: scale(1.01);
    transition: background-color 0.1s ease-in-out;
}
.center{
    display: flex;
    justify-content: center;
}
a {
    text-decoration: none;
}

/* Settings popout END*/


/* confirm delete note */
#delete-popup-box{
    display: none; /* disabled for now */
    padding: 0px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; 
    right: 0; 
    bottom: 0; 
    left: 0; 
    background-color: rgba(0, 0, 0, 0.9);
    width: 100%;
    height: 100%;
    z-index: 9;
}
#popup-delete{
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-60%, -50%); 
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
    background-color: #f1f1f1;
    border: #fff 15px solid;
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto; 
}
@media (max-width: 750px) {
    .popup-login, #popup-delete{
        width: 90%; 
        padding: 10px; 
        font-size: 0.8em; 
        transform: translate(-50%, -50%);
    }
}
#popup-delete p{
    font-family: kanit, sans-serif;
    font-size: 30px;
    display: flex;
    font-style: normal;
    text-align: center;
    padding: 5px;
    background-color: rgba(255, 0, 0, 0.397);
}
#popup-delete h3 {
    font-family: kanit, sans-serif;
    font-size: 40px;
    font-style: normal;
    text-align: center;
}
#popup-delete button{
    padding: 10px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    margin: 1px;
    background-color: #fbfbfb;
    border: 1px solid #000000;
    transition: transform 0.3s ease;
}
#popup-delete button:hover{
    background-color: #f1f1f1;
    transform: scale(1.05);
    transition: background-color 0.1s ease-in-out;
}
.bi-exclamation-triangle{
    font-size: 100px;
    color: red;
}
.toast-container{
    bottom: 10px;
    right:  10px;
    z-index: 100;
    padding: 10px;
}
@media (max-width: 750px) {
    .toast-container{
        top: 100px;
        right:  0px;
        padding: 1px;
    }
}
.toast-header{
    display: flex;
    justify-content: space-between;
    background-color: #f1f1f1;
    border-radius: 10px;
    padding: 10px;
    color: black;
}
.text-body-secondary{
    font-size: 100%;
}

.change-popup{
    display: none; /* disabled for now */
    padding: 0px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; 
    right: 0; 
    bottom: 0; 
    left: 0; 
    background-color: rgba(0, 0, 0, 0.9);
    width: 100%;
    height: 100%;
    z-index: 9;
}

#change-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.popup-content{
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-60%, -50%); 
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
    background-color: #f1f1f1;
    border: #fff 15px solid;
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto; 
}

@media (max-width: 750px) {
    .popup-content{
        width: 90%; 
        padding: 10px; 
        font-size: 0.8em; 
        transform: translate(-50%, -50%);
    }
}
.popup-content h3{
    font-family: kanit, sans-serif;
    font-size: 30px;
    display: flex;
    font-style: normal;
    text-align: center;
    padding: 5px;
    /* background-color: rgba(255, 0, 0, 0.397); */
}

.popup-content button{
    padding: 10px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    margin: 2px;
    background-color: #fbfbfb;
    border: 1px solid #000000;
    transition: transform 0.3s ease;
}
.popup-content button:hover{
    background-color: #f1f1f1;
    transform: scale(1.05);
    transition: background-color 0.1s ease-in-out;
}

.popup-content input{
    padding: 10px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    margin: 1px;
    background-color: #fbfbfb;
    border: 1px solid #000000;
}
.popup-content p{
    font-family: kanit, sans-serif;
    font-size: 20px;
    display: flex;
    font-style: normal;
    text-align: center;
    padding: 5px;
}

.password-container {
    position: relative;
    display: inline-block;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
#owner{
    font-family: kanit, sans-serif;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
}

/* server loading spinner */

#loading-popup{
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    position: fixed; /* Cover the entire viewport */
    top: 0; 
    right: 0; 
    bottom: 0; 
    left: 0;

    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none; /* Block pointer events */
}

.loading-content{
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    /* background: #ff0000; */
    border-radius: 10px;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
    background-color: #f1f1f1;
    border: #fff 15px solid;
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; 
    pointer-events: auto;
}
@media (max-width: 650px) {
    .loading-content{
        width: 90%; 
        padding: 10px; 
        font-size: 0.8em; 
        transform: translate(-50%, -50%);
    }
}


#spinner2 {
    animation: rotate 2s linear infinite;
    z-index: 4;
    position: relative; /* Change to relative for proper centering within flexbox */
    display: block;
    width: 100px; 
    height: 100px; 
    stroke: #ffffff;
    top: 2%; 
    width: 200px;
    height: 200px;
}
#spinner2 .path {
      stroke: hsl(212, 100%, 50%);
      stroke-linecap: round;
      animation: dash 1.5s ease-in-out infinite;
  }
  #spinner2 .outline {
    stroke: rgb(0, 0, 0);
    stroke-width: 4; 
  }

/* spinner */
#spinner {
    animation: rotate 2s linear infinite;
    z-index: 4;
    position: absolute;
    display: block;
    top: 30%;
    margin: 15% 50% 0% 40%;
    width: 50px;
    height: 50px;
    stroke: #ffffff;
    }
    .path {
      stroke: hsl(210, 70, 75);
      stroke-linecap: round;
      animation: dash 1.5s ease-in-out infinite;
  }
  .outline {
    stroke: rgb(0, 0, 0);
    stroke-width: 4; 
}

  
  @keyframes rotate {
    100% {
      transform: rotate(360deg);
    }
  }
  
  @keyframes dash {
    0% {
      stroke-dasharray: 1, 150;
      stroke-dashoffset: 0;
    }
    50% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -35;
    }
    100% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -124;
    }
  }


/* END server loading spinner */

.fadee {
    position: absolute;
    top: 0;
    width: 100%;
    height: 200px;
    z-index: -1;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(0, 162, 232) 79%);
  }
  
  .fadee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgb(0, 89, 255) 79%);
    opacity: 0;
    animation: fadeOpacity 8s ease-in-out infinite;
  }
  
  @keyframes fadeOpacity {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
  }

