*,
::before,
::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #00b4db;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    font-family: "Poppins", sans-serif;
}

h1 {
    font-size: clamp(1.8rem, 2.5vw, 3rem);
}

p,
ul,
ol,
dl,
blockquote,
pre,
td,
th,
textarea {
    margin: 1.5em 0;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.5;
    font-weight: 400;
    color: #222;
}

/* Common */
a {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
}

ul {
    list-style: disc;
    margin-left: 3em;
}

pre {
    width: 100%;
    font-size: clamp(1.2rem, 2vw, 1.8rem) !important;
}

a:hover {
    text-decoration: underline;
}

main {
    padding: 40px 25px;
    background: #fff1eb;
}

table,
th,
tr,
td {
    border: 2px solid #fff;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #222;
}

td,
th {
    padding: 16px;
}

th {
    text-align: left;
    background-color: rgb(0, 180, 219, 0.6);
    font-weight: 500;
}

td {
    vertical-align: middle;
}

strong {
    font-weight: 600;
}

.hl-code {
    background: #e5e5e5;
    padding: 0 4px;
}
.container {
    margin-right: auto;
    margin-left: auto;
    width: 70%;
}

.title {
    margin: 40px 0;
    font-size: clamp(1.8rem, 2.5vw, 3rem);
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    margin-left: -15px;
}
.title:first-child {
    margin-top: 0;
}
.title::before {
    content: attr(data-bullet);
}
/* Header */

.header {
    position: relative;
    background-image: linear-gradient(160deg, #fff1eb 0%, #ace0f9 100%);
    padding: 20px 0;
    text-align: center;
}

.header__title {
    font-size: clamp(2.4rem, 5vw, 5.2rem);
    line-height: 1.2;
    font-weight: 700;
    background: linear-gradient(
        to bottom,
        rgb(7, 174, 234) 0%,
        rgb(43, 245, 152) 100%
    );
    text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.05);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header__desc {
    margin-top: 20px;
    color: #444;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.5;
}

.header__github {
    position: absolute;
    top: 0;
    right: 15%;
}

.tiktap-wrapper {
    position: relative;
}

.tiktap-tabs {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    margin-left: 0;
}

.tiktap-tabs li {
    position: relative;
}

.tiktap-tabs a {
    font-weight: 500;
    text-decoration: none;
    color: #222;
    padding: 10px 20px;
    display: block;
    transition: color 0.3s ease;
}

.tiktap-tabs a:hover {
    color: var(--primary-color);
}

.tiktap-tabs .tiktap--active a {
    color: var(--primary-color);
}

.tiktap-tabs:not(.sliding) .tiktap--active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.active-line {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    background: var(--primary-color);
    transition: transform 0.3s ease, width 0.3s ease;
}

.tiktap-panel {
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    color: #444;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
}

/* footer */
.footer {
    background: linear-gradient(160deg, #ace0f9 0%, #fff1eb 100%);
    padding: 20px;
    font-size: 1.4rem;
    color: #333;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}
.footer__section {
    text-align: center;
}

/* Responsive */
@media (min-width: 768px) and (max-width: 991.98px) {
    .btn-wrapper {
        grid-template-columns: auto auto;
    }
}

@media (max-width: 767.98px) {
    main {
        padding: 40px 15px;
    }

    .title {
        margin-left: 0;
    }

    .container {
        width: 100%;
    }
}
