/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
* {
    margin: 0;
}

html,
body {
    margin: 0;
    height: 100%;
    /* height: auto !important; */
    min-height: 100% !important;
}

body {

    /* background-color: rgb(79, 88, 111); */
    background-image: url("./play-memory/src/img/bg-mobile.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: black;

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

}



.login-container {
    position: absolute;
    bottom: 15%;

    /* height: 150px; */
    width: 300px;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;

    flex-direction: column;
    gap: .5rem;

    font-size: 1.5rem;

    background: #ffffff70;
    border-radius: .5rem;

    font-family: Helvetica, Arial, sans-serif
}

.login-text {
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    color: black;
}

.modal-welcome>div {
    width: auto !important;
    border-radius: 10px;
}

.username-field {
    width: 100%;
    line-height: 2rem;
    border-radius: 5px;
}



.username-btn {
    width: 100%;
    font-size: 1rem;

    padding: 1rem 2rem;
    /* background-color: #ffe418; */
    /* background: linear-gradient(180deg,#fea 0%,#dc8 49%,#a95 51%,#dc8 100%); */
    --myColor1: #ae9d59;
    --myColor2: #fceba7;
    background: linear-gradient(var(--myColor1), var(--myColor2));
    /* background: linear-gradient(to top, #ae9d59 0%,#fceba7 100%); */
    border: 1px solid black;
    border-radius: 10rem;

    /* transition: all 0.2s ease-in-out; */
    transition: --myColor1 3s, --myColor2 3s;
}

.username-btn:active,
.username-btn:focus,
.username-btn:hover {
    /* background-color: #ffa71d; */
    --myColor1: #fceba7;
    --myColor2: #ae9d59;
    background: linear-gradient(var(--myColor1), var(--myColor2));
    /* background: linear-gradient(to bottom, #ae9d59 0%,#fceba7 100%); */
}

.login-btn {
    width: 100%;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 700;

    border: 2px solid #67c6ff;
    border-radius: 10px;
    padding: 1rem 2rem;
    background: #0004f952;
    color: #fff;
    z-index: 1;
    cursor: pointer;
    box-shadow: inset 0px 0px 4px 3px #21adf1;
}

.login-btn:hover,
.login-btn:active {
    filter: contrast(150%);

}

.floating-elem {
    position: absolute;
}

.title-elem {
    /* background-image: url("./play-memory/src/img/title-en.svg");
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat; */
    width: 90vw;
    max-width: 600px;
    bottom: 52%;

    -webkit-animation: breathing 5s ease-out infinite normal;
    animation: breathing 5s ease-out infinite normal;
}

/* .subtitle-elem {
    background-image: url("./play-scratch/src/ret-scratch-subtitle.png");
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 340px;
    height: 80px;
    bottom: 4%;
} */

/* .ticket-elem {
    background-image: url("./play-scratch/src/ret-scratch-scratchcard.png");
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 120px;
    height: 120px;
    top: 48%;
    left: 5%;
    -webkit-animation: bouncing 8s ease-in-out infinite normal;
    animation: bouncing 8s ease-in-out infinite normal;
}


.joker-elem {
    background-image: url("./play-scratch/src/ret-scratch-jokergaming.png");
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 80px;
    height: 80px;
    top: 7%;
    right: 15%;
    -webkit-animation: bouncing 5s ease-in-out infinite normal;
    animation: bouncing 5s ease-in-out infinite normal;
} */

.lang-elem {
    top: 2%;
    right: 5%;
}

.lang-elem img {
    width: 20px;
    height: 20px;
}

.modal-login-error {
    display: none;
}

@media screen and (min-width: 600px) {
    .login-container {
        bottom: 6%;
    }

    .title-elem {

        /* width: 340px;
        height: 230px; */
        bottom: 47%;
    }

    .subtitle-elem {

        width: 340px;
        height: 80px;
        bottom: 37%;
    }

    .ticket-elem {

        width: 150px;
        height: 150px;
        top: 48%;
        left: 15%;

    }


    .joker-elem {

        width: 110px;
        height: 110px;
        top: 9%;
        right: 20%;

    }

    .lang-elem {
        top: 5%;
        right: 5%;
    }
}

@-webkit-keyframes bouncing {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes bouncing {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@-webkit-keyframes breathing {
    0% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }

    25% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    60% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }

    100% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
}

@keyframes breathing {
    0% {
        -webkit-transform: scale(0.9);
        -ms-transform: scale(0.9);
        transform: scale(0.9);
    }

    25% {
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }

    60% {
        -webkit-transform: scale(0.9);
        -ms-transform: scale(0.9);
        transform: scale(0.9);
    }

    100% {
        -webkit-transform: scale(0.9);
        -ms-transform: scale(0.9);
        transform: scale(0.9);
    }
}



@media only screen and (min-width: 600px) {
    body {
        background-image: url("./play-memory/src/img/bg-desktop.jpg");
    }
}