:root {
    --coloreDivH1: rgb(121, 434, 212);
    --sectionH1Height: 10vh;
    --colorTounrament: rgb();
    --colorRocks: rgb(111, 116, 103);
    --colorSideBar: rgb(68, 35, 4);
    --yellowHover: rgb(217, 220, 21);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

/*Main*/
body {
    background-image: url("img/playaTropical.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.divH1 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: var(--sectionH1Height);
}

#mainTitle {
    font-family: "Comic Sans MS", "Comic Sans";
    font-weight: 40px;
    text-align:center;
}

.mainSection {
    display: flex;
    flex-direction: row;
    justify-content: center;
    height:auto;
}

.arena {
    border-radius: 50%;
    width: 1020px;
    height: 1080px;
    background-image: url("img/sand.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    transform: rotateX(50deg);
    border: 22px dotted white;
    order: 2;
}

.sidebar {
    width: 800px;
    height:auto;
    background-color: var(--colorSideBar);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    border: 8px black solid;
}

#frameQuery {
    display: none;
}

#imgFrameQuery {
    width: 100%;
}

#quote {
    margin-left: 10px;
}

.divButtons {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items:center;
}
#linkWhoAmI{
    color:white;
    text-decoration:none;
}
#linkWhoAmI:hover{
    color:var(--yellowHover);
    text-decoration:underline;
}
.divButtons>button {
    border-radius: 50%;
    width: 90px;
    background-color: var(--colorSideBar);
    color: white;
    border-color: white;
    height: 80px;
}

.divButtons>button:hover {
    color: var(--yellowHover);
    border-color: var(--yellowHover);
}

.buttonFight {
    order: 1;
    transform: translate(450px, 790px);
    width: 220px;
    height: 90px;
    font-size: 4em;
}

/*boss fight */
.divReadyFightBoss {
    display: none;
}

/*javascript*/
.pokeDiv>h3 {
    color: white;
    font-size: 2em;
}

.movesContainer>button {
    position: relative;
    z-index: 10;

}

.italianBrainrotDiv img {
    position: relative;
    z-index: 1;
    pointer-events: none;
    /* Prevents the image from blocking clicks */
}

.card-turn {
    border: 4px solid;
    border-image: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet) 1;
    animation: borderPulse 1s infinite;
}




.playerCard {
  display: inline-block;
  margin: 10px;
  padding: 10px;
  border-radius: 10px;
  transition: border 0.3s, background 0.3s;
  background: rgba(255, 255, 255, 0.1);
}

.bossCard {
  margin-top: 30px;
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  background: rgba(100, 0, 0, 0.1);
  transition: background 0.3s;
}

.attack-btn {
  margin: 3px;
  padding: 5px 8px;
}
@keyframes borderPulse {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.5);
    }
}

.card-hit {
    animation: hitFlash 0.4s;
}

@keyframes hitFlash {
    0% {
        background-color: rgba(255, 0, 0, 0.4);
    }

    100% {
        background-color: transparent;
    }
}

.boss-attack-anim {
    transform: translateX(-20px);
    transition: transform 0.3s;
}


@media screen and (max-width:1300px) and (min-width:768px){
    h1{
        width:600px;
    }
    .mainSection{
        width:100%;
        display:flex;
        flex-direction:column-reverse;
        align-items:center;
    }
    .arena{
        width:800px;
    }
}

@media screen and (max-width:767px){
    .mainSection{
        width:100%;
        display:flex;
        flex-direction: column-reverse;
        align-items:center;
    }
    #mainTitle{
        text-align:center;
    }
    .divH1{
        width:100%;
        display:flex;
        flex-direction:row;
        justify-content: center;
    }
    #mainTitle{
        text-align:center;
    }
    .arena{
        width:500px;
        height:900px;
    }
    .sidebar{
        width:350px;
        height:auto;
    }
    .divCard{
        margin-left:18px;
        margin-top:20px;
    }
    .divCard>img{
        width:130px;
        height:130px;
    }
    .divReadyFightBoss{
        position:relative;
        right:348px;
        top:120px;
    }
    .divReadyFightBoss>button{
        width:120px;
        font-size:25px;
    }
    .divBoss{
        position:absolute;
        right:2px;
    }
}
@media screen and (max-width:400px){
    #mainTitle{
        margin-top:110px;
    }
}