body {
    font-family: 'IBM Plex Sans KR', sans-serif;;
    margin: 2em auto;
    max-width:850px;
    padding: 1em;
    padding-top: 0px;
    font-weight: 300;
    font-style: normal;
    line-height: 200%;
    background-color:#202020;
    color:#F0F0F0;
    overflow-x: hidden;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}
video {  
    max-width: 100%;
    height: auto;
}
textarea{
    font-family: 'IBM Plex Sans KR', sans-serif;;
    background-color: #303030;
    color: #F0F0F0;
    width: 600px;
    max-width: 100%;
    height: 120px;
    font-size: medium;
}
img {  
    max-width: 100%;
    height: auto;
}
s{
    color: #A0A0A0;
}
del{
    color: #A0A0A0;
}
.stylized{
    font-family: "Major Mono Display", monospace;
    font-weight: 400;
    font-style: normal;
}
.srccode{
    font-family: "Source Code Pro", monospace;
    font-optical-sizing: auto;
    font-weight: 350;
    font-style: normal;
}
.magic{
    color: #cc96ff;
}
.intLink{
    color: #b6defa;
}
.extLink{
    color: #effab6;
}
.anchor-link{
    color: #F0F0F0;
    text-decoration: none;
}
.anchor-link:hover{
    text-decoration: underline;
}

/* Code blocks */
code {
    font-family: "Source Code Pro", monospace;
    font-weight: 350;
    font-size: 0.9em;
    background-color: #303030;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    word-wrap: break-word;
}

pre {
    background-color: #303030;
    border: 1px solid #404040;
    border-radius: 4px;
    padding: 1em;
    overflow-x: auto;
    max-width: 100%;
}

pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.85em;
    line-height: 1.5;
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Search Bar */
.search-bar-container {
    margin-top: 1.5em;
}

.search-form {
    display: flex;
    gap: 0.5em;
    align-items: stretch;
}

.search-input {
    flex: 1;
    padding: 0.7em 1em;
    background: #303030;
    border: 1px solid #505050;
    border-radius: 8px;
    color: #F0F0F0;
    font-family: 'IBM Plex Sans KR', sans-serif;
    font-size: 1em;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #cc96ff;
}

.search-button {
    padding: 0.7em 1.5em;
    background: #cc96ff;
    color: #202020;
    border: none;
    border-radius: 8px;
    font-family: 'IBM Plex Sans KR', sans-serif;
    font-weight: 500;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.search-button:hover {
    background-color: #b580e6;
}

@media (max-width: 600px) {
    .search-input {
        font-size: 0.9em;
        padding: 0.6em 0.8em;
        min-width: 0;
    }
    
    .search-button {
        padding: 0.6em 0.8em;
        font-size: 0.9em;
        flex-shrink: 0;
    }
}

/* Tables - responsive with horizontal scroll on mobile */
table {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    margin: 1em 0;
    background-color: #282828;
    border: 1px solid #404040;
    border-radius: 4px;
    overflow: hidden;
}

/* Wrapper for tables to enable horizontal scroll on overflow */
.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    margin: 1em 0;
}

th, td {
    padding: 0.75em;
    text-align: left;
    border: 1px solid #404040;
}

th {
    background-color: #303030;
    font-weight: 500;
    color: #cc96ff;
}

tr:nth-child(even) {
    background-color: #252525;
}

tr:hover {
    background-color: #2a2a2a;
}

/* Ensure long content wraps properly */
td, th {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 300px;
}

@media (max-width: 600px) {
    td, th {
        max-width: 200px;
        font-size: 0.9em;
        padding: 0.5em;
    }
}
