@import url('https://fonts.googleapis.com/css2?family=Hachi+Maru+Pop&display=swap');


html,body{
    margin: 0;
    height: 100%;
}

.rules_win{
    padding: 0 5px 0 5px;
    border: 1px solid #ae7a52;
    height: 150px;
    width: 250px;
    font-size: 12px;
    top: 70px;
    right: 10px;
}


.win_gif img{
    height: 100px;
    width: 100px;
}

.left{
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie{
    margin-right: 10px;
    margin-left: 10px;
}

.again_top:hover, .home:hover{
    cursor: pointer;
    opacity: .7;
}

.text_p{
    color: #ae7a52;
    font-family: 'Hachi Maru Pop', sans-serif;
    font-weight: 900;
    font-size: 14px;
    margin-right: 5px;
}

.top_line{
    padding-top: 3px;
    padding-left: 6px;
    padding-right: 6px;
    height: 65px;
    width: 100%;
    background: #ffcfaf;
    border: 3px #ae7a52 solid;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    color: #ae7a52;
    font-family: 'Hachi Maru Pop', sans-serif;
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    /*z-index: 25;*/
}


/*.text{*/
/*    position: absolute;*/
/*    !*background: blueviolet;*!*/
/*    !*z-index: 50;*!*/
/*    height: 100%;*/
/*    width: 100%;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    flex-direction: column;*/

/*}*/
.switch{
    /*position: absolute;*/
    z-index: 1;
    /*top: 50px;*/
    /*right: 800px;*/
    height: 70px;
    width: 130px;
    background: center / contain no-repeat url("../pictures/switcher33.png");
    cursor: pointer;
    opacity: 80%;
    margin-left: 35px;
    /*z-index: 10;*/
}
.message{
    position: fixed;
    /*top: 500px;*/
    /*left: 1010px;*/
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    width: 330px;
    z-index: 15;
    background: #00000050;
    cursor: pointer;
    border: 1px solid grey ;
    border-radius: 15px;
}
.score div, .moves{
    color: white;
    font-size: 24px;
    /*z-index: 45;*/
}
.top{
    /*width: 100%;*/
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 65px;
    /*position: fixed;*/
    /*top: 70px;*/
    /*left: 1000px;*/
}
.score{
    display: flex;
    flex-direction: column;
    justify-content: left;
    position: fixed;
    right: 10px;
    bottom: 10px;
}
.again{
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 56px;
    border: 2px solid white;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}
.winMessage{
    color: #ae7a52;
    text-shadow: 3px 3px white;
    font-size: 36px;
    font-weight: 900;
    font-family: 'Hachi Maru Pop', sans-serif;
}
.page{
    position: relative;
    /*top: 0;*/
    /*left: 0;*/
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    font-family: sans-serif;
    background: repeat url("../pictures/bg4.png");
}

.parentBox{
    /*position: absolute;*/
    z-index: 1;
    border: 1px solid #deb887 ;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 180px;
    width: 330px;

}
.parentBox::before{
    opacity: 60%;
}
.box div{
    margin-bottom: 2px;

}

/*.stick{*/
/*    height: 400px;*/
/*    width: 30px;*/
/*    border: none;*/
/*    border-radius: 5px;*/
/*    background: burlywood;*/
/*}*/
.box{
    height: 175px;
    width: 100px;
    border: none;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: end;
    flex-direction: column;
    background: #deb88799;
    cursor: pointer;
    /*padding-bottom: 15px;*/
}

[data-ring-type='1']{
    height: 15px;
    width: 27px;
    background: #eeffaa;
    border: 3px solid #deff56;
    border-radius: 45px;
}

[data-ring-type='2']{
    height: 15px;
    width: 40px;
    background: #aaffce;
    border: 3px solid #56ff9b;
    border-radius: 80px;
}

[data-ring-type='3']{
    height: 20px;
    width: 53px;
    background: #aaceff;
    border: 4px solid #569bff;
    border-radius: 90px;
}

[data-ring-type='4']{
    height: 20px;
    width: 65px;
    background: #eeaaff;
    border: 4px solid #de56ff;
    border-radius: 90px;
}

[data-ring-type='5']{
    height: 20px;
    width: 85px;
    background: #ffaaaa;
    border: 4px solid #ff5656;
    border-radius: 90px;
}

/*[data-ring-type='0']{*/
/*    !*display: none;*!*/
/*    display: none;*/
/*}*/
[data-ring-type='11']{
    height: 20px;
    width: 30px;
    background: #eeffaa;
    border: 2px solid #deff56;
    border-radius: 50px;
}

[data-ring-type='12']{
    height: 25px;
    width: 50px;
    background: #aaffce;
    border: 3px solid #56ff9b;
    border-radius: 50px;
}

[data-ring-type='13']{
    height: 30px;
    width: 70px;
    background: #aaceff;
    border: 5px solid #569bff;
    border-radius: 50px;
}

[data-jump='0'] .box1 div:first-child {margin-bottom: 25px}
[data-jump='1'] .box2 div:first-child {margin-bottom: 25px}
[data-jump='2'] .box3 div:first-child {margin-bottom: 25px}

[data-mode='3']{
    background: center / contain no-repeat url("../pictures/switcher33.png")
}

[data-mode='5']{
    background: center / contain no-repeat url("../pictures/switcher53.png")
}

@media (max-height: 480px) and (orientation: landscape){

    .rules_win{
        height: 55px;
        width: 600px;
        top: 38px;
        right: -5px;
        border-radius: 15px;
    }

    .top_line{
        height: 40px;
        font-size: 16px;
    }

    .text_p{
        font-size: 18px;
    }

    .home img, .again_top img, .rules img{
        height: 30px;
        width: 30px;
    }

    .top{
        flex-direction: column;
        margin-right: 30px;
        margin-top: unset;
        height: 180px;
    }


    .switch{
        margin-left: unset;
    }

    .panel{
        display: flex;
        align-items: center;
        justify-content: space-around;
        margin-top: 90px;
        height: 25vw;
    }
}