body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0C0F14;
    color: #FFFFFF;
    overflow-y: scroll;
}

::-webkit-scrollbar {
    width: 10px;
    background-color: #181A21;
}

::-webkit-scrollbar-track {
    background-color: #181A21;
}

::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
    border: 3px solid #181A21;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

::-webkit-scrollbar-corner {
    background-color: #181A21;
}

::-webkit-scrollbar-thumb:active {
    background-color: #333;
}


.doc-title {
    color: #333;
}

br {
    user-select: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #181A21;
    color: white;
    padding-top: 10px;
    padding-bottom: 10px;
    height: 30px;
}

.nav-toggle {
    display: none;
    background: transparent;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
    /* push to the far right of the header */
    margin-left: auto;
}

.company-name {
    font-size: 24px;
    font-weight: bold;
    position: relative; 
    z-index: 1000;
    width: 250px;
    text-align: center;
}

.company-name a {
    text-decoration: none;
    color: white;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    margin-right: 50.79px;
    gap: 10px;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

.main-nav a:hover::after {
    width: 100%;
}

#fill {
    border-bottom: 2px solid white;
}

.main-body {
    margin-left: 75px;
    margin-right: 25px;
    margin-top: 65px;
    margin-bottom: 15px;
}

/* Modal nav (reusing .modal but narrower content for nav) */
.modal-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.modal-nav a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    display: block;
    padding: 12px 10px;
    border-radius: 8px;
}
.modal-nav a:hover {
    background-color: #2a2b36;
}

/* Responsive rules */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* hide desktop nav on small screens */
    }

    .nav-toggle {
        display: block; /* show hamburger */
    }

    header {
        padding-top: 8px;
        padding-bottom: 8px;
        height: auto;
    }

    .company-name {
        /* keep a reserved space so the name doesn't get squished */
        width: 250px;
        flex: 0 0 auto;
        font-size: 20px;
        margin-left: 8px;
    }

    .main-body {
        margin-left: 20px;
        margin-top: 75px;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 50px;
    display: block;
    background-color: #181A21;
    color: white;
    transition: width 0.3s ease, margin-right 0.3s ease;
    z-index: 1000;
    margin-top: 50px;
    padding: 0;
}

.sidebar.expanded {
    width: 250px;
    overflow-y: auto; 
}

.sidebar.expanded::-webkit-scrollbar {
    width: 0.5em;
}

.sidebar.expanded::-webkit-scrollbar-thumb {
    background-color: transparent;
}

.sidebar-content {
    display: none;
    text-align: center;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
}

.sidebar.expanded .sidebar-content {
    display: block;
}

.sidebar-toggle {
    cursor: pointer;
    position: relative;
    font-size: 24px;
    text-align: center;
    margin: auto;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background-color: #2a2b36;
}

#sidebar-title {
    font-size: 26px;
    color: white;
    text-decoration: underline;
    padding: 0;
    margin: 11.5px 0;
}

#sidebar-title p {
    padding: 0;
    margin: 0;
}

#sidebar-title p {
    font-size: 10px;
    text-decoration: none;
}

#sidebar-a {
    text-align: center;
    margin: auto;
    height: 85vh;
}

#sidebar-a a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
}

#sidebar-a a:hover {
    text-decoration: underline;
}

#sidebar-a p {
    text-decoration: underline;
    color: white;
    font-size: 18px;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.bottom {
    display: flex;
    flex-direction: column;
    vertical-align: bottom;
}

.top {
    height: 85%;
}

#search-container {
    margin: 20px auto;
    text-align: center;
}

#search-bar {
    width: 80%;
    padding: 10px;
    font-size: 16px;
}

#project-list {
    list-style: none;
    padding: 0;
}

.project-item {
    margin: 10px 0;
    padding: 15px;
    background-color: #1E1F28;
    color: white;
    border-radius: 8px;
}

#project-button {
    float: right;
    color: white;
    background-color: #007bff;
    width: 100px;
    text-align: center;
    border-radius: 20px;
    padding: 1px;
}

#project-button a {
    text-decoration: none;
    color: white;
}

#project-button:hover {
    background-color: #0056b3;
}

.featured-left {
    float: left;
    width: 100%;
}

.featured-right {
    float: right;
    width: 50%;
}

body.modal-active {
    overflow-y: visible;
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
}
.modal-content {
    background-color: #1E1F28;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    border-radius: 20px;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-button:hover {
    color: #fff;
}

.modal-trigger {
    float: right;
    color: white;
    background-color: #007bff;
    width: 100px;
    text-align: center;
    border-radius: 20px;
    padding: 1px;
    cursor: pointer;
}

.modal-trigger a {
    text-decoration: none;
    color: white;
}

.modal-trigger:hover {
    background-color: #0056b3;
}

#modal-trigger {
    text-decoration: none;
    color: #007bff; 
    font-weight: bold;
}

.modal-button:hover {
    background-color: #0056b3;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 100px;
    align-items: center;
    cursor: pointer;
}

.modal-button {
    display: block;
    width: 300px;
    background-color: #007bff;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    text-align: center;
    padding: 1px;
    margin: auto;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
    cursor: pointer;
}

.modal-button:hover {
    background-color: #0056b3;
}


.modal-button a {
    text-decoration: none;
    color: white;
}

.modal-close {
    float: right;
    cursor: pointer;
}

.info {
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.info-box {
    background-color: #1E1F28;
    color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.large-box {
    flex: 2;
}

.small-box {
    flex: 1;
}

.info-box h3 {
    margin-top: 0;
    font-size: 24px;
    text-decoration: underline;
    text-align: center;
}

.info-box p {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.6;
}

.info-box a {
    text-decoration: none;
    color: #007BFF;
}

@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
    }

    .large-box, .small-box {
        flex: none;
        width: 100%;
    }
}

#faq {
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
}

#faq h2 {
    font-size: 28px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
    text-decoration: underline;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    width: 100%;
    background-color: #1E1F28;
    color: white;
    border: none;
    text-align: left;
    font-size: 18px;
    padding: 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #2a2b36;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px;
}

.faq-answer p {
    color: #bbb;
    font-size: 16px;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 15px;
}

#search-title {
    font-size: 26px;
    margin: 0 20;
    text-decoration: underline;
    margin-top: 20px;
}

/* pc-clicker 3.0 styling */

.versions {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 1000px;
    margin: auto;
}

#current-version {
    background-color: #1E1F28;
    border-radius: 10px;
    display: flex;
}

#version-current {
    margin: 15px;
    display: flex;
    border-radius: 10px;
    background-color: #1E1F28;
    padding: 5px;
    text-align: center;
    width: 700px;
}

#version-current a {
    width: 20%;
    float: right;
    text-align: center;
}

.other-version-lists {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#version {
    margin: 15px;
    display: flex;
    border-radius: 10px;
    background-color: #1E1F28;
    padding: 5px;
    text-align: center;
    width: 700px;
}

#version-title {
    width: 80%;
    float: left;
    text-align: center;
}

#version a {
    width: 20%;
    float: right;
    text-align: center;
}

.versions h1,
h4,
h3 {
    text-decoration: underline;
    font: bold;
}

/* highlighting */

.highlight {
    background: #000;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
    word-break: break-all;
}

/* The text content */
.highlight code {
    flex: 1;
    white-space: pre-wrap;
}

/* Copy button */
.copy-btn {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #ddd;
}
