@font-face {
    font-family: Fira Code;
    src: url(../assets/fonts/FiraCode-Light.woff2) format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: Fira Code;
    src: url(../assets/fonts/FiraCode-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: Fira Code;
    src: url(../assets/fonts/FiraCode-Medium.woff2) format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: Fira Code;
    src: url(../assets/fonts/FiraCode-SemiBold.woff2) format("woff2");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: Fira Code;
    src: url(../assets/fonts/FiraCode-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background: #0f0f0f;
    color: #e5e5e5;
    font-family: system-ui, sans-serif;
}

.back-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: #2a2a2a;
    color: #fff;
}

.content {
    width: 80vw;
    margin: 80px auto;
    padding: 0 20px 40px;
}

h1 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    color: #ffffff;
    text-align: center;
}

p {
    margin: 1.2rem 0;
    line-height: 1.6;
    color: #d0d0d0;
    font-size: 1rem;
}

pre {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 8px;
    background: #1e1e1e;
    overflow-x: auto;
}

.code-container {
    margin-bottom: 5vh;
    text-align: left;
}

pre code {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "Fira Code", monospace;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0;
    font-size: 0.95rem;
}

.copy-cleaned {
    display: inline-block;
    padding: 6px 14px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    color: #dcdcdc;
    font-family: "Fira Code", monospace;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

@media (max-width: 700px) {
    .content {
        width: 95vw;
        padding: 0 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    pre {
        padding: 0.75rem;
    }

    pre code {
        white-space: pre-wrap;
        word-break: break-word;
    }
}

p code,
li code,
span code {
  font-family: "Fira Code", monospace;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  font-size: 0.95em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #2b2b2b;
  color: #f0f0f0;
}

a {
    color: #7DB4FF;
    text-decoration: none;
}

a:visited {
    color: #B18CFF;
}

a:hover {
    color: #A5CBFF;
    text-decoration: underline;
}

a:active {
    color: #D4E7FF;
}

img {
    max-width: 100%;
}

img {
    outline: 3px solid transparent;
    outline-offset: -3px;
    transition: outline-color 0.3s ease;
}

img.flash-highlight {
    outline-color: #A7C7E7;
}

#palette ul {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

#palette li {
    text-align: center;
}

#palette .color {
    width: 100%;
    height: 50px;
}

#palette .color-value {
    padding: 6px 4px;
    font-family: monospace;
    font-size: 14px;
}

#palette {
    max-width: 90%;
}