/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700&display=swap");

* {
  font-family: Montserrat;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

main {
  background-image: url("images/back.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

body {
  height: 100%;
  background: rgb(150, 49, 49);
  background: -o-linear-gradient(
    52deg,
    rgba(150, 49, 49, 1) 22%,
    rgba(46, 4, 4, 1) 100%
  );
  background: linear-gradient(
    38deg,
    rgba(150, 49, 49, 1) 22%,
    rgba(46, 4, 4, 1) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#963131",endColorstr="#2e0404",GradientType=1);
}

.header {
  font-family: Montserrat;
  color: #a29fa6;
  width: 100%;
  background-color: #505050;
  height: 50px;
}

.header_navigation ul {
  position: relative;
  top: 17px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 auto;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  max-width: 450px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 500;
}

.header_navigation ul li {
  margin-right: 20px;
  -webkit-transition: color 0.2s ease-in-out;
  -o-transition: color 0.2s ease-in-out;
  transition: color 0.2s ease-in-out;
}

.header_navigation ul li:last-child {
  margin-right: 0px;
}

.header_navigation ul li a {
  text-decoration: none;
  color: #a29fa6;
}

.header_navigation ul li a:hover {
  color: red;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.logo {
  position: absolute;
  top: 9px;
  left: 25px;
}

main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: calc(100% - 50px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px;
}

.start,
.end_game {
  height: 100%;
  max-height: 300px;
  width: 100%;
  max-width: 600px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 10px;
  background-color: rgba(241, 241, 241, 0.945);
}

.start p,
.end_game p {
  margin-bottom: 10px;
  max-width: 400px;
}

.run_game {
  background-color: rgb(102, 102, 102);
  padding: 10px 40px;
  color: white;
}

.start_message {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-animation: showStart 0.5s ease-in-out;
          animation: showStart 0.5s ease-in-out;
  position: relative;
}

@-webkit-keyframes showStart {
  0% {
    opacity: 0%;
  }
  100% {
    opacity: 100%;
  }
}

@keyframes showStart {
  0% {
    opacity: 0%;
  }
  100% {
    opacity: 100%;
  }
}

.close {
  position: absolute;
  right: 0;
  top: 0;
  padding: 5px;
  opacity: 100%;
  -webkit-animation: close_btn 0.5s ease-in-out;
          animation: close_btn 0.5s ease-in-out;
}

@-webkit-keyframes close_btn {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 0%;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 100%;
  }
}

@keyframes close_btn {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 0%;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 100%;
  }
}
.rectangle {
  margin: 0 auto;
  width: 100%;
  max-width: 730px;
  height: 100%;
  max-height: 550px;
  background-color: #d9d9d9e3;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  /* background-image: url("images/back.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center; */
}

.message {
  margin: 0 auto;
  width: 100%;
  max-width: 440px;
  height: 100%;
  max-height: 300px;
  padding: 10px;
  background-color: #ffffff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.message p {
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.button {
  padding: 10px 40px;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  background-color: #d9d9d9;
  -webkit-transition: background-color 0.5s ease-in-out;
  -o-transition: background-color 0.5s ease-in-out;
  transition: background-color 0.5s ease-in-out;
}

.button:hover {
  -webkit-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  background-color: #989975;
}

.none {
  display: none;
}

.game {
  width: 100%;
  max-width: 286px;
  height: 100%;
  max-height: 492px;
  /* background-color: #fff; */
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  overflow: hidden;
}

.image {
  width: 100%;
  height: 100%;
  max-height: 266px;
  background-color: #ffffff;
  margin-bottom: 5px;
}

.description {
  background-color: #fff;
  margin-bottom: 5px;
  max-height: 140px;
}

.description_container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  -webkit-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.description_container2 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  -webkit-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.description_container2 div {
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  line-height: 13px;
  /* text-transform: uppercase; */
  padding: 5px;
  width: 100%;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 auto;
          flex: 1 0 auto;
}

.description_container2 div h2 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
}
.description_container p {
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  line-height: 13px;
  /* text-transform: uppercase; */
  padding: 5px;
  width: 100%;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 auto;
          flex: 1 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.choose {
  width: 100%;
  height: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 5px;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.takebtn {
  width: 138px;
  background-color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 50px;
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  -webkit-transition: background-color 0.5s ease-in-out;
  -o-transition: background-color 0.5s ease-in-out;
  transition: background-color 0.5s ease-in-out;
}

.take {
  margin-right: 10px;
}

/*.take:hover {*/
/*   background-color: #989975; */
/*  background-color: #797979;*/
/*  -webkit-transition: background-color 0.5s ease-in-out;*/
/*  -o-transition: background-color 0.5s ease-in-out;*/
/*  transition: background-color 0.5s ease-in-out;*/
/*}*/

.green {
  /* background-color: #989975; */
  background-color: #797979;
}

/*.take:hover {*/
/*   background-color: #989975; */
/*  background-color: #797979;*/
/*  -webkit-transition: background-color 0.5s ease-in-out;*/
/*  -o-transition: background-color 0.5s ease-in-out;*/
/*  transition: background-color 0.5s ease-in-out;*/
/*}*/

/*.not-take:hover {*/
/*   background-color: #945858; */
/*  background-color: #797979;*/
/*  -webkit-transition: background-color 0.5s ease-in-out;*/
/*  -o-transition: background-color 0.5s ease-in-out;*/
/*  transition: background-color 0.5s ease-in-out;*/
/*}*/

.red {
  /* background-color: #945858; */
  background-color: #797979;
}

.create_army {
  width: 100%;
  height: 39px;
  background-color: #797979;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 500;
  line-height: 40px;
  text-align: center;
  -webkit-transition: background-color 0.5s ease-in-out;
  -o-transition: background-color 0.5s ease-in-out;
  transition: background-color 0.5s ease-in-out;
  opacity: 0;
}

.show_create {
  opacity: 1;
  -webkit-transition: all 1s ease-in-out;
  -o-transition: all 1s ease-in-out;
  transition: all 1s ease-in-out;
}

.side_btn {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
}

.side_btn img {
  margin: 0 auto;
  display: block;
  max-width: 70px;
  -webkit-box-shadow: none;
          box-shadow: none;
  border-radius: 50%;
  -webkit-transition: -webkit-box-shadow 0.5s ease-in-out;
  transition: -webkit-box-shadow 0.5s ease-in-out;
  -o-transition: box-shadow 0.5s ease-in-out;
  transition: box-shadow 0.5s ease-in-out;
  transition: box-shadow 0.5s ease-in-out, -webkit-box-shadow 0.5s ease-in-out;
}

.side_btn img:hover {
  /* border: solid 1px black; */
  -webkit-box-shadow: #505050 0px 0px 20px;
          box-shadow: #505050 0px 0px 20px;
  border-radius: 50%;
  -webkit-transition: -webkit-box-shadow 0.5s ease-in-out;
  transition: -webkit-box-shadow 0.5s ease-in-out;
  -o-transition: box-shadow 0.5s ease-in-out;
  transition: box-shadow 0.5s ease-in-out;
  transition: box-shadow 0.5s ease-in-out, -webkit-box-shadow 0.5s ease-in-out;
}

.side_btn img:active {
  -webkit-transform: scale(0.9);
      -ms-transform: scale(0.9);
          transform: scale(0.9);
}

.scroll {
  position: relative;
  -webkit-animation: scroll_effect 1s ease-in-out;
          animation: scroll_effect 1s ease-in-out;
}

.image_container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  -webkit-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  max-height: 266px;
}

.image_container img {
  width: 100%;
}

.image_container2 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  -webkit-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  max-height: 266px;
}

.image_container2 img {
  width: 100%;
}

.hide {
  height: 0px;
  opacity: 0;
  pointer-events: none;
  position: relative;
  -webkit-transition: all 1s ease-in-out;
  -o-transition: all 1s ease-in-out;
  transition: all 1s ease-in-out;
}

.newDescr {
  height: 100%;
  max-height: 300px;
  -webkit-transition: all 1s ease-in-out;
  -o-transition: all 1s ease-in-out;
  transition: all 1s ease-in-out;
}

.result_back {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.281);
  -webkit-animation: showBack 0.5s ease-in-out;
          animation: showBack 0.5s ease-in-out;
}

@-webkit-keyframes showBack {
  0% {
    opacity: 0%;
  }
  100% {
    opacity: 100%;
  }
}

@keyframes showBack {
  0% {
    opacity: 0%;
  }
  100% {
    opacity: 100%;
  }
}

.result {
  width: calc(100% - 10px);
  max-width: 400px;
  height: 250px;
  position: absolute;
  background-color: #ffffff;
  left: 50%;
  top: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
      -ms-transform: translateX(-50%) translateY(-50%);
          transform: translateX(-50%) translateY(-50%);
  z-index: 10;
  -webkit-box-shadow: rgb(112, 112, 112) 0px 0px 20px;
          box-shadow: rgb(112, 112, 112) 0px 0px 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.result p {
  margin-bottom: 20px;
  padding: 20px;
}

.nextBtn {
  background-color: rgb(102, 102, 102);
  color: white;
  padding: 10px 40px;
}

.hidden {
  display: none !important;
}

.mobile_select {
  display: none;
}

@media (min-width: 650px) {
    .take:hover {
   background-color: #989975; 
  background-color: #797979;
  -webkit-transition: background-color 0.5s ease-in-out;
  -o-transition: background-color 0.5s ease-in-out;
  transition: background-color 0.5s ease-in-out;
}

.not-take:hover {
   background-color: #945858; 
  background-color: #797979;
  -webkit-transition: background-color 0.5s ease-in-out;
  -o-transition: background-color 0.5s ease-in-out;
  transition: background-color 0.5s ease-in-out;
}
    
}




@media (max-width: 650px) {
  .header ul {
    display: none;
  }
  main {
    background-image: none;
  }
}

@media (max-width: 500px) {
  .side_btn {
    display: none;
  }
  .rectangle {
    display: block;
  }
  .start_message {
    background-color: #d9d9d9;
  }
  .mobile_select {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
        justify-content: space-around;
    margin-top: 10px;
  }
  .result_back {
    background-color: transparent;
  }
  .close {
    padding: 0px 10px;
  }
}