/* Разметка страницы и общие правила */

body {
  background: #080808 url("background.jpeg") repeat-y center top;
  font-family: 'Quicksand', sans-serif;
}

.page {
  width: 1300px;
  margin: 0px auto;
  margin-top: 130px;
}

.left {
  float: left;
  width: 335px;
  margin: 0px auto;
  background-color: #141414;
  position: relative;
  color: #FFFFFF;
}

.center {
  width: 630px;
  margin: 0px auto;
  padding-top: 1px;
  background: #171819;
  color: #FFFFFF;
}

.right {
  float: right;
  width: 335px;
  height: 565px;
  margin: 0px auto;
  background-color: #141414;
  position: relative;
  color: #FFFFFF;
}

/* меню */

.nav {
  display: inline-flex;
  position: fixed;
  justify-content: center;
  background-color: #181C23;
  border-bottom: 2.3px solid #313138;
  width: 100%;
  top: 0;
  left: 0px;
  z-index: 10;
}

.menu {
  display: inline-flex;
  position: absolute;
  top: 8px;
  left: 15px;
}

.menu img {
  transition: 0.4s;
}

.menu img:hover {
  transform: scale(1.08);
}

.menu_image {
  position: absolute;
  top: 20px;
  left: 67px;
}

.menu_image img {
  transition: 0.4s;
}

.menu_image img:hover {
  transform: scale(1.05);
}

.search-block {
  position: absolute;
  width: 170px;
  margin-top: 10px;
  right: 15px;
}

.search {
  padding: 0 42px 0 15px;
  border-radius: 10px 20px 20px 10px;
  box-shadow: none;
  border: 1px solid #686868;
  height: 32px;
  line-height: 39px;
  width: 110px;
  background: #1F2021;
  color: #FFFFFF;
}

.search_image {
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxnIGZpbGw9Im5vbmUiPgogICAgICAgIDxwYXRoIGQ9Ik0wIDBIMjBWMjBIMHoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjQzJDMkMyIiBzdHJva2U9IiNDMkMyQzIiIHN0cm9rZS13aWR0aD0iLjUiIGQ9Ik0xNy4wMTIgMTYuMTU0bC0zLjU2OC0zLjcxYy45MTgtMS4wOSAxLjQyLTIuNDYzIDEuNDItMy44OTEgMC0zLjMzOC0yLjcxNS02LjA1My02LjA1Mi02LjA1My0zLjMzOCAwLTYuMDUzIDIuNzE1LTYuMDUzIDYuMDUzIDAgMy4zMzcgMi43MTUgNi4wNTIgNi4wNTMgNi4wNTIgMS4yNTIgMCAyLjQ0Ni0uMzc4IDMuNDY3LTEuMDk1bDMuNTk1IDMuNzM5Yy4xNS4xNTYuMzUzLjI0Mi41Ny4yNDIuMjA0IDAgLjM5OS0uMDc4LjU0Ni0uMjIuMzE0LS4zMDIuMzI0LS44MDMuMDIyLTEuMTE3ek04LjgxMiA0LjA4YzIuNDY2IDAgNC40NzMgMi4wMDcgNC40NzMgNC40NzQgMCAyLjQ2Ni0yLjAwNyA0LjQ3My00LjQ3MyA0LjQ3My0yLjQ2NyAwLTQuNDc0LTIuMDA3LTQuNDc0LTQuNDczIDAtMi40NjcgMi4wMDctNC40NzQgNC40NzQtNC40NzR6Ii8+CiAgICA8L2c+Cjwvc3ZnPgo=);
position: absolute;
pointer-events: none;
width: 20px;
height: 20px;
top: 7px;
left: 8px;
background-size: 20px;
}

.search_button {
  position: absolute;
  right: 0px;
  width: 40px;
  height: 34px;
  background-color: #303030;
  padding: 0;
  border: 1px solid #686868;
  line-height: 39px;
  border-radius: 0 12.5px 12.5px 0;
  cursor: pointer;
  transition: all 0.3s;
}

.menu_bar {
  display: inline-flex;
  list-style: none;
  margin-top: 0px;
  margin-bottom: 0px;
}

.menuBurger {
  display: none;
}

.menu_button {
  margin: 2px;
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.2s;
}

.menu_bar li {
  display: block;
  padding-right: 0px;
  margin: 0px 0px;
  cursor: pointer;
}

.menu_bar li:first-child {
  border-left: 23px solid;
  border-radius: 20px 0px 0px 20px;
  border-color: #14181F;
}

.menu_bar li:last-child {
  border-right: 23px solid;
  border-radius: 0px 20px 20px 0px;
  border-color: #14181F;
}

.menu_bar a {
  text-decoration: none;
  color: #FFFFFF;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  background: #14181F;
  word-spacing: 3px;
  display: block;
  padding-top: 16px;
  padding-bottom: 17px;
  padding-left: 20px;
  padding-right: 20px;
  transition: 0.2s;
}

.menu_bar a:hover {
  background-color: #808080;
  color: #FFFFFF;
}

.menu_rotate.active {
  transform: rotate(90deg) scaleY(1.09);
}

.footer {
  display: inline-flex;
  position: absolute;
  justify-content: center;
  background-color: #171819;
  border-top: 2.3px solid #313138;
  left: 0px;
  width: 100%;
  height: 45px;
}

.mail_link {
  position: relative;
  color: #949494;
  top: 11px;
  height: 20px;
  font-family: Times_New_Roman;
  font-size: 17px;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  word-spacing: 0.5px;
}

/* Контент */

h1 {
  background-color: #181d23;
  text-align: center;
  margin-top: 0px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 21px;
}

.center p {
  margin-left: 30px;
  margin-right: 28px;
}

.center img {
  position: relative;
  width: 575px;
  left: 30px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.center h3 {
  position: relative;
  left: 20px;
  font-size: 18px;
}

.center div p:last-of-type {
  padding-bottom: 55px;
}

.industry_advantages {
  color: #AA5118;
  font-size: 17.5px;
}

.div_next {
  transition: 0.35s;
}

.div_previous {
  transition: 0.35s;
}

.hidden {
  transform: translateY(0px);
  display: none;
}

.arrow_next {
  position: relative;
  width: 36px;
  height: 25px;
  float: right;
  background: url("Next.png");
  right: 30px;
  bottom: 65px;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

.arrow_next:hover {
  transform: scaleX(1.12);
}

.arrow_previous {
  position: relative;
  width: 36px;
  height: 25px;
  float: left;
  background: url("Next.png");
  left: 18px;
  bottom: 57px;
  border: none;
  cursor: pointer;
  transition: 0.25s;
  transform: rotateY(180deg);
}

.arrow_previous:hover {
  transform: rotateY(180deg) scaleX(1.12);
}

.my_hobbies {
  margin: 10px;
  display: block;
  width: 260px;
  height: 155px;
  position: relative;
  bottom: 25px;
  left: 30px;
  cursor: pointer;
  transition: transform 0.4s;
  padding-top: 6px;
  padding-bottom: 4px;
}

.hobbies_name {
  background-color: #171819;
  padding-left: 15px;
  margin-top: 0px;
  padding-top: 15px;
  padding-bottom: 15px;
  font-size: 18px;
  bottom: 20px;
  position: relative;
}

.hobbies_ul {
  background-color: #181d23;
  text-align: center;
  margin-top: -20px;
  padding-top: 29px;
  padding-bottom: 30px;
  font-size: 18px;
}

.my_hobbies:hover {
  transform: translate(-20px,0px) perspective(500px) rotateY(30deg);
}

.my_web_game {
  background-color: #181d23;
  text-align: center;
  margin-top: -20px;
  padding-top: 29px;
  padding-bottom: 30px;
  font-size: 18px;
}

.game_menu {
  position: relative;
  background-color: #171819;
  height: 55px;
  bottom: 20px;
  font-size: 18px;
}

.max_score {
  position: relative;
  width: 100px;
  left: 10px;
  top: 15px;
  line-height: 25px;
}

.game_menu div {
  position: absolute;
  left: 130px;
  height: 0px;
}

.score {
  position: relative;
  bottom: 44px;
}

.star {
  position: relative;
  float: right;
  width: 20px;
  left: 24px;
  bottom: 83px;
}

.play_button {
  position: relative;
  left: 285px;
  bottom: 28px;
  width: 27px;
  height: 27px;
  background-color: rgb(0,0,0,0);
  border: none;
  line-height: 39px;
  border-radius: 100%;
  cursor: pointer;
  transition: all 0.3s;
}

.play_image {
  position: relative;
  right: 8px;
}

.button_image_hidden {
  display: none;
}

.game_field {
  position: relative;
  width: 304px;
  height: 448px;
  bottom: 30px;
  border-top: 10px solid #171819;
  border-left: 10px solid #171819;
  border-right: 21px solid #171819;
  border-bottom: 21px solid #171819;
}

canvas {
  border: 1px solid #f5f6fa;
  background: #141414;;
  width: 304px;
  height: 448px;
}

.apple {
  display: none;
}

/* Параметры анимации */

.animation {
  padding: 20px;
  padding-bottom: 70px;
}

.cube {
  display: block;
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
  -webkit-animation: cube 1s ease-in-out;
  animation: cube 1s ease-in-out;
  animation-fill-mode: forwards;
}

.one {
  z-index: 5;
  background: #F3B222;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
  animation-iteration-count: 1;
  animation-duration: 1s;
}

/* Анимация куба */

@-webkit-keyframes cube {
  100% {
    transform: translate(150%, 0%) scale(1);
    border-radius: 0%;
  }
}

@keyframes cube {
  100% {
    transform: translate(150%, 0%) scale(1);
    border-radius: 0%;
  }
}

/* Анимация меню */

@-webkit-keyframes rotation {
  0% {
    transform: translateX(0) rotate(0);
  }

  100% {
    transform: translateX(0) rotate(0.25turn);
  }
}

@keyframes rotation {
  0% {
    transform: translateX(0) rotate(0);
  }

  100% {
    transform: translateX(0) rotate(0.25turn);
  }
}

/* Анимация хобби*/

@keyframes translate3d {
0% {
    transform: translateX(0px) rotate(0);
  }

  100% {
    transform: translateX(-20) rotate(20deg);
  }
}

/* Протативный дизайн */

@media (max-width: 1160px) {

  /* дизайн страницы для телефонов */

  .page {
    width: auto;
    margin: 0px auto;
    margin-top: 75px;
  }

  .left {
    display: none;
  }

  .center {
    width: auto;
    margin: 0px auto;
  }

  .center img {
    width: 285px;
  }  
  
  .right {
    display: none;
  }

/* дизайн меню для телефонов */
  
  .menu {
    display: none;
  }
  
  .nav {
    border: none;
    justify-content: left;
  }
  
  .menuBurger {
    display: inline-block;
  }

  .menu_bar li {
    outline: 0.6px solid #808080;
  }
  
  .menu_bar li:first-child {
    border: none;
    border-radius: 0px 0px 0px 0px;
  }
  
  .menu_bar li:last-child {
    border: none;
    border-radius: 0px 0px 0px 0px;
  }
  
  .menu_bar a {
    padding-top: 9px;
    padding-bottom: 9px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .menu_bar {
    display: none;
    position: absolute;
    padding-left: 0px;
    padding-top: 0px;
    border-bottom: 0.5px solid #808080;
    border-right: 0.5px solid #808080;
    border-left: 0.5px solid #808080;
    border-width: 3px;
    border-radius: 0px 0px 3px 3px;
    margin-left: 10px;
    margin-top: 0px;
    background: #D3D3D3;
    width: 279px;
    white-space: nowrap;
    overflow: auto;
    max-height: 180px;
    top: 45.2px;
  }

  .menu_button {
    margin-top: 5px;
  }
  
  .menu_image {
    margin-right: 0px;
    top: 13px;
    left: 32px;
    transform: scale(0.75);
  }

  .search-block {
    margin-top: 4px;
    margin-left: 0px;
    margin-right: 0px;
    width: 160px;
    right: 10px;
  }

  .search {
    width: 100px;
    outline:none;
  }
  
  .center h3 {
    width: 300px;
    text-align: center;
  }
}


 
