body {
    background: linear-gradient(-45deg, #121714, #1B2221, #2A3A37, #567A71, #393E46, #202524, #101312);
    background-size: 400% 400%;
    background-repeat: no-repeat;
    animation: gradient 10s ease infinite;
    min-height: 100vh;
}

@font-face {
    font-family: 'Beleren';
    src: url('../fonts/Beleren2016-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --------------------
   Legals 
-------------------- */
#encabezado-cartas2 {
  padding-top: 4.5rem;
  width: 100%;
  color: #fff;
  background-color: #101312;
  border-bottom: 1px solid #ecf4d5;
  text-align: start; 
}

.breadcrumb-item a{
    color: #79ac9f;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in;
}
.breadcrumb-item a:hover{
    color: #ecf4d5;
}
.breadcrumb-item+.breadcrumb-item::before{
    color: #ecf4d5 !important;
}

.breadcrumb-item.active {
    color: #ecf4d5a1;
    font-weight: 700;
}


/* --- Breadcrumb personalizado --- */

#legal-1>li {
    list-style: none;
    font-family: "Red Hat Display", sans-serif;
}

#legal-2>li {
    list-style: none;
    font-family: "Red Hat Display", sans-serif;
}

.legal-visual {
    min-width: 70px;
    font-size: 10px;
    background-color: #567A71;
    color: #ecf4d5;
    text-align: center;
    border-radius: 0.175rem;
    margin-right: 10px;
    padding: 4px 0 4px 0;
    font-family: "Red Hat Display", sans-serif;
    margin-left: 8px;
    font-weight: 700;
}

.ilegal-visual {
    min-width: 70px;
    font-size: 10px;
    background-color: #ecf4d583;
    color: #000;
    text-align: center;
    border-radius: 0.175rem;
    margin-right: 10px;
    padding: 4px 0 4px 0;
    font-family: "Red Hat Display", sans-serif;
    margin-left: 8px;
    font-weight: 600;
}

#modos {
    padding-left: 0px;
}

#modos>div>li>p:nth-child(2) {
    font-size: 12px;
    font-family: "Red Hat Display", sans-serif;
}

.boton-subir {
    position: fixed;
    top: 850px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #393e46;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    cursor: pointer;
    color: #eeeeee;
}

.color {
    width: 22px;
    transition: all 0.5s ease-in;
}

.boton-subir>a>svg {
    color: #eeeeee;
}

.boton-subir>a>svg:hover {
    color: #eeeeee;
    transform: translateY(-5px);
    transition: all 0.2s ease-in;
}

#imgFocus {
    width: 400px;
    padding: 0px;
    margin: 0px;
    border-radius: 1rem;
}

#section-carta-foto {
    padding: 0px;
    padding-bottom: 30px;
}

#section-carta-texto {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
    border-left: 1px solid #ecf4d5;
    border-right: 1px solid #ecf4d5;
    border-top: 5px solid #ecf4d5;
    border-bottom: 5px solid #ecf4d5;
    font-family: 'Beleren', serif;
    padding: 0 !important;
}

#section-carta-texto>div:nth-child(1) {
    display: flex;
    justify-content: start;
    align-items: center;
    padding-top: 20px;
    padding-left: 15px;
}

#section-carta-texto>div>h1 {
    font-family: "DM Serif Text", serif;
    height: 100%;
    font-size: 140%;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;
}

#section-carta-texto>div>p {
    padding-left: 15px;
    font-size: 1rem;
}

#type_line {
    font-family: "Red Hat Display", sans-serif;
    font-size: 1rem;
    padding-left: 15px;
}

#carta-texto {
    border-top: 1px solid #393e46;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding-left: 15px;
    padding-top: 20px;
    font-family: "Red Hat Display", sans-serif;
    max-width: 100px;
}

#section-carta-texto>div>img {
    width: 20px;
    height: 20px;
}

#container-cartas {
    width: 90%;
}

#section-3-carta {
    padding: 0px;
    padding-left: 20px;
}

#section-3-carta>a {
    text-decoration: none;
}
#section-3-carta>a>div:hover #icon-set {
    filter: brightness(0) saturate(100%) invert(21%) sepia(12%) saturate(13%) hue-rotate(191deg) brightness(66%) contrast(85%);
}

#section-3-carta>a>div:nth-child(1):hover {
    background-color: #ecf4d5;
    border-color: #ecf4d5;
    color: #393e46;
    transition: all 0.4s;
}

#section-3-carta>a>div:nth-child(1) {
    border: 1px solid #ecf4d5;
    border-top: 5px solid #ecf4d5;
    padding-left: 10px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #79ac9f;
    font-family: "DM Serif Text", serif;
    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
    transition: all 0.3s ease-in;
}

#section-3-carta>div:nth-child(2) {
    border: 1px solid #ecf4d5;
    padding-left: 10px;
    height: 60px;
}

#section-3-carta>div:nth-child(3) {
    border-left: 1px solid #ecf4d5;
    border-right: 1px solid #ecf4d5;
    padding-left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #79ac9f;
    font-family: "DM Serif Text", serif;
    padding-top: 10px;
    padding-bottom: 10px;
}

#section-3-carta>div:nth-child(4) {
    border: 1px solid #ecf4d5;
}

#section-3-carta>div:nth-child(5) {
    border: 1px solid #393e46;
    padding-left: 10px;
    background-color: #393e46;
    color: #eeeeee;
    font-family: "DM Serif Text", serif;
}

#section-3-carta>div:nth-child(6) {
    border: 1px solid #ecf4d5;
    border-bottom: 5px solid #ecf4d5;
}

#container-cartas {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-bottom: 1px dashed #393e46;
}

#article-2 {
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: row;
    padding: 30px 3.5%;
}

#article-2>#section-carta-foto {
    height: auto;
    padding-right: 20px;
}

#article-2>div {
    height: auto;
    margin-top: 30px
}

#article-2>#section-3-carta {
    height: auto;
}

#icon-set {
    transition: filter 0.7s ease-in;
    height: 40px;
    padding-right: 20px;
    padding-left: 10px;
    filter: invert(42%) sepia(18%) saturate(1144%) hue-rotate(139deg) brightness(94%) contrast(86%);
}

#section-3-carta>a>div:nth-child(1) {
    display: flex;
    align-items: center;
    justify-content: start;
}

#h1-set {
    font-size: 25px;
    padding-top: 20px;
}

#info-card {
    display: flex;
    align-items: center;
    justify-content: start;
}

#idiomas {
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: row;
    padding: 0;
    margin-top: 18px;
}

.idioma {
    width: 30px;
    border: 1px solid #ecf4d500;
    margin-right: 10px;
    text-align: center;
    color: #393E46;
    border-radius: 0.375rem;
    background-color: #ecf4d598;
    transition: all 0.3s ease-in;
}

.idioma:hover {
    border: 1px solid #ecf4d5;
    background-color: #ecf4d5;
}

.color-2 {
    width: 20px;
}

#tokens {
    width: 100%;
}
col-12#article-2>#section-carta-foto
#tokens>ol {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

#tokens>ol>li {
    border-top: 1px solid #a7acb6;
    padding-left: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in;
}

#tokens>ol>li:hover {
    background-color: #eeeeee;
}

#tokens-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#tokens-title>h3 {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

a {
    text-decoration: none;
}

#section-3-carta>div {
    background-color: rgba(0, 0, 0, 0.5);
}

#prints {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#prints>ol {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

#prints>ol>li {
    border-top: 1px solid #a7acb6;
    padding-left: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in;
}

#prints>ol>li:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

#prints-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#prints-title>h3 {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

#prints-title>div {
    display: flex;
    height: 100%;
}

#prints-title>div>p {
    padding: 0;
    margin: 0;
    padding-right: 20px;
    min-width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
}

#all-prints {
    background-color: rgba(0, 0, 0, 0.3);
    color: #79ac9f;
}

#all-prints a {
    color: #79ac9f;
}

.bi-arrow-right{
    transition: all 0.2s ease-in;
}

#all-prints:hover .bi-arrow-right {
    transform: translateX(5px);
}

.print-text{
    display: inline-block;      /* o block, según tu layout */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;           /* ajusta según el espacio que tengas */
    vertical-align: middle;
}
.prints {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ecf4d5;
}

.prints>div {
    display: flex;
    height: 100%;
}

.prints>div>p {
    padding: 0;
    margin: 0;
    min-width: 50px;
}


.prints>div>p:nth-child(1) {
    padding: 0;
    margin: 0;
    padding-right: 20px;
}

.prints>div>p:nth-child(2) {
    padding: 0;
    margin: 0;
    padding-right: 20px;
}

.prints>div>p:nth-child(3) {
    padding-right: 20px;
}

#section-2>div>div>div>div {
    background-color: rgba(0, 0, 0, 0.7);
    border: 0px;
    border-radius: 1rem;
}

#section-2>div>div>div>div>div>div>div {
    color: #eeeeee;
}

#section-2>div>div>div>div>div>div>div>form>div>svg {
    padding-right: 10px;
    width: 45px;
    height: 45px;
}

.form-control {
    background-color: rgba(0, 0, 0, 0.1);
    color: #eeeeee;
}

.form-control:focus {
    color: #eeeeee;
    box-shadow: none;
    border: 1px solid #eeeeee;
    background-color: rgba(0, 0, 0, 0.1);
}

.form-control::placeholder {
    color: #eeeeee;
    opacity: 50%;
}

.form-check-input:checked {
    background-color: #00adb5;
    box-shadow: none;
}

.form-check-label>a {
    color: #00adb5;
}

#register-button {
    background-color: #4e545f;
    border: 1px solid #4e545f;
    color: #eeeeee;
}

#register-button:hover {
    background-color: #eeeeee;
    border: 1px solid #eeeeee;
    color: #393e46;
    transition: all 0.2s;
}

#register-button:active {
    background-color: #eeeeee;
    border: 1px solid #eeeeee;
    color: #393e46;
    transform: scale(0.9);
    transition: all 0.2s;
}

#section-3>div>div>div>div {
    background-color: rgba(0, 0, 0, 0.7);
    border: 0px;
    border-radius: 1rem;
}

#section-3>div>div>div>div>div>div>div {
    color: #eeeeee;
}

#section-3>div>div>div>div>div>div>div>form>div>svg {
    padding-right: 10px;
    width: 45px;
    height: 45px;
}

#like-card:hover #cover {
    opacity: 1;
}

#cover {
    width: 380px;
    border-radius: 1rem;
    height: 529.5px;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    transition: all 0.2s ease-in;
    display: flex;
    justify-content: center;
    align-items: center;
}

.enlace {
    color: #79ac9f;
    text-decoration: underline;
    transition: all 0.2s ease-in;
}

.enlace:hover {
    color: #567A71;
}

#cover svg {
    width: 80px;
    height: 80px;
    color: #ecf4d5;
}

#button {
    all: unset;
    transition: all 0.3s ease-in;
    width: 100%;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 0;
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#button svg {
    color: #ecf4d5;
    height: 25px;
    width: 25px;
    transition: transform 0.6s ease;
}


#button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #ecf4d5;
    
}
#button:hover > svg {
    transform: rotate(360deg);
}


#typeFocus {
    padding: 0;
    margin: 0;
    padding-left: 15px;
    font-size: 20px;
}

#flavorFocus {
    font-style: italic;
}


/* Animación de transición suave para la imagen */
#imgFocus {
    transition: opacity 0.3s ease-in-out;
}

#textFocus{
    color: #79ac9f;
}

/* Animación de transición suave para los textos */
#textFocus,
#typeFocus,
#text2focus,
#flavorFocus,
#powerFocus {
    transition: opacity 0.3s ease-in-out;
}

/* Animación de transición suave para los colores de maná */
#frontColors,
#backColors {
    transition: opacity 0.3s ease-in-out, visibility 0s 0.3s;
    /* Añadimos el tiempo de espera para visibility */
}

.legales{
    margin: 0;
    padding: 0;
}
.legales > div{
    margin: 0;
    padding: 0;
}
.legales > div > ol{
    margin: 0;
    padding: 0 !important;
}
#modos-col1, #modos-col2 {
    padding: 0;
}
.formato-truncado {
    max-width: 8ch; /* Muestra hasta 8 caracteres antes de recortar */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    font-family: "Red Hat Display", sans-serif;
    font-weight: 500;
}

/* Tooltip personalizado */
.formato-truncado:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 120%;
    background: #222;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* --- Efecto flip para la carta --- */
.card-container {
    perspective: 1200px;
    width: 390px;
    height: 540px;
    position: relative;
}

@media (max-width: 1399px) {
    .card-container {
        perspective: 1200px;
        width: 335px;
        height: 465px;
        position: relative;
    }
}
@media (max-width: 1199px) {
    .card-container {
        perspective: 1200px;
        width: 335px;
        height: 465px;
        position: relative;
        margin: 0 auto;
    }
    #section-carta-foto{
        padding: 0 !important;
    }
    #section-3-carta{
        padding: 0 !important;
        margin-top: 30px;
    }
}
@media (max-width: 657px) {
    .breadcrumb{
        font-size: 0.8rem;
        display: flex;
        flex-wrap: wrap;
    }
}


.card-container-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4,0.2,0.2,1);
    transform-style: preserve-3d;
}

.card-container.flipped .card-container-inner {
    transform: rotateY(180deg);
}

.card-face {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-face.front {
    z-index: 2;
}

.card-face.back {
    transform: rotateY(180deg);
    z-index: 1;
}

.card-header{
    background-color: rgba(0, 0, 0, 0.6);
    border-top-right-radius: 0.8rem !important;
    border-top-left-radius: 0.8rem !important;
    border-bottom: 1px solid #ecf4d5;
    width: 100%;
}
.card-title{
    color: #ecf4d5;
}
hr {
    border-color: #79ac9f !important;
    opacity: 0.6;
}

#text2focus{
    color: #ecf4d5;
    font-size: 1.2rem;
    margin-top: 10px;
}
#flavorFocus {
    color: #ecf4d5a1;
    font-size: 1.2rem;
    margin-top: 10px;
}

#powerFocus {
    color: #ecf4d5;
    font-size: 1.4rem !important;
}
.card-text {
    color: #ecf4d5;
}

.print-preview-img {
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border: 1px solid #393e46;
    transition: transform 0.2s;
}
.print-preview-img:hover {
    transform: scale(1.08);
    z-index: 2;
}

.print-tooltip {
    position: relative;
    cursor: pointer;
    color: #ecf4d5;
    text-decoration: underline dotted;
}

.print-tooltip-img {
    display: none;
    position: absolute;
    left: 50%;
    top: 120%;
    transform: translateX(-50%);
    width: 220px;
    height: 320px;
    background: #222;
    border: 2px solid #393e46;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    z-index: 1000;
    pointer-events: none;
    animation: fadeIn 0.18s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
