
/*Стили для основного блока*/


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

main {
    max-width: 768px;
    margin: 0 auto;
}

main h2, main h1 {
    margin: 20px 0;
    font-size: 32px;
    text-align: center;
    text-transform: uppercase;
}
.banknote-uah{padding-top: 2em;margin-bottom: 40px;}

.wrapper {
    display: flex;
    flex-wrap: wrap;
}

.noteValue {
    width: 30%;
    text-align: center;
    margin: 0 5% 30px 0;
}

.noteValue p {
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #007b6f;
}

.noteValue img {
    width: 100%;
}


@media screen and (min-width: 769px){
    .noteValue:nth-child(3n) {
        margin: 0 0 30px 0;
    }
}

@media screen and (max-width: 769px) {
    main {
        padding: 0 10px;
    }

    .noteValue {
        width: 47%;
        margin: 0 6% 30px 0;
    }

    .noteValue:nth-child(2n) {
        margin: 0 0 30px 0;
    }



}






/*Стилизация основного блока с купюрой*/

.tabs {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 0 15px #cacaca;
}

.tabsCaption {
    display: flex;
    justify-content: space-between;
    padding: 0 !important;
}

.tabsCaption li {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 10px;
    width: calc(100%/2);
    min-width: 150px;

    list-style: none;
    text-align: center;
    cursor: pointer;
    margin: 0 !important;
}

.oldDesign .tabsCaption li {
    width: 50%;
}

.tabsCaption li.active {
    background-color: #007b6f;
    color: #ffffff;
}

.tabsContent {
    display: none;
    padding: 15px 20px 35px;
    background-color: #007b6f;
}

.tabsContent.active {
    display: block;
}

.image {
    padding: 40px 20px 20px;
    background-color: #007b6f;
}

.note {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card {
    margin-bottom: 25px;
    position: relative;
    width: 90%;
    height: 40vw;
    max-height: 320px;
    perspective: 1500px;
}

.front>img, .back>img {
    width: 100%;
    height: 100%;
}

.front, .back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    transition: 1.5s;
}

.back {
    transform: rotateY(180deg);

}

.front.turn {
    transform: rotateY(180deg);
}

.back.turn {
    transform: rotateY(360deg);
}

.front.go {
    animation: moveNote 4s linear infinite;
}

.card span {
    position: absolute;
    display: none;
    height: 70%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 10px solid #ffffff;
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.front span:first-of-type {
    height: 90%;
}

.card span img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card span.show{
    display: flex;
}





/*Кнопка поворота купюры*/

.turnNote {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: -1.5%;
    top: -3%;
    z-index: 2;
    width: 5vw;
    max-width: 45px;
    height: 5vw;
    max-height: 45px;
    background-color: #fff;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.turnNote img {
    width: 70%;
    height: 70%;
}





/*Стилизация переключателей и описания*/

.dscr {
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
}

.dscr li {
    width: 48%;
    margin: 20px 0 0 2%;
    padding-left: 50px;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 18px;
    color: #007b6f;
    list-style: none;
    position: relative;
}

.dscr li:last-child {
    margin: 20px 0 20px 2%;
}

.dscr li p {
    display: none;
}

ol{
    counter-reset: myCounter;
}

.dscr li:before {
    position: absolute;
    top: -5px;
    left: 10px;
    counter-increment: myCounter;
    content:counter(myCounter);
    line-height: 30px;
    width: 30px;
    height: 30px;
    display: inline-block;
    margin-right: 15px;

    text-align: center;
    color: white;
    background: #007b6f;
    border-radius: 50%;
}

.txt {
    padding: 15px;
    background-color: #fff;
    color: #007b6f;
    text-align: justify;
}






/*Стилизация спанов которые накладываются на купюру*/


.front span:first-of-type {
    top: 5%;
    left: 20%;
}

.front span:nth-of-type(2) {
    bottom: -10%;
    right: 10%;
}

.front span:nth-of-type(3) {
    bottom: 0;
    left: 5%;
}

.front span:nth-of-type(4) {
    top: 0;
    left: 0;
}

.front span:nth-of-type(5) {
    top: 0;
    left: 50%;
}

.front span:nth-of-type(6) {
    top: 15%;
    right: 10%;
}

.front span:nth-of-type(7) {
    top: -5%;
    right: 10%;
}

.front span:nth-of-type(8) {
    bottom: -5%;
    right: -5%;
}




@media screen and (max-width: 500px) {

    .tabsCaption {
        flex-direction: column;
    }
    .tabsCaption li:not(:last-child){
        border-bottom: 1px solid #cacaca;
    }

    .tabsCaption li, .oldDesign .tabsCaption li {
        width: 100%;
    }

    .dscr li {
        padding-left: 35px;
        font-size: 15px;
    }

    .dscr li::before {
        top: 0;
        line-height: 20px;
        width: 20px;
        height: 20px;
        display: inline-block;
        margin-right: 5px;
    }

    .txt {
        font-size: 15px;
    }
}







/*Animation set*/

@keyframes opacity_0 {
    0% {opacity: 1;}
    100% {opacity: 0;}
}

@keyframes opacity_1 {
    0% {opacity: 1;}
    50% {opacity: 0;}
    100% {opacity: 0;}
}

@keyframes opacity_2 {
    0% {opacity: 0;}
    50% {opacity: 1;}
    100% {opacity: 0;}
}

@keyframes opacity_3 {
    0% {opacity: 0;}
    50% {opacity: 0;}
    100% {opacity: 1;}
}

@keyframes  moveNote{
    0% {transform: rotateX(50deg);}
    50% {transform: rotateX(-50deg);}
    100% {transform: rotateX(50deg);}
}

