@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
header {
    text-align: center;
    margin-bottom: 0;
    padding: clamp(0.5rem, 2vh, 1rem) 0 clamp(0.1rem, 0.5vh, 0.2rem) 0;
}
h1 {
    margin: 0;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 600;
    color: black;
}
h1 .separator {
    margin: 0 clamp(0.3rem, 1vw, 0.5rem);
    opacity: 0.6;
}
h1 a {
    color: black;
    text-decoration: none;
    transition: opacity 0.2s;
}
h1 a:hover {
    opacity: 0.7;
    text-decoration: underline;
}
body { 
    font-family: consolas;
    padding: 20px;
    background-color: lawngreen;
    font-family: "Quicksand", sans-serif;
}
.section { 
    margin: 0;
    margin-bottom: 0.1rem;
    padding: 10px;
    font-family: consolas;
}
h2 { 
    color: black;
    margin: 0;
}
pre {
    background: black;
    padding: 1rem;
    color: lawngreen;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1rem;
    border-radius: 1rem;
}
.code-content {
    background: black;
    padding: 0;
    margin: 0;
    color: white;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1rem;
    border-radius: 0;
    font-family: consolas, monospace;
    line-height: 1 !important;
}
a {
    color: black;
}
img {
    width: 100%;
    max-width: 100%;
    height: auto;
}
.bottom-gif {
    position: fixed;
    bottom: -10px;
    z-index: 1000;
    left: 0%;
    pointer-events: none;
}
.bottom-gif img {
    width: 50%;
    height: auto;
    max-width: none;
    display: block;
}
@media (max-width: 600px) {
    body { 
        padding: 10px;
    }

    .section { 
        padding: 0.1px;
        margin: 0;
    }

    h2 { 
        font-size: 1rem;
    }
    header {
        margin-bottom: clamp(0.2rem, 1vh, 0.3rem);
        padding: clamp(0.2rem, 1vh, 0.3rem) 0;
    }
    h1 {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
    }

    pre { 
        font-size: 0.9rem; 
    }
    .code-content {
        font-size: 0.9rem;
    }
    .snippet-container {
        width: 90% !important;
    }
    #source {
        width: 90% !important;
    }
    .bottom-gif {
        display: none;
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0.2rem auto 0 auto;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: black;
    white-space: normal;
    display: block;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: lightgreen;
    border: 2px solid lightgreen;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    user-select: none;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    color: lawngreen;
    border-color: lawngreen;
}

.carousel-btn:active {
    background-color: lightgreen;
    color: black;
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

@media (max-width: 600px) {
    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    
    .carousel-btn-prev {
        left: 0.5rem;
    }
    
    .carousel-btn-next {
        right: 0.5rem;
    }
}

/* Code Embed Styles - Gist-like */
.gist-container {
    background: black;
    border: 1px solid #333;
    border-radius: 6px;
    margin: 0.2rem 0 0 0;
    overflow: hidden;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.gist-header {
    background: #111;
    border-bottom: 1px solid #333;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.gist-file-name {
    color: lightgreen;
    font-size: 0.875rem;
    font-weight: 600;
}

.gist-content {
    overflow-x: auto;
    background: black;
}

/* Custom scrollbar styling for gist content */
.gist-content::-webkit-scrollbar {
    height: 6px;
}

.gist-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.gist-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.gist-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar */
.gist-content {
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
}

.gist-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.gist-table tbody tr {
    border: none;
}

.gist-line-number {
    width: 1%;
    min-width: 50px;
    padding: 0 0.625rem 0 1rem;
    text-align: right;
    color: #666;
    user-select: none;
    background: #111;
    border-right: 1px solid #333;
    font-size: 0.75rem;
    line-height: 1.45;
    vertical-align: top;
    position: relative;
}

.gist-line-number::before {
    content: attr(data-line-number);
}

.gist-line-content {
    padding: 0 1rem;
    color: lawngreen; /* Fallback color - only used if no tokens */
    font-size: 0.8rem;
    font-family: monospace;
    line-height: 1.45;
    white-space: pre;
    word-wrap: normal;
    overflow-wrap: normal;
    vertical-align: top;
    background: black;
}


/* Prism token colors - use !important to override any other styles */
.gist-line-content .token.comment,
.gist-line-content .token.prolog,
.gist-line-content .token.doctype,
.gist-line-content .token.cdata {
    color: #6a9955 !important;
}

.gist-line-content .token.punctuation {
    color: #d4d4d4 !important;
}

.gist-line-content .token.property,
.gist-line-content .token.tag,
.gist-line-content .token.boolean,
.gist-line-content .token.number,
.gist-line-content .token.constant,
.gist-line-content .token.symbol,
.gist-line-content .token.deleted {
    color: #569cd6 !important;
}

.gist-line-content .token.selector,
.gist-line-content .token.attr-name,
.gist-line-content .token.string,
.gist-line-content .token.char,
.gist-line-content .token.builtin,
.gist-line-content .token.inserted {
    color: #ce9178 !important;
}

.gist-line-content .token.operator,
.gist-line-content .token.entity,
.gist-line-content .token.url,
.gist-line-content .language-css .token.string,
.gist-line-content .style .token.string {
    color: #d4d4d4 !important;
}

.gist-line-content .token.atrule,
.gist-line-content .token.attr-value,
.gist-line-content .token.keyword {
    color: #c586c0 !important;
}

.gist-line-content .token.function,
.gist-line-content .token.class-name {
    color: #dcdcaa !important;
}

.gist-line-content .token.regex,
.gist-line-content .token.important,
.gist-line-content .token.variable {
    color: #d16969 !important;
}

.gist-table tbody tr:hover .gist-line-content {
    background: #111;
}

.gist-table tbody tr:hover .gist-line-number {
    background: #1a1a1a;
}

.code-embed-error {
    background: black;
    padding: 1rem;
    color: red;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1rem;
    border-radius: 0.5rem;
    margin: 0.2rem 0 0 0;
    font-family: consolas, monospace;
}

