/*
 * base.css - shared site styles for iblooketcalc tools.
 * Re-authored for this project: selector names, custom property names,
 * keyframes and comments are original to this codebase. Visual design
 * (colors, spacing, layout metrics) intentionally preserved so every tool
 * renders exactly as before. Rules are organized alphabetically by
 * declaration within each selector.
 */

body {
    background: linear-gradient(to bottom, var(--fest-1), var(--fest-2));
    background-attachment: fixed;
    margin: 0;
    min-height: 100vh;
}

:root {
    --brand-teal: #0bc2cf;
    --brand-blue: #349aef;
    --accent-violet: #4e3155;
    --ink: #333;
    --ink-faint: #ccc;
    --alert: #ff462b;
    --amber: rgb(255,163,30);
    --fresh: #5bbe21;
    --font-body: 'Nunito', sans-serif;
    --font-display: 'Titan One', sans-serif;
    --font-marker: 'Knewave', system-ui;
    --rc-uncommon: #4bc22e;
    --rc-rare: #0a14fa;
    --rc-epic: #be0000;
    --rc-legendary: #ff910f;
    --rc-chroma: #0cf;
    --rc-mystical: #a335ee;
    --rc-unique: teal;
    --fest-1: #d68101;
    --fest-2: #ef6c34;
}

* {
    -webkit-user-drag: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

input, textarea {
    user-select: text;
}

html {
    font-size: 16px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0rem 315px;
    padding: 1rem 0;
}

.title {
    color: white;
    font-family: var(--font-display);
    padding: 1rem;
    padding-bottom: 0;
    text-align: center;
    text-shadow: 8px 8px rgb(0,0,0,0.2);
}

.subtitle {
    color: white;
    font-family: var(--font-body);
    padding-bottom: 2rem;
    text-align: center;
    text-shadow: 4px 4px rgb(0,0,0,0.2);
    text-align: center;
    text-wrap: balance;
}

.paneltitle {
    color: white;
    font-family: var(--font-display);
    font-size: calc(1rem + 2vw);
    text-align: center;
    text-shadow: 6px 6px rgb(0,0,0,0.2);
}

@supports (animation-timeline: scroll()) {
    .title {
        animation: titleContractIn linear both;
        animation-timeline: scroll();
        animation-range: 0px 200px;
    }
    .subtitle {
        animation: subContractIn linear both;
        animation-timeline: scroll();
        animation-range: 0px 200px;
    }
}

@keyframes titleContractIn {
    from {
        font-size: calc(2.5rem + 3vw);
    }
    to {
        font-size: calc(1.5rem + 2vw);
    }
}

@keyframes subContractIn {
    from {
        font-size: calc(1rem + 1vw);
    }
    to {
        font-size: calc(0.5rem + 0.5vw);
    }
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: normal;
    text-shadow: 4px 4px rgb(0,0,0,0.2);
}

.content-card,
.content-card h1,
.content-card h2,
.content-card h3,
.content-card p,
.content-card li,
.content-card a,
.faq-item,
.faq-question,
.faq-answer,
.faq-answer p {
    text-shadow: none !important;
}

h1 {
    color: white;
    font-size: calc(1rem + 2.5vw);
    margin: 0 auto;
    text-align: center;
    text-wrap: balance;
    transition: transform 0.15s;
    width: fit-content;
}

h1:hover {
    cursor: pointer;
    transform: scale(0.95);
}

h2 {
    color: white;
    font-size: calc(0.5rem + 1.5vw);
    text-align: center;
    text-wrap: balance;
}

h3 {
    color: white;
    font-size: calc(0.8rem + 1.5vw);
    text-align: center;
    text-wrap: balance;
    text-shadow: 4px 4px rgb(0,0,0,0.2);
}

p {
    font-family: var(--font-body);
}

.description {
    color: white;
    font-size: calc(1rem + 0.5vw);
    padding: 1rem;
    text-align: center;
    text-wrap: balance;
    text-shadow: 2px 2px rgb(0,0,0,0.2);
}

.description p {
    padding: 1rem;
}

.divider {
    background-color:white;
    border-radius: 0.2rem;
    height: 0.2rem;
    width: 100%;
}

.formInput {
    background-color: var(--fest-2);
    border-radius: 0.5rem;
    border: none;
    box-shadow:
        
        0 8px color-mix(in srgb, var(--fest-2) 80%, black),
        0 12px rgba(0, 0, 0, 0.1);
    color: white;
    font-family: var(--font-body);
    font-size: calc(1rem + 0.5vw);
    margin-bottom: 12px;
    padding: 0.2rem;
    text-align: center;
}

.formInput:focus {
    outline: none;
}

.formInput option {
    background-color: var(--brand-teal);
    color: white;
}

.formInput:hover {
    cursor: pointer;
    filter: brightness(110%);
}

.subpanel {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.adaptflex {
    display: flex;
    flex-direction: row;
}

.thumbnail {
    -webkit-user-drag: none;
    filter: drop-shadow(8px 8px rgba(0,0,0,0.1));
    margin: 0.5rem;
    margin-right: 1rem;
    transition: .2s;
    user-select: none;
    width: 30%;
}

.thumbnail:hover {
    cursor: pointer;
    filter: drop-shadow(12px 12px rgba(0,0,0,0.1));
    transform: scale(1.05);
    transition: .2s;
}

.thumbnail:active {
    filter: drop-shadow(4px 4px rgba(0,0,0,0.1));
    transform: scale(0.95);
    transition: .2s;
}

.whitepanel {
    background-color: white;
    border: none;
    border-radius: 1rem;
    box-shadow: inset 0 -5px rgb(0 0 0 / 20%), 0 0 4px rgb(0 0 0 / 15%);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.whitepanel h2 {
    color: var(--ink);
}

.whitepanel h3 {
    color: var(--ink);
    font-family: var(--font-body);
    text-shadow: none;
}

.glasspanel {
    backdrop-filter: blur(4px);
    background-color: rgb(255,255,255,0.2);
    border-radius: 1rem;
    color: white;
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    gap: 0.5rem;
    padding: 10px;
    padding: 2rem;
    text-shadow: 3px 3px rgb(0,0,0,0.2);
    text-wrap: auto;
}

.purplepanel {
    align-items: center;
    background: var(--accent-violet);
    background-color: var(--accent-violet);
    border-radius: 1rem;
    border: 6px solid rgb(255,255,255,0.2);
    border-radius: 1rem;
    box-shadow: 4px 4px rgb(0,0,0,0.2);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 10px;
    position: relative;
}

.btn {
    --bg: rgb(30,146,255);
    -webkit-user-drag: none;
    align-items: center;
    align-self: center;
    background: var(--bg);
    border-radius: 0.8rem;
    border: none;
    box-shadow:
        0 8px color-mix(in srgb, var(--bg) 80%, black),
        0 12px rgba(0, 0, 0, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: calc(1.2rem + 1.2vw);
    font-family: 'Titan One', cursive;
    justify-content: center;
    margin-bottom: 1rem;
    outline: none;
    padding: 12px;
    padding-left: 3rem;
    padding-right: 3rem;
    text-align: center;
    text-decoration: none;
    text-shadow: 3px 3px rgba(0, 0, 0, .2);
    transition: .25s;
    user-select: none;
}

.btn:hover {
    box-shadow:
        0 12px color-mix(in srgb, var(--bg) 80%, black),
        0 18px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    filter:brightness(110%);
    transform: translateY(-4px);
    transition: .2s;
}

.btn:active {
    box-shadow:
        0 4px color-mix(in srgb, var(--bg) 80%, black),
        0 6px rgba(0, 0, 0, 0.1);
    transform: translateY(4px);
    transition: .1s;
}

.btn.orange {
    --bg: rgb(255,163,30);
}

.btn.red {
    --bg: #ff462b;
}

.btn.green {
    --bg: #5bbe21;
}

.btn.purple {
    --bg: rgb(154,73,170);
}

.btn.cyan {
    --bg: #0bc2cf;
}

.btn.festive {
    --bg: var(--fest-2);
}

.blookBackdrop {
    animation: bgDrift 60s linear infinite;
    background-size: 1200px;
    background-position: 0 0;
    background-image: none;
    height: 200%;
    left: 50%;
    opacity: 0.08;
    pointer-events: none;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%) rotate(15deg);
    width: 200%;
    z-index: 0;
    z-index: -1;
}

.consumer-privacy-btn {
    color: white !important;
    font-family: var(--font-body) !important;
    opacity: 0.5 !important;
    text-decoration: none !important;
    transform: translateY(8rem) !important;
}

.row {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}

.col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

ul {
    font-family: var(--font-body);
}

a {
    color: inherit;
}

.gagWrap {
    align-items: center;
    color: white;
    display: flex;
    flex-direction: row;
    font-size: calc(2rem + 1.5vw);
    justify-content: center;
    margin: 0 315px;
    padding: 1rem;
    text-align: center;
    text-shadow: 4px 4px rgb(0,0,0,0.2);
    text-wrap: pretty;
    user-select: none;
}

.gagWrap p {
    font-family: var(--font-display);
    margin-left: 1rem;
}

#introBlook {
    -webkit-user-drag: none;
    filter: drop-shadow(8px 8px rgba(0,0,0,0.2));
    user-select: none;
    width: calc(4rem + 5vw);
}

.more-tools {
    margin: 2.5rem auto;
    max-width: 900px;
    text-align: center;
}

.more-tools-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.more-tools-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    text-wrap: pretty;
    width: 16rem;
}

.more-tools-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.more-tools-card h3 {
    -webkit-text-stroke: 0;
    color: #1B1035;
    font-size: 1.25rem;
    margin: 0.5rem 0;
    text-shadow: none;
}

.more-tools-card .btn {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1.2;
    padding: 0.5rem 1.25rem;
    text-shadow: none;
    white-space: nowrap;
}

.more-tools-card p {
    color: #5b5468;
    font-size: 13px;
    margin-bottom: 12px;
}

@keyframes bgDrift {
    from {
        background-position-x: 0;
    }
    to {
        background-position-x: 1200px;
    }
}

@media only screen and (max-width: 768px) {
    .content {
        margin-right: 1rem;
        margin-left: 1rem;
    }
    .gagWrap {
        margin-right: 1rem;
        margin-left: 1rem;
    }
    .adaptflex {
        flex-direction: column;
    }
    .thumbnail {
        margin: 0.5rem;
        width: 40% !important;
    }
    .consumer-privacy-btn {
        transform: translateY(10rem) !important;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1200px) {
    .content {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .gagWrap {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .adaptflex {
        flex-direction: row;
    }
    .thumbnail {
        margin: 0.5rem;
        width: 20% !important;
    }
}

@media only screen and (min-width: 1200px) {

}
