html, body, div, span, applet, object, iframe,
 h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address,
  big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike,
   strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset,
    form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, 
    aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu,
     nav, output, ruby, section, summary, time, mark, audio, video {
   border: 0;
   font-size: 100%;
   font: inherit;
   vertical-align: baseline;
   outline: none;
   font-family: Montserrat, sans-serif;
}

body{
   background: rgb(109,59,143);
   background: linear-gradient(106deg, rgba(109,59,143,1) 0%, rgba(165,57,238,1) 55%, rgba(131,58,180,1) 100%); 
}

img {
   border: 0;
   max-width: 100%;
}

.rulet_button {
   width: 80px;
   height: 80px;
   position: fixed;
   top: 50%; 
   left: 5px;
   cursor: pointer;
   -webkit-animation-name: 'pulse_animation';
   -webkit-animation-duration: 3000ms;
   -webkit-transform-origin: 70% 70%;
   -webkit-animation-iteration-count: infinite;
   -webkit-animation-timing-function: linear;
   -webkit-animation: pulsate 3s ease-out;
   -webkit-animation-iteration-count: infinite;
}
 
 @-webkit-keyframes pulsate {
   0% {
     -webkit-transform: scale(1.2, 1.2);
     opacity: 1;
   }
   50% {
     -webkit-transform: scale(0.9, 0.9);
     opacity: 1;
   }
   100% {
     -webkit-transform: scale(1.2, 1.2);
     opacity: 1;
   }
 }

 /* modal */
 /* The Modal (background) */
.modal {
   display: none;
   justify-content: center;
   align-items: center;
   position: fixed; /* Stay in place */
   z-index: 1; /* Sit on top */
   left: 0;
   top: 0;
   width: 100%; /* Full width */
   height: 100%; /* Full height */
   overflow: auto; /* Enable scroll if needed */
   background-color: rgb(0,0,0); /* Fallback color */
   background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
 }
 
 /* Modal Content/Box */
 .modal-content {
   display:flex;
   background-color: #fefefe;
   padding: 20px;
   width: 959px; 
   height: 600px;
   box-shadow: 1px 1px 25px 5px rgba(0,0,0,0.4);
   border-radius: 10px;
   position: relative;
   overflow: hidden;
   padding: 0;
   border: none;
 }
 
 /* The Close Button */
 .close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    background: rgba(30, 30, 30, 0.6);
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    cursor: pointer;
    display: inline-block;
    height: 20px;
    width: 20px;
    margin: 0;
    padding: 10px;
    transition: .2s;
    vertical-align: top;
    visibility: inherit;
    text-align: center;
    line-height: 20px;
 }
 .close:hover,
 .close:focus {
   color: rgb(170, 166, 166);
   text-decoration: none;
   cursor: pointer;
   padding: 12px;
   right: 14px;
    top: 14px;
 }

 .left_col{
   position: relative;
   padding: 0;
   width: 50%;
   background-image: url('../img/1296_v2_fon_desktop_1613901024.jpg');
}
.right_col{
   border: 0;
   color: #fff;
   background-color: #00bd2e;
   background-image: linear-gradient(180deg, #00bd2e 0%, #000000d2 100%);
   width: 50%;
}

.modal-card{
   padding-top: 40px;
   display:flex;
   align-items: center;
   flex-direction: column;
}
.modal-card h3{
   font-size: 30px;
   font-weight: 600;
}
.modal-card b{
   font-weight: 700;
   font-size: 1.1em;
   line-height: 1.4;
}

.modal-form{
   /* display: flex; */
   -webkit-box-orient: vertical;
   -webkit-box-direction: normal;
   flex-direction: column;
   -webkit-box-align: center;
   max-width: 100%;
   margin-top: 18px;
}
.form-group{
   padding: 0;
}
.form__label {
   display: block;
   width: 100%;
   padding: 0;
   margin: 0;
}
.form__input-wrapper {
   max-width: 290px;
   margin-left: auto;
   margin-right: auto;
}
.form__input {
   height: 45px;
   background-color: #fff;
   border: 1px solid #e8e8e8;
   border-radius: 3px;
   color: #000;
   font-size: inherit;
   font-weight: 400;
   outline: none;
   padding: 0.177em 1em;
   margin-bottom: 12px;
   text-align: inherit;
   -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   width: 100%;
   -webkit-appearance: none;
}

.text-center {
   text-align: center;
}
.c-btn:hover {
   color: #c57100;
}
.c-btn {
   color: #ffb500;
}
.c-btn {
   border-radius: 5px;
   cursor: pointer;
   display: -webkit-box;
   display: flex;
   width: 100%;
   max-width: 290px;
   margin-left: auto;
   margin-right: auto;
   font-size: 16px;
   font-weight: 500;
   letter-spacing: 0.02em;
   line-height: 1;
   outline: none;
   padding: 1em 1em 1.05em;
   height: 60px;
   position: relative;
   -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   background-color: currentColor;
   border-color: rgba(255, 255, 255, 0);
   border-image-slice: 2;
   border-style: solid;
   border-width: 1px;
}
.c-btn__content {
   color: #ffffff;
}
.c-btn__content {
   position: relative;
   display: -webkit-box;
   display: flex;
   -webkit-box-align: center;
   align-items: center;
   border-radius: inherit;
   height: 100%;
   -webkit-box-flex: 1;
   flex: 1 0 auto;
   -webkit-box-pack: center;
   justify-content: center;
   margin: 0 auto;
   white-space: nowrap;
}

.c-modal-card__agree {
   opacity: 0.7;
   font-size: 10px;
   margin-top: 12px;
   line-height: 1.4;
}

.form__group {
   position: relative;
}

.form__input-wrapper {
   display: -ms-flexbox;
   display: flex;
   -webkit-box-align: center;
   -ms-flex-align: center;
   align-items: left;
}

.form__checkbox, .form__radio {
   position: absolute;
   -webkit-appearance: none;
   opacity: 0;
}
[type='checkbox'], [type='radio'] {
   box-sizing: border-box;
   padding: 0;
}
[type='checkbox'], [type='radio'] {
   box-sizing: border-box;
   padding: 0;
}
.form__checkbox:checked + .icon {
   background-color: #fdbf07;
   border-color: #fdbf07;
}
.form__checkbox + .icon {
   border-radius: 3px;
   border: 1px solid #d1d1d1;
}
.form__checkbox + .icon {
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   -webkit-box-align: center;
   -ms-flex-align: center;
   align-items: center;
   -webkit-box-pack: center;
   -ms-flex-pack: center;
   justify-content: center;
   width: 19px;
   height: 19px;
   background: #fff;
   border-radius: 3px;
   -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.form__checkbox + .icon, .form__radio + .icon {
   position: relative;
   -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   width: 19px;
   height: 19px;
   stroke-width: 2;
   -ms-flex-negative: 0;
   flex-shrink: 0;
}

.text-left{
   text-align: left;
   padding-left: 10px;
}
.c-wheel__subj {
   position: absolute;
   bottom: 0;
   right: -65px;
   z-index: 1;
}
.c-wheel__arrow{
   position: absolute;
   bottom: 259px;
   right: 160px;
   z-index: 1;
}

/* Рулетка */
/* общий блок для всех элементов */
.deal-wheel {
   transform: rotate(180deg);  /* задаём переменные блока */
  /* размеры колеса */
  --size: clamp(250px, 70vmin, 600px);
  /* настройки яркости и заливки фона секторов */
  --lg-hs: 0 3%;
  --lg-stop: 50%;
  --lg: linear-gradient(
      hsl(var(--lg-hs) 10%) 0 var(--lg-stop),
      hsl(var(--lg-hs) 30%) var(--lg-stop) 100%
    );
  /* добавляем позиционирование относительно других элементов */
  position: absolute;
  bottom: 40px;
  left: -250px;
  /* left: 0px; */
  /* margin: auto 0px ; */
  /* подключаем сетку */
  display: grid;
  grid-gap: calc(var(--size) / 22);
  /* выравниваем содержимое блока по центру */
  align-items: center;
  /* задаём имена областей внутри сетки */
  grid-template-areas:
    "spinner"
    "trigger";
  /* устанавливаем размер шрифта */
  font-size: calc(var(--size) / 22);
  font-weight: 800;
  color: rgb(53, 53, 53);
}

/* всё, что относится ко внутренним элементам главного блока, будет находиться в области сетки с названием spinner */
.deal-wheel > * {
   box-sizing: border-box;
  grid-area: spinner;
  border: 8px solid rgb(34, 78, 25);
}

/* сектор колеса */
.spinner {
  /* добавляем относительное позиционирование */
  position: relative;
  /* подключаем сетку */
  display: grid;
  /* выравниваем всё по центру */
  align-items: center;
  /* добавляем элемент в сетку */
  grid-template-areas: "spinner";
  /* устанавливаем размеры */
  width: 500px;
  height: 500px;
  /* width: var(--size);
  height: var(--size); */
  /* поворачиваем элемент  */
  transform: rotate(calc(var(--rotate, 25) * 1deg));
  /* рисуем круглую обводку, а всё, что не поместится, — будет скрыто за кругом */
  border-radius: 50%;
}

/* всё, что внутри этого блока, будет находиться в области сетки с названием spinner */
.spinner * {
  box-sizing: border-box;
  grid-area: spinner;
}

/* текст на секторах */
.prize {
  /* включаем «гибкую» вёрстку */
  display: flex;
  align-items: center;
  /* задаём отступы от краёв блока */
  padding: 0 calc(var(--size) / 6) 0 calc(var(--size) / 25);
  /* устанавливаем размеры */
  width: 50%;
  height: 50%;
  /* устанавливаем координаты, относительно которых будем вращать текст */
  transform-origin: center right;
  /* поворачиваем текст */
  transform: rotate(var(--rotate));
  /* запрещаем пользователю выделять мышкой текст на секторах */
  user-select: none;
}


/* если кнопка нажата и неактивна */
.btn-spin:disabled {
  /* меняем внешний вид курсора */
  cursor: progress;
  /* делаем кнопку полупрозрачной */
  opacity: 0.25;
}

/* анимация вращения */
.is-spinning .spinner {
  transition: transform 8s cubic-bezier(0.1, -0.01, 0, 1);
}

/* анимация движения язычка */
.c-wheel__arrow {
    animation: tick 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* эффект, когда колесо задевает язычок при вращении */
@keyframes tick {
  40% {
    /* чуть поворачиваем язычок наверх в середине анимации */
    transform: rotate(-22deg);
  }
}

/* анимируем выпавший сектор */
.prize.selected .text {
  /* делаем текст белым */
  color: white;
  /* настраиваем длительность анимации */
  animation: selected 800ms ease;
  font-size: 20px;
}

/* настраиваем анимацию текста на выпавшем секторе по кадрам */
@keyframes selected {
  /* что происходит на 25% от начала анимации */
  25% {
    /* увеличиваем текст в 1,25 раза */
    transform: scale(1.25);
    /* добавляем тексту тень */
    text-shadow: 1vmin 1vmin 0 hsla(0 0% 0% / 0.1);
  }
  40% {
    transform: scale(0.92);
    text-shadow: 0 0 0 hsla(0 0% 0% / 0.2);
  }
  60% {
    transform: scale(1.02);
    text-shadow: 0.5vmin 0.5vmin 0 hsla(0 0% 0% / 0.1);
  }
  75% {
    transform: scale(0.98);
  }
  85% {
    transform: scale(1);
  }
}
.text {
   font-size: 18px;
   transform: rotate(180deg) translateX(8px) translateY(-10px);
   text-align: end;
   padding: 0px;
}

@media screen and (max-width: 959px)  {
   .modal-content {
      flex-direction: column-reverse;
      justify-content: start;
      position: relative;
      width: 450px; 
      height: 800px;
      background-color: #00bd2e;
      background-image: linear-gradient(180deg, #00bd2e 0%, #000000d2 100%);
   }
   .left_col{
     /* position: absolute; */
     width: 100%;
     background: none;
   }
   .right_col{
    background: none;
    width: 100%;
   }
   .modal-card{
      padding-top: 10px;
   }
   .modal-card h3{
      text-align: center;
      font-size: 20px;
   }
   .modal-card b{
      font-weight: 700;
      font-size: 1em;
   }
   .modal-form{
      margin-top: 10px;
   }
   .form__input {
      height: 38px;
   }

   /* Рулетка */
   /* общий блок для всех элементов */
   .deal-wheel {
      transform: rotate(100deg);  /* задаём переменные блока */
     /* добавляем позиционирование относительно других элементов */
     position: absolute;
     bottom: -580px;
     left: 18px;
     z-index: 2;
   }
   /* сектор колеса */
   .spinner {
      /* устанавливаем размеры */
      width: 400px;
      height: 400px;
   }
   .c-wheel__subj {
      bottom: -370px;
      right: -15px;
   }
   .c-wheel__arrow{
      bottom: -180px;
      right: 150px;
      z-index: 3;
      transform: rotate(-90deg)
   }
   .text {
      font-size: 15px;
      transform: rotate(175deg) translateX(0px) translateY(-10px);
      text-align: end;
      padding: 0px;
   }
   .prize.selected .text {
      font-size: 18px;
  }
}