:root{
    --title-font-size: clamp(30px, 5vw, 42px);
    --subtitle-font-size: 20px;
    --hashtags-font-size: 13px;
    --authors-font-size: 16px;
    --social-media-icon-size: 30px;

    --text-font-size: 20px;
    --block-caption-size: 16px;

    --block-title-font-size: 28px;
    --block-subtitle-font-size: 20px
}
#scrollProgressBar {
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 5px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color)); /* gradient color */
    width: 0;
    z-index: 9999;
}
main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ptserif), serif;
}
a.back-btn{
    position: absolute;
    top: 80px;
    left: 20px;
    text-decoration: none;
    font-size: 16px;
    color: var(--text-color-dark);
    transition: 0.3s all ease-in-out;
}
a.back-btn:hover{
    color: var(--secondary-color)
}



div.blog-content-container{
    display: flex;
    flex-direction: column;
    width: var(--blog-view-content-width);
    margin-top: 150px;
    color: var(--text-color-dark);
}
div.blog-meta{
    position: relative;
}
div.blog-header-content{
    position: relative;
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
    justify-content: space-between;
}
p.blog-read-time{
    color: dimgray;
    font-size: 13px;
}
i.bi-share-fill{
    margin-left: 10px;
}
p.share{
    cursor: pointer;
    transition: 0.2s all ease-in-out;
    font-size: 16px;
    color: var(--deep-rose);
    font-weight: bold;
}
div.share-window {
    position: absolute;
    background: linear-gradient(150deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.4);
    padding: 8px 12px;
    z-index: 9998;
    display: none;
    bottom: -55px;
    right: 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
div.share-window i{
    color: var(--text-color-light);
    font-size: 24px;
}
i.bi-clipboard-fill{
    cursor: pointer;
    margin-left: 10px;
}
i.bi-clipboard-check-fill{
    cursor: pointer;
    margin-left: 10px;
}
p.blog-title{
    font-size: var(--title-font-size);
    margin-bottom: 10px;
    font-weight: bold;
    font-family: var(--font-lobster), serif;
}
p.blog-subtitle{
    font-size: var(--subtitle-font-size);
    margin-bottom: 10px;
}
div.hashtags{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    overflow-x: scroll;
    margin-bottom: 30px;
}
div.hashtags {
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 24px;
}
div.hashtags::-webkit-scrollbar {
    display: none;
}
div.hashtags a{
    text-decoration: none;
    padding: 3px 10px;
    border: 1px dashed var(--primary-color);
    background-color: #a0519550;
    border-radius: 24px;
    font-size: var(--hashtags-font-size);
    color: var(--primary-color);
    white-space: nowrap;
    transition: 0.2s all ease-in-out;
}
div.hashtags a:hover{
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--text-color-light);
}
div.blog-authors{
    font-size: var(--authors-font-size);
    display: flex;
    flex-direction: row;
    gap: 5px;
    font-weight: normal;
    font-style: italic;
    margin-bottom: 5px;
}
p.blog-posted-date{
    font-size: var(--authors-font-size);
    font-weight: normal;
    font-style: italic;
    margin-bottom: 30px;
}
i.bi-person-circle{
    margin-right: 8px;
}
i.bi-calendar2-check-fill{
    margin-right: 12px;
}
img.thumbnail{
    margin-bottom: 10px;
    border-radius: 5px;
    aspect-ratio: 3 / 2;
    width: 100%;
}
div.social-medias{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 45px;
    left: -100px;
}

div.social-medias i{
    font-size: var(--social-media-icon-size);
    cursor: pointer;
}
div.social-medias i:nth-child(1){
    color: black;
}
div.social-medias i:nth-child(2){
    background: linear-gradient(45deg, #f58529, #feda77, #dd2a7b, #8134af, #515bd4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
div.social-medias i:nth-child(3){
    background: linear-gradient(90deg, #f42b50, black);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

div.blog-blocks{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
div.block{
    width: var(--blog-view-content-width);
    position: relative;
}

p.paragraph-title{
    font-size: var(--block-title-font-size);
    font-weight: bold;
}
p.paragraph-subtitle{
    font-size: var(--block-subtitle-font-size);
    margin-bottom: 5px;
    color: dimgray;
}
div.paragraph-content{
    font-size: var(--text-font-size);
    width: var(--blog-view-content-width);
    /*letter-spacing: 0.2px;*/
}

div.code pre code {
    background-color: var(--theme-color) !important;
    padding: 10px;
    border-radius: 4px;
}
div.code p{
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    top: -10px;
    right: -10px;
    color: var(--text-color-dark);
    padding: 2px 15px;
    border-radius: 3px;
    background-color: var(--pumpkin-orange);
}

div.image img{
    width: 100%;
    border-radius: 5px;
}
div.image p{
    font-size: var(--block-caption-size);
    color: dimgray;
}
div.video iframe{
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 5px;
    border: none;
}
div.video p{
    font-size: var(--block-caption-size);
    color: dimgray;
}

div.product{
    background-image: url("https://images.unsplash.com/photo-1677155875750-9eb42b39f4e5?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NHx8YjNkfGVufDB8fDJ8fHwy");
    background-size: cover;
    height: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px 20px;
    border-radius: 5px;
    gap: 15px;
}
div.product img{
    width: 24px;
}
div.product a{
    /*text-decoration: none;*/
    font-size: var(--text-font-size);
    color: var(--text-color-dark);
}

div.resource{
    display: flex;
    flex-direction: row;
}
div.resource i{
    color: var(--primary-color);
    margin-right: 10px;
}
div.resource a {
    color: var(--primary-color);
}

div.reference{
    display: flex;
    flex-direction: column;
}
div.reference a{
    color: var(--bright-blue)
}
div.reference p.reference-title{
    font-size: var(--block-title-font-size);
    font-weight: bold;
}

div.feedback{
    width: var(--blog-view-content-width);
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    border: 1px dashed var(--primary-color);
    background-color: #a0519550;
    border-radius: 8px;
    padding: 10px;
}
p.feedback-title{
    position: absolute;
    top: -20px;
    left: 0;
    font-family: var(--font-lobster), sans-serif;
    font-size: var(--block-title-font-size);
    font-weight: bold;
    color: var(--primary-color);
}
a.feedback-btn{
    text-decoration: none;
    color: var(--text-color-light);
    padding: 2px 5px;
    border-radius: 5px;
    /*border: 1px solid var(--primary-color);*/
    /*background-color: var(--primary-color);*/
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}
i.bi-chevron-compact-right{
    font-size: 14px;
}
p.feedback-subtitle{
    font-size: 16px;
}


div.recommendations{
    width: var(--blog-view-content-width);
    display: flex;
    flex-direction: column;
}
div.blog-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    width: var(--blog-view-content-width);
    gap: 15px;
    color: var(--text-color-dark);
}
p.rec-title{
    font-size: var(--title-font-size);
    font-family: var(--font-lobster), sans-serif;
    background: linear-gradient(45deg, var(--deep-rose), var(--dusty-magenta));
    font-weight: bold;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}
div.blog-preview{
    position: relative;
    cursor: pointer;
    max-width: 400px;
    min-width: 200px;
    padding: 2px;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.3);
    border: 2px dashed var(--bg-color);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    transition: 0.2s all ease-in-out;
    align-items: stretch;
    height: 100%;
}
div.blog-preview:hover{
    border: 2px dashed var(--secondary-color);
}
div.blog-preview img{
    aspect-ratio: 3 / 2;
    border-radius: 5px;
    width: 100%;
    object-fit: cover;
}
p.blog-preview-title{
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 2px;
}
p.blog-preview-subtitle{
    font-size: 14px;
    color: var(--dim-gray)
}
p.blog-preview-posted-date{
    position: absolute;
    bottom: 5px;
    left: 5px;
    font-size: 12px;
    color: dimgrey;
    font-weight: bold;
}
i.bi-eye-fill{
    margin-right: 4px;
}
div.blog-preview-hashtags{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
}
p.hashtag{
    background-color: #22222200;
    border: 1px solid #22222200;
    border-radius: 5px;
    color: var(--secondary-color);
    font-size: 12px;
    font-style: italic;
    font-weight: bold;
}

div.menu{
    opacity: 0;
    cursor: pointer;
    position: fixed;
    left: 0;
    top: 100px;
    width: 60px;
    height: 50px;
    background-color: var(--dark-color);
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);
    clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
    transition: all 0.2s ease-in-out;
    z-index: 9998;
}
div.menu:hover{
    left:0;
    width: 250px;
    border-radius: 0 12px 12px 0;
    clip-path: none;
    height: auto;
    padding: 4px;
}
div.menu:hover i{
    display: none;
}
div.menu:hover div.menu-list{
    display: flex;
}
div.menu-list{
    display: none;
    justify-content: space-around;
    align-items: start;
    flex-direction: column;
    font-size: 14px;
    padding: 20px;
    border-radius: 5px;
    max-height: 1000px;
}
div.menu-list a{
    font-family: var(--font-roboto), sans-serif;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 4px;
    width: 200px;
    color: var(--gray);
}
div.menu-list a:hover{
    background-color: rgb(255, 255, 255, 0.1);
    color: var(--text-color-light);
}
div.menu i{
    color: var(--secondary-color);
    font-size: 28px;
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -40%);
}
@media (max-width: 1050px) {
    div.social-medias{
        position: relative;
        flex-direction: row;
        top: 0;
        left: 0;
        gap: 15px;
    }
}
span.loader {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    border-top: 3px solid var(--secondary-color);
    border-right: 3px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-left: 15px;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


div.text-selection-options{
    position: fixed;
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: var(--dark-color);
    border: 2px solid var(--primary-color);
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}
div.text-selection-options div{
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 4px;
    border: none;
}
div.text-selection-options div:hover{
   background-color: rgb(255, 255, 255, 0.1);
}
div.text-selection-options div:hover p{
   color: var(--secondary-color);
}
div.text-selection-options div:hover i{
    color: var(--secondary-color);
}
div.text-selection-options div i{
    color: var(--primary-color);
    font-size: 16px;
}
div.text-selection-options div p{
    color: var(--primary-color);
    font-size: 12px;
}
p.beta-indicator{
    position: absolute;
    top: -10px;
    right: -15px;
    padding: 2px 5px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-size: 12px
}


div.ai-content-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(200px, 90vw, 600px);
    height: 420px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: 10px 10px 45px 10px;
    z-index: 9997;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.3);
}
div.ai-content{
    position: relative;
    margin-top: 5px;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    overflow-y: scroll;
    scrollbar-width: none;
    display: flex;
    justify-content: center;
    padding: 10px 2px 2px 2px;
}
p.ai-response{
    color: var(--text-color-dark);
    font-family: var(--font-ptserif), sans-serif;
    font-size: 16px;
}
span.ai-loader {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 3px solid #222222;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
p.llama-license{
    margin-top: 6px;
    font-size: 10px;
    color: var(--gray);
    padding: 2px;
}
div.ai-content-display button{
    position: absolute;
    bottom: 4px;
    right: 4px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    background-color: #a05195;
    color: var(--text-color-light);
    border: 1px solid #a05195;
}








