main:not([hydrated]),
[model] {
    visibility: hidden;
}

body {
    color: #222;
    background-color: rgba(0,0,0,0.1);
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.main {
    flex: 1;
    height: 100%;
}

main:has(.footer) > .main {
    background-color: white;
    padding-bottom: 50px;
}

.layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.layout-content {
    width: 100%;
    max-width: 700px;
    padding: 20px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
    background-color: white;
    width: 100%;
    height: 55px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    gap: 15px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.navbar-offset {
    height: 55px;
}

.navbar-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: inherit;
    text-decoration: none;
}

.navbar-btn {
    align-items: center;
    gap: 7px;
    background-color: transparent;
    border: 0;
    color: #0066E2;
    cursor: pointer;
}

.navbar-btn > .icon {
    font-size: 18px;
}

.navbar-btn > p {
    margin: 0;
    font-weight: 500;
}

.title,
.subtitle {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.title.flex,
.navbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subtitle {
    font-size: 20px;
}

.icon {
    font-size: 24px;
}

.title-icon {
    font-size: 42px;
    color: #555;
    display: inline-block;
    background-color: rgba(0,0,0,0.03);
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search {
    background-color: rgba(0,0,100,0.05);
    padding: 7px 15px 7px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search > .icon {
    color: #777;
    cursor: pointer;
}

.search > input {
    background-color: transparent;
    outline: none;
    border: 0;
    flex: 1;
}

.topics {
    gap: 10px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.topics > .topic {
    padding: 15px;
    border-radius: 7px;
    border: 2px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.topic > .icon {
    font-size: 34px;
    color: #555;
}

.topic > p {
    font-size: 17px;
    margin: 0;
}

.topic-links {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-links > .link {
    padding: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 7px;
    position: relative;
    background-color: rgba(0,0,100,0.05);
}

.link > a {
    color: inherit;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.link > a::before {
    content: " ";
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.article-topic {
    display: flex;
    align-items: center;
    gap: 3px;
}

.article-topic > button {
    text-decoration: none; 
    color: #0066E2;
    font-size: 14px;
    font-weight: bold;
    background-color: transparent;
    border: 0;
    outline: none;
}

.article-topic > .icon {
    color: #0066E2;
    font-size: 16px;
}

.description {
    color: #555;
    margin-top: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tags > .tag {
    background-color: rgba(0,0,100,0.1);
    border-radius: 7px;
    padding: 3px 10px 3px 10px;
    font-weight: bold;
    color: #555;
    text-decoration: none;
}

.popup {
    position: fixed;
    z-index: 30;
    top: 10px;
    right: 10px;
    width: 100%;
    max-width: 300px;
    height: 100%;
    max-height: 400px;
    border: 2px solid rgba(0,0,0,0.1);
    background-color: white;
    display: flex;
    flex-direction: column;
}

.popup-header {
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding: 10px 12px 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-header > p {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.popup-close {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: transparent;
    border: 0;
    color: #0066E2;
    cursor: pointer;
    font-weight: 500;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.05);
}

.popup-close > .icon {
    font-size: 18px;
}

.popup-bubbles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    overflow-y: scroll;
    height: 100%;
}

.bubble-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.bubble-container.from-customer {
    justify-content: flex-end;
}

.bubble {
    background-color: rgba(0,0,0,0.05);
    color: #222;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 10px;
    gap: 3px;
}

.bubble-container:not(.from-customer) > .bubble {
    background-color: #0083FF;
    color: white;
}

.bubble-date {
    margin: 0;
    color: inherit;
    opacity: 0.5;
}

.bubble-text {
    margin: 0;
    color: inherit;
}

.popup-post {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    width: 100%;
}

.popup-post > input {
    background-color: rgba(0,0,0,0.05);
    border: 0;
    border-radius: 50px;
    padding: 7px 12px 7px 12px;
    outline-color: #0083FF;
}

.popup-post > .icon,
.results > .icon-loader-2 {
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@keyframes spin {
    from { 
        transform: rotate(0deg); 
    }
    to { 
        transform: rotate(360deg); 
    }
}

.popup-post > .icon-loader-2,
.results > .icon-loader-2 {
    animation: spin 1s infinite linear; /* added linear so it spins evenly */
}

.footer {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.footer-heading {
    margin: 0;
    margin-top: 25px;
    font-weight: 500;
}

.footer-link {
    text-decoration: none;
    display: block;
    width: 100%;
    margin-top: 5px;
}

.results-container {
    position: absolute;
    width: 100%;
    left: 0;
    display: flex;
    justify-content: center;
    padding: 0 20px 0 20px;
    z-index: 10;
}

.results {
    background-color: white;
    border: 2px solid rgba(0,0,0,0.1);
    padding: 10px;
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
}

.result > .icon {
    background-color: rgba(0,0,0,0.05);
    border-radius: 50px;
    padding: 10px;
    color: black;
    font-size: 18px;
}

.result > div {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.result-title {
    color: black;
    font-weight: bold;
    margin: 0;
}

.result-subtitle {
    color: #777;
    margin: 0;
    font-size: 14px;
}