/* Layout */
* {
    font-family: "DFKai-sb", "標楷體";
}
html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #000;
}
a:hover {
    color: unset;
}

/* Size */
.w-45 {
    width: 45% !important;
}
.w-90 {
    width: 90% !important;
}
.w-fit-content {
    width: fit-content !important;
}

@media (min-width: 576px) {
    .w-sm-25 {
        width: 25% !important;
    }
}

/* margin */
.offset-b5 {
    margin-bottom: -5px !important;
}
.offset-b4 {
    margin-bottom: -4px !important;
}
.offset-b8 {
    margin-bottom: -8px !important;
}
.offset-b10 {
    margin-bottom: -10px !important;
}
.offset-b12 {
    margin-bottom: -12px !important;
}

.offset-b18 {
    margin-bottom: -18px !important;
}

@media (min-width: 576px) {
    .offset-sm-b8 {
        margin-bottom: -8px !important;
    }
}
.offset-t15 {
    margin-top: -15px !important;
}
.offset-r4 {
    margin-right: -4px !important;
}
.offset-l8 {
    margin-left: -8px !important;
}

@media (min-width: 576px) {
    .offset-sm-l8 {
        margin-left: -8px !important;
    }
}

/* font */
@media (min-width: 576px) {
    .fs-sm-2 {
        font-size: 1.75rem !important;
    }
    .fs-sm-3 {
        font-size: 1.65rem !important;
    }
}

.fs-7 {
    font-size: 0.875rem !important;
}
.fs-8 {
    font-size: 0.75rem !important;
}

/* text */
.text-red {
    color: #ff0000 !important;
}
.text-magenta {
    color: #c90881 !important;
}
.text-blue {
    color: #1616ff !important;
}

/* form */
.form-control {
    height: 30px;
}
.form-control,
.form-select {
    border: 1px solid #000;
}
.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='2.5' fill='%23000000'/></svg>");
}
.form-check-input:checked {
    background-color: #fff;
    border-color: #000;
}
.comment {
    position: relative;
}
@media (min-width: 576px) {
    .comment {
        position: relative;
        top: -28px;
    }
}
.text-vertical-lr {
    writing-mode: vertical-lr !important;
}

/* bg */
.bg-main {
    background: url("../images/bg-2.png");
    background-size: cover;
}

.bg-bagua-pic {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    width: 400px;
}

[v-cloak] {
    display: none;
}