:root {
    --background-color: #01050D;
    --text-color: #f0e3d2;
    --accent-color: #454ADE;
    --box-color: #FFC576;
    --box-border-color: #D16F05;

}

@media only screen and (min-width: 768px) {
    div.card {
        max-width: 47vw !important;
    }
}


div.card {
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(26, 26, 26, 0.35);
    /* border: 1px solid #ccc; */
    border: 2px solid #d6a99a;
    border-radius: 16px;
    margin: 10px;
    padding: 16px;
    width: fit-content;
    /* max-width: 45vw; */
    /* width: 25vw; */

    .title {
        display: flex;
        flex: 1;
    }

    .image {
        margin: 8px;
        padding: 16px;
        /* border: 1px solid #ccc; */
        border-radius: 16px;
        /* width: fit-content; */
        min-width: 25%;
        /* height: 100%; */
        flex-shrink: 0;
        align-self: center;

        img {
            width: 100%;
        }
    }

    .summary {
        margin: 8px;
        padding: 16px;
    }

    .type {
        /* margin: 4px; */

        text-transform: capitalize;

        padding: 6px;
        /* border: 1px solid #ccc; */
        border: 1px solid hwb(15 60% 16% / 0.5);
        border-radius: 16px;
        width: fit-content;
        background: linear-gradient(45deg, hwb(15 60% 16% / 0.23), hwb(29 76% 16% / 0.2));
    }
}

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.prices,
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.buy,
.sell,
.stat1,
.stat2,
.stat3 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    letter-spacing: 0.04rem;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);
}

.buy,
.sell {
    background: linear-gradient(135deg, rgb(255 197 118 / 24%), rgb(209 111 5 / 20%));
    border: 1px solid rgb(255 197 118 / 45%);
}

.stat1,
.stat2,
.stat3 {
    background: rgb(69 74 222 / 16%);
    border: 1px solid rgb(149 153 255 / 35%);
}

span {
    color: rgb(240 227 210 / 72%);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
}

strong {
    color: #ffe0a3;
    font-family: 'Calligraffitti', cursive;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02rem;
}

details.products {
    margin: 16px 4px;
    padding: 16px;
    border: 1px solid #ccc;
    border-radius: 16px;

    /* backdrop-filter: blur(10px); */
    box-shadow: 0 10px 20px rgba(26, 26, 26, 0.35);

    summary {
        /* font-weight: bold; */
        font-size: 1rem;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

@keyframes slide-from-right {
    from {
        transform: translateX(30px);
    }
}

@keyframes slide-to-left {
    to {
        transform: translateX(-30px);
    }
}

:root::view-transition-old(root) {
    animation:
        90ms cubic-bezier(0.4, 0, 1, 1) both fade-out,
        300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
}

:root::view-transition-new(root) {
    animation:
        210ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in,
        300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
}

@media (prefers-reduced-motion) {

    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important;
    }
}

html {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Abel', sans-serif;
}

div.centerd {
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
}

div.box {
    background-color: var(--box-color);
    border: 2px solid var(--box-border-color);
    padding: 10px;
    margin: 10px;
    border: 3px solid #9b4f18;
    border-radius: 6px;
    box-shadow:
        inset 0 0 0 2px #ffd98b,
        0 6px 0 #06101c,
        0 10px 20px rgb(0 0 0 / 35%);
}

h1.title {
    font-size: 5em;
    margin-bottom: 1.5rem;
    color: #f6d38a;
    text-shadow: 3px 3px 0 #6b3515;
}

h1 {
    font-family: 'Calligraffitti', cursive;
}

/* css reset */
/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
    margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    /* 4. Increase line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
    isolation: isolate;
}