*{
    margin: 0;
    padding: 0;
}

.body{
    background-color: #2e2a23;
}

.container{
    margin: 0 auto;
    display: grid;
    gap: 10px;
    grid-template-columns: 37% 37% 1fr;
    grid-template-rows: 47vh 1fr;
    grid-template-areas:
    "first first second"
    "third third second";
}

button.help{
    position: absolute;
    top: 20%;
    left: 20px;
    background-color: #2e2a23;
}

.blockFirst{
    padding: 2%;
    grid-area: first;
    margin: 0 auto;
}

.blockSecond{
    height: 100%;
    background-color: #221e18;
    grid-area: second;
}

.wrapper{
    margin-left: 20px;
    display: flex;
    justify-content: space-between;
    grid-area: third;
    background-color: #1e1b17;
}

.wrapperContent{
    display: flex;
}

.blockThird{
    width: 50%;
    height: 100%;
}

.blockFourth{
    width: 50%;
    height: 100%;
}

.nameBlock, .nameBlockSecond{
    background: #27241e;
    color: rgba(255,255,255,.6);
}

.nameBlockSecond{
    padding: 15px;
    text-align: center;
}

.nameBlock{
    padding: 10px 15px 10px 30px;
    display: flex;
    justify-content: space-between;
}

.result{
    background-color: #efefef;
    width: 97%;
}

.markup{
    width: 97%;
}

.lineNumber{
    color: #666;
    border-right: solid 1px #333;
    text-align: center;
    background: #27241e;
    padding: 5px;
    width: 3%;
}

.result-button{
    padding: 2px 5px;
    margin-top: 5px;
    margin-right: 5px;
}

.result-button:hover{
    cursor: pointer;
}

.result-button_wrong{
    animation: changeScale 0.3s;
}

@keyframes changeScale {
    0% {
        transform: scale(1.0);
    }
    50%{
        transform: scale(0.5);
    }
    100% {
        transform: scale(1.0);
    }
}

@keyframes changeColor {
    0% {
        background-color: #bdb7b7;
    }
    100% {
        background-color: #efefef;
    }
}

@keyframes changeVisibility {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.result-input{
    padding: 2px 5px;
    margin: 5px;
    width: 78%;
    background-color: #efefef;
    border: none;
    outline:none;
    animation: changeColor 1s infinite;
}

.result-input:active, :hover, :focus {
    outline: 0;
    outline-offset: 0;
}

.containerModal{
    display: none;
}

.containerModal_open{
    display: block;
}

.modal{
    position:fixed;
    left:0;
    top:0;
    right: 0;
    bottom: 0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.7);
}

.content{
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 150px;
    transform: translate(-50%, -50%);
    background-color: #a93636;
    filter: drop-shadow(5px 5px 5px #682929) ;
    border-radius: 10px;
    padding:20px;
    color: white;
}

.button-reset:hover{
    cursor: pointer;
}

.content .button-reset{
    background-color: #4b1818;
}

.close{
    position:absolute;
    font-size: 25px;
    right:20px;
    top:20px;
    transition: .5s;
    cursor: pointer;
}

.close:hover{
    transform: rotate(180deg);
}

.footer{
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.footerLink{
    list-style: none;
}

.footerLink a{
    color: #bdb7b7;
}

.wrapperLinks{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 20%;
}

#imgSchool{
    width: 70px;
    height: 30px;
    opacity: 0.5;
    filter: invert(100);
}

.visibility{
    opacity: 0;
}

@media(max-width:1020px){

    .container{
        grid-template-columns: 50vw 1fr;
        grid-template-rows: 60vh 1fr 1fr;
        grid-template-areas:
        "first first"
        "third third"
        "second second";
    }

    button.help{
        top: 50vh;
    }

    .wrapper{
        flex-direction: column;
        margin-right: 20px;
    }

    .blockThird, .blockFourth{
        width: 100%;
        height: auto;
    }

    .content{
        width:90%;
        margin-top: 5px;
        height:90%;
    }
}

.elMarkup-tomato, .elMarkup-pizza{
    color: rgba(255,255,255,.5);
    font-size: 1rem;
    padding: 6px 15px;
    cursor: default;
    transition: 0.7s;
}

.elMarkup-tomato:hover{
    color: white;
}

.hover{
    color: white;
}


.task{
    color: rgba(255,255,255,.6);
    text-align: center;
    margin-bottom: 20px;
}

.pizza{
    margin: 0 auto;
    background-image: url('assets/pizza.png');
    background-size: cover;
    background-repeat: no-repeat;
    width: 270px;
    height: 250px;
    transition: 0.5s;
}

.pizza_4el{
    display: grid;
    grid-template-columns: 30% 30%;
    grid-template-rows: 30% 30%;
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
}

.pizza_6el{
    display: grid;
    grid-template-columns: 25% 25% 25%;
    grid-template-rows: 30% 30%;
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
}

.pizza_active {
    filter: drop-shadow(0 0 0.75rem gray);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotateActive {
    0% {
        transform: rotate(0deg) scale(1.2) ;
    }
    100% {
        transform: rotate(360deg) scale(1.2);
    }
}

.elPizza{
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 50px;
    height: 50px;
    transition: filter 1s, opacity 3s;
}

.elPizza_correct{
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 50px;
    height: 50px;
    transition: filter 1s, opacity 2s;
    animation: 3s linear 0s normal none infinite running rotate;
}

.htmlCode{
    position: absolute;
    background-color: #efefef;
    padding: 5px 10px;
    width: 170px;
    margin-left: 45px;
    margin-top: 8px;
    vertical-align: 50px;
    text-align: center;
    z-index: 900;
}

.redTomato {
    background-image: url("assets/tomatoR.png");
}

.redTomato-small{
    background-image: url("assets/tomatoR.png");
    width: 30px;
    height: 30px;
}

.yellowTomato{
    background-image: url("assets/tomatoY.png");
}

.yellowTomato-small{
    background-image: url("assets/tomatoY.png");
    width: 30px;
    height: 30px;
}

.rottenRedTomato{
    background-image: url("assets/tomatoRedRotten.png");
}

.rottenYellowTomato{
    background-image: url("assets/tomatoYellowRotten.png");
}

.sausage{
    background-image: url("assets/sausage.png");
}

.item_active{
    transform: scale(1.2);
    filter: drop-shadow(0 0 0.75rem black);
    z-index: 100;
}

.elPizza_correct.item_active{
    animation: none;
}


.list-levels{
    margin-top: 20px;
    text-align: center;
    color: rgba(255,255,255,.6);
    font-size: 20px;
}

.level{
    padding: 10px;
    position: relative;
}

.level:hover{
    cursor: pointer;
    color: #efefef;
}

.level_active{
    background-color: #27241e;
}

.level_active:hover{
    color: rgba(255,255,255,.6);
}

.level_passed{
    color: green;
}

.level:before {
    content: '\2713';
    font-size: 20px;
    color: rgba(255,255,255,.6);
    margin-right: 10px;
}

.iconHelp{
    color: #221e18;
    font-size: 22px;
}

.iconHelp_passed{
    color: green;
}

.level_passed:before{
    color: green;
}

.button-reset, .help{
    margin-top: 30px;
    padding: 10px 20px;
    border: 2px solid white;
    background-color: #221e18;;
    color: rgba(255,255,255,.6);
    outline: rgba(255, 255, 255, .5) solid 1px;
    outline-offset: 0;
    text-shadow: none;
    transition: all 1250ms cubic-bezier(0.19, 1, 0.22, 1);
}

.button-reset:hover, .help:hover{
    border: 2px solid;
    outline-color: rgba(255, 255, 255, 0);
    outline-offset: 15px;
    text-shadow: 1px 1px 2px #427388;
    cursor: pointer;
}

