:root {
    --cor-branco: #fff;
    --cor-preto: #000;
}

body {
    cursor: url("../assets/cursor/yugicursor.png"), default;
}

button,
a,
img:hover,
button:hover,
a:hover {
    cursor: url("../assets/cursor/yamiyugicursorGLOW.png"), default;
}

.bg-video {
    position: absolute;
    z-index: -2;
    width: 100vw;
    height: 100vh;
    overflow: hidden;

    display: flex;
    justify-content: center;
}

.bg-video video {
    height: 100vh;
}

.bg-video::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 1) 100%);
}

.container {
    position: relative;
    z-index: 3;
    height: 100vh;
    display: flex;
}

.container__left {
    width: 35%;
    min-width: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.container__left .score_box {
    background-color: var(--cor-branco);
    padding: 1rem;
}

.frame {
    border: 3px solid var(--cor-preto);
    border-radius: 5px;
}

.container__left .menu_avatar {
    height: 50%;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.container__left .card_details {
    background-color: var(--cor-branco);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 6rem;
    width: 100%;
}

#card-name {
    font-size: .8rem;
}

#card-type {
    font-size: 1rem;
}

.container__right {
    width: 65%;
}

.container__right .card-box__container {
    height: 100vh;
    padding: .3rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-box__container .card-box {
    height: 15rem;
    width: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.card {
    height: 100px;
    transition: transform .2s;
}

.card:hover {
    transform: scale(1.2);
}

.card-box__container .card-versus__container {
    height: 100%;
    min-height: 400px;
    width: 100%;
    max-width: 600px;
    margin: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.card-versus__container .versus-top {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.versus-top .card-infield {
    height: 230px;
    width: 174px;
    border: 1px solid var(--cor-branco);
    border-radius: 8px;
}


.versus-top .card-infield .frame-card {
    height: 228px;
    width: 172px;
    border: none;
}

.versus-top .versus-img {
    height: 150px;
}

#next-duel {
    display: none;
    text-transform: capitalize;
}

@media screen and (max-width: 900px) {

    body {
        max-height: 100vh;
    }

    .bg-video {
        width: 100%;
        height: 100%;
    }

    .bg-video::after {
        height: 100%;
        width: 100%;
    }

    .container {
        display: flex;
        flex-direction: column;
        height: 100vh;
        max-height: 100%;
    }

    .container__left {
        width: 100%;
        height: 25vh;
        padding: 10px;

        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 50px 100px;
        place-content: center;
    }

    .container__left .score_box {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 1;
        grid-row-end: 2;

        height: 30px;
        max-width: 400px;
        display: flex;
        align-items: center;
        font-size: .5rem;
    }

    .container__left .menu_avatar {
        grid-column-start: 3;
        grid-column-end: 4;
        grid-row-start: 1;
        grid-row-end: 3;
        height: 100%;
    }

    .container__left .menu_avatar img {
        max-height: 95%;
    }

    .container__left .card_details {
        grid-column-start: 1;
        grid-column-end: 3;
        grid-row-start: 2;
        grid-row-end: 3;

        height: 90px;
        width: 100%;
        max-width: 400px;
        align-items: flex-start;
    }

    .container__right {
        width: 100%;
        height: 75vh;

        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
    }

    .container__right .card-box__container {
        height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        align-content: space-between;
    }

    .card-box__container .card-versus__container {
        min-height: 0;
        max-height: fit-content;
        gap: 10px;
    }

    .card-box__container .card-box {
        min-height: 100px;
        height: 10rem;
    }

    .versus-top .card-infield {
        height: 182px;
        width: 152px;
    }

    .card {
        height: 80px;
    }

    .versus-top .card-infield .frame-card {
        height: 180px;
        width: 150px;
    }
}

@media screen and (max-width: 600px) {

    .bg-video video {
        height: 100%;
    }

    .container__left {
        height: 30vh;
        padding: 5px;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: 1fr 2fr;
        gap: 5px;
    }

    .container__left .score_box {
        grid-column: 1 / 2;
        width: 100%;
        max-width: none;
        padding: 5px;
        font-size: 0.6rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .container__left .menu_avatar {
        display: none;
    }

    .container__left .menu_avatar img {
        max-height: 100%;
    }

    .container__left .card_details {
        height: auto;
        padding: 8px;
        justify-content: center;
        align-items: center;
    }

    #card-name,
    #card-type {
        font-size: 0.7rem;
        text-align: center;
    }

    #card-name {
        margin-bottom: 1rem;
    }

    .container__right {
        height: 70vh;
        max-height: 100%;
    }

    .versus-top .versus-img {
        height: 80px;
    }

    .versus-top .card-infield {
        height: 162px;
        width: 112px;
    }

    .versus-top .card-infield .frame-card {
        height: 160px;
        width: 110px;
    }

    .card-box__container .card-box {
        min-height: 100px;
        height: 6rem;
    }

    .card {
        height: 50px;
    }

    #player-cards .card {
        height: 70px;
    }

    #player-cards .card::after {
        content: attr(data-name) " - " attr(data-type);
        display: block;
        font-size: 0.45rem;
        color: #fff;
        text-align: center;
        margin-top: 2px;
    }
}