/*------- Базовые стили для всех страниц -------*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

.nunito-<uniquifier> {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

* {
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    font-style: normal;
}

html, body{
    padding: 0px;
    margin: 0px;
}

*::-webkit-scrollbar {
    display: none;
}

.data-block{
    display: none;
}

.main{
    height: 100vh;
    width: 100vw;
    background-color: #202b39;
    display: grid;
    grid-template-columns: 100%;
    z-index: -100;
}

.content{
    width: 96vw;
    padding: 0 2vw;
    padding-top: 0.5vh;
    height: 91.5vh;
    overflow-y: scroll;
    overflow-x: hidden;
}

.slider{
    background-color: #2e3b4b;
    min-height: 8vh;
}

.sections{
    height: calc(100% - 1.4vh);
    width: calc(100% - 4vw);
    padding: 0.7vh 2vw;
    display: grid;
    grid-template-columns: 33% 34% 33%;
}

.section{
    display: grid;
    grid-template-columns: 100%;
    align-content: center;
    justify-items: center;
    color: #aec0d6;
    height: 100%;
}

.active{
    color: #3281dc;
}

.span-sec{
    font-size: 1.7vh;
}

.section > i{
    font-size: 3.5vh;
}

.sections > a{
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

.modal{
    position: fixed;
    border-radius: 3vw;
    background-color: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(80px);
    backdrop-filter: blur(80px);
    padding: 1vh 2vw;
    width: 80vw;
    height: 60vh;
    margin: 19vh 9vw;
    z-index: 10000;
    position: fixed;
    display: grid;
    grid-template-columns: 100%;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    transform: scale(0.5);
    transition: transform 0.3s ease;
    box-shadow: 0 0 0 100vh rgba(0, 0, 0, 0.4);
}

.modal.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.modal > .img{
    width: 100%;
    height: 30vh;
    display: flex;
    aspect-ratio: 1 / 1;
    justify-content: center;
}

.modal > .img > img{
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

#sell_btn{
    width: calc(100% - 4vw);
    height: 6vh;
    margin: 1vh 2vw;
    background-color: #3281dc;
    color: white;
    font-size: 2vh;
    border: none;
    border-radius: 3vw;
}

#close{
    width: calc(100% - 4vw);
    height: 6vh;
    margin: 0 2vw;
    background-color: inherit;
    color: #cc3623;
    font-size: 2vh;
    border: 4px solid #cc3623;
    border-radius: 3vw;
}

#sell_gift{
    width: calc(100% - 4vw);
    height: 6vh;
    margin: 1vh 2vw;
    background-color: #4ABD33;
    color: white;
    font-size: 2vh;
    border: none;
    border-radius: 3vw;
}

.holder{
    display: flex;
    flex-direction: row;
    align-items: center;
}


.holder > .count > h2{
    color: #cddbeb;
    font-size: 3vh;
    margin: 0;
    margin-top: 0.5vh;
}

.holder > .stars{
    height: 3vh;
}

.holder > .stars > img{
    height: 100%;
}

/*----------- Стили страницы -----------*/

#case_name{
    text-align: center;
    color: #cddbeb;
    margin: 2vh 0;
    font-size: 3vh;
    font-weight: 700;
}

.case{
    width: 100%;
    height: 25vh;
    margin: 1vh 0;
}

.window{
    width: calc(100% - 1vw);
    height: 100%;
    border-radius: 6vw;
    border: 0.5vw solid #3281dc;
    display: flex;
    overflow: hidden;
}

.open-container{
    display: grid;
    grid-template-columns: 80% 20%;
}

#open_case{
    width: calc(100% - 2vw);
    height: 6vh;
    margin: 1vh 0;
    background-color: #3281dc;
    color: white;
    font-size: 2vh;
    border: none;
    border-radius: 3vw;
    margin-bottom: 4vh;
}

.demo-block{
    width: 100%;
    height: 6vh;
    background-color: #2e3b4b;
    border-radius: 3vw;
    margin: 1vh 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.7vh;
}

.demo-block > span{
    color: #cddbeb;
    font-size: 1vh;
}

.demo {
    display: none;
    -webkit-tap-highlight-color: transparent;
}

.ios-toggle {
    position: relative;
    display: inline-block;
    width: 4vh;
    height: 2vh;
    background-color: #e5e5ea;
    border-radius: 2vh;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.ios-toggle::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 1.6vh;
    height: 1.6vh;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.demo:checked + .ios-toggle {
    background-color: #3281dc;
}

.demo:checked + .ios-toggle::after {
    transform: translateX(2vh);
}

.demo:disabled + .ios-toggle {
    opacity: 0.5;
    cursor: not-allowed;
}

.line{
    position: absolute;
    height: 25vh;
    width: 0.5vw;
    background-color: #3281dc;
    left: calc(50vw - 0.25vw);
    z-index: 100;
}

#for-items{
    text-align: start;
    color: #cddbeb;
    margin: 2vh 0;
    font-size: 2vh;
    font-weight: 700;
    margin: 0 2vw;
}

.slide{
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
    position: relative;
    left: -11vw;
}

.card{
    background-color: #2e3b4b;
    border-radius: 3vw;
    margin: 1vh 2vw;
    height: calc(100% - 2vh);
    width: 35vw;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card_img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 3vw;
    display: block;
}

.slow-move{
    transition: all 7s cubic-bezier(0.2, 0, 0.58, 1);
}

.fast-move{
    transition: none;
}

.list-items{
    display: flex;
    flex-direction: row;
    height: 25vh;
    width: 100%;
    overflow-x: scroll;
}

.list-items::-webkit-scrollbar {
    height: 2vh;
}

.list-items::-webkit-scrollbar-track {
    background: transparent;
}

.list-items::-webkit-scrollbar-thumb {
    background-color: rgba(51, 88, 129, 0.8);
    border-radius: 1vw;
}

.list-items::-webkit-scrollbar-button {
    display: none;
}

.gift-img{
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 70%;
    width: 100%;
    max-width: 100%;
}

.gimg{
    justify-content: center;
    width: 100%; /* Занимает всю ширину контейнера */
    height: 100%; /* Занимает всю высоту контейнера */
    object-fit: contain; /* Сохраняет пропорции */
    display: block; /* Убирает лишние отступы */
}



h2.name{
    text-align: center;
    color: #cddbeb;
    margin: 0;
    font-size: 2vh;
    font-weight: 500;
}

.price{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.starr{
    height: 2vh;
}

.pc{
    display: flex;
    flex-direction: row;
}

.ct > h2{
    text-align: center;
    color: #cddbeb;
    margin: 0;
    margin-top: 0.5vh;
    font-size: 1.5vh;
    font-weight: 500;
}

.starss{
    display: flex;
    align-items: center;
    margin-right: 1vw;
}

.ct{
    display: flex;
    align-items: center;
}




