* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.ripple {
    position: fixed;
    pointer-events: none;
    border: 3px solid #eeffff;
    border-radius: 50%;
    animation: rippleAnim 0.8s ease-out forwards;
}
@keyframes rippleAnim {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}
body {
    height: 100vh;
    background: linear-gradient(to right,#000000, #002222);
    color: white;
    font-family: Arial;
}
::selection {
    background: #005533;
}
.code-wrapper {
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid #30363d;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    margin: 20px 0;
    margin-top: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.code-wrapper:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
}
.code-header {
    background: #161b22;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #30363d;
    color: #8b949e;
    font-size: 13px;
    font-family: Arial, sans-serif;
}
pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}
code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #c9d1d9;
}
.copy-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 4px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}
.scroll-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 4px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}
.copy-btn:hover {
    background: #30363d;
    color: #ffffff;
    border-color: #8b949e;
}
.scroll-btn:hover {
    background: #30363d;
    color: #ffffff;
    border-color: #8b949e;
}
.container {
    margin: 0 auto;
    max-width: 70%;
    padding: 20px;
}
.text-container {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.inline-code {
    background: #161b22;
    border-radius: 5px;
    border: 1px solid #30363d;
    padding: 5px;
    font-family: 'Fira Code', 'Consolas', monospace;
}
a {
    color: rgba(255, 255, 255);
    text-underline-offset: 2px;
}
a:hover {
    color: rgba(200, 200, 200);
}
.ptr {
    background-image: url('../assets/ptr.png');
    background-blend-mode: overlay;
    background-size: cover;
    width: 50px;
    height: 50px;
    position: absolute;
}
@keyframes spinOnce {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.ptr-spin {
    animation: spinOnce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.markdown-body {
    max-width: 100%;
    padding: 30px 40px;
    box-sizing: border-box;
    background-color: #0d1117;
    color: #c9d1d9;
    border-radius: 12px;
    border: 1px solid #30363d;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: #f0f6fc;
    border-bottom-color: #30363d;
    margin: 1em;
}

.markdown-body a {
    color: #58a6ff;
}
.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body blockquote {
    border-left-color: #30363d;
    color: #8b949e;
}

.markdown-body table {
    border-collapse: collapse;
}
.markdown-body th,
.markdown-body td {
    border: 1px solid #30363d;
    padding: 6px 13px;
}
.markdown-body tr {
    border-top: 1px solid #30363d;
}
.markdown-body tr:nth-child(2n) {
    background-color: #161b22;
}

.markdown-body code:not(.hljs) {
    background: #161b22;
    border-radius: 5px;
    border: 1px solid #30363d;
    padding: 5px;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.markdown-body hr {
    border-bottom: 1px solid #30363d;
    background: none;
}

.markdown-body img {
    max-width: 100%;
    box-sizing: border-box;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 2em;
}

.markdown-body pre {
    background: transparent;
    padding: 0;
}

.searcher {
    background: linear-gradient(90deg,#002222,#000000);
    border: 2px solid #aaaaaa;
    border-radius: 2px;
    width: 70%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: none;
    color: #ffffff;
}
.searcher:hover {
    border: 2px solid #ffffff;
}

.search-list {
    margin: 10px;
}

.search-item {
    display: block;
    padding: 10px 14px;
    background: #161b22;
    border-radius: 6px;
    color: #c9d1d9;
    text-decoration: none;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.search-item:hover {
    background: #21262d;
    border-color: #30363d;
}

.random-btn{
    background-color: #002222;
    color: #ffffff;
    border-radius: 3px;
    margin: 10px;
}

.random-btn:hover{
    background-color: #000000;
    left: auto;
    top: auto;
}

.explode{
    position: absolute;
    background-color: #ffffff;
    width: 75px;
    height: 75px;
    transform: rotate(30deg);
}
.explode-smoke{
    position: absolute;
    background-color: #444444;
    width: 75px;
    height: 75px;
    animation: smoke-anim 10s ease-in-out forwards;
}
@keyframes smoke-anim{
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.1;
    }
}
.explode-wave {
    position: absolute;
    pointer-events: none;
    border: 7px solid #ff7300;
    border-radius: 50%;
    animation: explode-wave-Anim 1s forwards;
}
@keyframes explode-wave-Anim {
    0% {
        width: 0;
        height: 0;
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        width: 3000px;
        height: 3000px;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.article-id{
    font-style: italic;
    color: #444444;
}

.article-id-display {
    display: inline-block;
    padding: 2px 12px;
    margin-left: 12px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    font-size: 14px;
    color: #8b949e;
    font-family: 'Fira Code', monospace;
    vertical-align: middle;
}

.hero {
    width: 100%;
    position: fixed;
    display: flex;
    padding: 20px;
    align-items: center;
    height: 50px;
    background: #00222267;
    color: #ffffff;
    border: 1px solid #005533;
    margin-bottom: 30px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.foot {
    width: 100%;
    position: absolute;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    background: #00222267;
    color: #ffffff;
    margin-top: 40px;
    border: 1px solid #005533;
    gap: 23%;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.fog {
    position: absolute;
    background-color: #aaaaaa88;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    width: 100%;
    height: 100vh;
    z-index: 599999;
}

.editor-container {
    position: relative;
    width: 100%;
    height: 600px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #1e1e1e;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.code-display,
.code-input {
    font-family: 'Fira Code', 'Consolas', monospace;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
    tab-size: 4;
    overflow: auto;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0;
    text-rendering: geometricPrecision;
    letter-spacing: normal;
    word-spacing: normal;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
}

.code-display {
    background: transparent;
    pointer-events: none;
    z-index: 1;
}
.code-display code {
    display: block;
    font: inherit;
    background: transparent;
    padding: 0;
}

.code-input {
    background: transparent;
    color: transparent;
    caret-color: #005533;
    border: none;
    outline: none;
    resize: none;
    z-index: 2;
    font: inherit;
    letter-spacing: inherit;
    padding: 34px;
}

.code-input::placeholder {
    color: rgba(255,255,255,0);
}
.code-input::selection {
    background: #00553333;
    color: transparent;
}
.code-input::-moz-selection {
    background: #00553333;
    color: transparent;
}

.std-input {
    font-family: 'Fira Code', 'Consolas', monospace;
    top: 0;
    left: 0;
    margin: 0;
    box-sizing: border-box;
    border: 3px solid #002222;
    background: #000000;
    color: #ffffff;
    width: 100%;
}