/* Global section */

* {
    box-sizing: border-box;
}

body {
    margin: 3rem;
    background: #151515;
    color: #d2d2d2;
    font-family: "Comic Relief", system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
}

h1,
h2,
h3,
h4 {
    color: #eeeeee;
    text-decoration: none;
}

h2 {
    font-size: 30px;
}


/* Grow effect section */

.grow {
    width: 50px;
    height: 50px;
    margin: 10px;
    transition: transform 0.2s;
}

.grow:hover {
    transform: scale(1.15);
    border-radius: 40%;
}


/* Tabs section */

.tab {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 8px;
    overflow: hidden;
    border: none;
}

.tab button {
    padding: 12px 20px;
    background: #222222;
    color: #a9a9a9;
    border: none;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    transition:
        background-color 160ms ease,
        color 160ms ease;
}

.tab button:hover {
    background: #2c3033;
    color: #ffffff;
}

.tab button.active {
    background: #3d5968;
    color: #ffffff;
}

.tab,
.tab button,
.tab button:hover,
.tab button.active {
    border: none !important;
    box-shadow: none !important;
}

.tabcontent {
    border: none !important;
    background-clip: padding-box;
}


/* Section section */

.section {
    margin: 10px;
    padding: 10px 10% 50px;
    overflow: hidden;
    background: #1b1b1b;
    border: 1px solid #303030;
    border-radius: 4px;
}


/* Image section */

.image {
    display: block;
    width: 75%;
    height: 75%;
    scale: 90%;
}


/* Links section */

a,
a:visited {
    color: #d5d5d5;
    text-decoration: none !important;
}


/* Home section */

.home-card {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    overflow: hidden;
    background: #202020;
    border: 1px solid #353535;
    border-radius: 4px;
}


/* Home header section */

.home-header {
    padding: 28px;
    background: #252525;
    border-bottom: 1px solid #383838;
    text-align: center;
}

.home-header h2 {
    margin: 0 0 10px;
    color: #eeeeee;
    font-size: 1.7rem;
}

.home-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #b4b4b4;
    line-height: 1.6;
}


/* Home content section */

.home-content {
    margin: 20px;
    padding: 22px;
    background: #202020;
    border: 1px solid #353535;
    border-radius: 4px;
}


/* Home features section */

.home-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 0;
}

.home-feature {
    padding: 0 20px;
    background: transparent;
    border: none;
    border-radius: 0;
}

.home-feature:first-child {
    padding-left: 0;
}

.home-feature:last-child {
    padding-right: 0;
}

.home-feature + .home-feature {
    border-left: 1px solid #383838;
}

.home-feature-title {
    display: block;
    margin-bottom: 8px;
    color: #e7e7e7;
    font-size: 1rem;
    font-weight: 600;
}

.home-feature-text {
    display: block;
    color: #9e9e9e;
    font-size: 0.9rem;
    line-height: 1.5;
}


/* Home links section */

.home-links-section {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #383838;
}

.home-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.home-links a {
    color: #7898a8;
    font-size: 0.85rem;
    text-decoration: none;
}

.home-links a:hover {
    color: #b8d8e6;
}


/* Credits section */

.home-credits {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #202020;
    border: 1px solid #353535;
    border-radius: 4px;
}


/* Credits header section */

.home-credits-header {
    padding-bottom: 12px;
    border-bottom: 1px solid #383838;
}

.home-credits-title {
    color: #e7e7e7;
    font-size: 1.05rem;
    font-weight: 600;
}


/* Credits list section */

.credits-list {
    display: flex;
    flex-direction: column;
}

.credit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 4px;
    border-bottom: 1px solid #303030;
}

.credit-item:last-child {
    border-bottom: none;
}

.credit-role {
    color: #858585;
    font-size: 0.9rem;
}

.credit-name,
.credit-item a {
    color: #9bbdca;
    font-size: 0.95rem;
    text-decoration: none;
}

.credit-item a:hover {
    color: #c8e5ef;
}


/* Commits section */

.commits-card {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #202020;
    border: 1px solid #353535;
    border-radius: 4px;
}

#commit-list {
    max-height: 600px;
    padding-right: 10px;
    overflow-y: auto;
}

#commit-list::-webkit-scrollbar {
    width: 7px;
}

#commit-list::-webkit-scrollbar-track {
    background: #181818;
}

#commit-list::-webkit-scrollbar-thumb {
    background: #486b7c;
    border-radius: 3px;
}

#commit-list::-webkit-scrollbar-thumb:hover {
    background: #5a8192;
}

.commit {
    padding: 14px 16px;
    margin-bottom: 8px;
    background: #242424;
    border: 1px solid #363636;
    border-radius: 4px;
}

.commit:last-child {
    margin-bottom: 0;
}

.commit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.commit-message {
    color: #dddddd;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.commit-message:hover {
    color: #ffffff;
    text-decoration: underline;
}

.commit-header code {
    flex-shrink: 0;
    padding: 3px 7px;
    background: #1a1a1a;
    color: #83b1c5;
    border-radius: 3px;
    font-size: 0.8em;
}

.commit-info {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    color: #777777;
    font-size: 0.85em;
}


/* Updates section */

.updates-list {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 0;
}

.update-card {
    padding: 14px 16px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #202020;
    border: 1px solid #353535;
    border-radius: 4px;
}

.update-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 4px 0;
}

.update-header h3 {
    margin: 0 0 5px;
    color: #e4e4e4;
}

.update-date {
    margin-left: 0;
    color: #777777;
    font-size: 0.85em;
}

/* Always visible — no collapse */
.update-content {
    padding: 0 20px 20px;
    color: #c8c8c8;
}

.update-content h4 {
    margin: 15px 0 8px;
    color: #e2e2e2;
}

.update-content ul {
    margin-top: 5px;
    padding-left: 25px;
}

.update-content li {
    margin-bottom: 6px;
    color: #9f9f9f;
}

.update-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.update-title h3 {
    margin: 0;
}

.update-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.update-links a {
    display: flex;
    align-items: center;
}

.update-links img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}


/* Misc card section */

.misc-card {
    max-width: 1000px;
    margin: 20px auto;
    overflow: hidden;
    background: #202020;
    border: 1px solid #353535;
    border-radius: 4px;
}


/* Misc header section */

.misc-header {
    padding: 24px 28px;
    background: #252525;
    border-bottom: 1px solid #383838;
}

.misc-header h2 {
    margin: 0;
    color: #eeeeee;
    font-size: 1.6rem;
}

.misc-subtitle {
    margin: 7px 0 0;
    color: #909090;
    font-size: 0.95rem;
}


/* Misc content section */

.misc-content {
    padding: 24px 28px;
    color: #c5c5c5;
}

.misc-content > p {
    margin-top: 0;
}


/* Misc warning section */

.misc-warning {
    margin: 18px 0;
    padding: 13px 16px;
    background: #1b1b1b;
    border-left: 3px solid #4d7283;
    border-radius: 2px;
    color: #c7c7c7;
}

.misc-warning strong {
    color: #eeeeee;
}

.misc-warning code {
    padding: 2px 6px;
    background: #292929;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    color: #8eb6c6;
}



#Misc,
#Misc .intro,
#Misc .updates-list,
#Misc .misc-card,
#Misc .misc-content,
#Misc .update-content,
#Misc .update-card {
    max-height: none !important;
    overflow: visible !important;
}


/* Class list section */

.class-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 20px 0;
}


/* Class card section */

.class-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    background: #252525;
    border: 1px solid #363636;
    border-radius: 3px;
    text-decoration: none;
}

.class-card:hover {
    background: #454545;
}

.class-name {
    color: #cccccc;
    font-family: monospace;
    font-size: 0.95rem;
}

.class-arrow {
    color: #7fa5b5;
    font-size: 1rem;
}


/* Misc information section */

.misc-info {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #383838;
    color: #ababab;
    line-height: 1.6;
}

.misc-info p {
    margin: 8px 0;
}

.misc-info strong {
    color: #dddddd;
}


/* Footer section */

footer {
    padding: 1rem;
    background: #1b1b1b;
    color: #777777;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid #303030;
}


/* Mobile section */

@media (max-width: 700px) {

    body {
        margin: 1rem;
    }


    /* Mobile home section */

    .home-header {
        padding: 20px;
    }

    .home-content {
        margin: 15px;
        padding: 20px;
    }

    .home-features {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-feature,
    .home-feature:first-child,
    .home-feature:last-child {
        padding: 0;
    }

    .home-feature + .home-feature {
        padding-top: 18px;
        border-top: 1px solid #383838;
        border-left: none;
    }


    /* Mobile links section */

    .home-links {
        flex-wrap: wrap;
        gap: 12px;
    }


    /* Mobile credits section */

    .home-credits {
        margin-top: 15px;
        padding: 20px;
    }

    .credit-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }


    /* Mobile commits section */

    .commit-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .commit-header code {
        align-self: flex-start;
    }


    /* Mobile updates section */

    .update-header {
        gap: 10px;
    }

    .update-title {
        min-width: 0;
    }

    .update-title h3 {
        word-break: break-word;
    }


    /* Mobile misc section */

    .misc-header,
    .misc-content {
        padding: 20px;
    }

    .misc-header h2 {
        font-size: 1.35rem;
    }

    .class-name {
        font-size: 0.85rem;
    }
}

.editor {
  background-color: #1e1e1e;
  width: 500px;
  border-radius: 6px;
  border: 1px solid #333;
  overflow: hidden;
}

/* Tab Bar */
.codetab {
  background-color: #2d2d2d;
  color: #d4d4d4;
  font-size: 13px;
  padding: 8px 12px;
  border-bottom: 1px solid #1e1e1e;
}

.codetab .icon {
  color: #519aba;
  font-weight: bold;
  margin-right: 4px;
}

/* Code Area */
.code {
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.6;
}

.line {
  display: flex;
  white-space: pre;
}

.ln {
  color: #858585;
  width: 35px;
  text-align: right;
  padding-right: 15px;
  user-select: none;
}

/* Syntax Highlighting */
.punct { color: #d4d4d4; } 
.key   { color: #9cdcfe; } 
.str   { color: #a5d6ff; } 

.file-path code {
    padding: 2px 6px;
    background: #292929;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    color: #8eb6c6;
}

.copy-btn {
  background-color: #3a3a3a;
  color: #f0f0f0;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.85em;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover {
  background-color: #4a4a4a;
  border-color: #666;
}

.copy-btn:active {
  background-color: #2a2a2a;
}