/* Backgrounds preload */
:root {
    --bg-rookie: url(./data/bg-rookie.png);
    --bg-main: url(./imgs/background.png);
    --bg-banner: url(./imgs/banner.png);
}

/* Aplicar background com will-change */
.rookie {
    background-image: var(--bg-rookie);
    will-change: background-image;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    contain: paint;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: var(--bg-main);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh; /* Garante que o body ocupe a altura total da tela */
    display: flex;
    flex-direction: column;
    will-change: background-image;
}

body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

h3 {
    font-family: 'Montserrat', sans-serif; /* Matches h1 and h2 */
    color: white;
}
.search-bar {
    width: 100%;
    position: fixed;
    top: 0;
    background-color: #282626;
    z-index: 10;
    padding: 16px;
    display: flex;
    justify-content: center; /* Centraliza o conteúdo horizontalmente */
    align-items: center; /* Centraliza o conteúdo verticalmente */
    color: #7ccc26!important;
    border-bottom: 4px solid #7ccc26;


}

.search-bar:before {
    content: " ";
    position: absolute;
    z-index: -1;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: -12px;
    border-bottom: 8px solid #282626;
  }
  
::placeholder {
    color: white;
    opacity: 1; /* Firefox */
  }
#search-input {
    width: 40%;
    height: 48px;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: white!important;
    opacity: 1 !important;
    border-width: 0;
    border-bottom: 4px solid white;
    background-color: transparent;
}

#search-input:focus {
    outline: 0;
    background: transparent;
}

.profile {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color:white;    
}

.skills-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-item {
    margin: 10px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.skill-name {
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
}

.skill-desc {
    color: #ccc;
    font-size: 0.9em;
    line-height: 1.4;
}
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
  
  }
  
.logo {
    width: auto;
    height: 160px;
    transition: transform 0.3s ease, height 0.3s ease;
    position: fixed;
    top: 0px;
    left: 16px;
    z-index: 10;
    filter: brightness(1) drop-shadow(10px 10px 8px rgba(0,0,0,0.5));;

}

.topnav {
    overflow: hidden;
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    transition: flex-direction 0.3s ease, height 0.3s ease;

  }

  .topnav.scrolled {
}

  .menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    }
  
  .topnav a {
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
  }
  

  .topnav a.active {
    color: white;
  }
  
  .topnav .icon {
    display: none;
  }
  
  @media screen and (max-width: 600px) {
    #search-input {
        width: 80%;
    }
  
    .logo {
        width: auto;
        height: 120px;
        top: 24px;
        left:0 ;
        right: 0;
        margin: auto;
        transition: transform 0.3s ease, height 0.3s ease;
    }

    .topnav a:not(:first-child) {display: none;}
    .topnav a.icon {
      display: block;
      width:64px;
      height: 64px;
    }
  }
  
  @media screen and (max-width: 600px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive .icon {
      right: 0;
      top: 0;

    }
    .topnav.responsive a {
      float: none;
      display: block;
      text-align: center;
    }
  }

.logo:hover {
    transform: scale(1.1);
}

@font-face {
    font-family: 'Montserrat';
    font-weight: normal;
    font-style: normal;
}

/* width */
::-webkit-scrollbar {
    height: 80%;
    width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
    background: none;
}

/* Handle */
::-webkit-scrollbar-thumb {
    width: 8px;
    border-left: 1.5px solid transparent;
    background: rgba(0, 0, 0, 0.2);
    right: 20px;
    border-radius: 8px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: white;
}
h1 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: white;
}


#profile {
    margin-top: 32px !important;
    width: 80%;
    margin: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3); /* Fundo semi-transparente */
    border-radius: 24px;
}


#profile h3 {
    line-height: 1em;
    margin: 0 0 1em 0;
}

#profile p {
    margin: 0;
}



.stage-section {
    margin-bottom: 20px;
}

.digimon-cards-container {
    display: flex;
    flex-wrap: wrap; /* Permite quebra de linha se necessário */
    justify-content: center; /* Alinha os cards no centro */
}

#digimon-list {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;

    align-items: center;
    padding-top: 48px;
    margin-bottom: 96px;

}

.digimon-card {
    padding: 10px;
    text-align: center;
    cursor: pointer;
    margin: 5px;
    position: relative;
    transition: transform 0.3s ease;
    filter: brightness(1) drop-shadow(10px 10px 8px rgba(0,0,0,0.5));
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    contain: content;
    will-change: transform;
    min-width: 300px;
    min-height: 300px;
    box-sizing: border-box;
}

.digimon-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(./data/bg-rookie.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 0;


    transform-origin: center center;
}

.digimon-card img {
    object-fit: contain;
    background-color: transparent;
    position: relative;
    z-index: 1;
    filter: brightness(1);
    transition: filter 0.3s ease, transform 0.3s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
    contain: paint;
    width: 300px !important;
    height: 300px !important;
    margin: auto;
}

.digimon-card h3 {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    line-height: 1.2;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    font-family: 'Pixel Digivolve';
    font-style: italic;
}

.digimon-card:hover::before {
    opacity: 1; /* Fundo opaco no hover */
    animation: spin 2s linear infinite; /* Rotação contínua do fundo */
}

.digimon-card:hover {
    transform: scale(1.1); /* Zoom no card inteiro (imagem + fundo) */
    filter: brightness(1.1) drop-shadow(10px 10px 8px rgba(0,0,0,0.5));
}

/* Animação de rotação */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: overlayFadeIn 0.5s forwards;
}

#overlay.closing {
    animation: overlayFadeOut 0.5s forwards;
}

#overlay.hidden {
    display: none;
}

#digimon-details h2 {
    line-height: 1em;
    font-size: 2em !important;
    display: block;
    font-size: 1.5em;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    text-align: center;
    font-family: 'Pixel Digivolve';
    src: url('data/Pixel Digivolve Italic.otf') format('opentype');
    font-style: italic;
    color: white;
    text-shadow: 
    /* Borda de 4px ao redor do texto */
    -4px -4px 0 #000, 4px -4px 0 #000, -4px 4px 0 #000, 4px 4px 0 #000,
    -4px 0 0 #000, 4px 0 0 #000, 0 -4px 0 #000, 0 4px 0 #000,
    -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000,
    -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
    -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,

    /* Sombra longa diagonal, mantendo espessura de 4px */
    5px 5px 0 #000, 5px 6px 0 #000, 5px 7px 0 #000, 5px 8px 0 #000,
    6px 5px 0 #000, 6px 6px 0 #000, 6px 7px 0 #000, 6px 8px 0 #000,
    7px 5px 0 #000, 7px 6px 0 #000, 7px 7px 0 #000, 7px 8px 0 #000,
    8px 5px 0 #000, 8px 6px 0 #000, 8px 7px 0 #000, 8px 8px 0 #000;

}

#digimon-details h3 {
    color: #fff;
    font-family: 'Arial', sans-serif;
    text-shadow: none;
    margin: 16px;
    margin: auto;
}
.digimon-info h3{
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}
#digimon-details h4 {
    color: #fff;
    font-family: 'Arial', sans-serif;
    text-shadow: none;
    margin-top:0px;
    margin: auto;
text-align: center;
}
#digimon-details {
    background-color: #282626;
}


.container-list{
    padding-top: 96px;
    min-height: calc(100vh - 289px);
}
.container {
    position: relative;
    animation: slideUp 0.5s forwards;
}

.container.closing {
    animation: slideDown 0.3s forwards;
}

.container button {
    position: absolute; /* Permite posicionamento fora da div pai */
    cursor: pointer;
    color: white; /* Cor do texto */
    border: none; /* Remove borda padrão */
    border-radius: 50%; /* Torna o botão redondo */
    width: 30px; /* Largura do botão */
    height: 30px; /* Altura do botão */
    background: none;
    font-size: 1.2em; /* Tamanho do texto */
    line-height: 0; /* Remove altura da linha para centralizar */
    padding: 0; /* Remove padding */
    z-index: 10; /* Garante que o botão fique acima do contêiner */
}
.close-btn {
    background: none;
    border: none;
    margin: 10px;
    cursor: pointer;
}


.close-btn img {
    width: 24px; /* Adjust size as needed */
    height: 24px;
    filter: brightness(0) invert(1) opacity(0.5); /* White and semi-transparent */
    transition: opacity 0.3s ease; /* Smooth transition for hover */
}

.close-btn:hover img {
    filter: brightness(0) invert(1) opacity(1); /* White and fully opaque on hover */
}
.evolution {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color:white;    
    flex-direction: column;
}

.evolution-content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px;
}

.evolve-to, .evolve-from {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: top;
}

.evolution-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    transition: transform 0.3s ease, background 0.3s ease;
    flex-basis: calc(25% - 15px);
    max-width: calc(25% - 15px);
    min-width: calc(25% - 15px);
    box-sizing: border-box;
    aspect-ratio: 1;
}

.evolution-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.evolution-card img {
    margin-right: 0;
    width: calc(100% - 20px) !important;
    height: auto !important;
    border-radius: 8px 8px 0 0;
    background-color: white;
    padding: 10px;
    object-fit: contain;
    aspect-ratio: 1;
}

/* Estilo para imagens lazy loading */
.evolution-card img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in;
    background: rgba(255, 255, 255, 0.1);
}

.evolution-card img:not(.lazy) {
    opacity: 1;
}

/* Placeholder para imagens não carregadas */
.evolution-card img.lazy:not([src]) {
    visibility: hidden;
}

.evolution-card .evolution-details {
    color: white; /* Cor padrão do texto */
    text-align: center; /* Centraliza o texto */
    padding-bottom: 12px;
}

.evolution-card .evolution-details p:first-child {
    margin: 0; /* Remove margem padrão */
    font-weight: 300;
}

.evolution-card .evolution-details p:not(:first-child) {
    color: #ccc; /* Cor mais clara para informações adicionais */
    font-size: 0.7em; /* Tamanho menor para detalhes */
    margin: 5px 0 0 0; /* Pequena margem superior */
}

.evolution-card p {
    margin: 0;
}

.evolution {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 20px; /* Adiciona espaçamento de 10px entre as divs */
}
.variations {
    display: flex;
    flex-wrap: wrap; /* Permite quebra de linha */
    justify-content: center; /* Centraliza os cards */
    gap: 20px; /* Espaço entre os cards */

}
.variation-card p {
    margin: 4px; /* Remove a margem padrão do parágrafo */
}

.variation-card {
    display: flex;
    flex-direction: column; /* Exibe a imagem e o nome em coluna */
    align-items: center;
    cursor: pointer;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.3); /* Fundo semi-transparente */
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Adiciona a transição */
}

.variation-card:hover {
    background-color: rgba(255, 255, 255, 0.6); /* Fundo semi-transparente */
    transform: scale(1.05); /* Adiciona a transformação */
}

.variation-card img {
    max-width: 96px !important;
    max-height: 96px !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
}

.link {
    text-decoration: underline;
    cursor: pointer;
}

@keyframes slideUp {
    from {
        transform: translateY(150%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(150%);
        opacity: 0;
    }
}

@keyframes overlayFadeIn {
    from {
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

@keyframes overlayFadeOut {
    from {
        background-color: rgba(0, 0, 0, 0.7);
    }
    to {
        background-color: rgba(0, 0, 0, 0);
    }
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: overlayFadeIn 0.5s forwards;
}

#overlay.closing {
    animation: overlayFadeOut 0.5s forwards;
}

@media (max-width: 768px) {
    .digimon-card {
        width: 300px;
        height: 300px;
        padding: 5px;
    }

    .digimon-card img {
        width: 300px !important;
        height: 300px !important;
    }

    .digimon-card h3 {
        font-size: 0.8em;
    }
    #digimon-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 0px;
    }
    h1 {    
        margin-top: 64px;
    }
    .logo{
        margin-top: 96px;
        position: relative;
        z-index: inherit;
    }
    .container-list{
        padding-top: 0px;
    }
    .evolution {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        margin-top: 10px;
        gap: 20px;
    }
    .lazy-image {
        min-height: 80px;
    }
    .art-container img {
        position: relative;
        z-index: 1;
        width: 100% !important;
        height: auto !important;
        background: none !important;
        filter: brightness(1);
        transition: filter 0.3s ease; /* Transição suave para o filtro */
        animation: breathing 4s ease-in-out infinite;
        transform-origin: center bottom;
    }
}
#digimon-details {
    background: #282626;
    padding: 20px;
    width: 640px;
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    max-width: 85vw !important;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
overflow-x: hidden;
}



.banner {
    width:100%;
    background-color: #08c8f9;
    background-image: var(--bg-banner);
    will-change: background-image;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    contain: paint;
}

.carousel {
    position: relative;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.64);
    margin-top: 0;
}

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

.carousel-open:checked + .carousel-item {
    position: static;
    opacity: 100;
}

.carousel-item {
    position: absolute;
    opacity: 0;
    -webkit-transition: opacity 0.6s ease-out;
    transition: opacity 0.6s ease-out;
}

.carousel-item img {
    display: block;
    height: auto;
    max-width: 100%;
}

.carousel-control {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 40px;
    height: 40px;
    line-height: 35px;
    position: absolute;
    top: 50%;
    -webkit-transform: translate(0, -50%);
    cursor: pointer;
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    text-align: center;
    width: 40px;
    z-index: 10;
}

.carousel-control.prev {
    left: 2%;
}

.carousel-control.next {
    right: 2%;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #aaaaaa;
}

#carousel-1:checked ~ .control-1,
#carousel-2:checked ~ .control-2,
#carousel-3:checked ~ .control-3 {
    display: block;
}

.carousel-indicators {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    bottom: 2%;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.carousel-indicators li {
    display: inline-block;
    margin: 0 5px;
}

.carousel-bullet {
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 35px;
}

.carousel-bullet:hover {
    color: #aaaaaa;
}

#carousel-1:checked ~ .control-1 ~ .carousel-indicators li:nth-child(1) .carousel-bullet,
#carousel-2:checked ~ .control-2 ~ .carousel-indicators li:nth-child(2) .carousel-bullet,
#carousel-3:checked ~ .control-3 ~ .carousel-indicators li:nth-child(3) .carousel-bullet {
    color: #428bca;
}

#title {
    width: 100%;
    position: absolute;
    padding: 0px;
    margin: 0px auto;
    text-align: center;
    font-size: 27px;
    color: rgba(255, 255, 255, 1);
    font-family: 'Open Sans', sans-serif;
    z-index: 9999;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.33), -1px 0px 2px rgba(255, 255, 255, 0);
}

#digimon-details a {
    color: #fff;
    text-decoration: none;
}



.gallery {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color:white;    
}
.gallery h3 {
    padding-bottom: 20px;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.gallery-item-link {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    max-width: calc(45% - 10px);
    box-sizing: border-box;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
    padding: 0;
    text-align: center;
    overflow: hidden;
    width: 200px;
}

.gallery-item img {
    width: 100%;
    max-height: 200px !important;
    aspect-ratio: auto;
    display: block;
    border-radius: 8px 8px 0 0;
    margin: 0;
    object-fit: contain !important;
    background-color: white !important;
}

.gallery-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.gallery-desc {
    color: white;
    padding: 12px 8px;
    font-size: 0.9em;
    background: none;
}

.gallery-artist {
    color: white;
    padding: 8px 8px 4px 8px;
    font-size: 0.9em;
    font-weight: bold;
    background: none;
}

.gallery-description {
    color: #cccccc;
    padding: 0px 8px 8px 8px;
    font-size: 0.85em;
    font-style: italic;
    line-height: 1.4;
    background: none;
}

.gallery-content {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
    border-radius: 0 0 8px 8px;
}

.main-content {
    flex: 1 0 auto; /* Isso empurra o footer para baixo */
}
.footer {
    background-color: #282626;
    color: #fff;
    width: 100%;
    border-top: 4px solid #7ccc26;
    flex-shrink: 0; /* Impede que o footer encolha */
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start; /* Aligns content at the top */
    max-width: 80%; /* Matches the width of other containers like #profile */
    margin: 0 auto;
}

.footer-section {
    margin: 10px;
    flex: 1 1 200px;
}

.footer-section h3 {
    font-family: 'Montserrat', sans-serif; /* Matches h1 and h2 */
    color: white; /* Accent color for headings */
}

.footer-section p {
    color: #ccc; /* Slightly muted text for readability */
    font-size: 0.9em;
    line-height: 1.4;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth hover transition */
}

.footer-section ul li a:hover {
    color: #7ccc26; /* Accent color on hover */
}

.footer-bottom {
    background-color: rgba(255, 255, 255, 0.05); /* Subtle transparency like other elements */
    font-size: 1.1em;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Matches profile and skills-section */
}

.footer-bottom a {
    color: #7ccc26; /* Accent color for the link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #fff; /* White on hover for contrast */
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        max-width: 90%; /* Slightly narrower on mobile */
    }

    .footer-section {
        margin: 15px 0; /* More spacing on mobile */
    }
}
.category-tag{
    width: fit-content;
    margin: 12px auto 12px auto;
    background-color: #000;
    color: white;

    font-weight: 700;
    font-size: 0.75em;
    padding: 4px;
    border-radius: 32px;
    margin-bottom: 32px;
}


.evo-tag{
    margin: 0;
    
}

.var-tag{
    margin: 0 auto;
    
}
.category-tag.alt-version {
    background-color:#e519af;
}
.category-tag.fanart {
    background-color:#7ccc26 !important;
}
.category-tag.alt-original {
    background-color: #2853f9;
}

.art-container {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.art-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(./imgs/SYMBOL.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transform-origin: center center;
    animation: spin 2s linear infinite;
}

.art-container img {
    position: relative;
    z-index: 1;
    width: auto !important;
    height: 480px !important;
    background: none !important;
    filter: brightness(1);
    transition: filter 0.3s ease; /* Transição suave para o filtro */
    animation: breathing 4s ease-in-out infinite;
    transform-origin: center bottom;
}

/* Breathing animation */
@keyframes breathing {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.client-info {
    display: flex;
    align-items: center;
    gap: 8px; /* Espaço entre ícone e texto */
    color: #fff; /* Branco para combinar com o resto */
    margin: auto;
    font-family: 'Montserrat', sans-serif; /* Mesma fonte dos títulos */
}

.client-info img,
#digimon-details .client-info img {
    width: 16px !important;
    height: 16px !important;
    object-fit: contain !important;
}

.client-info a {
    color: #7ccc26; /* Verde da interface */
    text-decoration: none;
    transition: color 0.3s ease;
}

.client-info a:hover {
    color: #fff; /* Branco no hover para contraste */
    text-decoration: underline;
}


/* Opcional: Aura no hover, se preferir */
.art-container:hover img {
    filter: brightness(1.1) drop-shadow(0 0 10px #7ccc26);
}

/* Animação spin */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#toggle-art-button {
    position: absolute;
    top: 10px;
    right: 10px;
    left:auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-image: url("./imgs/toggle.png");
    background-size: contain;
    background-color: #007bff;

    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#toggle-art-button:hover {
    background-color: #0056b3;
}
.node rect {
    fill: #fff;
    stroke-width: 3px;

}

/* Lazy Loading Styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-out;
    will-change: opacity;
    background-size: 100px 100px;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: auto;
    display: block;
}

.lazy-image.loaded,
.lazy-image[src^="/images/"],
.lazy-image[src^="images/"] {
    opacity: 1;
}

/* Otimizações de Performance */
.digimon-card {
    contain: content;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    overflow: hidden;
}

.digimon-card img {
    backface-visibility: hidden;
    transform: translateZ(0);
    contain: paint;
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .lazy-image {
        min-height: 80px;
    }
    .art-container img {
        position: relative;
        z-index: 1;
        width: 100% !important;
        height: auto !important;
        background: none !important;
        filter: brightness(1);
        transition: filter 0.3s ease; /* Transição suave para o filtro */
        animation: breathing 4s ease-in-out infinite;
        transform-origin: center bottom;
    }
}

.digimon-counter {
    text-align: center;
    margin: -10px 0 20px;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.digimon-counter #digimon-count {
    font-size: 2em;
    font-weight: bold;
    color: #7ccc26;
    text-shadow: 0 0 10px rgba(124, 204, 38, 0.3);
    min-width: 3ch;
    display: inline-block;
}

.digimon-counter span:last-child {
    font-size: 1.2em;
    opacity: 0.8;
}

.evolution-info, .evolution-artist {
    font-size: 0.8em;
}

.evolution-artist {
    font-style: italic;
}

.last_info {
    padding-bottom: 8px;
}

.evolution-artist img {
    height: 16px!important;
    width: 16px!important;
    padding:0;
    margin:0;
}

/* Estilos para botões de interação estilo TikTok */
.main-content-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.tiktok-style-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    right: 20px;
    bottom: 20px;
    top: auto;
    z-index: 10;
    gap: 20px;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.action-button:hover {
    transform: scale(1.1);
}

.action-button i {
    font-size: 24px;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 4px;
}

.action-button span {
    font-size: 12px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.action-count {
    font-weight: bold;
}

.like-button.liked i {
    color: #ff2d55;
}

.bookmark-button.bookmarked i {
    color: #ffcc00;
}

/* Estilos para a interface de compartilhamento personalizada */
#custom-share-interface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.share-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlayFadeIn 0.3s forwards;
}

.share-container {
    background-color: #282626;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s forwards;
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.share-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.share-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.share-close:hover {
    color: white;
}

.share-options {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
}

.share-option:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.2);
}

.share-option i {
    font-size: 24px;
    margin-bottom: 8px;
    color: white !important;
}

.share-option span {
    font-size: 12px;
    text-align: center;
    color: white !important;
}

.share-option.facebook {
    background-color: rgba(24, 119, 242, 0.7); /* Facebook blue */
}

.share-option.twitter {
    background-color: rgba(29, 161, 242, 0.7); /* Twitter blue */
}

.share-option.whatsapp {
    background-color: rgba(37, 211, 102, 0.7); /* WhatsApp green */
}

.share-option.telegram {
    background-color: rgba(0, 136, 204, 0.7); /* Telegram blue */
}

.share-option.copy {
    background-color: rgba(128, 128, 128, 0.7); /* Gray for copy link */
}

@media (max-width: 480px) {
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Estilo para o contador de likes nos cards */
.card-like-counter {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 8px;
    border-radius: 20px;
    color: white;
    z-index: 2;
    opacity: 0; /* Inicialmente invisível */
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.3s ease; /* Adicionado transição de opacidade */
}

.digimon-card:hover .card-like-counter {
    opacity: 1; /* Torna visível no hover */
}

.card-like-counter:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.8);
}

.card-like-counter i {
    color: transparent;
    margin-right: 5px;
    font-size: 14px;
    -webkit-text-stroke: 1.5px white; /* Adiciona contorno branco */
    text-stroke: 1.5px white;
    transition: color 0.2s ease;
}

.card-like-counter.liked i {
    color: white; /* Preenchimento branco quando liked */
    -webkit-text-stroke: 0; /* Remove o contorno */
    text-stroke: 0;
}

.card-like-count {
    font-size: 12px;
    font-weight: bold;
}

/* Ajuste na posição relativa do card para o posicionamento absoluto do contador funcionar */
.digimon-card {
    position: relative;
}

/* Estilo similar para o coração no modal */
.like-button i {
    color: transparent;
    -webkit-text-stroke: 1.5px white;
    text-stroke: 1.5px white;
    transition: color 0.2s ease;
}

.like-button.liked i {
    color: white;
    -webkit-text-stroke: 0;
    text-stroke: 0;
}

