@charset "utf-8";

/*
*{
  margin:0 auto;
  padding:0;

}
*/

 /*!
     * Slider (https://itchief.ru/lessons/php/feedback-form-for-website)
     * Copyright 2018 Alexander Maltsev
     * Licensed under MIT (https://github.com/itchief/feedback-form/blob/master/LICENSE)
     * Forked from Bootstrap, licensed MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
     */

iframe:fullscreen {
    width: 100vw;
    height: 100vh;
}

iframe:-webkit-full-screen { /* для Safari и Chrome */
    width: 100vw;
    height: 100vh;
}

iframe:-moz-full-screen { /* для Firefox */
    width: 100vw;
    height: 100vh;
}


    body {
      margin: 0;
      text-align: center;
    }

    .slider {
      /* устанавливаем относительное позиционирование элементу */
      position: relative;
      display: inline-block;
    }

    .slider__items {
      /* устанавливаем относительное позиционирование элементу */
      position: relative;
      /* устанавливаем элементу ширину, равную 100% */
      width: 100%;
      overflow: hidden;
    }

    .slider__item {
      /* устанавливаем относительное позиционирование элементу */
      position: relative;
      /* отключаем по умолчанию отображение всех слайдов */
      display: none;
      /* устанавливаем элементу ширину, равную 100% */
      width: 100%;
      /* длительность анимации трансформации */
      transition: transform 0.6s ease;
      /* не показывать обратную сторону трансформируемого элемента */
      backface-visibility: hidden;
    }

.slider__item p{
  width:355px;
  background-color: grey ;
  padding-bottom:25px;
  margin-bottom:25px;
  position: absolute;
}


.slider__item img{
  margin-top: 3px;
  border: 2px solid #aeaeae;

        height: 290px;
        width: 355px;
        /*background-color: grey ;*/
        box-shadow: 0 0 0 1px #000 ;
        border-radius: 5%;
        transition: .5s;
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
-ms-transition: all 1s ease;
transition: all 1s ease;

}

.slider__item img:hover { 
/*transform: rotate(0deg) scale(1.03); */
/*opacity: .5;*/
filter: hue-rotate(180deg);
}



    .slider__item_active,
    .slider__item_next,
    .slider__item_prev {
      /* отображаем слайд, если он имеет один из этих классов */
      display: block;
    }

    .slider__item_next,
    .slider__item_prev {
      /* устанавливаем абсолютное позиционирование для элемента, на который будет сменяться слайд (на время трансформации) */
      position: absolute;
      /* устанавливаем положение элемента, т.е. координату top */
      top: 0;
    }

    .slider__item_next.slider__item_left,
    .slider__item_prev.slider__item_right {
      /* сдвигаем элемент на 0 по горизонтали */
      transform: translateX(0);
    }

    .slider__item_next,
    .slider__item_right.slider__item_active {
      /* сдвигаем элемент на 100% по горизонтали */
      transform: translateX(100%);
    }

    .slider__item_prev,
    .slider__item_left.slider__item_active {
      /* сдвигаем элемент на -100% по горизонтали */
      transform: translateX(-100%);
    }

    /* элементы управления (назад и вперёд) слайдером */

    .slider__control {
      position: absolute;
      top: 0;
      bottom: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 15%;
      color: #fff;
      text-align: center;
      opacity: 0.5;
    }

    .slider__control:hover,
    .slider__control:focus {
      color: #fff;
      text-decoration: none;
      outline: 0;
      opacity: .9;
    }

    .slider__control_prev {
      left: 0;
    }

    .slider__control_next {
      right: 0;
    }

    .slider__control::before {
      content: '';
      display: inline-block;
      width: 20px;
      height: 20px;
      background: transparent no-repeat center center;
      background-size: 100% 100%;
    }

    .slider__control_prev::before {
      background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
    }

    .slider__control_next::before {
      background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
    }

    /* индикаторы слайдера */

    .slider__indicators {
      position: absolute;
      right: 0;
      bottom: 10px;
      left: 0;
      z-index: 15;
      display: flex;
      justify-content: center;
      padding-left: 0;
      margin-right: 15%;
      margin-left: 15%;
      list-style: none;
    }

    .slider__indicator {
      position: relative;
      flex: 0 1 auto;
      width: 30px;
      height: 3px;
      margin-right: 3px;
      margin-left: 3px;
      text-indent: -999px;
      cursor: pointer;
      background-color: rgba(255, 255, 255, 0.5);
      border-radius: 6px;
    }

    .slider__indicator::before {
      position: absolute;
      top: -10px;
      left: 0;
      display: inline-block;
      width: 100%;
      height: 10px;
      content: "";
    }

    .slider__indicator::after {
      position: absolute;
      bottom: -10px;
      left: 0;
      display: inline-block;
      width: 100%;
      height: 10px;
      content: "";
    }

    .slider__indicator_active {
      background-color: #fff;
    }

    img {
      display: inline-block;
      height: auto;
      max-width: 100%;
    }



body  {
  font: 14px Verdana, Tahoma, Arial, Helvetica, sans-serif;
  background: #34393d;
  text-align: center; 
  color: #cccccc;
  background-attachment:fixed;
  background-image: url("fnaf.jpg");
  background-repeat: no-repeat;
  -moz-background-size: 100%; /* Firefox 3.6+ */
        -webkit-background-size: 100%; /* Safari 3.1+ и Chrome 4.0+ */
        -o-background-size: 100%; /* Opera 9.6+ */
        background-size: 100%;
}

h1,h2,h3,h4,h5,h6
{
font-weight: normal;
/*letter-spacing: 0px;*/
}

h1, h2, h3 
{
  font-weight: bold;
  color: #FFB300;
}

h1 {
  font-family: book antiqua, Verdana, Tahoma, Arial, Helvetica, sans-serif;
  letter-spacing: 0px;
  font-size: 20px;
  /*position:absolute;*/
  text-align: center;
  
  
}

h2 {
  letter-spacing: 0px;
  font-size: 16px;
}

h3 {
  font-size: 14px;
}

a
{
text-decoration: underline;
color: #ec9127;
}

a:hover
{
text-decoration: none;
}



/*
.mpog div{
  float: left; 
  margin: 10px 5px 5px 0px;
}
*/

.mpog img{
  width: 160px;
  margin-top: 3px;
  border: 1px solid #aeaeae;

        height: 149px;
        width: 160px;
        background-color: grey ;
        box-shadow: 0 0 0 1px #000 ;
        border-radius: 10%;
        transition: .5s;
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
-ms-transition: all 1s ease;
transition: all 1s ease;
}

.mpog img:hover { 
transform: rotate(0deg) scale(1.03); 
opacity: .5;
-webkit-filter: contrast(145%);
}


/*Layout*/
.gamesTemplate #container { 
  width: 764px; 
    max-width: 100%;
  background: #2b3034;
  margin: 0 auto; 
  text-align: left; 
} 

/*Header*/

.gamesTemplate #header { 
  background: #2b3034; 
  height:209px;
  padding: 0px 0px 0px 0px;
  position:relative;
} 

.gamesTemplate #header h1 {
  padding: 25px 15px 0px 0px; 
  margin-left: 40%;   
}


/*Top Menu*/

#menu {
  width: 764px;
    max-width: 100%;
  height: 37px;
  background: #fc7903 url(images/nav_bg.jpg) top repeat-x;
  margin: 0 auto;
  padding:0;

}

#menu ul {
  margin: 0;
  padding: 0px 0px 0px 1px;
  list-style: none;
}

.desc_game ul {
  margin: 15px;
}

#menu li {
  display: inline;
  font-family:Verdana, Arial, Helvetica, sans-serif;
  font-size:14px;
  font-weight:bold;
}

#menu li a {
  display: block;
  float: left;
  text-decoration: none;
  font-family:Verdana, Arial, Helvetica, sans-serif;
  font-size:14px;
  font-weight:bold;
  color: #FFFFFF;
  padding:12px 20px 0px 20px; 
  height:37px;
}
#menu li a:hover {
  /*background: url(images/hover_bg.jpg) repeat-x;*/
  color: #000000;

}

/*Banner*/
.banner {
  background: #2b3034 url(images/banner.jpg) center no-repeat;
  width:762px;
  height:288px;
  padding:0;
}
.banner h1{
  padding:40px;
}

/*Sub Navigation*/
.subnav {
  background: #2b3034 url(images/title_bg.jpg) repeat-x;
  margin-top:3px;
  padding:5px 0px 5px 10px;
  color: #333333;
  font-weight:bolder;
}

/*Gallery*/
.gallery {
  padding:10px 20px 10px 20px;
  margin:5px;
}

/*Gallery Pics*/
.galleryPic {
  padding: 10px;
}


/*sidebar*/
.gamesTemplate #sidebar1 {
  float: left; 
  width: 440px; 
  background: #434c53; 
  color:#cccccc;
  margin-left:7px;
}

.sidebar1_content{
  margin:10px;
}

.sidebar1_content h3{
  text-align: center;
  font-size: 16px;
}

.sidebar1_content p{
  padding:10px 0px 15px 0px;
  /*border-bottom: 1px dashed #CCCCCC;*/
}

.gamesTemplate #mainContent {
  margin:0 7px 0 455px;
  /*background: #222222 url(images/rttop.jpg) top no-repeat;*/
  padding:10px 7px 15px 9px;
  color:#cccccc;
  background-color:#222222;
} 

.mainContent_content{

}

.mainContent_content p{   
  padding-top: 0px;
  padding:10px 0px 10px 0px;
  /*border-bottom: 1px dashed #CCCCCC;*/
}

.gamesTemplate #footer { 
    /* dimas */
    /*line-height: 0px;*/
  padding:20px; 
  background: #34393d;

} 

.gamesTemplate #footer p {
  font-family:Verdana, Arial, Helvetica, sans-serif;
  font-size:14px;
  margin: 0;
  color:#CCCCCC;
  text-align:center;

}

/* Search */
#search
{
  position:absolute;
  width:350px;

}

#search input.text
{
margin-right: 0.5em;
vertical-align: middle;
border-top: solid 1px #000000;
border-right: 0px;
border-bottom: solid 1px #777777;
border-left: 0px;
padding: 0.15em;
width: 10.0em;
}

#search input.submit
{
  background: url(images/search_button.jpg);
  width:72px;
  vertical-align: middle;
}

.title{
  font-size: 14px;
  padding-left:3px;
  color: #FFB300;
  font-weight:bold;
}

.fltrt {
  float: right;
  margin: 5px 0 2px 5px;
  clear: right;
  padding-top:10px;
}

.fltrt_img {
  float: right;
  margin: 3px 15px 5px 0px;
  clear: right;
  border: 1px solid red;

}

.fltlft {
  float: left;
  margin-right: 8px;
  margin-top: 15px;
}

img{
  border:0px;
}

.clearfloat { 
  clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}



#raiting {position:relative; height:16px; cursor:pointer; width: 85px; float:right; margin: 0;  overflow: hidden;} 
#raiting_blank, #raiting_votes, #raiting_hover {height:16px; position:absolute;}
#raiting_blank { background:url(/images/raitings.png); width:83px; } 
#raiting_votes {background:url(/images/raitings.png) 0 -16px} 
#raiting_hover {background:url(/images/raitings.png) 0 -32px; display:none}  
#raiting_info { font-family: Verdana, Arial; font-size: 14px; color: #FFFFFF; float: right; height: 40px;}
#raiting_info img{vertical-align:middle; margin:12px 0px 0px 5px; text-align: right; display:none}
#raiting_info h3 {margin: 0; font-size: 14px; font-weight: normal;}
#raiting_info h3 b{color: #EB961B; font-size: 14px; }
#raiting_info h3 span{color: red; font-weight: normal;}

#raiting_star{
    height: 16px;
    margin: 2px;
    /*float: left;*/
}
.item #raiting_star{
    margin-top: 5px;
}

/* === ФИНАЛЬНЫЕ ПРАВКИ ДЛЯ МОБИЛЬНЫХ И РЕКЛАМЫ === */

/* Синяя кнопка Fullscreen */
.fullscreen-button {
    background-color: #007bff !important;
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
}

/* Контейнер для рекламы сверху (центрирование и отступы) */
.top-ads-wrapper {
    margin: 15px auto;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Сетка игр */
.games-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
}

.game-item {
    width: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-item b {
    display: block;
    min-height: 35px;
}

@media screen and (max-width: 768px) {
    .gamesTemplate #container { width: 100% !important; overflow-x: hidden; }
    
    .gamesTemplate #header { height: auto !important; padding: 10px 0 !important; }
    .gamesTemplate #header img { max-width: 90% !important; height: auto !important; }

    #menu { height: auto !important; }
    #menu ul { display: flex; flex-wrap: wrap; justify-content: center; padding: 5px 0 !important; }
    #menu li { display: inline-block; }
    #menu li a { 
        float: none !important; 
        padding: 8px 12px !important; 
        height: auto !important;
        font-size: 13px;
    }

    .slider__item img { 
        width: 300px !important; 
        height: 240px !important; 
        max-width: 100%;
        margin: 0 auto;
        object-fit: cover;
    }

    #sidebar1, #mainContent { 
        width: 100% !important; 
        float: none !important; 
        margin: 0 !important;
        box-sizing: border-box;
    }
}

/* СПЕЦИАЛЬНО ДЛЯ УЗКИХ ЭКРАНОВ (iPhone 12, S23) - 2 В РЯД */
@media screen and (max-width: 480px) {
    .games-grid {
        gap: 10px; /* Уменьшаем зазор, чтобы влезло */
        padding: 5px;
    }
    .game-item {
        width: 46% !important; /* Принудительно 2 в ряд */
        max-width: 165px;
    }
    .game-item img {
        width: 100% !important; /* Растягиваем картинку по ширине блока */
        height: auto !important;
    }
    .fltrt_img {
        margin: 0 !important;
        width: 100% !important;
    }
}