.default, :root {
    --text-color:#FFFFFF;
    --main-color-1: #B32624;
    --main-color-2: #B32624;
    --main-color-dim-1: #B32624cc;
    --main-color-dim-2: #B3262499;
    --main-color-dim-3: #B3262466;
    --main-transparent: rgba(0, 0, 0, 0);
    --secondary-color-1: #070707;
    --secondary-color-2: rgb(46, 46, 51);
    --tooltip-color-1: #070707;
    --tooltip-color-2: rgb(46, 46, 51);
    --paid-color: rgb(0, 255, 0);
    --backround-color: #000000;
    --navbar-backround: #000000;
    --navbar-line: #B32624;
    /*Card */
    --card-border: #0e0d0d;
    --card-color: #000000;
    --link-button: #B32624;
    --buy-button: #4ADE80;
    --card-background: rgba(0, 0, 0, 0.26);
    --color-negative: #E84848;
    --color-neutral: #FACC15;
    --color-positive: #4ADE80;
}

.purple {
    /* Main Themeing */
    --text-color:#FFFFFF;
    --main-color-1: #6716aa;
    --main-color-2: #6716aa;
    --main-color-dim-1: #6716aacc;
    --main-color-dim-2: #6716aa99;
    --main-color-dim-3: #6716aa66;
    --main-transparent: rgba(0, 0, 0, 0);
    --secondary-color-1: #070707;
    --secondary-color-2: rgb(46, 46, 51);
    --tooltip-color-1: #070707;
    --tooltip-color-2: rgb(46, 46, 51);
    --paid-color: rgb(0, 255, 0);
    --backround-color: #000000;
    --navbar-backround: #000000;
    --navbar-line: #6716aa;
    /*Card */
    --card-border: #0e0d0d;
    --card-color: #000000;
    --link-button: #6716aa;
    --buy-button: #4ADE80;
    --card-background: rgba(0, 0, 0, 0.26);
    /* Pros, Cons, Neutral Colors */
    --color-negative: #E84848;
    --color-neutral: #FACC15;
    --color-positive: #4ADE80;
}

.catppuccin {
    --text-color: #c6d0f5;
    --main-color-1: #ca9ee6;
    --main-color-2: #ca9ee6;
    --main-color-dim-1: #ca9ee6cc;
    --main-color-dim-2: #ca9ee699;
    --main-color-dim-3: #ca9ee666;
    --main-transparent: rgba(0, 0, 0, 0);
    --secondary-color-1: #232634;
    --secondary-color-2: #292c3c;
    --tooltip-color-1: #232634;
    --tooltip-color-2: #292c3c;
    --backround-color: #303446;
    --navbar-backround: #303446;
    --navbar-line: #ca9ee6;
    --link-button: #ca9ee6;

    --card-background: #414559;
    --card-border: #ca9ee6;
    --card-color: #414559;
}

html,
body {
    overflow-x: hidden;
    width: 100vw;
    background-color: var(--backround-color);
}

* {
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

/* Nav */
nav {
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 1rem;
    background-color: var(--navbar-backround);
    border-bottom: 2px solid var(--navbar-line);
}

#nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(100%, 1200px);
    height: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-container {
    display: flex;
    align-items: center;
}

#search-input {
    width: 300px;
    padding: 8px 35px 8px 15px;
    border: 2px solid var(--card-border);
    border-radius: 20px;
    background: var(--navbar-backround);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--main-color-1);
    box-shadow: 0 0 10px rgba(179, 38, 36, 0.3);
}

.search-icon {
    position: absolute;
    right: 12px;
    font-size: 14px;
    color: var(--navbar-line);
    pointer-events: none;
}

#brand {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    user-select: none;
    /* Prevent text selection */
}

#brand-highlight {
    color: var(--main-color-1);
}

#nav-items,
#nav-items ul {
    display: flex;
    gap: 1rem;
    list-style-type: none;
}

#menu-icon {
    display: none;
    border: none;
    background: transparent;
}

#menu-icon>svg {
    width: 24px;
    aspect-ratio: 1;
}

#menu-list>li>a {
    color: var(--text-color);
    position: relative;
    font-weight: bold;
    font-size: 0.875rem;
    text-decoration: none;
    user-select: none;
    /* Prevent text selection */
}

#menu-list>li>a::after,
#menu-list>li>a:hover::after {
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    content: "";
    background: var(--link-button);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#menu-list>li>a::after {
    transform: scaleX(0);
}

#menu-list>li>a:hover::after {
    transform: scaleX(1);
}

#menu-icon {
    border: none;
    outline: none;
    padding: none;
    display: none;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background-color: var(--navbar-backround);
    transition: 0.5s;
}

#menu-icon img {
    filter: invert(100%) sepia(0%) saturate(4%) hue-rotate(143deg) brightness(103%) contrast(102%);
}

.menu-blur {
    z-index: 3;
    overflow: hidden;
    list-style-type: none;
    display: none;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    width: 100%;
    padding: 4px;
    top: 58px;
    left: 0;
    gap: 0;
    background-color: var(--navbar-backround);
    border-bottom: 2px solid var(--navbar-line);
    transition: all 0.3s ease-out;
    opacity: 0;
    transform: translateY(-10px);
}

.menu-blur.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.menu-blur li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin: 2px;
    border-radius: 100px;
    user-select: none;
    /* Prevent text selection */
}

.menu-blur li a:hover {
    background-color: var(--navbar-backround);
}

@media only screen and (max-width: 888px) {
    .search-container {
        display: none;
    }
}

@media only screen and (max-width: 552px) {
    #menu-list {
        display: none !important;
    }

    #menu-icon {
        display: flex;
        font-size: 24px;
        color: var(--text-color);
    }

    #menu-icon.opened {
        content: url("../assets/x.svg");
    }

    .menu-blur.show {
        display: flex;
    }
}

/* Main */
#particle-container {
    z-index: 10;
    position: fixed;
    pointer-events: none;
}

.glow-red {
    color: var(--main-color-1);
    text-decoration: none;
    text-shadow: 0 0 5px var(--main-color-dim-1), 0 0 10px var(--main-color-dim-2), 0 0 15px var(--main-color-dim-3);
}

.glow-link {
    color: cyan;
    text-decoration: none;
    text-shadow: 0 0 5px rgba(0, 0, 255, 0.8), 0 0 10px rgba(0, 0, 255, 0.6), 0 0 15px rgba(0, 0, 255, 0.4);
}

.glow-link:hover {
    text-decoration: underline;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-top: calc(4rem - 20px);
}

#notification {
    width: min(100%, 1400px);
    /* Same width as cards */
    padding: 20px;
    margin: 5px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background-color: transparent;
    box-sizing: border-box;
    /* Ensure padding is included in the width */
    text-align: center;
    /* Centers inline text */
    backdrop-filter: blur(6.7px);
    -webkit-backdrop-filter: blur(6.7px);
}

#sfs {
    text-align: center;
    /* Centers inline text */
    display: flex;
    /* Enables flexbox */
    flex-direction: column;
    /* Stacks items vertically */
    align-items: center;
    /* Centers content horizontally */
    justify-content: center;
    /* Centers content vertically */
}

#notification>h2 {
    color: var(--navbar-background);
    margin-bottom: 1px;
    font-size: 1.125rem;
    text-shadow: 0 0 4px rgba(232, 72, 72, 0.8), 0 0 16px rgba(232, 72, 72, 0.6), 0 0 24px rgba(232, 72, 72, 0.4);
}

#cards-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
}

#cards-align {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    width: min(100%, 1500px);
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    width: clamp(450px, 100%, 450px);
    padding: 20px;
    border-radius: 12px;
    background-color: var(--card-background);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.7px);
    -webkit-backdrop-filter: blur(6.7px);
    /* Smooth transitions */
    transition: transform 0.1s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card-types {
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.type-holder {
    position: relative;
}

.card-type {
    width: 30px;
    aspect-ratio: 1;
    object-fit: contain;
}

.card-type+.tooltip {
    position: absolute;
    visibility: hidden;
    left: 50%;
    bottom: 125%;
    padding: 5px;
    transform: translateX(-50%);
    border-radius: 6px;
    text-align: center;
    background-color: var(--tooltip-color-1);
    border: 1px solid var(--tooltip-color-2);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: pre;
}

.card-type+.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid;
    border-color: var(--tooltip-color-2) transparent transparent transparent;
}

@media only screen and (max-width: 578px) {
    .type-holder:last-child>.card-type+.tooltip {
        left: unset;
        right: 0;
        transform: translateX(0)
    }

    .type-holder:last-child>.card-type+.tooltip::after {
        left: unset;
        right: 9px;
    }
}

.card-type:hover+.tooltip {
    visibility: visible;
    opacity: 1;
}

.card-title {
    margin-bottom: 15px;
    text-shadow: none;
    font-size: 22px;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--main-color-1);
    transition: width 0.3s ease;
}

.card:hover .card-title::after {
    width: 100%;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    margin-top: -20px;
    margin-left: 20px;
}

.card-content ul {
    padding-left: 20px;
}

.pros {
    color: var(--color-positive);
}

.pros .section-title {
    color: var(--color-positive);
}

.neutral {
    color: var(--color-neutral);
}

.neutral .section-title {
    color: var(--color-neutral);
}

.cons {
    color: var(--color-negative);
}

.cons .section-title {
    color: var(--color-negative);
}

/* Container for the buttons */
.card-footer .button-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 0;
    width: 100%;
}

/* Style for the last-edited image */
.card-footer .last-edited img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    /* Ensures the image fits nicely */
    border-radius: 0;
    /* Ensure the image is not rounded */
    opacity: 0.95;
    /* Apply 50% transparency */
}

.card-footer .card-button {
    flex-grow: 1;
    text-align: center;
    margin: 0 5px;
}

.card-status {
    display: flex;
    gap: 6px;
}

.card-status>p {
    font-size: 0.9rem;
    color: rgb(95, 102, 112);
}

/* Adjust the layout of the last-edited section */
.card-footer .last-edited {
    display: flex;
    /* Align elements horizontally */
    align-items: center;
    /* Vertically center the items */
    gap: 10px;
    /* Adds space between the user name and the icon */
    color: gray;
    /* Make the text gray */
    flex-direction: row;
    /* Ensure elements are aligned in a row */
}

/* Style for the last-edited image */
.card-footer .last-edited img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    /* Ensures the image fits nicely */
}

/* Make sure the last-edited text doesn't overlap with the menu icon */
.card-footer .card-status p {
    z-index: 1;
}

/* Optional: Style for the name and icon within last-edited */
.card-footer .last-edited p {
    margin: 0;
    /* Remove margin from the text */
    font-size: 0.9rem;
    /* Adjust font size */
}

.card-button {
    background-color: transparent;
    color: #333;
    /* Initial text color */
    border: 3px solid var(--main-color-2);
    border-radius: 25px;
    padding: 12px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    /* Transition for background and text color */
    width: 100%;
    max-width: none;
    text-align: center;
    box-sizing: border-box;
    margin-top: 10px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Hover effect for the button */
.card-button:hover {
    background-color: var(--main-color-2);
    /* Fill with the same current background color */
    color: var(--text-color);
    /* Make text white for readability */
    filter: brightness(1.4);
}

/* For the 'right' button */
.card-button.right:hover {
    background-color: #4ADE80;
    /* Fill with the same current background color */
    color: var(--text-color);
    /* Ensure text is readable */
}

/* For the 'left' button */
.card-button.left:hover {
    background-color: var(--link-button);
    /* Fill with the same current background color */
    color: var(--text-color);
    /* Ensure text is readable */
}

.card-button {
    color: var(--link-button);
    border: 2px solid var(--link-button);
}

/* Container for the buttons */
.card-footer .button-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    height: 46px;
}

/* Style for the last-edited image */
.card-footer .last-edited img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    /* Ensures the image fits nicely */
    border-radius: 0;
    /* Ensure the image is not rounded */
}

/* Left button specific styling */
.card-button.left {
    border-radius: 20px 0 0 20px;
    margin-right: 2.5px;
    /* Adds gap between the left and right buttons */
}

/* Right button specific styling */
.card-button.right {
    border-radius: 0 20px 20px 0;
    margin-left: 2.5px;
    /* Adds gap between the left and right buttons */
    color: var(--buy-button);
    border: 2px solid var(--buy-button);
}

/* When both buttons are present, remove inner radius to make the center straight */
.card-footer .button-wrapper a:first-child.card-button.right,
.card-footer .button-wrapper a:last-child.card-button.left {
    border-radius: 25px;
}

.rounded-btn {
    border-radius: 25px !important;
}

/* Last edited section styling */
.last-edited {
    margin-top: 10px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers the content horizontally */
    text-align: center;
    /* Centers the text */
    justify-content: center;
    /* Vertically aligns content to center */
}

/* Make the entire last-edited section text gray */
.card-footer .last-edited p,
.card-footer .last-edited span {
    color: gray;
    /* Apply gray to the entire text including 'Last edited by' and username */
}

/* Make the image 50% transparent */
.card-footer .last-edited img {
    opacity: 0.5;
    /* Apply 50% transparency */
    object-fit: cover;
    /* Ensures the image maintains its aspect ratio */
}

.unc-btn,
.unc-img {
    height: 100%;
}

.last-edited img {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    object-fit: cover;
    /* Ensures the image maintains aspect ratio */
}

/* Footer */
footer {
    background-color: transparent;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 2px solid var(--main-color-1);
    backdrop-filter: blur(6.7px);
}

a.footer-link {
    color: var(--main-color-1);
}

/* /Guide */
.blog-post {
    border: 1px solid #27272A;
    /* Changed border color to red */
    border-radius: 10px;
    /* Increased border-radius for more rounded corners */
    padding: 16px;
    margin: 16px 0;
    background-color: #050505;
    /* Changed background color to green */
}

.post-title {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: bold;
    /* Make title bold */
}

.post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
}

.post-content {
    font-size: 16px;
}

.post-content a {
    color: #EF4444;
    /* Link color */
    text-decoration: none;
    /* Remove underline */
}

.post-content a:hover {
    text-decoration: underline;
    /* Underline on hover */
}

.bold {
    font-weight: bold;
    /* Class to make text bold */
}

.error {
    color: red;
    font-size: 30px;
    text-align: center;
    margin: 20px 0;
}

.error-gif {
    display: block;
    margin: 20px auto;
    width: 200px;
    /* Adjust size as needed */
    height: auto;
}

/* Notification */
/* Popup notification styles for bottom-right corner */
#popup-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-color);
    /* Dark background */
    color: var(--text-color);
    /* White text color */
    padding: 15px 20px;
    /* Add padding to notification container */
    border-radius: 8px;
    border: 1px solid var(--card-border);
    /* Gray outline border */
    max-width: 300px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 9999;
}

#popup-notification.show {
    visibility: visible;
    opacity: 1;
}

#popup-notification h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-shadow: none;
    /* No glowing text */
}

#popup-notification p {
    font-size: 14px;
    margin: 5px 0;
    text-shadow: none;
    /* No glowing text */
}

#popup-notification .popup-links {
    margin-top: 10px;
}

#popup-notification .popup-link {
    color: yellow;
    /* Set yellow color for the links */
    text-decoration: none;
    /* Remove underline */
}

/* Updated button styles */
#popup-notification button {
    background-color: transparent;
    color: var(--main-color-1);
    /* Initial text color */
    border: 1px solid var(--main-color-2);
    border-radius: 10px;
    padding: 12px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    /* Transition for background and text color */
    width: 100%;
    max-width: none;
    text-align: center;
    box-sizing: border-box;
    margin-top: 10px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

#popup-notification button:hover {
    background-color: var(--main-color-2);
    /* Fill background on hover */
    color: var(--text-color);
    /* Change text color on hover */
}

#popup-notification .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    text-shadow: none;
    /* No glowing 'X' */
}

#popup-notification .close-btn:hover {
    color: #32CD32;
    /* Green color when hovered */
}

#popup-notification .popup-content {
    position: relative;
    /* To position the close button */
    text-align: center;
    /* Center align the content */
}

#popup-notification .popup-image {
    max-width: 100%;
    /* Ensure the image doesn't overflow the popup */
    height: auto;
    /* Maintain aspect ratio */
    margin: 10px 0;
    /* Add spacing around the image */
    border-radius: 5px;
    /* Optional: rounded corners */
}

@media screen and (max-width: 600px) {
    #popup-notification .popup-image {
        display: none;
        /* Hide the image on small screens */
    }
}

/* Misc */
* {
    scrollbar-width: thin;
    /* Thin scrollbar */
    scrollbar-color: var(--main-color-1) #070707;
    /* Thumb color and track color for Firefox */
}

/* Custom scrollbar styles for Webkit browsers (Chrome, Safari, etc.) */
::-webkit-scrollbar {
    width: 8px;
    /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background-color: #070707;
    /* Dark track background */
}

::-webkit-scrollbar-thumb {
    background-image: linear-gradient(to bottom, rgb(46, 46, 51), #070707);
    /* Gradient for the thumb */
    border-radius: 10px;
    /* Rounded corners for the thumb */
    border: 2px solid #070707;
    /* Border around the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-image: linear-gradient(to bottom, rgb(31, 31, 36), rgb(46, 46, 51));
    /* Hover effect with a different gradient */
}

.unselectable {
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.small-text {
    font-size: 0.7em;
    /* Adjust size as needed */
    vertical-align: middle;
    /* Align text properly */
    color: gray;
    /* Set the text color to gray */
}

/* Base styling for small-text-card */
.small-text-card {
    font-size: 0.75em;
    /* Adjust size as needed */
    font-weight: 600;
    /* Make the font thick like card-button */
    color: inherit;
    /* Allow it to inherit the color from its parent element */
    font-family: 'Montserrat', sans-serif;
    /* Same font-family as card-button */
}


/* Color classes for each context */
.pros-small-text-card {
    color: #00ff00;
    /* Green for pros */
}

.neutral-small-text-card {
    color: #ffffff;
    /* White for neutral */
}

.cons-small-text-card 
{
    color: #ff0000;
    /* Red for cons */
}

.theme-selector-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(10, 10, 10, 0.7);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    z-index: 90;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.theme-selector-container:hover {
    transform: translateY(-5px);
    opacity: 1;
}

.theme-selector-text {
    font-weight: bold;
    font-size: 14px;
}

#theme-selector {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#theme-selector:hover {
    border-color: var(--main-color-1);
}

#theme-selector option {
    background-color: #111;
    color: var(--text-color);
}

.index-errorload {
    text-align: center;
    font-size: 24px; /* Adjust the size as needed */
    font-weight: bold; /* Optional: Makes the text bolder */
}
