/* Functional styling;
 * These styles are required for noUiSlider to function.
 * You don't need to change these rules to apply your design.
 */
.noUi-target,
.noUi-target * {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  -ms-touch-action: none;
  touch-action: none;
  -ms-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.noUi-target {
  position: relative;
}
.noUi-base,
.noUi-connects {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
/* Wrapper for all connect elements.
 */
.noUi-connects {
  overflow: hidden;
  z-index: 0;
}
.noUi-connect,
.noUi-origin {
  will-change: transform;
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  -ms-transform-origin: 0 0;
  -webkit-transform-origin: 0 0;
  -webkit-transform-style: preserve-3d;
  transform-origin: 0 0;
  transform-style: flat;
}
/* Offset direction
 */
.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {
  left: 0;
  right: auto;
}
/* Give origins 0 height/width so they don't interfere with clicking the
 * connect elements.
 */
.noUi-vertical .noUi-origin {
  top: -100%;
  width: 0;
}
.noUi-horizontal .noUi-origin {
  height: 0;
}
.noUi-handle {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: absolute;
}
.noUi-touch-area {
  height: 100%;
  width: 100%;
}
.noUi-state-tap .noUi-connect,
.noUi-state-tap .noUi-origin {
  -webkit-transition: transform 0.3s;
  transition: transform 0.3s;
}
.noUi-state-drag * {
  cursor: inherit !important;
}
/* Slider size and handle placement;
 */
.noUi-horizontal {
  height: 18px;
}
.noUi-horizontal .noUi-handle {
  width: 34px;
  height: 28px;
  right: -17px;
  top: -6px;
}
.noUi-vertical {
  width: 18px;
}
.noUi-vertical .noUi-handle {
  width: 28px;
  height: 34px;
  right: -6px;
  bottom: -17px;
}
.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {
  left: -17px;
  right: auto;
}
/* Styling;
 * Giving the connect element a border radius causes issues with using transform: scale
 */
.noUi-target {
  background: #FAFAFA;
  border-radius: 4px;
  border: 1px solid #D3D3D3;
  box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
}
.noUi-connects {
  border-radius: 3px;
}
.noUi-connect {
  background: #3FB8AF;
}
/* Handles and cursors;
 */
.noUi-draggable {
  cursor: ew-resize;
}
.noUi-vertical .noUi-draggable {
  cursor: ns-resize;
}
.noUi-handle {
  border: 1px solid #D9D9D9;
  border-radius: 3px;
  background: #FFF;
  cursor: default;
  box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
}
.noUi-active {
  box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;
}
/* Handle stripes;
 */
.noUi-handle:before,
.noUi-handle:after {
  content: "";
  display: block;
  position: absolute;
  height: 14px;
  width: 1px;
  background: #E8E7E6;
  left: 14px;
  top: 6px;
}
.noUi-handle:after {
  left: 17px;
}
.noUi-vertical .noUi-handle:before,
.noUi-vertical .noUi-handle:after {
  width: 14px;
  height: 1px;
  left: 6px;
  top: 14px;
}
.noUi-vertical .noUi-handle:after {
  top: 17px;
}
/* Disabled state;
 */
[disabled] .noUi-connect {
  background: #B8B8B8;
}
[disabled].noUi-target,
[disabled].noUi-handle,
[disabled] .noUi-handle {
  cursor: not-allowed;
}
/* Base;
 *
 */
.noUi-pips,
.noUi-pips * {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.noUi-pips {
  position: absolute;
  color: #999;
}
/* Values;
 *
 */
.noUi-value {
  position: absolute;
  white-space: nowrap;
  text-align: center;
}
.noUi-value-sub {
  color: #ccc;
  font-size: 10px;
}
/* Markings;
 *
 */
.noUi-marker {
  position: absolute;
  background: #CCC;
}
.noUi-marker-sub {
  background: #AAA;
}
.noUi-marker-large {
  background: #AAA;
}
/* Horizontal layout;
 *
 */
.noUi-pips-horizontal {
  padding: 10px 0;
  height: 80px;
  top: 100%;
  left: 0;
  width: 100%;
}
.noUi-value-horizontal {
  -webkit-transform: translate(-50%, 50%);
  transform: translate(-50%, 50%);
}
.noUi-rtl .noUi-value-horizontal {
  -webkit-transform: translate(50%, 50%);
  transform: translate(50%, 50%);
}
.noUi-marker-horizontal.noUi-marker {
  margin-left: -1px;
  width: 2px;
  height: 5px;
}
.noUi-marker-horizontal.noUi-marker-sub {
  height: 10px;
}
.noUi-marker-horizontal.noUi-marker-large {
  height: 15px;
}
/* Vertical layout;
 *
 */
.noUi-pips-vertical {
  padding: 0 10px;
  height: 100%;
  top: 0;
  left: 100%;
}
.noUi-value-vertical {
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  padding-left: 25px;
}
.noUi-rtl .noUi-value-vertical {
  -webkit-transform: translate(0, 50%);
  transform: translate(0, 50%);
}
.noUi-marker-vertical.noUi-marker {
  width: 5px;
  height: 2px;
  margin-top: -1px;
}
.noUi-marker-vertical.noUi-marker-sub {
  width: 10px;
}
.noUi-marker-vertical.noUi-marker-large {
  width: 15px;
}
.noUi-tooltip {
  display: block;
  position: absolute;
  border: 1px solid #D9D9D9;
  border-radius: 3px;
  background: #fff;
  color: #000;
  padding: 5px;
  text-align: center;
  white-space: nowrap;
}
.noUi-horizontal .noUi-tooltip {
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  left: 50%;
  bottom: 120%;
}
.noUi-vertical .noUi-tooltip {
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  top: 50%;
  right: 120%;
}
.noUi-horizontal .noUi-origin > .noUi-tooltip {
  -webkit-transform: translate(50%, 0);
  transform: translate(50%, 0);
  left: auto;
  bottom: 10px;
}
.noUi-vertical .noUi-origin > .noUi-tooltip {
  -webkit-transform: translate(0, -18px);
  transform: translate(0, -18px);
  top: auto;
  right: 28px;
}

/*Обнуление*/
*{padding: 0;margin: 0;border: 0;}
*,*:before,*:after{-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}
:focus,:active{outline: none;}
a:focus,a:active{outline: none;}
nav,footer,header,aside{display: block;}
html,body{height:100%;width:100%;font-size:100%;line-height:1;font-size:14px;-ms-text-size-adjust:100%;-moz-text-size-adjust:100%;-webkit-text-size-adjust:100%;}
input,button,textarea{font-family:inherit;}
input::-ms-clear{display: none;}
button{cursor: pointer;}
button::-moz-focus-inner{padding:0;border:0;}
a,a:visited{text-decoration: none;}
a:hover{text-decoration: none;}
ul li{list-style: none;}
img{vertical-align: top;}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight: inherit;}
/*--------------------*/


body {
    background: url(assets/bg.jpg) no-repeat;
    background-size: cover;
    font-family: 'Neucha', cursive;
    overflow-x: hidden;
    background-attachment: fixed;
}
.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.content {
    flex: 1 1 auto;
}
.container {
    max-width: 1600px;
    margin: 0 auto;
}

header {
    width: 100%;
    padding: 10px 0;
    background-color: #192F2D;
    color:#fff;
}
.header__body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo {
    background-image: url(assets/tree.svg);
    width: 48px ;
    height: 60px;
    background-size: 60px 60px;
    background-position: center;
    cursor: pointer;
}
.audio-button {
    width: 40px;
    height: 40px;
    background-size: 40px 40px;
    background-image: url(assets/audio.svg);
    cursor: pointer;
}
.header-search {
    width: 20%;
}
.search {
    width: 100%;
    height: 30px;
    border-radius: 20px;
    background-color: #fff;
    border: 2px solid #0b8494;
    padding-left: 10px;
    font-size: 18px;
}
.header-select {
    background: url(assets/ball-2.svg);
    width: 40px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
}
.select-count {
    display: inline-block;
    position: absolute;
    top: 16.5px;
    left: 3.5px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #192F2D;
    text-align: center;
    line-height: 35px;
    font-size: 20px;
} 
.header-menu {
    font-size: 28px;
    width: 13%;
    align-self: center;
}
.list-menu {
    display: flex;
    justify-content: space-between;
}
.menu-link {
    cursor: pointer;
}



.start-menu__title {
    text-align: center;
    font-size: 53px;
    width: 40%;
    height: 250px;
    margin: 0 auto;
    margin-top: 100px;
    color: #fff;
    border-radius: 30px;
    border: 2px solid #24C5DB;
}
.start-menu__title span {
    display: inline-block;
    margin-top: 70px;
}
.blur {
    background: rgba(124, 160, 160, 0.2); 
    backdrop-filter: blur(8px); 
}
.start-menu__button {
    margin: 0 auto;
    margin-top: 120px;
    width: 20%;
    text-align: center;
    color: #fff;
    border-radius: 30px;
    border: 2px solid #24C5DB;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all .5s linear;
}
.start-menu__button:hover {
    box-shadow: 20px 15px 15px  rgba(5, 128, 128, 0.8);
}
.start-menu__button span {
    display: inline-block;
    margin-top: 10px;
}

.hide {
    display: none;
}

.toys-page {
    width: 100%;
    margin-top: 30px;
}
.toys-page__body {
    display: flex;
    margin-bottom: 20px;
}
.toys-controls {
    width: 25%;
    position: fixed;
    color: #fff;
    display: flex;
    flex-direction: column;
}
.control-section {
    padding: 15px 0;
    border: 2px solid rgba(65,129,122,1);
    border-radius: 20px;
    margin-right: 10px;
    font-size: 20px;
}
.filter {
    display: flex;
    align-items: center;
    margin-left: 15px;
    margin-top: 15px;
}
.range {
    margin-top: 15px;
}
.sorting {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sort-select {
    margin-top: 15px;
    height: 40px;
    width: 70%;
    border-radius: 10px;
    color: #fff;
    background: rgba(33, 148, 148, 0.664); 
    font-size: 18px; 
    cursor: pointer;
}
.sort-select option {
    background: rgba(33, 148, 148, 0.664); 
}
.reset {
    color: #fff;
    font-size: 20px;
    width: 30%;
    margin-top: 30px;
    height: 35px;
    border-radius: 13px;
    background: rgba(33, 148, 148, 0.664);  
}
@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    80% {
        transform: translateY(-10px);
    }
}
.reset:hover {
    animation: bounce 1s;
    animation-iteration-count: 5;
}
.range-slider {
    width: 80%;
    margin: 0 auto;
    margin-top: 15px;
}
.range-slider-year {
    width: 80%;
    margin: 0 auto;
    margin-top: 60px;
}
.shape button {
    width: 40px;
    height: 40px;
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 15px;
    transition: all 0.5s ease;
}
.shape button:nth-child(1) {
    background-image: url(assets/ball.svg);
}
.shape button:nth-child(2) {
    background-image: url(assets/bell.svg);
}
.shape button:nth-child(3) {
    background-image: url(assets/cone.svg);
}
.shape button:nth-child(4) {
    background-image: url(assets/snowflake.svg);
}
.shape button:nth-child(5) {
    background-image: url(assets/toy.svg);
}
.color button {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(65,129,122,1);
    border-radius: 10px;
    margin: 0 15px;
}
.color button:nth-child(2) {
    background-color: red;
}
.color button:nth-child(3) {
    background-color: green;
}
.color button:nth-child(4) {
    background-color: blue;
}
.color button:nth-child(5) {
    background-color: yellow;
}
.control-title {
    text-align: center;
    text-transform: uppercase;
}
label {
    cursor: pointer;
}
.size label {
    margin: 0 15px;
}
.favorite label {
    margin: 0 15px;
    cursor: pointer;
}
.active-button {
    filter: brightness(83%) contrast(200%) invert(30%) sepia(100%);
}

.card-container {
    width: 70%;
    margin-left: 30%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
}
.card {
    color: #fff;
    height: 300px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 2px solid rgba(65,129,122,1);
    cursor: pointer;
    transition: all .2s ease;
    
}


.card:hover {
    box-shadow: 15px 10px 10px rgba(124, 160, 160, 0.7);
}
.card p {
    font-size: 16px;
    margin: 6px 0;
    margin-left: 15px;
    
}
.card-title {
    text-align: center;
    font-size: 18px;
    margin-top: 8px;
}

.card-img img {
    width: 50%;
    float: left;
}
.active {
    border: 2px solid rgb(149, 53, 8);
}
.conceal {
    display: none;
}

.limit {
    position: fixed;
    width: 20%;
    height: 20%;
    bottom: 150%;
    left: 40%;
    opacity: 0;
    visibility: hidden;
    border-radius: 5%;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 55;
    background-color: #fff;
    transition: all 0.5s linear;
}
.limit__text {
    text-align: center;
    font-size: 26px;
    padding-top: 10px;
}
.limit-close {
    margin:0 auto;
    text-align: center;
    width: 30%;
    background: rgba(124, 160, 160, 0.8); 
    backdrop-filter: blur(8px); 
    cursor: pointer;
    border-radius: 10px;
    height: 50px;
    margin-top: 40px;
}
.limit-close span {
    display: inline-block;
    margin-top: 15%;
    font-size: 24px;
}
.limit-open {
    opacity: 1;
    visibility: visible;
    bottom: 50%;
}


footer {
    background-color: #192F2D;
}
.footer__body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.github {
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}
.rsschool {
    background: url(assets/rss.svg);
    background-size: 70px 70px ;
    width: 70px;
    height: 70px;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* Страница с ёлкой */

.tree-page {
    width: 100%;
    height: 670px;
}
.tree-page__body {
    display: flex;
    justify-content: space-between;
}
.tree-title {
    font-size: 20px;
    color: #fff;
    text-transform: uppercase;
    margin-left: 33%;
}
.first-tree-settings {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    width: 400px;
}
.second-tree-settings {
    width: 400px;
    margin-top: 30px;
}
.tree-container {
    margin-top: 10px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    column-gap: 10px;
    row-gap: 10px;
}
.tree {
    width: 110px;
    height: 110px;
    background-size: auto 110px;
    background-color: rgba(255, 255, 255, 0.5);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    cursor: pointer;
}


.choose-bg {
    margin-top: 30px;
}

.bg-container {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    row-gap: 10px;
}

.bg {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #fff;
}



.main-tree {
    width: 800px;
    min-height: 710px;
    background-size: cover;
    background-position: center;
}
.cancel-tree-toys {
    margin: 80px 0px 0px 70px;
    width: 70%;
    text-align: center;
    color: #fff;
    border-radius: 30px;
    border: 2px solid #24C5DB;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all .5s linear;
}
.cancel-tree-toys:hover {
    box-shadow: 20px 15px 15px  rgba(5, 128, 128, 0.8);
}
.tree-toys__container {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    column-gap: 10px;
    row-gap: 10px;
    margin-top: 10px;
    margin-left: 15px;
}
.toy-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    align-items: center;
    flex-direction: row;
    background-color: rgba(255, 255, 255, 0.5);  
    width: 100%;
    max-width: 80px;
    min-height: 80px;
    cursor: move;
    border-radius: 10px;
}
.toy-card img {
    width: 60px;
    height: 60px;
}
.toy-card-count {
    width: 20%;
    margin-left: 50px;
    color: #fff;
    font-size: 20px;
}
.tree-img {
    display: block;
    margin: 0 auto;
}
.tree-toys-img {
    display: block;
    position: absolute;
    z-index: 500;
}
.tree-toy-img {
    position: absolute;
}
.drag-active{
    opacity: 0.5;
}

main {
    position: relative;
}

.snowflake {
    position: absolute;
    top: -20px;
    z-index: 100;
    animation: fall linear forwards;
    background-image: url(assets/snowflake.svg);
    background-repeat: no-repeat;
    background-position: center;
}

@keyframes fall {
    to {
        transform: translateY(700px);
    }
}

.snowflake-button {
    background-image: url(assets/snowflake.svg);
    background-repeat: no-repeat;
    background-position: center;
    width: 50px;
    height: 50px;
    background-size: 50px 50px;
    cursor: pointer;
    transition: all .5s ease ;
}
.snowflake-button:hover {
    opacity: 0.5;
}
