html,
*,
body {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    direction: rtl;
    overflow-x: hidden;
}

@font-face {
    font-family: 'IRANSansWeb';
    src: url('https://mahjamglass.ir/public/build/fonts/eot/IRANSansWeb.eot');
    src: url('https://mahjamglass.ir/public/build/fonts/eot/IRANSansWeb.eot?#iefix') format('eot'), url('https://mahjamglass.ir/public/build/fonts/woff/IRANSansWeb.woff') format('woff'), url('https://mahjamglass.ir/public/build/fonts/ttf/IRANSansWeb.ttf') format('truetype'), url('https://mahjamglass.ir/public/build/fonts/svg/IRANSansWeb.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: IRANSansWeb;
    src: url(https://mahjamglass.ir/public/build/fonts/eot/IRANSansWeb.eot);
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
button,
li,
input,
select,
label,
div,
textarea {
    font-family: IRANSansWeb;
}

.hiddenobj {
    display: none;
}

a.socialshare {
    font-size: x-large;
    margin: 10px;
}
#errmsg{
    color:red;
}
.message {
    background-color: rgb(56, 142, 253);
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px 10px 0px 10px;
    width: 180px;
}

.cactive {
    border: 2px solid green;
    border-radius: 50%;
}

.characterrow {
    display: flex;
    text-align: center;
}

.character {
    display: block;
    cursor: pointer;
}

.brokenglass {
    background-image: url('../img/broken.png');
    background-repeat: no-repeat;
    width: 24vw;
    height: 24vh;
    position: absolute;
    left: 10%;
    top: 10%;
    display: none;
    z-index: 99;
    background-size: contain;
}

.gcharacter {
    width: auto;
    height: 50vh;
}

.bximg {
    border: 15px solid #fff;
    border-radius: 40px 0px 50px;
    max-width: 450px;
    width: 90%;
    height: auto;
    margin: auto;
    display: block;
}
.abximg{
    display: none;
}
.shorobazi {
    cursor: pointer;
    padding: 10px;
    font-size: large;
    border-radius: 10px;
    background-color: blueviolet;
    color: #fff;
    display: block;
    margin-top: 10px;
    width: 100px;
}

.shorobazi:hover {
    opacity: 0.8;
}

.from-control {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #8a2be2;
    display: block;
}

.roundhead {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.avtrbox {
    position: absolute;
    bottom: 0px;
    right: 5px;
}

.avtrbox p {
    font-size: small !important;
    color: rgb(27, 27, 27);
}

.mirror {
    position: absolute;
    width: 90px;
    height: 200px;
    border: 4px solid #ccc;
    background: rgb(244, 243, 243);
    background: linear-gradient(90deg, rgba(244, 243, 243, 1) 0%, rgba(252, 252, 252, 1) 50%, rgba(194, 194, 188, 1) 100%);
    left: 5px;
    top: 31%;
}

.gstone {
    width: 150px;
    height: auto;
    left: 10px;
}

.vsang {
    background-image: url('../img/stone.png');
}

.vball {
    background-image: url('../img/ball.png');
}

.sang {
    position: absolute;
    border-radius: 50% 50%;
    cursor: pointer;
    padding: 10px;
    z-index: 9;
    border: 1px dashed red;
    background-size: contain;
}

@media only screen and (max-width: 400px) {
    #zaminebazi {
        background-image: url('../img/chair.jpg');
        width: 100vw;
        height: 100vh;
        margin: auto;
        display: none;
        background-size: contain;
    }
    .rowfirst {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 5px;
    }
}

@media only screen and (max-width: 600px) {
    .rowfirst {
        display: grid;
        grid-gap: 5px;
        grid-template-columns: 1fr;
    }
    .wrapsangx {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 250px;
    }
    .wraptwo {
        margin-top: 10px;
        background-color: blueviolet;
        display: grid;
        align-items: center;
        grid-template-columns: 1fr;
    }
    .gameover {
        display: none;
        height: 100vw;
        text-align: center;
        background-color: #ffffffe6;
        margin: auto;
        border-radius: 5px;
        padding: 10px;
        width: 70vw;
    }
    #zaminebazi {
        background-image: url('../img/chair.jpg');
        width: 100vw;
        height: 100vh;
        margin: auto;
        display: none;
        background-size: cover;
    }
    .wraptxt {
        display: grid;
        grid-template-columns: 1fr;
        align-items: center;
        grid-gap: 10px;
    }
}

@media only screen and (min-width: 600px) {
    .rowfirst {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 5px;
    }
    .wrapsangx {
        display: grid;
        grid-template-columns: 1fr 2fr;
    }
    .wraptwo {
        margin-top: 10px;
        background-color: blueviolet;
        display: grid;
        align-items: center;
        grid-template-columns: 1fr 1fr;
    }
    .gameover {
        display: none;
        height: 70vw;
        text-align: center;
        background-color: #ffffffe6;
        margin: auto;
        border-radius: 5px;
        padding: 10px;
        width: 50vw;
    }
    #zaminebazi {
        background-image: url('../img/chair.jpg');
        width: 80vw;
        height: 100vh;
        margin: auto;
        display: none;
        position: relative;
        background-size: cover;
    }
    .wraptxt {
        display: grid;
        grid-template-columns: 2fr 1fr;
        align-items: center;
    }
}

.matnebazi {
    margin: 5px;
    padding: 5px;
}

.wraptxt div {
    padding: 5px;
    margin: 5px;
}

.wrapsangx div {
    padding: 10px;
    margin: 10px;
}

.scorebox {
    float: left;
}

.scorebox,
.avtrbox p {
    color: #fff;
    padding: 10px;
}

a {
    text-decoration: none;
}

.startagain {
    background-color: blueviolet;
    width: 150px;
    padding: 10px;
    cursor: pointer;
    color: #fff;
    margin: auto;
    border-radius: 3px;
}

.codeshow {
    font-size: x-large;
}

.footer {
    background-color: #a354ec;
    color: #fff;
    text-align: center;
    padding: 10px;
}

.wraptwo p {
    color: #fff;
}

.codeshow,
.darsad {
    display: block;
    margin: 10px;
    padding: 10px;
}
.mybtn{
    background-color: blueviolet;
    width: 150px;
    padding: 10px;
    cursor: pointer;
    color: #fff;
    margin: auto;
    border-radius: 3px;
}
