#auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
}

#auth-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 24px;
    padding-left: 32px;
}

#auth-nav img {
    width: 40px;
    height: 40px;
}

#auth-nav h2 {
    font-size: 32px;
    font-weight: normal;
}

#auth-form-container {
    width: 100%;
    min-height: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#auth-form-container form {
    width: 95vw;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 37px 30px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#remember-me {
    padding-left: 5px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#remember-me input[type='checkbox'] {
    transform: scale(1.5);
}
#chats-list {
    height: 100%;
    color: var(--foreground);
    background-color: var(--foreground);
}

#chats-list, #chats-list-background-layer {
    display: flex;
    flex-direction: column;
    width: var(--list-width);
    background-color: var(--main-bg);
}

#chats-list-background-layer {
    background-color: var(--foreground);
    overflow: auto;
}

#list-header {
    background-color: var(--main-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    font-size: 29px;
    box-shadow: 0 1px 4px 0 #00000035;
    position: relative;
    z-index: 2;
}

#list-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

#list-header button, #list-header a {
    color: var(--foreground);
    background-color: transparent;
    width: 45px;
    height: 45px;
    padding: 2px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#list-header button:hover, #list-header a:hover {
    background-color: #FFFFFF18;
}

#list {
    max-height: 100%;
}

.chat-preview {
    text-decoration: none;
    border-radius: 0;
    position: relative;
}

.chat-preview > div {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px;
    background-color: var(--main-bg);
}

.chat-preview-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: calc(100% - 68px);
}

.chat-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
}

.chat-preview-header > :last-child {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-preview-header a {
    color: var(--foreground);
    display: flex;
    padding: 2px;
    background-color: transparent;
    transition: background-color 0.3s;
}

.chat-preview-header a:hover {
    background-color: #FFFFFF18;
}

.chat-preview-header svg {
    height: 16px;
}

.chat-preview .date {
    font-size: 14px;
}

.chat-preview.selected > div {
    background-color: transparent;
}

.chat-preview.selected .chat-preview-header span, .chat-preview.selected path  {
    color: var(--dark-text);
}

.chat-preview p {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-preview.selected p {
    color: #777876;
}

#fake-chat-preview {
    width: 100%;
    height: 30px;
    background-color: var(--main-bg);
}

.chat-preview p {
    font-size: 15px;
    color: #AFAFAF;
}

#chat-placeholder {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

#chat-placeholder h2, #chat-placeholder p {
    color: var(--dark-text);
}

#chat-placeholder a {
    color: var(--secondary-bg);
}


#new-chat-name {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#new-chat-name > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

#new-chat-name > div input {
    width: 100%;
}

#new-chat-name > div input[type='submit'] {
    width: auto;
}

#new-chat-name #error_explanation li {
    color: #f93d3d !important;
}

#members-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#members-list > div, #members-list label {
    display: flex;
    align-items: center;
    gap: 10px;
}

#members-list h3 {
    font-size: 25px;
    font-weight: normal;
}

#members-list label {
    font-size: 21px;
}

#messages-page {
    width: 100%;
    padding: 0;
    gap: 0;
}

#messages {
    width: 100%;
    height: 100%;
    padding: 40px 20px 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#page_handler { display: none; }

#scroll-link {
    visibility: hidden;
    padding-top: 50px;
}

.message-container {
    display: flex;
    width: 100%;
    gap: 5px;
}

.message-container:not(.top) .pfp {
    opacity: 0;
}

.message-container > div > .pfp {
    transform: translateY(-50%);
}

.message, .system-message {
    color: var(--foreground);
}

.system-message {
    width: max-content;
    padding: 5px 10px;
    margin: 5px auto;
    font-size: 16px;
    background-color: var(--secondary-bg);
    border-radius: 5px;
}

.system-message :first-child {
    font-weight: bold;
}

.message {
    background-color: var(--secondary-bg);
    padding: 7px 10px;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    max-width: calc((100vw - var(--list-width) - 40px) * 0.45);
}

.top .message-author {
    font-weight: bold;
    margin-bottom: 2px;
    display: block;
}

.message-author {
    display: none;
}

.message-container.bottom .message { border-bottom-left-radius: 7px; }

.pfp-filler {
    width: 40px;
}

.message-and-triangle {
    display: flex;
    align-items: flex-start;
}

.message-and-triangle .triangle {
    display: flex;
}

.triangle-filler, .message-and-triangle .triangle svg {
    width: 15px;
}

.message-and-triangle .triangle svg path, .message-and-triangle .triangle svg line {
    fill: var(--secondary-bg);
    stroke: var(--secondary-bg);
}

.msg-info {
    display: flex;
    align-items: center;
    gap: 3px;
}

.msg-info span {
    font-size: 13px;
    color: #C0DDC0;
    min-height: 16px;
    display: inline-block;
}

.message p {
    word-wrap: break-word;
}

.message-status svg {
    width: 20px;
}

.message-status svg path {
    stroke: var(--foreground);
    fill: none;
}

.message-status svg.read path {
    stroke: #65E538;
}

#new-message {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 17px;
    align-items: center;
}

#new-message button {
    padding: 0;
    margin: 0;
    height: 50px;
    width: 50px;
    background-color: transparent;
}

#new-message button:active, #new-message button:disabled {
    background-color: transparent !important;
}

#new-message svg {
    width: 100%;
    fill: var(--input-bg);
    stroke: var(--input-bg);
}

#new-message svg path {
    fill: var(--input-bg);
    stroke: var(--input-bg);
}

#edit-chat-name {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#members-list .member {
    font-size: 21px;
    display: flex;
    justify-content: space-between;
}

#members-list .member > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

#members-list .member a {
    background-color: transparent;
    width: 35px;
    height: 35px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#members-list .member a:hover {
    background-color: #FFFFFF18;
}

#members-list a {
    color: var(--secondary-bg);
}

#members-list .member .remove {
    color: #DD3030;
    display: flex;
}

#delete-chat {
    color: #DD3030;
}

.removed-chat {
    display: none;
}
#options-list {
    width: var(--list-width);
    background-color: var(--main-bg);
}

.list-background-layer {
    width: var(--list-width);
    background-color: var(--foreground);
}

#options-header {
    justify-content: space-between;
    font-size: 29px;
    position: relative;
    z-index: 2;
    box-shadow: 0 1px 4px 0 #00000035;
}

#options-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

#options-header a {
    color: var(--foreground);
    background-color: transparent;
    width: 45px;
    height: 45px;
    padding: 2px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#options-header a:hover {
    background-color: #FFFFFF18;
}

.option, #options-header, #fake-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 0;
    color: var(--foreground);
    background-color: var(--main-bg);
    text-decoration: none;
}

.option svg {
    height: 40px;
}

.option.selected {
    color: var(--dark-text);
    background-color: transparent;
}

#fake-option {
    height: 30px;
    border-top-right-radius: 14px;
}

#contact-number-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inline-submit {
    display: flex;
    gap: 10px;
}

form .inline-submit input[type='submit'] {
    width: auto;
}

#contact-number-container button {
    width: auto;
    color: var(--foreground);
}

#contacts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#contacts-list .contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 21px;
}

#contacts-list .contact > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

#contacts-list .contact a {
    background-color: transparent;
    width: 35px;
    height: 35px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#contacts-list .contact a:hover {
    background-color: #FFFFFF18;
}

#contacts-list .contact a.accept svg, #contacts-list .contact a.accept path { color: #329630 }
#contacts-list .contact a.reject svg, #contacts-list .contact a.reject path { color: #DD3030 }

#contacts-list h3 {
    font-size: 25px;
    font-weight: normal;
}

#upload-pfp {
    display: flex;
    flex-direction: column;
    position: relative;
    width: max-content;
    cursor: pointer;
}

#upload-image-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #A3B18ACC;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#upload-image-cover div {
    font-size: 16px;
}

#upload-image-cover svg {
    height: 40px;
}

.pfp:hover + #upload-image-cover {
    opacity: 1;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
    --main-bg: #344E41;
    --secondary-bg: #588157;
    --input-bg: #A3B18A;
    --foreground: #DAD7CD;
    --dark-text: #2E2F30;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    height: 100vh;
    color: var(--foreground);
    background-color: var(--main-bg);
}

h2 {
    font-size: 60px;
}

a {
    border-radius: 3px;
    color: var(--input-bg);
    pointer-events: all;
    position: relative;
    z-index: 2;
}

a:focus-visible {
    outline: 2px dashed var(--secondary-bg);
}

label {
    font-size: 25px;
}

input:not([type='checkbox']), button {
    background-color: var(--input-bg);
    border: none;
    border-radius: 9px;
    font-size: 23px;
    padding: 10px 13px;
    width: 100%;
}

input {
    color: #3F463E;
}

button, input[type='submit'] {
    color: var(--foreground);
    cursor: pointer;
    background-color: var(--secondary-bg);
    transition: background-color 0.3s, transform 0.3s;
}

input::placeholder {
    color: #6D805E;
}

input[type='submit']:hover, button:hover {
    background-color: #5E8A5D;
    transform: scale(1.025);
}

input:focus-visible, button:focus-visible {
    outline: 2px solid var(--secondary-bg);
}

input[type='submit']:active, button:active {
    background-color: #4C8C47;
    transform: scale(1.04);
}

input[type='submit']:focus-visible, button:focus-visible  {
    outline-color: var(--input-bg);
}

input[type='submit']:disabled, button:disabled {
    cursor: not-allowed !important;
    background-color: #4f644E !important;
    transform: scale(1) !important;
}

input[type='checkbox'] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #F1FDE8;
    padding: 11px;
    border-radius: 5px;
    display: inline-block;
    position: relative;
}

input[type='checkbox']:focus-visible, input[type='checkbox']:checked:focus-visible {
    outline: 2px dashed var(--secondary-bg);
}

input[type='checkbox']:checked {
    background-color: var(--input-bg);
    color: #F1FDE8;
}

input[type='checkbox']:checked:after {
    content: '\2714';
    font-size: 25px;
    position: absolute;
    top: -4px;
    left: 1px;
    color: #F1FDE8;
}

input[type='checkbox'].login {
    padding: 7px;
    border-radius: 3px;
}

input[type='checkbox'].login:checked:after {
    font-size: 17px;
    top: -3px;
    left: 0;
}

input[type='file'] {
    display: none;
}

#error_explanation li {
    list-style: none;
    color: #f93d3d !important;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.flash {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    font-size: 18px;
}

.flash * {
    color: var(--foreground) !important;
}

.notice {
    background-color: #446c4199;
    border-top: 2px solid #446c41;
    border-bottom: 2px solid #446c41;
}

.alert {
    background-color: #B7313AA5;
    border-top: 2px solid #B7313A;
    border-bottom: 2px solid #B7313A;
}

.flash button {
    width: auto;
    padding: 2px;
    border: none;
    background-color: transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.flash button:hover {
    background-color: #FFFFFF18;
}

.flash svg {
    height: 30px;
    width: 30px;
    display: block;
}

.pfp {
    font-size: 80%;
    aspect-ratio: 1 / 1;
    border-radius: 1000000000px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    color: var(--foreground);
}

.pfp img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.pfp.small      { height: 30px; }
.pfp.medium     { height: 40px; }
.pfp.big        { height: 50px; }
.pfp.massive    { height: 150px; }

.pfp.small      span { font-size: 12px; }
.pfp.medium     span { font-size: 18px; }
.pfp.big        span { font-size: 22px; }
.pfp.massive    span { font-size: 65px; }

.link-blanket {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.rounded-top, .rounded-top > div{
    border-top-right-radius: 14px !important;
}

.rounded-bottom, .rounded-bottom > div {
    border-bottom-right-radius: 14px !important;
}

#app-page {
    display: flex;
    width: 100%;
    height: 100%;
    color: var(--dark-text);
    background-color: var(--foreground);
    --list-width: 400px;
}

.page-content {
    display: flex;
    width: 100%;
    justify-content: center;
    position: relative;
    overflow-y: auto;
}

.page-content > div {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 80px 0;
    width: 500px;
}

.page-content form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.page-content a {
    color: var(--secondary-bg);
}

.page-content nav {
    font-size: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-with-icon {
    display: flex;
    align-items: center;
    gap: 5px;
}

.link-with-icon svg {
    height: 20px;
}

.dropdown-select {
    position: relative;
    --width: 160px;
}

.dropdown-select div {
    background-color: var(--input-bg);
    color: #3F463E;
    font-size: 19px;
    padding: 7px;
    width: var(--width);
    border-radius: 5px;
    cursor: pointer;
    transition: border-radius 0s linear 0.3s;
}

.dropdown-select div > span {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-select.open div {
    border-radius: 5px 5px 0 0;
    transition: border-radius 0s;
}

.dropdown-select ul {
    position: absolute;
    padding: 0;
    left: 0;
    height: 0;
    list-style: none;
    font-size: 19px;
    width: var(--width);
    overflow: hidden;
    border-radius: 0 0 5px 5px;
    transition: height 0.3s;
}

.dropdown-select svg {
    height: 20px;
    transition: transform 0.3s;
}

.dropdown-select.open svg {
    transform: rotate(180deg);
}

.dropdown-select li {
    color: #3F463E;
    background-color: #b0bd9a;
    width: 100%;
    padding: 5px;
    transition: background-color 0.2s;
}

.dropdown-select li:hover {
    cursor: pointer;
    background-color: #bac5a8;
}

a.destructive {
    color: #DD3030;
}

scrollbar {
  width: 16px;
}

scrollbar-track {
  background: transparent;
}

scrollbar-thumb {
  background-color: var(--main-bg);
  border: 4px var(--foreground) solid;
  border-radius: 8px;
}

scrollbar-thumb:hover {
  background-color: var(--secondary-bg);
}

::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-bg);
  border: 4px var(--foreground) solid;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-bg);
}
