@import url("https://fonts.googleapis.com/css2?family=Righteous&display=swap");

* {
    margin: 0;
    padding: 0;
    user-select: none;
    list-style-type: none;
    box-sizing: border-box;
    font-family: "Righteous", cursive;
}

:root {
    --text: 30px;
    --transition: 0.5s;
    --red-color: #ff0856;
    --white-color: #ffff;
    --gray-color: #464445;
    --blue-color: #08cefb;
    --green-color: #5ae06c;
    --purple-color: #750550;
    --yellow-color: #f9eb18;
    --border: 3px solid var(--white-color);
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--purple-color);
}

/* GLOBAL */

.text {
    font-size: 30px;
    color: var(--white-color);
}

.button {
    border: none;
    color: white;
    cursor: pointer;
    font-size: 35px;
    padding: 12px 40px;
    border-radius: 10px;
    background-color: var(--purple-color);
}

.button:hover {
    background-color: #380326;
}

.buttons {
    gap: 15px;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number {
    text-align: center;
    font-size: 55px;
    width: 50px;
    height: 72px;
    border-radius: 30px 10px 30px 10px;
    background-color: var(--white-color);
}

.number::before {
    top: 0;
    left: 0;
    margin: 7px;
    color: white;
    position: absolute;
    font-size: var(--text);
    content: attr(data-number);
}

.number::after {
    right: 0;
    bottom: 0;
    margin: 7px;
    color: white;
    position: absolute;
    font-size: var(--text);
    transform: rotate(180deg);
    content: attr(data-number);
}

/* MODAL */

.modal {
    gap: 30px;
    z-index: 2;
    width: 475px;
    display: flex;
    height: 230px;
    font-size: 25px;
    position: absolute;
    align-items: center;
    border-radius: 10px;
    flex-direction: column;
    justify-content: center;
    color: var(--purple-color);
    background-color: var(--white-color);
    border-top: 30px solid var(--purple-color);
}

.input-login {
    height: 65px;
    width: 250px;
    font-size: 25px;
    padding-left: 20px;
    border-radius: 10px;
    border: var(--border);
    border-color: var(--purple-color);
}

/* BOXES */

.box-game,
.box-side {
    display: flex;
    position: relative;
    border-radius: 30px;
    align-items: center;
    border: var(--border);
    flex-direction: column;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.3);
}

.box-game {
    width: 850px;
    height: 620px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("../imgs/bg-one.svg");
}

.box-side {
    gap: 15px;
    width: 220px;
    height: 220px;
}

.box-player {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.box-bot {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* CARDS */
#bot-cards .cards {
    cursor: no-drop;
}

#bot-cards,
#player-cards {
    width: 100%;
    display: flex;
    height: 150px;
    justify-content: center;
}

#bot-cards .cards,
#player-cards .cards {
    margin: 0 -20px;
}

#player-cards .cards:hover {
    cursor: pointer;
    margin: 0px 30px;
    transform: translateY(-10px);
    transition: var(--transition);
}

#mid-cards {
    gap: 70px;
    display: flex;
    margin: 30px 0px;
    align-items: center;
    justify-content: center;
}

#mid-cards .cards:not(.buy-card) {
    cursor: no-drop;
}

.cards {
    width: 95px;
    height: 150px;
    display: flex;
    position: relative;
    align-items: center;
    border: var(--border);
    justify-content: center;
    border-radius: 10px 30px;
    transition: var(--transition);
}

.buy-card {
    width: 150px;
    height: 95px;
    cursor: pointer;
    position: relative;
}

.buy-card img {
    transform: rotate(-90deg);
}

.buy-card::after {
    bottom: 0;
    opacity: 0;
    content: "COMPRAR";
    position: absolute;
    color: var(--white-color);
    transform: translateY(15px);
    transition: var(--transition);
}
.buy-card:hover {
    transform: translateY(-15px);
}

.buy-card:hover::after {
    opacity: 1;
    transform: translateY(35px);
}

.yellow {
    color: var(--yellow-color);
    background-color: var(--yellow-color);
}
.red {
    color: var(--red-color);
    background-color: var(--red-color);
}
.blue {
    color: var(--blue-color);
    background-color: var(--blue-color);
}
.green {
    color: var(--green-color);
    background-color: var(--green-color);
}
.gray {
    color: var(--gray-color);
    background-color: var(--gray-color);
}

/* OPEN E CLOSE MODAL */

.open-modal {
    transform: translateY(0vh);
    transition: .5s;
}

.close-modal {
    transition: .5s;
    transform: translateY(-150vh);
}

.reload {
    top: 0;
    right: 0;
    z-index: 11;
    margin: 35px;
    cursor: pointer;
    position: absolute;
}

/* WAIT */

.player-wait::before {
    top: 0;
    position: absolute;
    color: var(--white-color);
    content: url("../imgs/loading.svg");
    animation: loading 2s linear infinite;
}

.player-wait::after {
    top: 0;
    font-size: 25px;
    content: "JOGANDO";
    position: absolute;
    color: var(--white-color);
    transform: translateY(-40px);
    animation: opacity 1s linear infinite alternate;
}


.span-message{
    top: 0;
    left: 0;
    transition: .3s;
    padding: 10px 20px;
    position: absolute;
    z-index: 20;
    margin: 15px;
}

.span-message img{
    width: 150px;

}

.hide-span-message{
    transform: translateY(-150vh);
}

.show-span-message{
    transform: translateY(0vh);
}

@keyframes loading {
    0% {
        transform: translateY(-75px) rotate(0deg);
    }
    100% {
        transform: translateY(-75px) rotate(360deg);
    }
}

@keyframes opacity {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#block {
    cursor: wait;
    inset: 0;
    z-index: 30;
    display: flex;
    position: fixed;
    transition: 0.1s;
}

.unblock {
    width: 0;
    height: 0;
    transition: 0.1s;
}

.block {
    width: 100%;
    height: 100vh;
    transition: 0.1s;
}

.container-modal {
    width: 100%;
    z-index: 50;
    height: 100vh;
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
}

.back {
    transition: none;
    transform: rotate(35deg);
}

.front {
    right: 0;
    position: absolute;
}

#mid-cards {
    width: 300px;
    transition: none;
    position: relative;
}

footer {
    display: flex;
    bottom: 0;
    z-index: 2;
    gap: 10px;
    align-items: center;
    position: absolute;
}

footer p {
    margin: 5px;
    font-size: 25px;
    color: var(--white-color);
}

footer::before{
    transition: .5s;
    color: white;
    z-index: 1;
    font-size: 20px;
    content: "Dá uma olhadinha ➔";
    position: absolute;
    opacity: 0;
}

footer:hover::before{
    opacity: 1;
    transform: translateX(-110%);
}
.footer-navigation{
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-navigation a{
    display: flex;
    align-items: center;
}

.footer-navigation a img{
    width: 30px;
    cursor: pointer;
}

/* ANIMATIONS */

@keyframes loading {
    0% {
        transform: translateY(-75px) rotate(0deg);
    }
    100% {
        transform: translateY(-75px) rotate(360deg);
    }
}

@keyframes opacity {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
