@layer markdown-style, prism-style;

/* @import url("https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.8.1/github-markdown-dark.css") layer(markdown-style); */
/* @import url("/global/resources/extensions/github/github-markdown-dark.css") layer(markdown-style); */
@import url("/global/resources/extensions/github/github-markdown-dark-enhanced.css") layer(markdown-style);
/* @import url("/global/resources/extensions/prismjs/prism.css") layer(prism-style); */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0') layer(material-symbols);
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&family=Noto+Sans+KR:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Orbitron:wght@400..900&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

/* Github Markdown style start */
@layer markdown-style {
    .markdown-body {
        max-width: auto;
        margin: auto;
        padding: 20px;
        background: transparent;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

    .markdown-body h1,
    .markdown-body h2,
    .markdown-body h3,
    .markdown-body h4,
    .markdown-body h5,
    .markdown-body h6 {
        margin-top: 15px !important;
        font-family: Noto Sans KR, sans-serif;
        border-bottom: 1px solid #3D444DB3;
    }

    .markdown-body h1:hover,
    .markdown-body h2:hover,
    .markdown-body h3:hover,
    .markdown-body h4:hover,
    .markdown-body h5:hover,
    .markdown-body h6:hover {
        border-bottom: 1px solid #2196F3 !important;
    }

    .markdown-body li {
        margin-left: 20px !important;
    }

    .markdown-body p {
        white-space: pre-wrap !important;
        font-family: Noto Sans KR, sans-serif;
    }

    .markdown-body a {
        font-family: Noto Sans KR, sans-serif;
    }

    .markdown-body table {
        border: 1px solid #121212 !important;
    }

    .markdown-body th,
    .markdown-body td {
        padding: 5px !important;
        border: 2px solid #121212 !important
    }

    .markdown-body th {
        background-color: #2962FF !important;
    }

    .markdown-body tr:nth-child(odd) td:first-child {
        background-color: #1A237E !important; 
    }

    .markdown-body tr:nth-child(even) td:first-child {
        background-color: #1A237EBF !important; 
    }

    .markdown-body tr:nth-child(odd) td:not(:first-child) {
        background-color: #171E22 !important; 
    }

    .markdown-body tr:nth-child(odd) td:not(:first-child) {
        background-color: #171E2280 !important; 
    }

    .markdown-body del {
        color: #757575 !important;
        text-decoration: line-through !important;
    }

    .markdown-body del:hover {
        text-decoration: none !important;
    }
}
/* Github Markdown style end */

/* Google Material Symbols start */
@layer material-symbols {
    .material-symbols-outlined {
        -webkit-user-select: none;
        user-select: none;
        font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48
    }

    .material-symbols-outlined.filled-icon {
        -webkit-user-select: none;
        user-select: none;
        font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48
    }

    .material-symbols-outlined.notranslate {
        -webkit-user-select: none;
        user-select: none;
    }

    .material-symbols-outlined.icon-large {
        font-size: 48px !important;
    }

    .material-symbols-outlined.icon-small {
        font-size: 18px !important;
    }
}
/* Google Material Symbols end */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

*.notranslate {
    -webkit-user-select: none;
    user-select: none;
}

::-webkit-scrollbar-corner {
    background: transparent !important;
}

html {
    font-family: 'Orbitron', sans-serif;
    color: #FFFFFF !important;
    background-color: #000000 !important;
}

body {
    margin-top: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

header {
    position: relative;
    z-index: 100000;
}

footer {
    position : fixed;
    z-index: 10001;
    transform : translateY(0%);
    bottom: 0;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 5px;
    font-family: 'Noto Sans', sans-serif;
    text-align: center;
    font-size: 10px;
    color: #FFFFFF !important;
    background-color: #000000 !important;
}

a {
    text-decoration: none;
    color: inherit;
}

.mainicon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('/global/resources/images/logo_48px.svg');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.smalltext {
    padding-left: 5px;
    font-size: 12px;
    color: #808080 !important;
}

span .mainicon {
    position: absolute;
    top: 45px;
}

.navbar {
    background: #000000 !important;
    user-select: none;
}

.gradline {
    display: block;
    height: 1px;
    border: none;
    margin-top: 5px;
    background: rgb(0,0,0) !important;
    background: -moz-linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(255,255,255,1) 10%, rgba(255,255,255,1) 90%, rgba(0,0,0,0) 100%) !important;
    background: -webkit-linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(255,255,255,1) 10%, rgba(255,255,255,1) 90%, rgba(0,0,0,0) 100%) !important;
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(255,255,255,1) 10%, rgba(255,255,255,1) 90%, rgba(0,0,0,0) 100%) !important;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
}

.shortgradline {
    display: block;
    margin: auto;
    height: 1px;
    width: 50%;
    border: none;
    background: rgb(0,0,0) !important;
    background: -moz-linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(255,255,255,1) 20%, rgba(255,255,255,1) 80%, rgba(0,0,0,0) 100%) !important;
    background: -webkit-linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(255,255,255,1) 20%, rgba(255,255,255,1) 80%, rgba(0,0,0,0) 100%) !important;
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(255,255,255,1) 20%, rgba(255,255,255,1) 80%, rgba(0,0,0,0) 100%) !important;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
}

header .wrapper {
    top: 0%;
    padding-top: 5px;
    padding-bottom: 5px;
}

footer .wrapper {
    bottom: 0%;
    padding-top: 2px;
    padding-bottom: 0px;
}

footer .wrapper .copyright {
    padding-top: 10px;
    padding-bottom: 2px;
}

article {
    z-index: -10;
}

.wrapper {
    background: #000000 !important;
    position: fixed;
    width: 100%;
}

.wrapper .navbar {
    z-index: 2;
    position: relative;
    display: flex;
    /* max-width: calc(100% - 200px); */
    margin: 0 auto;
    height: 45px;
    align-items: center;
    justify-content: space-between;
}

.navbar .content {
    display: flex;
    align-items: center;
}

.navbar .content .links {
    margin-left: 80px;
    display: flex;
}

.content .links li {
    list-style: none;
    line-height: 45px;
}

.content .links li a,
.content .links li label {
    color: #FFFFFF !important;
    font-size: 18px;
    font-weight: 500;
    padding: 9px 17px;
}

.content .links li label {
    display: none;
}

.content .links li a:hover,
.content .links li label:hover {
    background: #FFFFFF20 !important;
}

.wrapper .search-icon,
.wrapper .menu-icon {
    color: #FFFFFF !important;
    font-size: 18px;
    cursor: pointer;
    line-height: 45px;
    width: 70px;
    text-align: center;
}

.wrapper .menu-icon {
    display: none;
}

.wrapper #show-search:checked~.search-icon i::before {
    content: "\f00d";
}

.wrapper .search-box {
    position: absolute;
    height: 100%;
    max-width: calc(100% - 50px);
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.wrapper #show-search:checked~.search-box {
    opacity: 1;
    pointer-events: auto;
}

.search-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 17px;
    color: #FFFFFF !important;
    background: #22262B;
    padding: 0 100px 0 15px;
}

.search-box input::placeholder {
    color: #FFFFFF !important;
}

.search-box .go-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 40px;
    width: 70px;
    background: #242424 !important;
    border: none;
    outline: none;
    color: #FFFFFF !important;
    font-size: 20px;
    cursor: pointer;
}

.wrapper input[type="checkbox"] {
    display: none;
}

/* Dropdown Menu code start */
.content .links ul {
    position: absolute;
    background: #000000 !important;
    top: 45px;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
}

.content .links li:hover>ul {
    top: 45px;
    opacity: 1;
    visibility: visible;
}

.content .links ul li a {
    display: block;
    width: 100%;
    line-height: 30px;
}

.content .links ul ul {
    position: absolute;
    top: 0;
    right: -320px;
    width: 320px;
}

.content .links ul li {
    position: relative;
}

.content .links ul li:hover ul {
    top: 0;
}

.main-content {
    margin: 60px auto 50px auto;
}

.main-content .filled-content {
    padding: auto;
}

.main-content .content {
    padding-top: 10px;
    width: 80%;
    margin: auto;
}

.loading {
    padding-top: 22%;
    text-align: center;
}

/* Wiki elements start */
.sidewrapper {
    z-index: 1;
    background: #242424 !important;
    position: fixed;
    height: 100%;
    width: 310px;
}

.rsidewrapper {
    z-index: -2;
    background: #242424 !important;
    position: fixed;
    height: 100%;
    width: 15vw;
    right: 0;
}

.subwrapper {
    background: transparent !important;
    top: 60px;
    position: fixed;
    width: 100%;
    z-index: 99999;
}

.sidebox {
    z-index: 1;
    position: relative;
    display: flex;
    margin: 100px 0 45px 0%;
    flex-direction: column;
    height: 100%;
    max-height: calc(100% - 100px);
    width: auto;
}

.wikinav-header {
    position: absolute;
    height: 40px;
    width: 100%;
    top: 0;
    left: 0;
    text-align: right;
    background: #242424 !important;
    background: -webkit-linear-gradient(90deg,rgba(36, 36, 36, 1) 5%, rgba(72, 72, 72, 1) 30%) !important;
    background: -moz-linear-gradient(90deg,rgba(36, 36, 36, 1) 5%, rgba(72, 72, 72, 1) 30%) !important;
    background: linear-gradient(90deg,rgba(36, 36, 36, 1) 5%, rgba(72, 72, 72, 1) 30%) !important;
    filter: progid:DXImageTransform.Microsoft.gradient(
        startColorstr="#242424",
        endColorstr="#484848",
        GradientType=1
    );
}

.wikinav-header h1 {
    font-size: 18px;
    color: #FFFFFF !important;
    padding-left: 10px;
    padding-right: 10px;
    line-height: 40px;
    user-select: none;
}

.wikinav {
    position: fixed;
    width: 310px;
    height: calc(100% - 150px);
    top: 100px;
    left: 0;
    overflow: hidden;
    margin-top: 0;
}

.wikinav ul {
    list-style: none;
}

.wikinav li {
    margin: 10px 0;
}

.wikinav h2 {
    font-size: 20px;
    margin-top: 40px;
    user-select: none;
}

.wikinav h3 {
    font-size: 16px;
    user-select: none;
}

.wikitoc-scrollview {
    position: absolute;
    overflow-y: scroll;
    overflow-x: auto;
    top: 40px;
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
}

.wikitoc-scrollview::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.wikitoc-scrollview::-webkit-scrollbar-track {
    background: #323232 !important;
    border-radius: 5px;
}
.wikitoc-scrollview::-webkit-scrollbar-thumb {
    background: #808080 !important;
    border-radius: 5px;
    border: 2px solid transparent;
}
.wikitoc-scrollview::-webkit-scrollbar-thumb:hover {
    background: #E1E1E1 !important;
}

.wikitoc-contentview {
    width: max-content;
    padding: auto;
}

.wikitoc {
    margin-left: 30px !important;
}

.wikitoc a, .wikitoc p,
.wikitoc h1, .wikitoc h2,
.wikitoc h3, .wikitoc h4 {
    width: 100%;
    display: block;
    user-select: none;
    white-space: nowrap;
}

.wikitoc li {
    margin-right: 10px;
}

.wikitoc li.collapsed .submenu {
    display: none !important;
}

.wikitoc-sub1 li,
.wikitoc-sub2 li,
.wikitoc-sub3 li,
.wikitoc-sub4 li {
    margin-left: 20px;
}

.wikitoc-sub1 a,
.wikitoc-sub2 a,
.wikitoc-sub3 a,
.wikitoc-sub4 a {
    display: flex !important;
    align-items: center !important;
    min-height: 24px;
}

.wikitoc-container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.wikitoc-container::-webkit-scrollbar-track {
    background: #323232 !important;
    border-radius: 5px;
}
.wikitoc-container::-webkit-scrollbar-thumb {
    background: #808080 !important;
    border-radius: 5px;
    border: 2px solid transparent;
}
.wikitoc-container::-webkit-scrollbar-thumb:hover {
    background: #E1E1E1 !important;
}

.wikitocbox-rside-wrapper {
    width: 100%;
    border: 1px solid #DDDDDD !important;
    border-radius: 4px;
    background-color: #323232 !important;
}

.toc-title {
    font-size: 0.9rem;
    padding: 10px 15px;
    margin: 0;
    background: #242424 !important;
    border-bottom: 1px solid #DDDDDD !important;
}

#toc-list {
    list-style: none;
    padding: 10px 15px;
    margin: 0;
}

#toc-list li {
    margin-top: 0% !important;
    margin-bottom: 0% !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

#toc-list a {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    text-decoration: none;
    color: #FFFFFF !important;
    font-size: 0.8rem;
}

.toc-loading {
    text-align: left;
    color: #FFFFFF !important;
}

.wikidoc-container {
    z-index: -2;
    position: fixed;
    top: 100px;
    left: 310px;
    right: 15vw;
    height: 79%;
    margin-bottom: 45px;
    padding: 20px;
    background: #121212 !important;
    color: #FFFFFF !important;
    overflow-y: scroll;
}

.wikidoc-container:lang(en) {
    font-family: 'Noto Sans', sans-serif;
}

.wikidoc-container:lang(ko) {
    font-family: 'Noto Sans KR', sans-serif;
}

.wikidoc-container:lang(ja) {
    font-family: 'Noto Sans JP', sans-serif;
}

.wikidoc-localebar {
    z-index: 1;
    position: relative;
    display: flex;
    width: 100%;
    height: 40px;
    background-color: #242424 !important;
    color: #FFFFFF !important;
}

.wikidoc-localebar-nav {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: flex-end;
    align-items: center;
}

.wikidoc-localebar-nav .language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 2em;
}

.wikidoc-meta {
    display: none !important;
}

.language-switcher select {
    background-color: #242424 !important;
    color: #FFFFFF !important;
    border: none;
    outline: none;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}

.wiki-tabctrl
{
    display: flex;
    align-items: center;
    margin-right: auto;
}

.wiki-tabctrl input[type="radio"] {
    display: none;
}

.wiki-tabctrl-btn
{
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer !important;
    background-color: #242424 !important;
    color: #FFFFFF !important;
    border: none !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.wiki-tabctrl-btn:hover
{
    background-color: #FFFFFF10 !important;
    border: none !important;
}

.wiki-tabctrl-btn:active
{
    background-color: #FFFFFF !important;
    color: #242424 !important;
    border: none !important;
}

.wiki-tabctrl-btn.active
{
    background-color: #FFFFFF !important;
    color: #242424 !important;
    border: none !important;
    user-select: none !important;
}

.wiki-tabctrl-btn:not(:first-child) {
    border-left: 1px solid gray !important;
}

.toggle-trigger,
.submenu .material-symbols-outlined {
    width: 18px;
    height: 18px;
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
    gap: 8px;
    margin-right: 10px;
}

.toggle-trigger .material-symbols-outlined,
.submenu .material-symbols-outlined {
    font-size: 18px; 
    display: block;
    font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 20; 
    user-select: none;
}

.menu-row {
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

.menu-row .menu-title1 {
    font-size: 18px !important;
    font-weight: bold !important;
}

.menu-row .menu-title2 {
    font-size: 14px !important;
    font-weight: bold !important;
}

.wiki-hyperlink {
    color: #2196F3 !important;
    text-decoration: underline !important;
}
/* Wiki elements end */

/* Responsive code */
@media screen and (max-width: 1250px) {
    .wrapper nav {
        max-width: 100%;
        padding: 0 20px;
    }

    .navbar .content .links {
        margin-left: 30px;
    }

    .content .links li a {
        padding: 8px 13px;
    }

    .wrapper .search-box {
        max-width: calc(100% - 100px);
    }

    .wrapper .search-box input {
        padding: 0 100px 0 15px;
    }
}

@media screen and (max-width: 900px) {
    .wrapper .menu-icon {
        display: block;
    }

    .wrapper #show-menu:checked~.menu-icon i::before {
        content: "\f00d";
    }

    .navbar .content .links {
        display: block;
        position: fixed;
        background: transparent;
        height: 100%;
        width: 100%;
        top: 70px;
        left: -100%;
        margin-left: 0;
        max-width: 350px;
        overflow-y: auto;
        padding-bottom: 100px;
        transition: all 0.3s ease;
    }

    .navbar #show-menu:checked~.content .links {
        left: 0%;
    }

    .content .links li {
        margin: 15px 20px;
    }

    .content .links li a,
    .content .links li label {
        line-height: 40px;
        font-size: 20px;
        display: block;
        padding: 8px 18px;
        cursor: pointer;
    }

    .content .links li a.desktop-link {
        display: none;
    }

    /* dropdown responsive code start */
    .content .links ul,
    .content .links ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        background: none;
        max-height: 0px;
        overflow: hidden;
    }

    .content .links #show-about:checked~ul,
    .content .links #show-projects:checked~ul,
    .content .links #show-products:checked~ul {
        max-height: 100vh;
    }

    .content .links ul li {
        margin: 7px 20px;
    }

    .content .links ul li a {
        font-size: 18px;
        line-height: 30px;
    }
}

@media screen and (max-width: 400px) {
    .wrapper nav {
        padding: 0 10px;
    }

    .content .logo a {
        font-size: 27px;
    }

    .wrapper .search-box {
        max-width: calc(100% - 70px);
    }

    .wrapper .search-box .go-icon {
        width: 30px;
        right: 0;
    }

    .wrapper .search-box input {
        padding-right: 30px;
    }
}
/* Dropdown Menu code end */

/* Tab style start */
/* Style the tab */
.tab {
	overflow: hidden;
	border: 1px solid #FFFFFF !important;
	background-color: #242424 !important;
}
  
/* Style the buttons inside the tab */
.tab button {
	background-color: inherit;
	float: left;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 14px 16px;
	transition: 0.3s;
	font-size: 17px;
	color: #FFFFFF !important;
	font-family: 'Orbitron';
}
  
/* Change background color of buttons on hover */
.tab button:hover {
	background-color: #FFFFFF40 !important;
}
  
/* Create an active/current tablink class */
.tab button.active {
	background-color: #FFFFFF80 !important;
}
  
/* Style the tab content */
.tabcontent {
	display: none;
	padding: 6px 12px;
	border: 1px solid #FFFFFF !important;
	border-top: none;
}
/* Tab style end */

.gamepage {
    width: 100%;
    height: 100vh;
    position: absolute;
}

.soontm-text {
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.soontm-picture {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('/global/resources/images/soon_tm_2026.png');
    background-size: cover;
}

/*Layouts*/
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    gap: 20px;
}

.card {
    width: 200px;
    padding: 10px;
    box-sizing: border-box;
    background-color: #242424 !important;
    text-align: center;
    clip-path: polygon(
        10px 0%,                /* top-left style */
        100% 0%,
        100% calc(100% - 10px), /* bottom-right style */
        calc(100% - 10px) 100%,
        0% 100%,
        0% 10px
    );
    transition: all 0.1s ease;
}

.card img {
    width: 100%;
    height: auto;
}
.card h3 {
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.4;
    margin: 10px 0;
}

.card:hover {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

.enlarged-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 200px);
    gap: 20px;
}

.card-large {
    width: 200px;
    padding: 10px;
    box-sizing: border-box;
    background-color: #242424 !important;
    text-align: center;
    clip-path: polygon(
        10px 0%,
        100% 0%,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0% 100%,
        0% 10px
    );
    transition: all 0.1s ease;
}

.card-large img {
    width: 100%;
    height: auto;
}

.card-large h3 {
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.4;
    margin: 5px 0;
}

.card-large:hover {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

/* Alignments */
.centered {
    margin-top: 5vh;
    margin-bottom: 10vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.margin-realigin_3 {
    margin-left: 3vw;
}

.margin-realigin_5 {
    margin-left: 5vw;
}

/* Text effects */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 2.5em;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    transform: translateX(0);
    will-change: transform;
    font-size: 12px;
}

/* Title styles */
.title-style1 {
    margin-top: 10vh;
    margin-bottom: 5vh;
}

.title-style2 {
    margin-top: 5vh;
    margin-bottom: 3vh;
    font-size: 24px;
}

.title-style3 {
    font-size: 32px;
    font-family: "Orbitron Black";
}

/* Material Text Color Attributes */
.mat-red {
    color: #FF1744 !important;
}

.mat-orange {
    color: #FF9800 !important;
}

.mat-yellow {
    color: #ffEB3B !important;
}

.mat-green {
    color: #00E676 !important;
}

.mat-blue {
    color: #2196F3 !important;
}

.mat-purple {
    color: #D500F9 !important;
}

.mat-brown {
    color: #795548 !important;
}

.mat-slate {
    color: #607D8B !important;
}

.mat-black {
    color: #212121 !important;
}

.mat-white {
    color: #ECEFF1 !important;
}

/* Markdown Text Color Attributes */
.md-red {
    color: #FF0000 !important;
}

.md-green {
    color: #00FF00 !important;
}

.md-blue {
    color: #0000FF !important;
}

.md-gray {
    color: #9E9E9E !important;
}

/* Common Style Attributes */
.enforce-top-align {
    top: 0 !important;
}

.enforce-symbol-align-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

/* Markdown Text Box Decoration Styles */
.mdtbox-numbox-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 2px 4px 2px 4px;
    background-color: #242424 !important;
    color: #DCDCDC !important;
    border: 1px solid #2196F3 !important;
    border-radius: 4px;
    font-family: 'Noto Sans KR', sans-serif;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mdtbox-numbox-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 2px 4px 2px 4px;
    background-color: #242424 !important;
    color: #DCDCDC !important;
    border: 1px solid #00E676 !important;
    border-radius: 4px;
    font-family: 'Noto Sans KR', sans-serif;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mdtbox-statbox-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 2px 5px 2px 5px;
    background-color: #00E676 !important;
    color: #242424 !important;
    border: 1px solid #00E676 !important;
    border-radius: 2px;
    font-family: "Titillium Web", sans-serif !important;
    font-weight: bold !important;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mdtbox-statbox-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 2px 5px 2px 5px;
    background-color: #FF1744 !important;
    color: #FAFAFA !important;
    border: 1px solid #FF1744 !important;
    border-radius: 2px;
    font-family: "Titillium Web", sans-serif !important;
    font-weight: bold !important;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Markdown Image Styles */
.md-cell-image {
    width: 256px;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.md-cell-image:hover {
    outline: 1px solid #2196F3 !important;
    outline-offset: 3px;
}

.md-content-image-banner {
    margin: 10px auto 10px auto;
    width: 80%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.md-content-image-banner:hover {
    outline: 1px solid #2196F3 !important;
    outline-offset: 5px;
}

/* Embed styles start */
.embedded-hyperlink {
    display: block;
    width: auto;
    height: auto;
    text-decoration: none;
    background-color: transparent;
    color: inherit;
}

.embedded-link-box a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.embedded-link-box {
    display: flex;
    align-items: flex-start; /* 아이콘과 텍스트 상단 정렬 */
    border: 1px solid #E0E0E0 !important;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    background-color: #242424 !important;
    font-family: Noto Sans KR, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.embedded-link-icon {
    flex-shrink: 0; /* 아이콘이 줄어들지 않도록 고정 */
    margin-right: 15px;
    font-size: 36px; /* Material Symbol 크기 */
    color: #FFFFFF !important;
}

.embedded-link-content {
    flex-grow: 1; /* 남은 공간을 채우도록 확장 */
    overflow: hidden; /* 긴 URL이 넘치지 않도록 */
}

.embedded-link-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #FFFFFF !important;
    white-space: nowrap; /* 제목이 한 줄로 표시되도록 */
    overflow: hidden;
    text-overflow: ellipsis; /* 넘치는 제목은 ... 처리 */
}

.embedded-link-url {
    display: block;
    font-size: 0.9em;
    color: #82B1FF !important;
    white-space: nowrap; /* 주소가 한 줄로 표시되도록 */
    overflow: hidden;
    text-overflow: ellipsis; /* 넘치는 주소는 ... 처리 */
    text-decoration: none;
}
/* Embed styles end */

/* Wiki tag boxes start */
.wikitag-titlewrapper {
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    align-self: center;
    width: 150px;
    white-space: nowrap;
    margin-right: 15px;
}

.wikitag-titlewrapper-asian {
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    align-self: center;
    width: 90px;
    white-space: nowrap;
    margin-right: 15px;
}

.wikitag-icon {
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    align-self: center;
    margin-right: 15px;
    font-size: 36px;
    color: #FFFFFF !important;
    user-select: none;
}

.wikitag-title {
    flex-grow: 0;
    flex-shrink: 0;
    width: 110px;
    align-self: center;
    text-align: left;
    white-space: nowrap;
    font-weight: bold;
    font-size: 18px;
    color: #FFFFFF !important;
    user-select: none;
}

.wikitag-content {
    flex-grow: 4;
    overflow: hidden;
    text-align: left;
}

.wikitag-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid #2196F3 !important;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #2196F320 !important;
    font-family: Noto Sans KR, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wikitag-attention {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid #FFEB3B !important;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #FFEB3B20 !important;
    font-family: Noto Sans KR, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wikitag-warning {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid #F44336 !important;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #F4433620 !important;
    font-family: Noto Sans KR, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wikitag-reference {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid #00E676 !important;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #00E67620 !important;
    font-family: Noto Sans KR, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
/* Wiki tag boxes end */

.contact-form {
    display: block;
    width: 100%;
    height: auto;
    background-color: #242424 !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Validate form (Not an real security form. Only for test.) */
#recaptcha-overlay-wrapper {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

#recaptcha-overlay-content {
    background: #242424 !important;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    z-index: 10000;
    max-width: 500px;
}

#recaptcha-overlay-content h2 {
    color: #FFFFFF !important;
    margin-bottom: 20px;
    text-align: center;
}

#recaptcha-overlay-content p {
    color: #FFFFFF !important;
    margin-bottom: 20px;
}

#recaptcha-overlay-content label {
    color: #FFFFFF !important;
    margin-bottom: 10px;
    display: block;
}

#recaptcha-overlay-content input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #CCCCCC !important;
    border-radius: 5px;
    font-size: 16px;
    background-color: #FFFFFF10 !important;
    color: #FFFFFF !important;
}

#recaptcha-overlay-content button {
    width: 100%;
    padding: 10px;
    background-color: #2196F3 !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#result-message {
    margin-top: 15px;
    font-size: 16px;
}

#session-timer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    width: auto;
    flex-shrink: 0;
    flex-grow: 0;
    background-color: transparent !important;
    color: #00FF7F;
    padding: 5px 10px;
    border: none;
    text-align: right !important; 
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 12px;
    z-index: 10000;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.wikisec-container {
    display: flex;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 9000;
    background-color: transparent !important;
}

#bypass-btn{
    position: fixed;
    bottom: 35px;
    right: 5px;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    padding: 5px 10px;
    cursor: default;
    opacity: 0;
    z-index: 10000;
    transition: opacity 0.3s;
}

#bypass-btn:hover {
    opacity: 1;
}

.btn-active {
    opacity: 1 !important;
    color: #00FF7F !important;
    border: 1px solid #00FF7F !important;
}

.alert-note {
    color: #FF1744 !important;
}

/* WIKI FORMATTING */
.wiki-table-comment {
    font-size: 12px;
    color: #9E9E9E !important;
    margin-top: 5px;
    margin-bottom: 5px;
}

.wiki-italic-gray {
    color: #9E9E9E !important;
    font-style: italic;
}

.wiki-censor-block {
    font-family: 'Courier New', Courier, monospace !important;
    color: #607D8B !important;
    background-color: #607D8B !important;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    letter-spacing: -0.05em;
    transition: background-color 0.1s ease-in-out;
    cursor: default;
}

.wiki-censor-block:hover {
    background-color: #90A4AE !important;
    color: #90A4AE !important;
}

.wiki-censor-block::selection {
    background-color: #CFD8DC !important;
    color: #CFD8DC !important;
}

/* SERVICE CSS STYLES */
#ch-github ul {
    list-style: none;
    padding: 0;
}

.commit-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #455A64 !important;
    padding-bottom: 10px;
}

.commit-date {
    font-size: 0.85em;
    font-weight: bold;
    color: #E3F2FD !important;
}

.commit-title {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    color: #82B1FF !important;
    text-decoration: none;
    margin-bottom: 4px;
}

.commit-body {
    display: block;
    font-size: 0.9em;
    color: #E3F2FD !important;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
    padding-left: 5px;
    border-left: 2px solid #00B0FF !important;
}

.commit-title:hover {
    text-decoration: underline;
}

/* EXTERNAL CSS ELEMENTS CONTROL */
.glitch-form-wrapper {
  display: none;
  position: fixed;
  z-index: 10000;
}

/* OTHER ELEMENT CONTROL */
.rside-btn-placeholder {
    position: fixed;
    right: 20px;
    z-index: 10000;
}

.donate-btn {
    background: #FFDD00 !important;
    color: #000000 !important;
    font-family: "Titillium Web", sans-serif !important;
    font-weight: 600 !important;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
}

#agent-instruction {
    display: none;
    font-size: 1px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: black;
    position: absolute;
    z-index: -99999999;
}

/* Portrait Mode Warning */
#portrait-warning-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    font-family: Arial, sans-serif;
}

#portrait-warning-overlay.show {
    display: flex;
}

#portrait-warning-content {
    padding: 40px;
    max-width: 80%;
}

#portrait-warning-content h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ff6b6b;
}

#portrait-warning-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

#portrait-warning-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

@media (orientation: portrait) and (max-width: 768px) {
    #portrait-warning-overlay.show {
        display: flex;
    }
}
