@mn-cl: #3394e6; @wht: #fff; @txt: #000; @blk: #000; @keyframes flipInY { from { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 90deg); transform: perspective(400px) rotate3d(0, 1, 0, 90deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; opacity: 0; } 40% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -20deg); transform: perspective(400px) rotate3d(0, 1, 0, -20deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 60% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, 10deg); transform: perspective(400px) rotate3d(0, 1, 0, 10deg); opacity: 1; } 80% { -webkit-transform: perspective(400px) rotate3d(0, 1, 0, -5deg); transform: perspective(400px) rotate3d(0, 1, 0, -5deg); } to { -webkit-transform: perspective(400px); transform: perspective(400px); } } .flipInY { backface-visibility: visible !important; animation-name: flipInY; -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; animation-fill-mode: both; } .ox__gad { padding: 20px 0; } .ox__gad * { box-sizing: border-box; } .ox__gad *:focus { outline: none; } .ox__btn { cursor: pointer; border-radius: 6px; padding: 0.5rem 2.5rem 0.5rem; text-align: center; font-size: 1.2rem; font-weight: 400; text-decoration: none; display: inline-block; border: 0px solid transparent; line-height: 1; background: @mn-cl; color: @wht; border: 1px solid darken(@mn-cl, 5%); transition: all 250ms ease-out; &:focus { box-shadow: 0px 0px transparent; } &:hover { background: lighten(@mn-cl, 10%); color: @wht; } &:active, &:focus { background: @mn-cl; color: @wht; border: 1px solid darken(@mn-cl, 5%); &:hover { background: lighten(@mn-cl, 10%); color: @wht; } } } .ox { &__input { padding: 0.5rem 1rem 0.5rem; display: inline-block; background: @wht; border: 1px solid darken(@wht, 15%); border-radius: 6px; } &__title { text-align: center; margin: 15px 0; padding: 0; @media (max-width: 560px) { font-size: 1.35rem; } } &__input { padding: 0.5rem 1rem 0.5rem; display: inline-block; background: @wht; border: 1px solid darken(@wht, 15%); border-radius: 6px; } &__title { text-align: center; margin: 15px 0; padding: 0; @media (max-width: 560px) { font-size: 1.35rem; } &-big { font-weight: 800; font-size: 2rem; @media (max-width: 560px) { font-size: 1.5rem; } } } &__names { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: 15px; grid-template-rows: auto; @media (max-width: 767px) { grid-template-columns: 1fr; } &-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; label { margin-bottom: 5px; } } } &__rezult { display: none; padding: 15px; } &__item { .alignleft { float: left; margin-right: 10px; margin-bottom: 16px; } &:after { content: ''; display: block; width: 100%; height: 1px; clear: both; } } } .kings { display: flex; justify-content: space-between; flex-wrap: wrap; max-width: 550px; margin: 0 auto; &__item { margin: 0.5rem; cursor: pointer; width: calc(~'25% - 1rem'); text-align: center; img { box-shadow: 0px 15px 20px -15px fade(@blk, 50%); transition: all 250ms ease-out; opacity: 0.85; &:hover { opacity: 1; box-shadow: 0px 5px 10px -5px fade(@blk, 50%); } } @media (max-width: 560px) { width: calc(~'50% - 1rem'); } &:nth-child(odd) { @media (max-width: 560px) { text-align: right; } } &:nth-child(even) { @media (max-width: 560px) { text-align: left; } } img { max-width: 100%; } } } .forkards { display: none; margin-bottom: 1.5rem; } .findking { display: grid; grid-template-rows: auto; grid-template-columns: 1fr 1fr 1fr; max-width: 400px; margin: 0 auto; &__item { text-align: center; //width: 33%; img { max-width: 100%; box-shadow: 0px 15px 20px -15px fade(@blk, 50%); } } } #koloda { cursor: pointer; transition: all 250ms ease-out; opacity: 0.85; &:hover { opacity: 1; box-shadow: 0px 5px 10px -5px fade(@blk, 50%); } } .uking { transition: all 250ms ease-out; transform: rotate(0deg); &.spin { transform: rotate(360deg); } } .btns { text-align: center; margin: 20px auto; } .ox_smalltext { display: block; font-size: 1rem; } .card-position { margin: 0 auto 20px; display: flex; flex-wrap: wrap; justify-content: center; @media(max-width: 767px) { justify-content: center; max-width: 600px; } &__item { // max-width: 100px; transition: all 250ms ease-out; &:first-child { margin-left: 0px; } } &__card{ width: 105px; padding-top: 150px; background-color: transparent; margin: 0 auto; border: 5px solid transparent; background-image: url('/ox_gad/newanim/img/background.png'); background-position: center center; background-repeat: no-repeat; background-size: cover; cursor: pointer; @media (max-width: 767px) { width: 85px; padding-top: 120px; } &.hovered { margin-top: -10px; box-shadow: 0px 15px 30px -15px fade(@blk, 50%); z-index: 1; } &.opened { cursor: default; &.hovered { margin-top: 0px; box-shadow: 0px 0px 0px 0px fade(@blk, 0%); z-index: 1; } } } &__desc { background: @wht; padding-top: 5px; text-align: center; font-size: 14px; } } .allcards { display: flex; flex-wrap: wrap; //padding-left: 32px; justify-content: center; margin-bottom: 2rem; @media(max-width: 560px) { //max-width: 299px; margin: 0 auto; margin-bottom: 2rem; } &__item { background-image: url(img/background.png); background-position: center center; background-repeat: no-repeat; background-size: cover; width: 75px; height: 120px; cursor: pointer; //margin-left: -32px; box-shadow: 0px 5px 10px -5px fade(@blk, 50%), 5px 0px 10px -5px fade(@blk, 50%), inset 0px 0px 20px 0px fade(@blk, 15%); border-radius: 3px; transition: all 250ms ease-out; transform: rotateY(180deg); position: relative; //z-index: 1; } } .show__card { background-image: url(img/background.png); background-position: center center; background-repeat: no-repeat; background-size: cover; width: 75px; height: 120px; cursor: pointer; margin-left: 0px; box-shadow: 5px 0px 10px -5px fade(@blk, 50%); border-radius: 3px; transform: rotateY(180deg); position: absolute; opacity: 0; @media (min-width: 767px) { transition: all 250ms ease-out; } //display: none; &.opened { margin-top: -168px; opacity: 1; transform: rotateY(0deg); margin-left: 0px; box-shadow: -5px 0px 10px -5px fade(@blk, 50%); position: absolute; z-index: 2; //z-index: 4; &[data-count="count_1"] { margin-left: -198px; @media (max-width: 560px) { margin-top: -331px; margin-left: -81px; } } &[data-count="count_2"] { margin-left: -77px; @media (max-width: 560px) { margin-top: -331px; margin-left: 49px; } } &[data-count="count_3"] { margin-left: 45px; @media (max-width: 560px) { margin-left: -81px; } } &[data-count="count_4"] { margin-left: 166px; @media (max-width: 560px) { margin-left: 49px; } } } } #ox__rezult { display: none; max-width: 750px; margin: 0 auto; border: 1px solid lighten(@blk, 15%); border-radius: 5px; padding: 5px 15px; } .rezult-list { display: grid; grid-template-rows: auto; grid-template-columns: 115px calc(~'100% - 115px - 2rem'); grid-gap: 2rem; margin: 1rem auto 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid lighten(@blk, 15%); @media (max-width: 560px) { grid-template-columns: 100%; grid-gap: .5rem; } &__img { @media (max-width: 560px) { text-align: center; } img { width: 100%; max-width: 115px; @media (max-width: 560px) { max-width: 115px; } } } &__title { font-weight: 800; font-size: 1.75rem; @media (max-width: 560px) { text-align: center; font-size: 1.35rem; } } &__cardtitle { background: darken(@wht, 10%); padding: 10px 15px; grid-column: span 2; font-weight: 800; font-size: 1.75rem; @media (max-width: 560px) { grid-column: span 1; text-align: center; font-size: 1.35rem; } } }