/*
This project is licensed under the MIT License.
See the LICENSE file in the project root for details.

Copyright (c) 2024-2026 Florian Reuth <git@florianreuth.de>
*/

.quotes-custom q {
    quotes: "«" "»" "‹" "›";
}

.quotes-lang q:lang(de) {
    quotes: "„" "“" "‚" "‘";
}


.quotes-lang q:lang(en) {
    quotes: "“" "”" "‘" "’";
}

.blockquote-basic {
    padding: 10px;
    border: thin solid #4da3ff;
    border-radius: 6px;
    background: rgba(77, 163, 255, 0.08);
}

.blockquote-ornament {
    display: grid;
    gap: 0.5rem;
}

.blockquote-ornament blockquote {
    margin: 0;
    padding: 1rem 1.25rem;
    position: relative;
    background: rgba(99, 132, 255, 0.06);
    border-radius: 4px;
}

.blockquote-ornament blockquote::before,
.blockquote-ornament blockquote::after {
    content: '';
    display: block;
    height: 2.2em;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    align-self: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6 0 12 4'%3E%3Ctext x='0' y='2' text-anchor='middle' font-size='3' fill='hsl(224 60% 60%)'%3E%E2%80%9E%3C/text%3E%3Cg stroke-width='0.1' stroke='hsl(224 60% 60%)'%3E%3Cline x1='6' x2='1.5' y1='2' y2='2'/%3E%3Cline x1='-6' x2='-1.5' y1='2' y2='2'/%3E%3C/g%3E%3C/svg%3E");
}

.blockquote-ornament blockquote:lang(en)::before,
.blockquote-ornament blockquote:lang(de)::after {
    transform: rotate(.5turn);
}

.hanging-punctuation {
    padding-left: 3em;
}

.hanging-punctuation blockquote {
    margin: 0;
    width: 90%;
    position: relative;
}

.hanging-punctuation cite {
    display: block;
    text-align: right;
}

.hanging-punctuation blockquote::before,
.hanging-punctuation blockquote::after {
    position: absolute;
    display: block;
    font-size: 10em;
    line-height: 1;
    color: #c32e04;
    opacity: 0.18;
    pointer-events: none;
}

.hanging-punctuation blockquote::before {
    content: '„';
    left: -0.33em;
    top: -0.7em;
}

.hanging-punctuation blockquote::after {
    content: '“';
    top: -0.3em;
    right: -0.3em;
}


.tooltip[role="tooltip"] {
    background: #333;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    max-width: 28rem;
    font-size: 0.9rem;
}

.tooltip[aria-hidden="true"] {
    display: none;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.align-center {
    text-align: center;
}

.font-small {
    font-size: 0.85rem;
}

.font-large {
    font-size: 1.5rem;
}

.font-fancy {
    font-family: "Times New Roman", serif;
}

.color-accent {
    color: #ffcc66;
}

.infobox {
    border-left: 4px solid #888;
    padding: 12px 16px;
    margin: 16px 0;
    background: #1e1e1e;
    border-radius: 4px;
}

.infobox.info {
    border-color: #4da3ff;
}

.infobox.warn {
    border-color: #ffcc00;
}

.infobox.note {
    border-color: #66cc66;
}

.flex-demo {
    display: flex;
    gap: 10px;
    background: #ffb84d;
    padding: 10px;
}

.flex-demo > div {
    flex: 1;
    padding: 10px;
    background: #ff9933;
    text-align: center;
}

.grid-demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.grid-demo > div {
    padding: 10px;
    background: #ff8000;
    text-align: center;
}

.animation-demo {
    width: 50px;
    height: 50px;
    background: red;
    animation: move 2s infinite alternate;
}

@keyframes move {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100px);
    }
}

.transform-demo {
    display: inline-block;
    transition: transform 0.5s;
}

.transform-demo:hover {
    transform: rotate(15deg) scale(1.2);
}

.pseudo-demo::before {
    content: "★ ";
    color: gold;
}

.pseudo-demo::after {
    content: " ★";
    color: gold;
}

.color-demo {
    width: 50px;
    height: 50px;
    display: inline-block;
    margin: 2px;
}

.figure-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.figure-row figure {
    flex: 1 1 200px;
    text-align: center;
}

.float-img {
    width: 160px;
}

.float-left {
    float: left;
    margin: 0 16px 16px 0;
}

.float-right {
    float: right;
    margin: 0 0 16px 16px;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}