/* Define your variables inside the :root pseudo-class */
:root {
    /* Color scheme */
    --bg-color-primary: #1d1d1d;
    --color-bg-secondary: #2a3036;
    /* --bg-color-secondary: #242424; */
    --bg-color-tertiary: #444d57;
    --bg-color-tertiary-transparent: rgba(44, 44, 44, 0.5);
    --bg-color-button: #404040;
    --bg-color-button-hover: #535353;
    --bg-color-skilltree: #290b29;
    --text-color-primary: #f4f4f4;
    --text-color-faded: #d7d7d7;
    --skill-color-inactive: #4b4b4b;
    --line-color: rgb(255, 192, 0);
    --search-highlight: rgba(255, 192, 0, 0.9);
    --line-color-inactive: #4b4b4b;
    --color-text-accent: #65c0e5;


    /* Font sizes */
    /* --base-font-size: 16px;
    --heading-font-size: 2rem;
    --paragraph-font-size: 1rem; */

    /* Spacing */
    /* --base-spacing: 8px; */
}

* {
    /* margin: 0;
    padding: 0; */
    box-sizing: border-box;
}

/* Remove the default focus ring for some elements */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--bg-color-primary);
    color: var(--text-color-primary);
}

.min-content {
    flex-grow: 0; /* Prevent the last two items from growing */
    flex-shrink: 0; /* Prevent the last two items from shrinking below their content size */
    flex-basis: auto; /* Set the initial size of the item based on its content */
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    /* overflow: hidden; */
}

/* .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5vh;
    position: sticky;
    top: 0;
    background-color: var(--bg-color-secondary);
    color: var(--text-color-primary);
    z-index: 1000;
    padding: 0 1.5em 0 1.5em;
} */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg-secondary);
    height: 5em;
    padding-left: 5em;
    padding-right: 5em;
    position: sticky;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1em;
}

.header-left img {
    height: 3em;
    width: 3em;
}

.header h1 {
    font-size: 1.5em;
}

.header h1 a {
    text-decoration: none;
    color: var(--text-color-primary);
}

.header-sub-title {
    font-size: 0.75em;
    opacity: 0.65;
    margin-left: 0.5em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5em;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10001;
}

nav {
    display: flex;
    gap: 2em;
    align-items: center;
    height: 100%;
    margin: 0;
    /* margin-right: 3em; */
}

.nav-links {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-left: 2em;
    gap: 2em;
    font-size: 1em;
    align-items: center;
    height: 100%;
    /* justify-content: center; */
}

.nav-link {
    text-decoration: none;
    color: var(--text-color-primary);
}

.nav-link:hover {
    color: var(--color-text-accent);
}

.search-container form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-container input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--bg-color-tertiary);
    border-radius: 4px 0 0 4px; /* Rounded corners on the left side */
    background-color: var(--bg-color-tertiary);
    color: var(--text-color-primary);
}

.search-container button {
    padding: 10px;
    background: #ddd;
    border: none;
    border-radius: 0 4px 4px 0; /* Rounded corners on the right side */
    cursor: pointer;
}

.search-container button:hover {
    background: #ccc;
}

.fas.fa-search {
    color: #333;
}

.contact-info {
    font-size: 0.75em;
    opacity: 0.65;
    text-align: right;
}

.search-highlight {
    stroke: var(--line-color);
    stroke-width: 2px;
    filter: drop-shadow(0 0 5px var(--search-highlight));
}

@media screen and (max-width: 1165px) {
    .header-left > h1 > a:nth-child(2) {
        display: none;
    }
}

@media (min-width: 801px) {
    /* .header-right nav {
        display: flex;
    } */

    /* .header-left h1 {
        color: red;
    } */
}

@media screen and (max-width: 800px) {
    .header {
        padding: 0;
        padding: 0 1.25em 0 1.25em;
    }

    .hamburger-menu {
        display: block;
    }

    .header-right nav {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        background-color: var(--bg-color-tertiary);
        width: 15em;
        height: 100vh;
        z-index: 10000;
        margin: 0;
        padding: 6em 1.5em 1.5em 0;
    }
    .hamburger-menu {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 1em;
        height: auto;
        margin: 0;
        align-items: end;
        font-size: 1.25em;
    }
/* 
    .contact-info {
        position: absolute;
        bottom: 0;
        right: 1.5em;
        text-align: right;
        font-size: 1em;
        z-index: 10001;
    } */
}

@media screen and (max-width: 668px) {
    .header-left {
        gap: 0.5em;
        align-items: center;
    }

    .header-left img {
        width: 2.5em;
        padding-top: 0.35em;
    }
    
    .header-left h1 {
        font-size: 1em;
    }

    /* .header-left > h1 > a:nth-child(2) {
        display: none;
    } */

    .header-sub-title {
        font-size: 0.85em;
        opacity: 0.85;
    }

    /* .header-right nav {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        background-color: var(--color-bg-secondary);
        width: 60vw;
        height: 100vh;
        z-index: 10000;
        margin: 0;
        padding: 6em 1.5em 1.5em 0;
    }
    .hamburger-menu {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        gap: 1em;
        height: auto;
        margin: 0;
        align-items: end;
        font-size: 1.25em;
    }
    .contact-info {
        position: absolute;
        bottom: 5em;
        right: 1.5em;
        text-align: right;
        font-size: 1em;
    } */
}


.main {
    position: relative;
    overflow: hidden;
    height: calc(100vh - 5em);
    /* height: 100%; */
    z-index: 999;
}

.scroll {
    overflow-y: auto;
}

.main-content {
    /* overflow: auto; */
}

.footer {
    display: none;
    height: 5vh; /* 5% of the viewport height */
    position: sticky;
    bottom: 0;
    background-color: var(--bg-color-secondary);
    color: var(--text-color-primary);
    z-index: 1000; /* Ensure the footer is above other content */
    /* Add other styles such as padding or box-shadow as necessary */
}

#skilltree {
    position: absolute;
    background-color: var(--bg-color-skilltree);
    color: var(--text-color-primary);
    z-index: 998;
}

.skill-group {
    cursor: pointer;
}

#skilltree circle.inactive {
    fill: #373737;
}

#skillTree path {
    fill: var(--text-color-primary);
}

#skillTree line {
    stroke: var(--text-color-primary);
    /* stroke-width: 1px; */
}

#skilltree line.inactive {
    stroke: #373737;
}

.skill-name {
    display: none;
    font-size: 0.5em;
    fill: var(--text-color-primary);
    opacity: 0.75;
    user-select: none;
}


.sidebar {
    position: absolute;
    top: 1.2em;
    left: 1em;
    z-index: 1000;
    width: 7em;
    /* width: 15%; */
    padding: 0.5em;
    background-color: var(--bg-color-tertiary-transparent);
    border: 3px solid var(--bg-color-tertiary-transparent);
    /* border-radius: 10px; */
    background-clip: padding-box;

    display: flex;
    flex-direction: column;
    font-size: 2em;
}

.sidebar-button-parent {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sidebar-button {
    margin-top: 0.75em;
    padding: 0.5em;
    border: 3px solid var(--bg-color-tertiary-transparent);
    border-radius: 5px;
    background-color: var(--bg-color-button);
    color: var(--text-color-primary);
    text-align: center;
    cursor: pointer;
    width: 75%;
    /* margin-left: auto; */
    font-size: 0.5em;
}

.sidebar-button:hover {
    background-color: var(--bg-color-button-hover);
}

.reset-button-text {
    display: block;
}
.reset-button-icon {
    display: none;
}

.share-button-text {
    display: block;
}
.share-button-icon {
    display: none;
}

.skill-points {
    display: flex;
    align-items: center;
}

.skill-points img {
    width: 1.75em;
    margin-right: 0.5em;
}

.skilltree-option {
    display: flex;
    align-items: center;
    margin: 1.5em 0 1em 0;
    font-size: 0.5em;
}

.stats-parent h2 {
    font-size: 0.7em;
    margin-bottom: 0.5em;
}

.stats-list {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 0.6em;
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-list li {
    margin-bottom: 0.25em;
    font-weight: lighter;
}

@media screen and (max-width: 768px) {
    .sidebar {
        position: absolute;
        flex-direction: row;
        align-items: center;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 0.25em;
    }
    .sidebar-button-parent {
        flex-direction: row;
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: auto;
        width: auto;
        margin-right: 0.25em;
        gap: 0.25em;
    }
    .sidebar-button {
        display: flex;
        justify-content: center; /* Center content horizontally */
        align-items: center; /* Center content vertically */
        margin: 0;
        padding: 0;
        width: 7.5vw;
        height: 7.5vw;
        /* width: 5vw;
        height: 2vw; */
    }
    .reset-button-text {
        display: none;
    }
    .reset-button-icon {
        display: block;
    }
    .share-button-text {
        display: none;
    }
    .share-button-icon {
        display: block;
    }
    .share-button-icon img {
        width: 80%;
        height: 80%
    }
    .skill-points {
        flex-grow: 1;
        font-size: 0.75em;
        white-space: nowrap;
        flex-grow: 0;
    }
    .skill-points img {
        width: 1em;
        margin-right: 0.25em;
    }
    .skilltree-options {
        flex-grow: 1;
        margin-left: 0.5em;
    }
    .skilltree-option {
        margin: 0;
    }
    .stats-parent {
        display: none;
    }
}


.skill-popup {
    position: absolute;
    border: 1px solid #ddd;
    padding: 1em;
    margin: 0;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    max-width: 400px;
    width: 400px;
}

#skillName {
    margin: 0;
}

#skillDescription {
    margin-top: 1em;
}

#skillCost {
    margin: 0;
    margin-top: 1em;
}


.class-name {
    font-size: 1em;
    user-select: none; /* Non-prefixed version, currently */
}



/* Changelog */
.changelog {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color-primary);
    width: 75%;
    height: auto;
    margin: 0 auto;
    margin-top: 1em;
    overflow-y: auto;
}

.changelog-entry {
    margin-bottom: 2em;
    padding: 1em;
    background-color: var(--bg-color-tertiary);
    width: 100%;
}

.changelog-entry h2 {
    font-size: 1.25em;
}

.changelog-entry h3 {
    font-size: 1em;
}

.changelog-entry ul {
    font-size: 1em;
}
