@import url('https://fonts.googleapis.com/css2?family=Hachi+Maru+Pop&display=swap');

html, body{
    height: 100%;
    margin: 0;
}


.rules_win{
    padding: 0 5px 0 5px;
    border: 1px solid #ae7a52;
    border-radius: 25px;
    height: 150px;
    width: 250px;
    background: #ffcfaf;
    font-size: 12px;
    font-weight: 900;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: left;
    position: absolute;
    top: 70px;
    right: 10px;
}

.left{
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie{
    margin-right: 3px;
    margin-left: 3px;
}

.again:hover, .home:hover{
    cursor: pointer;
    opacity: .7;
}

.text_p{
    color: #ae7a52;
    font-family: 'Hachi Maru Pop', sans-serif;
    font-weight: 900;
    font-size: 16px;
    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;
    margin-bottom: 10px;

    color: #ae7a52;
    font-family: 'Hachi Maru Pop', sans-serif;
    font-weight: 900;
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    /*z-index: 25;*/
}

.againPar{
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: unset;
}

.text{
    position: fixed;
    /*bottom: 27%;*/
    /*left: 38%;*/
    height: 300px;
    width: 300px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #ae7a52;
    text-shadow: 3px 3px white;
    font-size: 36px;
    font-weight: 900;
    font-family: 'Hachi Maru Pop', sans-serif;
    background: #00000050;
    cursor: pointer;
}

:root {
    --box-color: #ffcfaf;
    --border-color: #ae7a52;
    --none-color: transparent;
}

[data-state='none']{
    background-color: var(--none-color);
    color: var(--none-color);
}
[data-state='some']{
    background-color: var(--box-color);
    color: var(--border-color);
    cursor: pointer;
}

.page{
    height: 100%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    /*align-items: center;*/
    /*justify-content: center;*/
    background: repeat url("../pictures/bg4.png");
    /*background: red;*/
    /*background-size: cover;*/
}

.panel{
    width: 100%;
    display: flex;
    /*align-items: center;*/
    justify-content: center;
}
.boxParent{
    height: 300px;
    width: 300px;
    border: var(--border-color) 5px solid;
    border-radius: 15px;
    display: flex;
    flex-flow: row wrap;
    user-select: none
}

.boxParent div{
    display: flex;
    flex-direction: column;
}

.bigBox div{
    display: flex;
    flex-direction: row;
}

.box{
    height: 100px;
    width: 100px;
    border: var(--border-color) 5px solid;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;

}

@media (max-height: 480px) and (orientation: landscape){

    .rules_win{
        height: 200px;
        width: 200px;
        top: 45px;
        right: 5px;
    }

    .boxParent{
        height: 240px;
        width: 240px;
    }

    .win_gif img{
        height: 100px;
        width: 100px;
    }

    .text{
        height: 240px;
        width: 240px;
        font-size: 28px;
    }

    .box{
        height: 80px;
        width: 80px;
    }
    .top_line{
        height: 40px;
        font-size: 16px;
        margin-bottom: 3px;
    }

    .text_p{
        font-size: 18px;
    }

    .home img, .again img, .rules img{
        height: 30px;
        width: 30px;
    }

}