body {
    --md-accent-fg-color: #c22664 !important;
    --md-typeset-a-color: #ff3183 !important;

    a {
        --md-typeset-a-color: #5e8bde !important;
    }
}

.md-header__topic {
    cursor: pointer;
    -webkit-user-select: none; /* Chrome, Safari, Opera */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
    transition: opacity .25s;
}

.md-header__topic:hover {
    opacity: .7;
}

.md-search__form {
    border-radius: 15px;
    background-color: #202020;
}

/* 모달 배경 (어둡게) */
.custom-modal {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.6);
}

.custom-modal-header {
    background-color: #448aff1a;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0 0.5rem 0 0.5rem;
    height: 2rem;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    justify-content: space-between;
    align-items: center
}

.modal-header-icon {
    width: 1rem;
    height: 1rem;
    padding: 0;
    border: none;
    vertical-align: middle;
    fill: white;
    margin-right: 0.5rem;
}

/* 모달 내용 박스 */
.custom-modal-content {
    /* background-color: #fefefe; */
    margin: 10% auto;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    /*border-radius: 8px;*/
    border: .075rem solid #448aff;
    border-radius: .2rem;
    box-shadow: var(--md-shadow-z1);
    position: relative;
    animation: fadeIn 0.3s;
    background-color: var(--md-default-bg-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* 닫기 버튼 (x) */
.custom-modal-close {
    /* color: #aaa; */
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
}

.custom-modal-close:hover,
.custom-modal-close:focus {
    color: var(--md-typeset-a-color);
}

/* 모달 안의 리스트 스타일 */
.custom-modal-list {
    margin-block-start: 0 !important;
    list-style-type: none;
    padding: 0;
    margin: 0 0.5rem 0 0.5rem;
    max-height: 60vh;
    overflow-y: auto;
    font-size: 0.7rem;
}

.custom-modal-list li {
    padding: 10px 5px;
    margin: 0;
    border-bottom: 1px solid #eeeeee1e;
}

.custom-modal-list li a {
    text-decoration: none;
    /* color: #333; */
    /* font-weight: bold; */
}
.custom-modal-list li a:hover {
    color: var(--md-typeset-a-color);
}

.md-button.custom-button {
    padding: .225em .5em;
    font-weight: 400;
    font-size: 0.6rem;
}

.md-source-viewcount {
    align-items: center;
    color: var(--md-default-fg-color--light);
    display: inline-flex;
    font-size: .68rem;
    gap: .3rem;
    margin-right: .6rem;
}

.contributors-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* padding-top: 0.625rem; */
}
.contributor-link {
    position: relative; /* 툴팁 위치의 기준점 */
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}
.contributor-link:first-child {
    margin-left: 0; /* 첫 번째 이미지는 겹치지 않음 */
}
.contributor-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.2); /* 입체감을 위한 그림자 */
    background-color: #f0f0f0; /* 이미지가 없을 경우 배경색 */
}
.contributor-link:hover {
    transform: scale(1.15) translateY(-3px); /* 마우스 올렸을 때 확대 및 이동 효과 */
    z-index: 10; /* 다른 아바타 위로 올라오게 함 */
}
/* 툴팁 스타일 */
.contributor-link .tooltip {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 0.2rem 0.4rem;
    font-size: 0.475rem;
    position: absolute;
    z-index: 11;
    top: 110%; /* 아바타 아래에 위치 */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s;
}
/* 툴팁 화살표 */
.contributor-link .tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}
.contributor-link:hover .tooltip {
    visibility: visible;
    opacity: 1;
}