html {
    font-family: "Pretendard", sans-serif;
    color: #444444;
    /* glitter */
    margin: 0;
    padding: 0;
    overflow: auto;
}

:root[color-theme='light'] {
    --surface-default: #F2F0EE;
    --btn-default: #23232B;
    --btn-svg-hover: #FFA500;
}

:root[color-theme='dark'] {
    --surface-default: rgba(63, 63, 63, 200);
    --btn-default: #FFFFFF;
    --btn-svg-hover: gold;
}

body {
    background: var(--surface-default);
    transition: background-color 0.5s;
    opacity: 0.9;
    max-width: 700px;
    min-height: 100vh;
    position: relative;
    margin: 0px auto;
    padding: 40px;
    line-height: 1.8;
    z-index: 5;
}

h2 {
    border-bottom: 2px solid #aaa;
    padding-bottom: 4px;
    margin-top: 30px;
}

h3 {
    padding-bottom: 4px;
    margin-top: 40px;
    margin-bottom: 5px;
}

a {
    color: #444444;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin: 6px 0;
}


/* nav */

nav {
    width: 100vw;
    height: 45px;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
    background-color: var(--surface-default);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0;
    margin-top: 4px;
    width: 100%;
    padding: 0;
}

nav ul li {
    margin: 0;
}


/* canvas */

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    display: block;
    z-index: -1;
}

.textarea {
    padding-top: 100px;
    z-index: 5;
}



/* tag */

.clickable {
    cursor: pointer;
    transition: background-color .2s ease-in-out;
}

.chipletContainerInner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 10px;
    background-color: #6C7A89;
    border-radius: 4px;
    line-height: 16px;
    padding: 0 4px;
    vertical-align: middle;
    font-size: 60%;
    color: #ffffff;
}

.chipletContainerInner:hover {
    background-color: #A3C6C4;
}


/* highlight */

.highlight-something {
    background-color: #B0E0E6;
}

.highlight-daehak {
    background-color: #e7d16c;
}

.highlight-language {
    background-color: #98ec88;
}

.highlight-tetris {
    background-color: #FFC0CB;
}

.highlight-elsword {
    background-color: #c53535;
    color: whitesmoke;

}

.highlight-elsword-2 {
    background-color: #e79191;
}


/* dark mode */

.dark-light-toggle {
    display: flex;
    justify-content: center;
    align-items: center;

    transition: background-color 0.5s;
}

.dark-light-toggle span {
    transition: color 0.5s, transform 0.5s ease;
}

.dark-light-toggle:hover span {
    color: var(--btn-svg-hover);
}

.sun {
    display: none;
}

.moon {
    display: flex;
}

:root[color-theme='dark'] .dark-light-toggle .sun {
    display: none;
}

:root[color-theme='dark'] .dark-light-toggle .moon {
    display: flex;
}


/* icons */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    color: whitesmoke;
    font-size: 24px;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 20;
}

nav button {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    box-shadow: none;
    padding: 0 6px;
    cursor: pointer;
    overflow: hidden;
}

nav button span {
    color: var(--btn-default);
    transition: color 0.25s, transform 0.25s;
}

nav button:hover span {
    transform: scale(1.2);
}

nav .effect-toggle.active {
    border-width: 0;
    background: none;
    box-shadow: none;
    cursor: pointer;
}


/* popup */

.popup-overlay {
    z-index: 20;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    padding: 30px;
    background-color: #ffffff;
    width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border-width: 0;
    background-color: transparent;
    cursor: pointer;
    padding: 4px;
}

/* details */
details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

.horizontal-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.width-160 {
    width: 160px;
}

.icon {
    width: 16px;
    height: 16px;
}

/* tile */
#container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.hidden {
    display: none;
}

.tile {
    display: flex;
    width: 50px;
    height: 50px;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tile-icon-outer {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.tile-icon-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-icon-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-title {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}