/* Global Styles for The Faction Nexus Roadmap */
body {
    font-family: 'Oxanium', sans-serif;
    color: var(--color-text);
    background-color: var(--color-background);
    scrollbar-color: var(--color-secondary) var(--darker-gray);
    scrollbar-width: thin;
    margin: 0;
}

a:link {
    color: #00ffbb;
}
a:visited {
    color: var(--color-accent);
}
a:active {
    color: royalblue;
}

a img {
    transform: translate(0, 4px);
}

h1 {
    margin: 5px 0;
}

h2 {
    font-size: 30px;
}

hr {
    border-color: var(--color-accent);
    border-style: ridge;
    opacity: 90%;
    margin: 40px 0 5px 0;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 0.25em 0;
    margin-top: 10px;
    font-size: 0.7em;
    background-color: rgba(8, 8, 8, 0.667);
    color: #888;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Background video container */
.video-container {
    position: fixed;
    top: -2.5%;
    left: -2.5%;
    width: 105%;
    height: 105%;
    object-fit: cover;
    z-index: -5;
    filter: blur(5px);
    background: url('images/background_image.png') no-repeat center center/cover;
    overflow: hidden; /* Ensures no overflow issues */
    user-input: none;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 105%;
    height: 105%;
    object-fit: cover;
    z-index: -2;
    filter: blur(5px);
}

/* Title styling */
.title {
    position: relative;
    text-align: center;
    font-size: 56px;
    font-weight: bold;
    text-shadow:
            0 0 10px rgba(0, 230, 255, 0.8),
            0 0 20px rgba(0, 230, 255, 0.6),
            0 0 30px rgba(0, 230, 255, 0.4);
}

.links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0.75rem 0;
    top: 20%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
}

.links a {
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 20px;
    margin: 0.125em 0.4em;
    top: 20%;
    background: var(--darker-gray);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    text-decoration: none;
    color: var(--color-primary);
    transition: 1s;
}

.links a:hover {
    scale: 1.0625;
    transition: 0.333s;
}

/* Container for centering content */
.container {
    position: relative;
    text-align: center;
    padding: 20px;
    font-size: 20px;
    max-width: 900px;
    margin: 2rem 2rem;
    top: 20%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    transition: height 1s ease;
}

.container p {
    font-size: 18px;
    line-height: 1.6;
    text-align: start;
    margin-bottom: 20px;
}

.item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    transition: transform 0.15s ease, box-shadow 0.1s ease, scale 0.1s ease, height 1s ease;
}

.item:hover {
    transform: translateY(-2.5px);
    scale: 1.02;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.item-title {
    width: fit-content;
    margin-left: 0.25vw;
    margin-bottom: 0;
    margin-top: 10px;
    text-align: start;
}

.description-wrapper {
    max-height: 155px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-in-out;

    /* Create a transparent fading effect */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0)); /* Shut, WebStorm. There is no error here according to chatGPT --> */
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0));
}

/* Remove fade when expanded */
.description-wrapper.expanded {
    -webkit-mask-image: none;
    mask-image: none;
}

.show-more {
    display: block;
    color: darkgray;
    font-size: medium;
    cursor: pointer;
    margin-top: 5px;
    text-align: start;
    user-select: none;
}


.item-description {
    font-size: 16px !important;
    margin-bottom: 10px !important;
}

.item-description + ul {
    text-align: start;
}

.item-description + ul li small {
    font-size: x-small;
}

.item-upper-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.item-type-text {
    transform: translate(0, -20px);
    color: lightgray;
}

/* Item type backgrounds */

.completed {
    background-color: var(--color-completed);
    border-color: var(--color-completed-border);
}

.in-progress {
    background-color: var(--color-in-progress);
    border-color: var(--color-in-progress-border);
}

.on-hold {
    background-color: var(--color-on-hold);
    border-color: var(--color-on-hold-border);
}

.next-priority {
    background-color: var(--color-next-priority);
    border-color: var(--color-next-priority-border);
}

.todo {
    background-color: var(--color-todo);
    border-color: var(--color-todo-border);
}

.live {
    background-color: var(--color-live);
    border-color: var(--color-live-border);
}

.shelved {
    background-color: var(--color-shelved);
    border-color: var(--color-shelved-border);
}

/* Priority Meter */

.priority-meter {
    display: flex;
    flex-direction: row;
    position: relative; /* For positioning the tooltip */
    width: fit-content;
    margin-bottom: 20px; /* Add space between priority meters */
}

[class^="priority-icon-"] {
    width: 15px;
    height: 15px;
    border-radius: 45%;
    margin-right: 10px;
    background-color: dimgray;
}

.priority-icon-5 {
    margin-right: 0;
}

/* Tooltip styling for individual meters */
.priority-meter:hover::after {
    content: attr(data-tooltip); /* Show the tooltip text */
    position: absolute;
    top: -30px; /* Position it above the meter */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-background);
    opacity: 0.9;
    color: white;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid var(--lighter-gray);
    font-size: 12px;
    white-space: nowrap;
    z-index: 1;
    width: max-content;
}

/* Entire scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

/* Scrollbar track */
::-webkit-scrollbar-track {
    background: var(--darker-gray);
}

/* Scrollbar thumb (draggable part) */
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 6px;
    border: 3px solid var(--darker-gray);
}

/* Hover effect on scrollbar thumb */
::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-300);
}

/* Active (clicked) effect on scrollbar thumb */
::-webkit-scrollbar-thumb:active {
    background: var(--color-secondary);
}

@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/Oxanium-VariableFont_wght.ttf');
}

@media (max-width: 768px) {
    .links {
        flex-direction: column;
    }

    .title {
        font-size: 52px;
    }

    .subtitle {
        font-size: 28px;
    }
}

@media (max-width: 680px) {
    .title {
        font-size: 36px;
    }

    .subtitle {
        font-size: 22px;
    }
}