@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,200;0,400;0,800;1,200;1,400;1,800&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Product+Sans&family=Google+Sans+Display:ital@0;1&family=Google+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=Google+Sans+Text:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=Material+Symbols+Outlined&family=Space+Mono&display=swap');

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v154/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOej.woff2) format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;

}

body {
    font-family: 'Noto Sans', sans-serif;

    margin: 0;
}

p {
    margin: 0;
    margin-bottom: 0.5rem;
    padding: 0;
    font-size: 0.8rem;
}

h1,
h2,
h3,
ol,
ul {
    margin: 0;
}

h1 {
    margin-bottom: 0.5rem;
}

a {
    color: #3b82f6;
}

input,
textarea,
select {
    border: 1px solid;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    font-family: noto sans, sans-serif;
    font-size: 1rem;
}

button:focus {
    outline: none;
}

.form {
    display: none;
    opacity: 0;
    flex-direction: column;
    max-width: 80%;
    width: 32rem;
    gap: 0.5rem;
    flex-grow: 1;
    justify-content: center;
}

.overlay {
    flex-direction: column;
    display: none;
    position: fixed;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    backdrop-filter: blur(2rem);
    z-index: 2;
    justify-content: flex-start;
    align-items: center;
}

#whats-new{
    display: none;
    flex-direction: column;
    max-width: 80%;
    width: 32rem;
    gap: 0.5rem;
    flex-grow: 1;
    justify-content: center;
}

.backButton {
    position: absolute;
    top: 1rem;
    left: 1rem;
    border: none;
    background-color: transparent;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.2s;

}

#btn-hide-sidebar {
    display: none;
}

.message-container {
    display: flex;
    flex-direction: column-reverse;
    overflow-y: auto;
    gap: 1rem;
    padding-bottom: 2rem;
    flex-grow: 1;
}

.message-box {
    display: flex;
    position: relative;
}

.message {

    padding: 1rem;
}

.message-model {
    border-radius: 1rem;
}

#messageInput {
    height: 2.5rem;
    box-sizing: border-box;
    text-wrap: wrap;
    resize: none;
    width: 100%;
    padding-right: 2rem;
}

#messageInput::-webkit-scrollbar {
    height: 1rem;
    width: 0.5rem;
}

.btn-textual {
    background: transparent !important;
    margin: 0;
    padding: 0;
    border: none;
    transition: all 0.2s;
    cursor: pointer;
    font-size: inherit;
}

#btn-send {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    font-size: 1.5rem;
}

@keyframes spin {
    0% {
        border-color: #85e0fb;
    }
    50% {
        border-color: #253a5c;
    }
    100% {
        border-color: #85e0fb;
    }
}

.badge{
    background-color: #253a5c;
    justify-self: end;
    border: 2px solid rgba(35, 108, 119, 0.508);
    color: #85e0fb;
    padding: 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: auto;
    transition: width ease-in-out 0.25s, gap ease-in-out 0.25s;
}

.badge-highlight{
    animation: spin 1s ease infinite;
}

.btn-array {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-array button {
    flex: 1;
}

.personality-prompt {
    display: none;
}

.prompt-field {
    resize: vertical;
    height: 7rem;
}

.container {
    box-sizing: border-box;
    display: flex;
    gap: 0.5rem;
    padding: 1rem;


    width: 100dvw;
    height: 100dvh;

}

.sidebar {
    position: sticky;
    top: 1rem;

    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    width: 25rem;
    border-radius: 1rem;
    scrollbar-width: thin;
    height: calc(100dvh - 4rem);
    z-index: 1;
}

.sidebar-section {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#personalitiesDiv {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

}

#sidebar-content {

    overflow-y: auto;
    padding: 0.5rem;
}

#btn-show-sidebar {
    display: none;
}

.header {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    font-size: 2rem;
    font-weight: 800;
    gap: 0.5rem;
    width: 100%;
}

.navbar {
    position: relative;
    display: flex;
    flex-direction: row;
    border-radius: 0.5rem;
    justify-content: space-evenly;
    margin-bottom: 1rem;
    z-index: 0;
}

.navbar-tab {
    width: 100%;
    padding: 0.5rem;
    text-align: center;

    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;

}



.navbar-tab-highlight {
    padding: 0;
    margin: 0;
    position: absolute;
    border-radius: 0.5rem;
    transition: all 0.2s;
    height: 100%;
    z-index: 1;
    /* glow */
    box-shadow: 0 0 1rem 0.05rem #29292a3f;
}

#gemini-pro-branding {
    font-family: Google Sans Display, sans-serif;
    color: #7c8a9c;
    font-size: 1rem;
    font-weight: 400;
    width: max-content;
}

#gemin-pro-logo {
    width: 2rem;
    height: 2rem;
}

.credits {
    margin-top: auto;
    display: flex;
    padding: 0rem 1rem 0 1rem;

    font-size: 0.75rem;
    color: #7c8a9c;

    justify-content: space-between;
    align-items: center;
}

button {
    border: none;
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

#mainContent {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    margin-left: auto;
    margin-right: auto;
    width: 32rem;
}

.card-personality {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    color: #e4e4e4;
    background-color: black;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 1rem;
    border-radius: 1rem;
    height: 10rem;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    text-shadow: 0 0 10px #000000, 0 0 5px #181818;
    transition: text-shadow 0.3s ease; /* Add transition for smooth effect */
    box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.1), 0 0 40px 0 rgba(255, 255, 255, 0.1), 0 0 80px 0 rgba(255, 255, 255, 0.1);
  }
  
  .card-personality:hover {
    text-shadow: 0 0 10px #1393fc, 0 0 20px #1393fc, 0 0 30px #1393fc, 0 0 40px #1393fc, 0 0 50px #1393fc, 0 0 60px #1393fc, 0 0 70px #1393fc; /* Adjust text-shadow on hover */
    background-color: rgba(255, 255, 255, 0.05); /* Adjust background color on hover */
    box-shadow: 0 0 20px 0 rgba(0, 195, 255, 0.795), 0 0 40px 0 rgba(0, 195, 255, 0.795), 0 0 80px 0 rgba(0, 195, 255, 0.795); /* Adjust box-shadow on hover */
  }
  


.edit:hover {
text-shadow: 0 0 10px #e4e4e4, 0 0 5px #dfdfdf; /* Adjust text-shadow on hover */
}

.card-personality * {
/* unselectable */
-webkit-user-select: none;
/* Safari */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* IE10+/Edge */
user-select: none;
/* Standard */
}

.card-personality input {
display: none;
}

.btn-edit-card {
    /* top right corner */
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #e4e4e4;
}

.btn-share-card {
    /* bottom right corner */
    position: absolute;
    top: 1rem;
    right: 2.5rem;
    font-size: 1rem;
    color: #e4e4e4;
}

.btn-delete-card {
    /* bottom right corner */
    position: absolute;
    top: 1rem;
    right: 4rem;
    font-size: 1rem;
    color: #e4e4e4;
}

#btn-hide-overlay {
    padding: 2rem;
}




@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
    }


    .container {
        padding: 0;

    }

    .message-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .sidebar {
        top: 0;
        height: calc(100dvh - 2rem);
        margin: 0;
        width: calc(100dvw - 2rem);
        position: fixed;
        border-radius: 0;
        display: none;
    }

    .navbar {
        position: relative;
    }


    #btn-hide-sidebar {
        display: block;
    }

    #mainContent {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    #mainContent .header {
        padding: 2rem;
    }

    #messageInput {
        border-radius: 0;
    }

    #btn-show-sidebar {
        display: block;
    }
}


/* Light theme styles */
@media (prefers-color-scheme: light) {
    :focus {
        outline: 1px solid #8f9eb3;
    }

    body {
        background-color: #f0f6ff;
        color: #0a0a0a;
    }

    a {
        color: #444ed6;
    }

    .sidebar {
        background-color: #d2e2f7;
    }

    .navbar {
        background-color: rgb(176 205 246);
    }

    .navbar-tab {
        color: #0a0a0a;
    }

    .navbar-tab-highlight {
        background-color: #87b0ed;
    }

    .btn-textual:hover {
        text-shadow: 0 0 10px #000000;
    }

    button {
        background-color: #83b5f7;

        color: #2b3d59;
    }

    button:hover {
        background-color: rgb(63, 191, 255);
    }


    input,
    textarea,
    select {
        background-color: #f0f6ff;
        outline: 1px solid #8f9eb3;
    }

    input::placeholder,
    textarea::placeholder {
        color: #7c8a9c;
    }

    .message-model {
        background-color: #d2e2f7;
    }
}

/* Dark theme styles */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }

    :focus {
        outline: 1px solid #73859e;
    }



    body {
        background-color: #151e24;
        color: #e4e4e4;
    }

    a {
        color: #92d9eb;
    }



    .sidebar {
        background-color: #1a2733;
    }

    .navbar {
        background-color: #00000047;
    }

    .navbar-tab {
        color: #e4e4e4;
    }

    .navbar-tab-highlight {
        background-color: #22486b;

        box-shadow: 0 0 1rem 0.05rem #29292aac;
    }

    button {
        background-color: #22486b;
        color: #c9d3ee;
    }

    button:hover {
        background-color: #31689c;
    }

    .btn-textual {
        color: #e4e4e4;
        text-shadow: 0 0 10px #000000, 0 0 5px #181818;
    }

    .btn-textual:hover {
        text-shadow: 0 0 10px #ffffff, 0 0 5px #dfdfdf;
    }

    .edit:hover {
        text-shadow: 0 0 10px #ffffff, 0 0 5px #dfdfdf;
        /* Change #00ff00 to the color you want */
    }

    input,
    textarea,
    select {
        background-color: #283542;

        color: #e4e4e4;
        border: none;
    }

    input::placeholder,
    textarea::placeholder {
        color: #849caf;
    }


    .message-model {
        background-color: #1a2733;
    }
}

#btn-reset-chat {
    background-color: #1a2733;
    color: #e4e4e4;
    right: 4rem;
    margin-right: 5px;
    transition: all 0.2s;
    cursor: pointer;
}

#btn-reset-chat:hover {
    background-color: #313131;
}
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* make sure it's on top */
}

.popup-content {
    background-color: #fff; /* white background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* box shadow */
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
}

.popup-content,
.popup-content h2,
.popup-content p {
    color: #333; /* Default text color */
}

.popup-content h2 {
    color: #007bff; /* Blue color for headings */
}

.popup-content p {
    color: #666; /* Gray color for paragraphs */
}

/* Style for buttons */
.btn-next,
.btn-close {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007bff; /* Blue button */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-close {
    background-color: #dc3545; /* Red button */
}

.notification-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px; /* Adjust the height as needed */
    background-color: #22486b; /* Change the background color to red */
    padding: 10px;
    box-shadow: 0px -1px 5px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-bar .message {
    flex-grow: 1;
    margin-right: 10px;
}

.notification-bar .actions button {
    margin-left: 10px;
}

.loader {
    width: 40px;
    height: 20px;
    --c:no-repeat radial-gradient(farthest-side,#000 93%,#0000);
    background:
      var(--c) 0    0,
      var(--c) 50%  0;
    background-size: 8px 8px;
    position: relative;
    clip-path: inset(-200% -100% 0 0);
    animation: l6-0 1.5s linear infinite;
  }
  .loader:before {
    content: "";
    position: absolute;
    width: 8px;
    height: 12px;
    background: #151e24;
    left: -16px;
    top: 0;
    animation: 
      l6-1 1.5s linear infinite,
      l6-2 0.5s cubic-bezier(0,200,.8,200) infinite;
  }
  .loader:after {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #000; 
    animation: l6-3 1.5s linear infinite;
  }
  @keyframes l6-0 {
    0%,30%  {background-position: 0  0   ,50% 0   }
    33%     {background-position: 0  100%,50% 0   }
    41%,63% {background-position: 0  0   ,50% 0   }
    66%     {background-position: 0  0   ,50% 100%}
    74%,100%{background-position: 0  0   ,50% 0   }
  }
  @keyframes l6-1 {
    90%  {transform:translateY(0)}
    95%  {transform:translateY(15px)}
    100% {transform:translateY(15px);left:calc(100% - 8px)}
  }
  @keyframes l6-2 {
    100% {top:-0.1px}
  }
  @keyframes l6-3 {
    0%,80%,100% {transform:translate(0)}
    90%         {transform:translate(26px)}
  }

  .loaderFetch {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  
/* Styles for the scrollbar */
::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1; /* Color of the track */
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #0057fa; /* Color of the handle */
    border-radius: 5px; /* Rounded corners */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555; /* Change color on hover */
}

/* Animation */
::-webkit-scrollbar-thumb {
    transition: background 0.3s; /* Transition for the background color */
}





