@import url('https://fonts.googleapis.com/css2?family=Quantico:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --theme-color: #7100ff;
    --text-color: #d9d8dc;
    --background-color: #151515;
    --link-hover-color: #8d70b1;
    --blockquote-background: #191919a8;
}

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

::-webkit-scrollbar-track {
    background: #202020 
}
::-webkit-scrollbar-thumb {
    background: var(--theme-color);
    border-radius: 6px; 
}


body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;  
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "Quantico", sans-serif;
    overflow-y: auto;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

section {
    display: flex;
    flex-direction: column;
    padding: 1em;
    position: relative;
}

section.left {
    align-items: flex-start;
    text-align: left;
    background-color: var(--blockquote-background);
}

section.center {
    align-items: center;
    text-align: center;
    
}

section.right {
    align-items: flex-end;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-family: "Quantico", sans-serif; 
}

a {
    color: var(--theme-color);
}

a:visited {
    color: var(--theme-color);
}

a:hover {
    color: var(--link-hover-color);
}

blockquote {
    border-left: none;
    background-color: var(--blockquote-background);
    color: var(--text-color);
    margin: 0;
    position: relative;
    width: 100%; 
    box-sizing: border-box; 
}

blockquote::after {
    content: "";
    display: block;
    height: 2px;
    background-color: var(--theme-color);
    position: absolute;
    bottom: 1px;
}

section.left blockquote::after {
    width: 100%;
    left: 0;
    transform: none;
}

section.center blockquote::after {
    width: 60%; 
    left: 50%;
    transform: translateX(-50%);
}

section.right blockquote::after {
    width: 100%;
    right: 0;
    transform: none;
}

hr {
    border: 1px solid var(--theme-color);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

::selection {
    background-color: var(--theme-color);
}

.symbol {
    color: var(--theme-color);
}
.comment {
    color: #888888;
}

.blog-posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.post {
    background-color: var(--blockquote-background);
    border-radius: 5px;
    position: relative;
    margin-bottom: 10px; 
    padding: 5px;         
}

.back-link {
    font-size: 13px;
    text-decoration: none;
    margin-left: auto; 
}

.more-content {
    display: none;
}

hr {
    border: 1px solid var(--theme-color);
    margin-top: 5px;
    margin-bottom: 5px;
    width: 100%;
}

#search {
    width: 100%; 
    padding: 8px; 
    font-size: 12px; 
    border: 1px solid var(--theme-color); 
    background-color: var(--background-color);
    color: var(--text-color); 
    border-radius: 5px; 
    margin-bottom: 20px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

#search:focus {
    outline: none; 
    border-color: var(--text-color);
    background-color: #222; 
}

#search::placeholder {
    color: var(--text-color); 
    opacity: 0.8;
}
