@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

body {
    overflow-x: hidden; /* отключает горизонтальный скролл */
    overflow-y: scroll; /* включает вертикальный скролл */
    background-color: rgb(32, 38, 38) !important;
    font-family: 'Open Sans', sans-serif;
    color: #E1E3E6 !important;
}

.secondaryAction{
    background-color: rgb(32, 38, 38) !important;
}

.primaryAction{
    background-color: rgb(32, 38, 38) !important;
}

.btn-success{
    background-color: rgb(47, 63, 63) !important;
    border-width: 3px !important;
    border-radius: 15px !important;
}

.btn-info{
    background-color: rgb(47, 63, 63) !important;
    border-width: 3px !important;
    border-color: #BFE2FF !important;
    border-radius: 15px !important;
}

.btn-danger{
    background-color: rgb(47, 63, 63) !important; 
    border-width: 3px !important;
    border-radius: 15px !important;
}

.btn-primary{
    background-color: rgb(47, 63, 63) !important; 
    border-width: 3px !important;
    border-radius: 15px !important;
}

.btn-warning{
    background-color: rgb(47, 63, 63) !important; 
    border-width: 3px !important; 
    border-radius: 15px !important;
}

.name_color{
    color: #bfffc6b4 !important;  
}

input {
    color: #BFE2FF !important;
    background-color: rgb(32, 38, 38) !important;
}

textarea {
    color: #BFE2FF !important;
    background-color: rgb(32, 38, 38) !important;
    resize: none;
}

nav{
    background-color: rgb(47, 63, 63) !important;
}
.navbar-toggler-icon{
    background-color: darkslategray !important;  
}

.dropdown-menu{
    background-color: darkslategray !important;    
    left: auto !important;
}

/* Стили для мобильных устройств */
@media only screen and (max-width: 600px) {
    .navbar {
        font-size: 12px;
    }
    .mob_btnpng_tex{       
        margin-left: 5px;
    }
    .btn {
        font-size: 10px;
        padding: 2px 5px;
    }
    .grid-top_mob{
        margin: 5px;
    }
    .ii{
        margin: 1px;
    }
    .topic_delete{
        margin-top: -13px !important;
    }
    .topic_mob{
        margin-top: -15px !important; 
    }
    .button_book_detal{
        position: absolute;
        left: 1px;
        padding: 5px;
        margin-top: -5px !important;
    }
    .png_tex{
        margin-top: -45px;
    }
    .cooment_open{
        margin-top: 8px;
    }
    body {
        overflow-x: hidden; /* отключает горизонтальный скролл */
        overflow-y: scroll; /* включает вертикальный скролл */
    }

}
.navbar {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  
  .navbar .navbar-header {
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .navbar .nav > li > a,
  .navbar .nav > li > p {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 20px;
  }
  
  .navbar .navbar-toggle {
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 4px 6px;
  }

.image_ii{
    width: 100%;
}

.text-chat{
    overflow: auto;
    height: 300px;
    word-break:break-all;
    border:3px solid #13b511;
    border-radius: 20px;
    white-space: pre-line;  
    padding: 5px 20px;
}


.grid * {
    box-sizing: border-box;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgb(47, 63, 63), 0 4px 6px rgb(47, 63, 63);
    transition: box-shadow 0.3s;
}

.grid-item:hover {
    box-shadow: 0 4px 12px rgb(47, 63, 63), 0 16px 20px rgb(47, 63, 63);
}

.grid-item .image {
    max-height: 650px;
    overflow: hidden;
}

.grid-item .image img {
    transition: transform 280ms ease-in-out;
    display: block;
    width: 100%;
}

.grid-item:hover .image img {
    transform: scale(1.1);
}

.grid-item .info {
    position: relative;
    padding: 6px 4px 40px 4px;
}

.grid-item .info h2 {
    color: #ffffff;
    margin-top: 0;
}

.grid-item .info p {
    color: #ffffff;
}

.grid-item .info-text {
    max-height: 100%;
    overflow: hidden;
}

.grid-item .button-wrap {
    text-align: center;
}

.grid-item .button-wrap a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    width: 150px;
    margin-left: auto;
    margin-right: auto;
}


/* Кол-во блоков на разных экранах */
@media only screen and (max-width: 1200px) {
    .grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media only screen and (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media only screen and (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.info h2 {
    font-family: 'Open Sans', sans-serif;
    color: #337AB7;
    font-size: 24px;
    font-weight: normal;
    margin: 0;
}
.info-text p {
    font-size: 15px;
    line-height: 20px;
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 10px;
}
.info-text p:last-child {
    margin-bottom: 0;
}

.btn_podrobnoy{
    margin-left: -100px;
}

.button_book_detal{
    position: absolute;
    right: 0;
    margin-top: -43px;
    padding: 10px;
}

/* Кнопка подробнее */
.atuin-btn {
    display: inline-flex;
    text-decoration: none;
    position: relative;
    font-size: 14px;
    line-height: 20px;
    padding: 8px 5px;
    color: #FFF;
    font-weight: bold;
    text-transform: uppercase; 
    font-family: 'Open Sans', sans-serif;
    background: #337AB7;
    cursor: pointer; 
    width: 100px;
    border: 2px solid #BFE2FF;
}
.atuin-btn-book {
    display: inline-flex;
    text-decoration: none;
    position: relative;
    margin-top: -35px;
    font-size: 14px;
    line-height: 20px;
    padding: 5px;
    padding-left: 10px;
    color: #FFF;
    font-weight: bold;
    text-transform: uppercase; 
    font-family: 'Open Sans', sans-serif;
    background: rgb(47, 63, 63);
    cursor: pointer; 
    width: 100px;
    border: 2px solid red;
    border-radius: 15px !important;
}

.atuin-btn-book:hover{
    background-color: #176b5b;
}

.atuin-btn:hover,
.atuin-btn:active,
.atuin-btn:focus {
    color: #FFF;
}
.atuin-btn:after,
.atuin-btn:before {
    position: absolute;
    height: 4px;
    left: 50%;
    background: chartreuse;
    bottom: -6px;
    content: "";
    transition: all 280ms ease-in-out;
    width: 0;
}
.atuin-btn:before {
    top: -6px;
}
.atuin-btn:hover:after,
.atuin-btn:hover:before,
.atuin-btn:active:after,
.atuin-btn:active:before,
.atuin-btn:focus:after,
.atuin-btn:focus:before {
    width: 100%;
    left: 0;
}

.content-box .wrap-box {padding: 40px 10px; position: relative;}
.content-box .box-header { margin: 0 0 30px;text-align: center;}
.content-box .box-header h2{font-size: 22px;display: block;text-transform: uppercase;font-weight: 500;}

.content-box.box-style-1{background: #f9f9f9;}
.content-box.box-style-2{background: #f7f7f7;}
.content-box.box-style-3{background: url(../images/action-bg.jpg) no-repeat fixed;}

.content-box.box-1 {text-align: center;}


.content-box.box-3 blockquote {position: relative;padding: 20px 100px 0;text-align: center;font-size: 35px; border:none;line-height: 1.2;}
.content-box.box-3 blockquote:before, .content-box.box-3 blockquote:after {position: absolute;width: 50px;height: 50px;font-size: 110px;line-height: 1; }
.content-box.box-3 blockquote:before {top: 0;left: 0;content: "\201C"; }
.content-box.box-3 blockquote:after {top: 0;right: 0;content: "\201D"; }
@media only screen and (max-width: 1100px) {
 .content-box.box-3 blockquote {font-size: 22px; } 
 }
@media only screen and (max-width: 960px) {
 .content-box.box-3 blockquote {padding: 30px 40px;font-size: 22px; }
 .content-box.box-3 blockquote:before, .content-box.box-3 blockquote:after {width: 25px;height: 25px;font-size: 47px; } 
 }
@media only screen and (max-width: 690px) {
 .content-box.box-3 blockquote {padding: 10px 20px;font-size: 20px; }
 .content-box.box-3  blockquote:before, .content-box.box-3 blockquote:after {font-size: 19px; } 
 }
 
.content-box.box-4 .wrap-box{padding: 0;}
.content-box.box-4 article{padding-bottom: 0;background: #f9f9f9;margin:0;}


/* главная страница */
.text-index{
    text-align: center;
}

/* Блокнот */
.bloknot{
    font-size: 18px;
    line-height: 40px;
    margin-bottom: 5px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 10px;
    width: 340px;
    background-color: rgb(47, 63, 63);
    color: #BFE2FF !important;
}



.bloknot-arti{
    border-radius: 15px;
    background-color: #176b5b !important;
}

.text-color{
    color: #000000;
}

/* Для чата */

.bloknot-arti-chat{
    background-color: #337ab7;
    border-radius: 15px;
    height: 50px;
}

.bloknot-arti-chat_timer{
    background-color: rgb(47, 63, 63);
    border-radius: 15px;
    height: 150px;
    padding: 10px;
}

.bloknot-text{
    font-size: 32px;
    color: #FFF;

}

.grid-top{
    display: grid;
    align-content: flex-start; 
    padding-top: 20px;
}

.detall{
    padding: 5px;
    height: auto;
}

.ri{
    font-size: 32px; 
}

.photo{
    border-radius: 100px; 
    box-shadow: 0 0 0 3px rgb(47, 63, 63), 0 0 20px black; 
    width: 200px;
    height: 200px;
    margin-left: -2px;
    margin-top: -30px;
}

.photo_profile{
    border-radius: 100px; 
    box-shadow: 0 0 0 3px rgb(47, 63, 63), 0 0 20px black; 
    width: 200px;
    height: 200px;
    margin-left: -2px;
    margin-top: -8px;
}

.photo_post{
    border-radius: 100px; 
    box-shadow: 0 0 0 3px rgb(47, 63, 63), 0 0 20px black; 
}

/*кнопки*/
.outer {
    width: 200px;
    text-align: center;
    vertical-align: middle;
    margin-left: -17px;
}
.inner {
    display: inline-block;
}


/* .input-file-btn{
	cursor: pointer;
	outline: none;
	text-decoration: none;
	font-size: 14px;
	vertical-align: middle;
	color: #337AB7;
	text-align: center;
	border-radius: 15px;
	background-color: #337AB7;
	height: 40px;
	padding: 10px 20px;
    width: 150px;
} */

.time{
    margin-top: -35px;
    margin-left: 130px;
    white-space: nowrap; 
    /* В одной линии */
}


.time1{
    margin-left: 130px;
    margin-top: -100px;
}

.info_user{
    margin-top: 10px;
    font-size: 22px;
    background-color: rgb(47, 63, 63);
    border-radius: 10px;
    padding-inline: 10px;
}
.info_user1{
    margin-top: 15px;
    font-size: 22px;
    background-color: rgb(47, 63, 63);
    border-radius: 10px;
    padding-inline: 10px;
}
.info_user2{
    margin-top: 20px;
    font-size: 22px;
    background-color: rgb(47, 63, 63);
    border-radius: 10px;
    padding-inline: 10px;
}

.delete-avatar{
    color: white;
	cursor: pointer;
	font-size: 14px;
	text-align: center;
	border-radius: 15px;
	background-color: rgba(255, 0, 0, 0.865);
	padding: 5px 10px;
}

.settings{
    display: inline-block;  
}

.settings-a{
    font-size: 16px;
    background-color: darkslategray;
    color: white;
    padding: 8px
}

.chat{
    margin-top: -50px;
    margin-left: -240px;

}
  

.colo{
    color: white ;
    font-size: 24px;
    margin-top: 5px;
    border-radius: 15px; 
    box-shadow: 0 0 0 5px #004D00, 0 0 5px green; 
    background-color: green;
    margin: 5px;
}   

.colo:hover{
    font-size: 24px;
    color: white ;
    box-shadow: 0 0 0 8px #004D00, 0 0 15px green; 
}

.ii{
    margin-top: 10px;
}

.text-news{
    color: #f7f7f7;
}

.gridi * {
    box-sizing: border-box;
    
}
.gridi {
    display: grid;
    display: flex;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 20px;
    row-gap: 30px;
    padding: 10px 0;
    
}

.gridi-item {
    box-shadow: 10px 20px 25px rgb(47, 63, 63), 0 20px 20px rgba(0, 0, 0, 0.338);
    transition: box-shadow .5s;
    width: auto;
    height: auto;  
    word-wrap: break-word;
    
}

.gridi-item .info {
    position: relative;
    height: calc(100% - 200px);
    padding: 16px 14px 80px 14px;
}
.gridi-item:hover {
    box-shadow: 0 10px 10px rgba(0,0,0,0.2), 0 5px 10px rgba(0,0,0,0.2);
}

  
form.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -25px;
}

.next_page{
    margin-top: -20px !important;
    color: rgb(185, 234, 234) !important;
}

/* Добавляем анимацию на кнопку */
.btn-success {
    transition: all 0.4s ease-in-out;
}

.btn-success:hover {
    transform: scale(1.05);
}

.btn_cooment_top{
    margin-top: 5px ;
}

.btn-warning {
    transition: all 0.4s ease-in-out;
}

.btn-warning:hover {
    transform: scale(1.05);
}


.btn-primary {
    transition: all 0.4s ease-in-out;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-danger {
    transition: all 0.4s ease-in-out;
}

.btn-danger:hover {
    transform: scale(1.05);
}


.point{
    cursor: pointer;
}

.point:hover{
    color: white;
    cursor: pointer;
}

.image_index{
    width: 200px;
}

/*Поиск*/
.search-box {
  position: relative;
  display: flex;
  justify-content: left;
  align-items: left;
}

.post_search {
  width: 170px;
  height: 30px;
  margin-top: -15px !important;
  border: none;
  background-color: rgb(47, 63, 63) !important;
  border-radius: 20px;
  font-size: 16px;
  color: #BFE2FF;
  padding: 0 20px;
  transition: all 0.8s ease-in-out;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post_search:focus {
  outline: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 510px;
}

.room_search {
  width: 170px;
  height: 40px;
  border: none;
  color: 000;
  border-radius: 20px;
  font-size: 16px;
  padding: 0 20px;
  transition: all 0.8s ease-in-out;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.room_search:focus {
  outline: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 310px;
}


.user_search {
    width: 220px;
    height: 30px;
    border: none;
    margin-top: -12px;
    color: #BFE2FF;
    background-color: rgb(47, 63, 63) !important;
    color: 000;
    border-radius: 20px;
    font-size: 16px;
    padding: 0 20px;
    transition: all 0.8s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .user_search:focus {
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 330px;
  }

.like{
    position: relative;
    color: rgb(185, 234, 234);
    font-size: 22px;
    top: 12px;
    margin-left: -5px;
}

.like_book{
    position: relative;
    color: rgb(185, 234, 234);
    font-size: 22px;
    top: 5px;
}

.like_comment_new{
    position: relative;
    color: rgb(185, 234, 234);
    font-size: 22px;
    top: 7px
}

.list-group{
    position: relative;
}


ul.header-blog {
  float: left;
  margin-top: 0;
  margin-left: -35px;
  padding-right: 20px;
}

ul.header-blog li {
  list-style: none;
/*  display: inline;*/
background-color: rgb(64, 68, 68);
}

.type-book{
  cursor: pointer;
  font-size: 12px;
}

.type-book:hover{
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #000;
}

.coment_color{
    color: rgb(230, 188, 80);
    margin-top: 7px !important;
    margin-left: 30px !important;
}

.comment-icon{
    cursor: pointer;
}

/*коммент*/
.post_comment {
  width: 170px;
  height: 40px;
  background-color: rgb(47, 63, 63);
  border-radius: 15px;
  font-size: 12px;
  color: #BFE2FF;
  padding: 3px 7px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post_comment:focus {
  outline: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 70%;
  height: 80px;
  transition: all 0.8s ease-in-out;
}

.book-danger{
    margin-top: 20px;
}

.success-message{
    color: #176b5b;
    font-size: 18px;
}

.single-comment p {
    font-size: 16px;
}

.comments-section .single-comment {
    display: none;
    margin-top: -35px;
    margin-bottom: -5px;
}
.comments-section .single-comment:first-child {
    display: block;
}

.like_boo{
    color: rgb(255, 165, 0);
    cursor: pointer;
}
.like_boo:hover{
    font-size: 16px;
}

.boo_like{
    margin-top: -90px;
}

/* кружок */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(32, 38, 38);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  #loader {
    border: 8px solid rgb(185, 234, 234);
    border-top: 8px solid rgb(75, 107, 107);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  

.mindlinks{
    font-size: 28px;
    cursor: pointer;
    color: #286090;
    text-align: center;
    margin-top: -10px !important;
}

.mindlinks:hover{
    color: rgb(53, 147, 147)  
}

.mindlink-about{
    position: absolute;
    font-size: 28px;
    right: 10px;
    cursor: pointer;
    color: #3498db;
    font-variant: small-caps;
    margin-top: -43px;
    text-align: center;
}

.mindlink-about:hover{
    color: rgb(53, 147, 147)  
}

.png_tex{
    width: 70px;
    height: 60px;
    margin-top: -55px;
}

.room_error{
    font-size: 32px;
    margin-top: -12p
}

.room_error_r{
    margin-top: -22px;
    color: rgb(255, 0, 0);
}

.button_wi{
    width: 190px;
}

.button_wi_but{
    width: 170px;
    margin-top: 8px;
}

/* timer */

.container_user {
    display: flex;
}


.container2 {
    background: #222;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
#timer {
    color: #fff;
    font-size: 4rem;
}
.label {
    font-size: 2.5rem;
    padding-left: 0.25rem;
}

.timer{
    position: absolute;
    right: 65px;
    top: 180px;
}


.timer_time{
    color: #f7f7f7;
}


/*пост картина*/
.grid-item-post {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    text-align: center;
    align-items: center;
}


.grid-item-post .image {
    height: auto;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.grid-item-post .image img {
    transition: transform 280ms ease-in-out;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}

.grid-item-post:hover .image img {
    transform: scale(1.1);
}


.user_post_name{
    margin-top: -18px;
}

.timer_days{
    color: #000;
    border-radius: 10px !important;
    margin: 5px;
    height: 30px;
    padding: 7px;
    width: 190px;
    margin-left: -3px;
}

.zoom{
    position: absolute;
    cursor: pointer;
    right: 5px;
    margin-top: -47px;
}

.zoom {
    transition: all 0.6s ease-in-out;
}

.zoom:hover {
    transform: scale(1.25);
}



.user_l{
    display:inline-block;
    width: 100px;
    height: 100px;
    padding: 20px;
    border-radius: 80px;
    cursor: pointer;
    margin-top: 10px;
}

.user_l {
    transition: all 0.6s ease-in-out;
}

.user_l:hover {
    transform: scale(1.09);
}



.text_user_page{
    text-align: center;
    margin-top: -25px;
    font-size: 12px;
    color: #E1E3E6 !important;
}

.demo_timer{
    font-size: 20px;
    padding-top: 5px;
    color: #128C7E;
}

.demo_start{
    color: rgb(76, 171, 255);
}

.red_btn{
    font-size: 16px;
    color: rgb(180, 249, 249);
    font-weight: 600;
}

.red_btn_index{
    font-size: 18px;
    color: #70d8f7;
}

.red_btn_profile{
    padding-top: 10px;
    font-size: 14px;
    color: rgb(76, 171, 255);
}

.font_base_bar{
   font-size: 12px; 
}

.user_detial_name{
    color: #E1E3E6 !important;
    font-size: 16px;
}

.user_detial_name:hover{
    color: rgb(180, 249, 249);
}

.open_book{
    position: absolute;
    right: 135px;
    top: 13%;
}

.open_settings{
    position: static;
    margin-left: 7px;
    margin-top: -4%;
}


/* Keep the buttons centered */
.warpfilter {
    position: static;
    margin-left: -40px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.post-item {
    animation: fadeIn 0.5s ease-in-out;
}

.book-item {
    animation: fadeIn 0.5s ease-in-out;
    color: #70d8f7;
}

.hide-item {
    animation: fadeOut 0.5s ease-in-out;
    display: none !important;
}

.display_block_lini{
    display: inline-block;
}
.fancybox-caption {
    text-align: center;
}

.btn-sm{
    width: 10px !important;
    height: 10px !important;
}

.color_x{
    font-size: 16px;
    width: 25px;
    margin-top: -13px !important;
    margin-left: -7px !important;
}

.color_index_hello{
    color: rgba(233, 248, 248, 0.802);
}
                
.page-header{
    border-color: rgb(47, 63, 63) !important
}

.btn {
    padding: 4px 7px !important;
}
