/* font-family: "LatoRegular"; */
@font-face {
  font-family: "Lato";
  src: url("../fonts/LatoRegular/LatoRegular.eot");
  src: url("../fonts/LatoRegular/LatoRegular.eot?#iefix") format("embedded-opentype"), url("../fonts/LatoRegular/LatoRegular.woff") format("woff"), url("../fonts/LatoRegular/LatoRegular.ttf") format("truetype");
  font-style: normal;
  font-weight: normal; }

@font-face {
  font-family: "Lato";
  src: url("../fonts/LatoItalic/LatoItalic.eot");
  src: url("../fonts/LatoItalic/LatoItalic.eot?#iefix") format("embedded-opentype"), url("../fonts/LatoItalic/LatoItalic.woff") format("woff"), url("../fonts/LatoItalic/LatoItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: normal; }

@font-face {
  font-family: "Lato";
  src: url("../fonts/LatoBold/LatoBold.eot");
  src: url("../fonts/LatoBold/LatoBold.eot?#iefix") format("embedded-opentype"), url("../fonts/LatoBold/LatoBold.woff") format("woff"), url("../fonts/LatoBold/LatoBold.ttf") format("truetype");
  font-style: normal;
  font-weight: bold; }

@font-face {
  font-family: "LatoLight";
  src: url("../fonts/LatoLight/LatoLight.eot");
  src: url("../fonts/LatoLight/LatoLight.eot?#iefix") format("embedded-opentype"), url("../fonts/LatoLight/LatoLight.woff") format("woff"), url("../fonts/LatoLight/LatoLight.ttf") format("truetype");
  font-style: normal;
  font-weight: normal; }

@font-face {
  font-family: "LatoLight";
  src: url("../fonts/LatoLightItalic/LatoLightItalic.eot");
  src: url("../fonts/LatoLightItalic/LatoLightItalic.eot?#iefix") format("embedded-opentype"), url("../fonts/LatoLightItalic/LatoLightItalic.woff") format("woff"), url("../fonts/LatoLightItalic/LatoLightItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: normal; }

@font-face {
  font-family: "LatoLight";
  src: url("../fonts/LatoBold/LatoBold.eot");
  src: url("../fonts/LatoBold/LatoBold.eot?#iefix") format("embedded-opentype"), url("../fonts/LatoBold/LatoBold.woff") format("woff"), url("../fonts/LatoBold/LatoBold.ttf") format("truetype");
  font-style: normal;
  font-weight: bold; }

body {
  font-family: LatoLight, Helvetica, Arial, sans;
  font-size: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #160121;
  background-color: #F9F1E8;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #F9F1E8; }

h1, h2 {
  text-align: center; }

.clearfix {
  content: '';
  display: table;
  clear: both; }

.screen_settings {
  margin: 0 auto;
  width: 800px; }

.tile_settings {
  width: 100%;
  text-align: center; }

.tile_type {
  float: left;
  width: 150px;
  margin-left: 200px; }

.tile_amount {
  float: right;
  width: 150px;
  margin-right: 200px; }

.btn_play_container {
  margin-top: 40px;
  text-align: center; }

.btn_play, .btn_restart, .btn_settings {
  width: 200px;
  height: 50px;
  border: 2px solid #d0d0d0;
  border-radius: 5px;
  font-size: 16px;
  background-color: #F7DFC3;
  cursor: pointer; }
  .btn_play:hover, .btn_restart:hover, .btn_settings:hover {
    background-color: #E4C6A4; }

.screen_game {
  display: none;
  margin: 0 auto;
  width: 800px; }

.tile_container {
  width: 440px;
  padding: 5px;
  margin: 0 auto;
  border-radius: 10px;
  background-color: #F7DFC3; }

.tile {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 100px;
  margin: 5px;
  font-size: 20px; }

.tile_back {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  background-color: #E4C6A4;
  background-image: url(../images/tile_bg.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50px 50px;
  -webkit-transform: rotateY(0);
          transform: rotateY(0);
  z-index: 20;
  -webkit-transition: z-index 1s 50ms, -webkit-transform 1s;
  transition: z-index 1s 50ms, -webkit-transform 1s;
  transition: transform 1s, z-index 1s 50ms;
  transition: transform 1s, z-index 1s 50ms, -webkit-transform 1s;
  cursor: pointer; }
  .tile_back.turned {
    -webkit-transform: rotateY(180deg) !important;
            transform: rotateY(180deg) !important;
    z-index: 10; }

.tile_front {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  text-align: center;
  line-height: 100px;
  background-color: #E4C6A4;
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
  z-index: 10;
  -webkit-transition: z-index 1s 50ms, -webkit-transform 1s;
  transition: z-index 1s 50ms, -webkit-transform 1s;
  transition: transform 1s, z-index 1s 50ms;
  transition: transform 1s, z-index 1s 50ms, -webkit-transform 1s; }
  .tile_front.turned {
    -webkit-transform: rotateY(0) !important;
            transform: rotateY(0) !important;
    z-index: 20; }

.btns_container {
  margin-top: 40px;
  text-align: center; }

.dog {
  width: 100%;
  height: 100%;
  background: url(../images/animals/dog.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.cat {
  width: 100%;
  height: 100%;
  background: url(../images/animals/cat.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.mouse {
  width: 100%;
  height: 100%;
  background: url(../images/animals/mouse.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.bear {
  width: 100%;
  height: 100%;
  background: url(../images/animals/bear.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.hare {
  width: 100%;
  height: 100%;
  background: url(../images/animals/hare.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.lion {
  width: 100%;
  height: 100%;
  background: url(../images/animals/lion.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.snake {
  width: 100%;
  height: 100%;
  background: url(../images/animals/snake.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.duck {
  width: 100%;
  height: 100%;
  background: url(../images/animals/duck.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.cow {
  width: 100%;
  height: 100%;
  background: url(../images/animals/cow.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.goat {
  width: 100%;
  height: 100%;
  background: url(../images/animals/goat.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.apple {
  width: 100%;
  height: 100%;
  background: url(../images/food/apple.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.pear {
  width: 100%;
  height: 100%;
  background: url(../images/food/pear.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.bread {
  width: 100%;
  height: 100%;
  background: url(../images/food/bread.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.butter {
  width: 100%;
  height: 100%;
  background: url(../images/food/butter.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.cheese {
  width: 100%;
  height: 100%;
  background: url(../images/food/cheese.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.meat {
  width: 100%;
  height: 100%;
  background: url(../images/food/meat.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.soup {
  width: 100%;
  height: 100%;
  background: url(../images/food/soup.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.egg {
  width: 100%;
  height: 100%;
  background: url(../images/food/egg.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.jam {
  width: 100%;
  height: 100%;
  background: url(../images/food/jam.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }

.cake {
  width: 100%;
  height: 100%;
  background: url(../images/food/cake.png) no-repeat center center;
  background-color: #E4C6A4;
  background-size: 100px 100px; }
