/* ----------------- Font Face ----------------- */
@font-face {
    font-family: "Tahoma";
    src: url("/font/Tahoma.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Bookerly";
    src: url("/font/Bookerly.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Palatino Linotype";
    src: url("/font/PalatinoLinotype.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

/* Wrapper spoiler */
.spoiler-font-wrapper {
    position: relative;
    padding: 6px 10px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Áp dụng font-family cho tất cả con bên trong spoiler */
.spoiler-font-wrapper * {
    font-family: inherit !important;
    font-weight: inherit !important;
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: inherit;
}

/* Thêm khoảng cách giữa các đoạn <p> */
.spoiler-font-wrapper p {
    margin-bottom: 1em;
}

/* Control panel */
.font-control-panel {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.9);
    border-radius: 3px;
    padding: 2px 5px;
    z-index: 999;
    font-size: 12px;
}

.font-control-panel button,
.font-control-panel select {
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #f8f8f8;
    padding: 1px 3px;
}

.font-control-panel button:hover,
.font-control-panel select:hover {
    background: #e0e0e0;
}
