.wrap-exercise {
    color: black;
    /* padding: 1rem 2rem; */
    margin: 0 auto;

    font-family: 'Arial Rounded MT Pro Cyr';
    font-weight: 500;

    height: 80vh;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    
    max-width: 900px;

    width: calc(100% - 5rem);

    box-shadow: 0px 8px 13px -7px rgb(0 0 0);
    text-align: center;
    border-radius: .5rem;
    overflow: hidden;
    position: relative;
}

/* game header */

.ex-top {
    height: 15%;
    padding-top: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.wrap-exercise .ex-title h3 {
    margin: 0;
}

.wrap-exercise .ex-title {
    display: block;
    
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    
    font-size: 2rem;

    width: 45%;
    /* padding: 2rem; */
    height: 100%;

    margin: 0 auto;
}

.wrap-exercise .ex-title h3 {
    font-size: 2.2rem;
    font-family: 'Arial Rounded MT Pro Cyr';
    font-weight: 700;
}

.ex-top .ex-restart {
    float: right;
}

.ex-restart {
    background-repeat: no-repeat;

    width: 4rem;
    height: 5rem;

    cursor: pointer;
}

.ex-restart:hover {
    background-position: 0 -5.3rem;
}

.lifes {
    float: right;
    width: 25%;
}

.lifes .life {
    display: inline-block;
    width: 3.5rem;
    height: 3rem;
    background-image: url("/application/templates/images/common/games/icon-life.png");
}

.lifes .life.dead {
    background-position: 0 -3.1rem;
}

/* game */

.exercise-content {
    height: 85%;
    padding-bottom: 1rem;
}

.exercise-play {
    height: 90%;
}

.item-game {
    position: absolute;

    /* -webkit-transition: opacity .5s ease-in-out;
    -moz-transition: opacity .5s ease-in-out;
    -o-transition: opacity .5s ease-in-out; */
    transition: opacity .5s ease-in-out;
    
    width: 11rem;
    height: max-content;
    z-index: 100;

    /* background-color: red;
    height: 12rem; */
}

.item-game img {
    /* width: auto; */
    width: 100%;
    text-align: center;
    background-image: url("/application/templates/images/common/games/item-bg-3.png");
    background-size: 100% 300%;
    background-repeat: no-repeat;
    background-position: 0% 0%;
    padding: 2.5%;

    border-radius: 50%;

    /* -webkit-transition: opacity .5s ease-in-out;
    -moz-transition: opacity .5s ease-in-out;
    -o-transition: opacity .5s ease-in-out;
    transition: opacity .5s ease-in-out; */
    /* transition: opacity ease-in-out 1s !important; */
}

/* bottom*/

.exercise-bottom {
    height: 10%;
}

.phrases {
    width: 20%;
    margin: 0 auto;
}

.wrap-exercise .item-phrase {
    border-radius: 1rem;
    
    padding: .4rem;
    font-size: 2rem;

    background-color: rgba(255, 255, 255, 0.15);

    display: none;
}

.wrap-exercise .phrases .item-phrase.active.error {
    border: 1px solid #E83030;
    color: #E83030;
}

.wrap-exercise .phrases .item-phrase.active.correct {
    border: 1px solid #29B473;
    color: #29B473;
}

.item-phrase.active {
    display: block;
}

.item-phrase p {
    margin: 0;
}

/*result block*/

.result-block {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 500;
}

.result-block .inner-wrap {
    background-color: #fff;
    width: 50%;
    height: 60%;
    margin: 10% auto;
    border-radius: .5rem;
    padding: 1rem;
}

.result-block .inner-wrap h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: .5rem;
}

.result-block h3.win {
    color: #29B473;
}

.result-block h3.mistake {
    color: #eb3e35;
}

.result-block img {
    width: 30%;
}

.wrap-exercise .result-block .nav .ex-restart {
    background-image: url("/application/templates/images/common/games/ex-restart.png");
}

.result-block .nav {
    text-align: center;
    width: 30%;
    margin: 2rem auto;
}

.result-block .nav .next-play {
    display: inline-block;
    text-align: center;
    width: 30%;
    height: 3.9rem;

    margin-left: 4rem;
    margin-top: .5rem;

    background-image: url("/application/templates/images/common/games/next-play.png");
    background-repeat: no-repeat;
}


.result-block .nav .next-play:hover {
    background-position: 0 -3.9rem;
}