.gamebd {
    font-family: 'Otypical Text';
    width: 100%;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    height: 100%;
    background: radial-gradient(circle, #488CF0, #FCC459, #F5968F, #8A78F8);
    background-size: 200% 200%;
    animation: radialGradientRotation 40s linear infinite;
    -webkit-animation: radialGradientRotation 40s linear infinite;
}

.height_full {height: 100%!important;}
.height_auto {height: auto!important;}
.d-none {display: none!important;}


.hidden {
    display: none;
}

h1, h2, h3, h4 {
    font-family: 'Otypical Headline';
}

.game_bg {
    
    width: 100%;
    position: relative;
    overflow: hidden;
}

@keyframes radialGradientRotation {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.gameplay {
    width: 100%;
    /* height: 100%; */
}


/* GAMEPLAY */

#container {
    width: 100%;
    height: auto;
    /* min-width: 650px; */
    position: relative;
    /* margin-left: 50%; */
    /* transform: translateX(-50%); */
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.fade {
    background: rgba(0, 0, 0, 0.4);
}

.box {
    width: fit-content;
    margin: 0px auto 0 auto;
    text-align: center;
}

.me.dragging {
    opacity: 0.5;
    transform: scale(1);
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 9999;
}

.me.dragging-clone {
    width: 100%; /* Ensure the clone matches the original's dimensions */
    height: 100%;
    border-radius: 10px; /* Match the original element styling */
    transition: transform 0.2s ease; /* Smooth transitions */
    pointer-events: none; /* Prevent the clone from interfering */
    z-index: 9999;
}

/* Target tile visual feedback during drag-over */
.me.drag-over {
    outline: 2px dashed #007BFF;
}






.me {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    position: relative;
    background-size: 600px 600px;
    background-repeat: no-repeat;
    display: inline-block;
    margin: 2px;
    margin-top: -2px;
    transition: 0.2s;
    border-radius: 10px;
    background-image: url('../img/newppsgame/01.jpg');
    cursor: grab;
    transition: transform 0.2s ease, background-color 0.3s ease;
    /* touch-action: none;  */

}
.full {
    height: 600px;
    width: 600px;
    border-radius: 20px;
    margin: 0 auto;
    display: block;
}

.me_0 { height: 300px; width: 300px; background-position: 0 0; }
.me_1 { height: 300px; width: 300px; background-position: -300px 0; }
.me_2 { height: 300px; width: 300px; background-position: 0 -300px; }
.me_3 { height: 300px; width: 300px; background-position: -300px -300px; }




.prevent_click {
    pointer-events: none;
}
.correct {
    border-radius: 0px;
    box-shadow: 0 0 0 transparent, 0 0 0 transparent;
    animation: corect 0.5s ease;
    animation-delay: 0.2s;
}
@keyframes corect {
    0% {
        transform: scale(1);
        border-radius: 10px;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
   }
    50% {
        transform: scale(1.25);
        border-radius: 5px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
   }
    100% {
        transform: scale(1);
        border-radius: 0px;
        box-shadow: 0 0 0 transparent, 0 0 0 transparent;
   }
}
.pre_img {
    /* margin-top: 10px; */
    display: flex;
    justify-content: center;
    width: 100%;
    /* position: absolute; */
    /* left: 100px; */
}
.pre_img li {
    display: inline-block;
    list-style: none;
}
.pre_img li img {
    width: 100%;
    max-width: 100px;
    height: auto;
    position: relative;
    cursor: pointer;
    border-radius: 5px;
}
.cover {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.38);
    width: 100%;
    height: 100%;
    z-index: 9999;
}
.score {
    margin: 13% auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #666;
    width: 300px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    position: relative;
}
#scr_head {
    text-align: center;
    font-weight: 600;
    font-size: 30px;
    
    color: #3d3d3d;
}
#scr_time {
    text-align: center;
    font-weight: 600;
    font-size: 22px;
    
    color: #3d3d3d;
}
#scr_moves {
    text-align: center;
    font-weight: 600;
    font-size: 22px;
    
    color: #3d3d3d;
}
.button:active {
    border-bottom: 1px solid #bd3e31;
}
.i {
    text-align: center;
    
    font-weight: 550;
    color: #3c3c3c;
}

.gameplay .btn {
    width: 100%;
    max-width: 400px;
    /* height: 70px; */
    padding: 10px 0;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    font-size: 25px;
    font-weight: 400;
    text-decoration: none;
    background: #000000;
    margin: 15px auto 0 auto;
    transition: 0.2s;
    -webkit-transition: 0.2s;
    outline: none;
}

.gameplay .btn:hover,
.gameplay .btn:focus {
   background: #000000a4;
   outline: none;
}

.gameplay .skip.btn {
    background: transparent;
    border: 2px solid #000000;
    color: #000000;
    max-width: 398px;
    padding: 8px 0;
}

.gameplay .skip.btn:hover,
.gameplay .skip.btn:focus {
    color: #ffffff;
    background: #000000;
    border: 2px solid #000000;
}

.counter {
    width: 100%;
    margin: 0px auto;
    text-align: center;
    color: #ed3833;
    font-weight: 400;
    font-size: 30px;
    position: relative;
    background: #e8e7ff;
    color: #000000;
    padding: 5px;
    box-sizing: border-box;
    z-index: 9999;
}

.counter.lost {
    color: #F0333A;
}

.counter.won {
    color: #000000;
}
/* GAMEPLAY */


.pre_post {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.bottom_sect {
    background-color: #e8e7ff;
    padding: 20px;
    margin-top: -6px;
    width: 100%;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    box-sizing: border-box;
}

.bottom_sect.playing {
    margin-top: 5px;
    border-radius: 25px;
    max-width: 60%;
}

p.puzz_pre_phrase {margin: 10px auto 20px auto;}

/*.modal-dialog {*/
/*    max-width: 650px;*/
/*    !* top: 10px; *!*/
/*}*/

/*.modal-content {*/
/*    background-color: transparent;*/
/*    border: none;*/
/*}*/

/*.modal-body {padding: 0;}*/
/*.modal {top: 55px;}*/

.modal.modal_game {top: 0!important;}

@keyframes confetti-slow {
	0% {
	  transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
	}
	100% {
	  transform: translate3d(25px, 105vh, 0) rotateX(360deg) rotateY(180deg);
	}
}
@keyframes confetti-medium {
	0% {
	  transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
	}
	100% {
	  transform: translate3d(100px, 105vh, 0) rotateX(100deg) rotateY(360deg);
	}
}
@keyframes confetti-fast {
	0% {
	  transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
	}
	100% {
	  transform: translate3d(-50px, 105vh, 0) rotateX(10deg) rotateY(250deg);
	}
}


/* MEDIA */

@media only screen and (max-width: 992px) {}

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

    .me {
        background-size: 90vw 90vw; 
    }
    
    .full { height: 90vw; width: 90vw; }
    .me_0 { height: 45vw; width: 45vw; background-position: 0 0; }
    .me_1 { height: 45vw; width: 45vw; background-position: -45vw 0; }
    .me_2 { height: 45vw; width: 45vw; background-position: 0 -45vw; }
    .me_3 { height: 45vw; width: 45vw; background-position: -45vw -45vw; }

    
    /* GAMEPLAY */
}

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

    .gameplay .btn {padding: 10px 0; font-size: 18px; margin-top: 10px;}
    .counter {
        font-size: 22px;
        padding: 10px;
    }
    .modal {top: 53px;}
}

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

    .pre_post {padding-left: 10px; padding-right: 10px;}
}