body {
    background-image: url(../imagens/pmdbackground1920cortado2.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    gap: 60px;
}

header {
    font-family: 'Pokemon', serif;
    display: flex;
    justify-content: center;
}

.cabecalho .titulo {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
    display: block;
    max-width: 100%;
    height: auto;
}

main {
    font-family: 'Yugioh', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 130px;
}

.cartao {
    opacity: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 5px;
    position: absolute;
    transition: 0.5s;
}

.cartao.selecionado {
    opacity: 1;
    z-index: 1;
}

.lista-personagens {
    width: 300px;
    height: 500px;
    border-radius: 10px;
    position: relative;
    padding: 12px;
}

.cartao .nome-personagem {
    background: radial-gradient(circle, #f3e2c8, #e4cfa5, #c4a57a);
    font-size: 15px;
    padding: 5px;
    text-transform: uppercase;
    border: 2px solid #a67c52;
    border-radius: 4px;
}

.nome-personagem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nome-personagem img {
    height: 28px;
    width: auto;
}

.cartao .estrela {
    width: 20px;
    height: 20px;
    background-image: url(../imagens/nivel-carta.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.fundo-7 .estrela{
    width: 19px;
    height: 19px;
}

.cartao .nivel-carta {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-right: 6px;
}

.cartao .imagem-carta {
    max-width: 260px;
    align-self: center;
}

.cartao .informacoes-personagem {
    max-width: 300px;
    color: #000000;
    background: radial-gradient(circle, #f3e2c8, #e4cfa5, #c4a57a);
    border: 2px solid #a67c52;
    border-radius: 4px;
    text-align: left;
    line-height: 1.5;
    padding: 5px;
}

.cartao .informacoes-personagem .descricao {
    border-bottom: 1px solid #000000;
    max-height: 95px;
    padding: 5px;
    overflow-y: scroll;
    font-size: 13px;
}

.cartao .informacoes-personagem .atributos {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 3px;
    font-size: 15px;
}

.fundo-1 {
    background: url(../imagens/fundo-1.jpg) no-repeat;
}

.fundo-2 {
    background: url(../imagens/fundo-2.jpg) no-repeat;
}

.fundo-3 {
    background: url(../imagens/fundo-3.jpg) no-repeat;
}

.fundo-4 {
    background: url(../imagens/fundo-4.jpg) no-repeat;
}

.fundo-5 {
    background: url(../imagens/fundo-5.jpg) no-repeat;
}

.fundo-6 {
    background: url(../imagens/fundo-6.jpg) no-repeat;
}

.fundo-7 {
    background: url(../imagens/fundo-7.jpg) no-repeat;
}

.fundo-8{
    background: url(../imagens/fundo-8.jpg) no-repeat;
}

.fundo-9{
    background: url(../imagens/fundo-9.jpg) no-repeat;
}

.fundo-10{
    background: url(../imagens/fundo-10.jpg) no-repeat;
}

.btn-seta{
    background-color: #ffffff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;  
}

.btn-seta.btn-voltar{
    transform: rotateY(180deg);
}

.btn-seta:hover{
    background-color: #03fcba;
}

.carta-virada{
    display: none;
}

.carta-virada.mostrar-fundo-carta{
    background: url(../imagens/fundocarta2.jpg);
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    top: 0;
    left: 0;
    border-radius: 10px;
    z-index: 2;
}

.cartao.virar{
    transform: rotateZ(90deg);
    transition: transform 0.5s ease-in-out;
    transition: 0.5s;
}

.esconder{
    display: none;
}

.menu-transparente{
    top: -10%;
    left: 5.5%;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.75s ease, transform 0.5s ease-in-out, visibility 0.5s ease-in-out;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 3;
}

.menu-transparente.mostrar-menu{
    top: -10%;
    left: 5.5%;
    opacity: 0.9;
    transform: translateY(0);
    pointer-events: all;
    visibility: visible;
    z-index: 3;
}

.menu-setTransparente{
    top: 42%;
    left: -55%;
    pointer-events: none;
    transform:rotateZ(270deg);
    transition: opacity 0.75s ease, transform 0.5s ease-in-out, visibility 0.5s ease-in-out;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 3;
}

.menu-setTransparente.mostrar-menu{
    top: 42%;
    left: -55%;
    opacity: 0.9;
    transform:rotateZ(270deg);
    pointer-events: all;
    visibility: visible;
    z-index: 3;
}

.menu-inicial, .menu-set, .menu-combate{
    position: absolute;
    bottom: 10px;
    display: flex;
    gap: 5px;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.75s ease, transform 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.menu-inicial.mostrar-menu, .menu-set.mostrar-menu, .menu-combate.mostrar-menu{
    visibility: visible;
    pointer-events: all;
}

.menu-inicial .btn-opcao{
    padding: 8px 44px;
    border: none;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.menu-set .btn-opcao{
    padding: 8px 45.8px;
    border: none;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.menu-combate .btn-opcao{
    padding: 8px 23.5px;
    border: none;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.btn-opcao img{
    height: 35px;
    width: 35px;
    pointer-events: all;
}

.carta-escura{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:rgba(0, 0, 0, 0.6) ;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1;
}

.gif-sprite{
    position: absolute;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    visibility: hidden;
    opacity: 0;
    z-index: 2;
}

.gif-adicional{
    position: absolute;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
}

.darumaka-gif{
    top: 54%;
    left: 43%;
    width: 111px;
    height: 93px;
}

.darmanitan-gif{
    top: 44%;
    left: 50%;;
    width: 174.6px;
    height: 164px;
}

.chatot-gif{
    top: 45%;
    left: 50%;
    width: 96px;
    height: 120px;
}

.jirachi-gif{
    top: 45%;
    left: 50%;
    width: 153.6px;
    height: 119px;
}

.gyarados-gif{
    top: 45%;
    left: 60%;
    width: 288px;
    height: 260.5px;
}

.tropius-gif{
    top: 50%;
    left: 50%;
    width: 406px;
    height: 158px;
}

.golurk-gif{
    top: 45%;
    left: 50%;
    width: 253.5px;
    height: 325px;
}

.manaphy-gif{
    top: 50%;
    left: 55%;
    width: 65px;
    height: 55px;
}

.kyogre-gif{
    top: 43%;
    left: 50%;
    width: 468px;
    height: 110px;
}

.lugia-gif{
    top: 45%;
    left: 50%;
    width: 312px;
    height: 254px;
}

.swadloon-gif{
    top: 50%;
    left: 50%;
    width: 140px;
    height: 114px;
}

.hatterene-gif{
    top: 45%;
    left: 50%;
    width: 95.3px;
    height: 210px;
}

.eelektross-gif{
    top: 45%;
    left: 50%;
    width: 222px;
    height: 140px;
}

.shayminsky-gif{
    top: 50%;
    left: 43%;
    width: 156px;
    height: 146px;
}

.magikarp-gif{
    top: 50%;
    left: 50%;
    width: 173px;
    height: 184.5px;
}

.onix-gif{
    top: 45%;
    left: 50%;
    width: 266px;
    height: 331.5px;
}

.hetran-gif{
    top: 50%;
    left: 50%;
    width: 248px;
    height: 128px;
}

.abomasnow-gif{
    top: 50%;
    left: 50%;
    width: 413px;
    height: 283.5px;
}

.snorlax-gif{
    top: 50%;
    left: 50%;
    width: 279px;
    height: 269.5px;
}

.charmander-gif{
    top: 64%;
    left: 37%;
    width: 70.25px;
    height: 90px;
}

.charizard-gif{
    top: 40%;
    left: 60%;;
    width: 263.66px;
    height: 277px;
}

.rhyperior-gif{
    top: 50%;
    left: 50%;
    width: 210px;
    height: 188px;
}

.cartao.summon .carta-escura, .cartao.summon .gif-sprite, .cartao.summon .gif-adicional{
    visibility: visible;
    opacity: 1;
}

.gif-golpe{
    position: absolute;
    z-index: 3;
    display: flex;
    width: 180px;
    height: 180px;
    transform: translate(-70%, -70%);
    transition: opacity 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
}

.gif-golpe.mostrar-golpe{
    visibility: visible;
    animation: aparecer 1s ease-in-out forwards;
    opacity: 0.75;
}

.gif-escudo{
    z-index: 3;
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    top: 45%;
    left: 45%;
    transition: opacity 0.5s ease-in-out;
}

.gif-escudo.mostrar-escudo{
    visibility: visible;
    animation: aparecer 1s ease-in-out forwards;
    opacity: 0.75;
}


.texto-dano{
    position: absolute;
    color: #bde412;
    font-size: 33px;
    font-weight: bold;
    text-shadow: 2px 2px 4px black;
    opacity: 0;
    z-index: 4;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out;
}

.texto-dano.mostrar-dano{
    animation: subir 2s ease-in-out forwards;
    opacity: 1;
}

.disable, .disable *{
    pointer-events: none !important;
}

@keyframes subir{
    from{
        opacity: 1;
        transform: translateY(20px);
    }
    to{
        opacity: 0;
        transform: translateY(-50px);
    }
}

@keyframes aparecer{
    from{
        opacity: 0;
    }
    to{
        opacity: 0.8;
    }
}