.content{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-image: url('../img/content/bg.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: em(10);
    padding-top: em(24);
    padding-bottom: em(58);
    z-index: 1;
    &__container{
        position: relative;
        width: 100%;
        max-width: em(1540);
        padding-left: em(20);
        padding-right: em(20);
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        margin-left: auto;
        margin-right: auto;
        gap: em(22);
    }
    &__items{
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: em(40);
    }
    &__item{
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }
    &__arr_top{
        position: fixed;
        width: em(87);
        height: em(87);
        bottom: em(15);
        right: em(15);
        cursor: pointer;
        transition: filter .2s ease-in-out, opacity .3s ease-in-out;
        opacity: 0;
        pointer-events: none;
        user-select: none;
        img{
            width: 100%;
        }
        &:hover{
            filter: brightness(1.2);
        }
        &.active{
            opacity: 1;
            pointer-events: unset;
            user-select: unset;
        }
    }
}

.text-part{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: em(16);
    img{
        width: 100%;
    }
    ul{
        margin-bottom: em(18);
        li{
            margin-bottom: em(18);
        }
    }
}

.games{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: em(20);
    &__heading{
        position: relative;
        width: 100%;
    }
    &__items{
        position: relative;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(em(250), 1fr));
        gap: em(30);
    }
    &__item{
        position: relative;
        width: 100%;
        // flex: 0 0 em(264);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: em(12);
    }
    &__image{
        position: relative;
        width: 100%;
        height: em(181);
        border: em(1) solid #FFC692;
        border-radius: em(12);
        overflow: hidden;
        img{
            width: 100%;
            height: em(181);
            object-fit: cover;
            object-position: center top;
            border-radius: em(10);
            display: block;
        }
    }
    &__name{
        position: relative;
        width: 100%;
        text-align: left;
        span{
            font-size: em(26);
            line-height: 1.23;
            font-weight: bold;
            color: $text-base;
        }
    }
}

.list-type-1{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: em(30);
    
    &__heading{
        position: relative;
        width: 100%;
    }
    &__items{
        position: relative;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: em(16) em(52);
    }
    &__item{
        position: relative;
        width: 100%;
        background-image: url('../img/content/list/bg-item.jpg');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: em(10);
        border: em(4) solid #FFAE64;
        padding: em(17) em(14);
        display: grid;
        grid-template-columns:1fr 1fr;
        gap: em(20);
        &:not(:has(.list-type-1__text:nth-child(2))) {
            grid-template-columns: 1fr;
        }
        &.type-2{
            grid-template-columns: 2.5fr 0.5fr;
            .list-type-1__text{
                &:last-child{
                    text-align: right;
                }
            }
        }
    }
    &__text{
        position: relative;
        width: 100%;
        span{
            color: $text-item;
            font-size: em(16);
            line-height: 1.5;
            font-family: "Ultra", serif;
            font-weight: 400;
        }
    }
}

.questions{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: em(30);
    &__heading{
        position: relative;
        width: 100%;
    }
    &__items{
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: em(10);
    }
    &__item{
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start; 
        &.active{
            .questions__item_text{
                margin-top: em(28);
                padding-top: em(1);
                opacity: 1;
            }
            .questions__item_heading{
                img{
                    transform: scaleY(-1);
                }
            }
        }
    }
    &__item_heading{
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #EFE6D3;
        border-radius: em(16);
        border: em(1) solid #FFC692;
        padding: em(16) em(24);
        span{
            color: $text-item;
            font-size: em(16);
            letter-spacing: em(0.5,16);
            line-height: 1.2;
            font-weight: 400;
            font-family: "Ultra", serif;
        }
        img{
            width: em(20);
            height: em(12);
            object-fit: contain;
            transition: .2s ease-in-out;
        }
    }
    &__item_text{
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between; 
        overflow: hidden;
        height: 0;
        @include transition(300ms, all);
        opacity: 0;
        p{
            display: block;
            width: 100%;
            color: $text-item;
            font-size: em(16);
            letter-spacing: em(0.5,16);
            line-height: 1.2;
            font-weight: 400;
            font-family: "Ultra", serif;
            background: #EFE6D3;
            border-radius: em(16);
            border: em(1) solid #FFC692;
            padding: em(16) em(24);
        }
    }
}





@media(max-width:1024px) and (orientation:portrait){
    .content{
        .list-type-1{
            &__items{
                grid-template-columns:  1fr;
            }
            &__item{
                order: 0;
                &:not(:has(.list-type-1__text:nth-child(2))) {
                    order: 1;
                }
            }
            &__text{
                &:nth-child(2){
                    text-align: right;
                }
            }
        }
    }
    .games{
        &__image{
            height: em(220);
            img{
                height: em(220);
            }
        }
    }
}

@media(max-width:768px) and (orientation:portrait){
    .content{
        &__container{
            position: relative;
            width: 100%;
            max-width: em(1540);
            flex-direction: column;
        }
        &__arr_top{
            font-size: .7rem;
        }
    }
    .games{
        &__image{
            height: em(250);
            img{
                height: em(250);
            }
        }
    }
}
@media(max-width:500px) and (orientation:portrait){
    .games{
        &__image{
            height: em(280);
            img{
                height: em(280);
            }
        }
    }
}