﻿* {
    font-family: 'Play', sans-serif;
}
html,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #5c5b5b;
}
body {
    background: #f6f6f6; // #f6f6f6
}
a{
    text-decoration: none;
    color: inherit;
}
input{
    padding: 10px 12px;
    display: block;
    width: 100%;
    border-radius: 6px;
    border:  1px solid #ececec;
    line-height: 1.5rem;
    color: #444444;
    font-size: 1rem;
}
/*
   HEADER
*/
header{
    background: #0000ff; /* #008484*/
    height: 70px;
}
header *{
    color: #ffffff;
}
header h1{
    margin-top: 13px;
}
header h1 a {
    color: #ffffff;
}
header h1 a:hover {
    color: #ffffff;
}
header ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    float: right;
}
header ul li{
    float: left;
    position: relative;
}
header ul li a{
    display: block;
    font-size: 1.2rem;
    text-decoration: none;
    color: #ffffff;
    padding: 22px;
}
header ul li a:hover {
    background: orange;      // #006669
    transition: 0.5s;
    color: #fff;
}
header ul li ul {
    position: absolute;
    top: 70px;
    right: 0px;
    width: 180px;
    display: none;
    z-index: 88888;
}
header ul li:hover ul{
    display: block;
}
header ul li ul li {
    width: 100%;
}
header ul li ul li a {
    padding: 10px;
    background: #0000ff;
    color: white;
}
/*
    SLIDER
*/
.slider-title {
    text-align: center;
    padding: 30px 0;
}
.carousel {
    height: 400px;
}
.carousel-inner, .carousel-item{
    height: 400px;
    border-radius: 6px;
}
.carousel-caption h5{
    font-size: 2rem;
    font-weight: 500;
    background: #000000;
    max-width: 100%;
    padding: 0.3em;
    opacity: 0.6;
}
.carousel-caption-hack {
    position: absolute;
    right: 0%;
    bottom: 0.05rem;
    left: 0%;
    padding-top: 1.25rem;
    padding-bottom: 0rem;
    color: #fff;
    text-align: center;
    width: 100%;
}
.carousel-caption h5 a{
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}
.carousel-caption h5 a:hover{
    text-decoration: underline;
}
/*
    MAIN
*/
.main-content h2{
    margin: 30px 0;
}
.main-content .post{
    margin-bottom: 30px;
}
.main-content .post_text{
    background: #ffffff;
    padding: 8px;
    border-radius: 6px;
}
.main-content .post_text h3{
    margin: 14px 0;
}
.main-content .post_text h3 a:hover{
    text-decoration: underline;
    color: #5c5b5b;
}
.main-content .post_text i{
    margin: 0 14px 14px 0;
}
/*
    SIDEBAR
*/
.search{
    margin-top: 98px;
}
.sidebar .section{
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}
.sidebar .topics ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
    border-top: 1px solid #e0e0e0;
}
.sidebar .topics ul li a {
    display: block;
    padding: 15px 0px 15px 0px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 500;
    color: #5c5b5b;
    font-size: 1.2em;
}
.sidebar .topics ul li a:hover {
    padding-left: 10px;
    transition: all 0.3s ;
}
/*
    FOOTER
*/
.text-muted {
    color: var(--bs-gray-300) !important;
}

.footer {
    background: #303036;
    color: #d3d3d3;
    position: relative;
}
.footer .footer-section {
    padding: 22px;
}
.footer h4, .footer h3 {
    color: white;
}
.footer .about .contact span {
    display: block;
    font-size: 1.1em;
    margin-bottom: 8px;
}
.footer .about .socials a{
    border: 1px solid gray;
    width: 45px;
    height: 41px;
    padding-top: 5px;
    margin-right: 5px;
    text-align: center;
    display: inline-block;
    font-size: 1.3em;
    border-radius: 5px;
    transition: all .3s;
    color: #ffffff;
}
.footer .about .socials a:hover {
    border: 1px solid white;
    color: white;
    transition: all .3s;
}
.footer .links ul a {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
    transition: all .3s;
    color: #ffffff;
    text-decoration: none;
}
.footer .links ul a:hover {
    color: white;
    margin-left: 15px;
    transition: all .3s;
}
.footer .contact-form .contact-input {
    background: #272727;
    color: #bebdbd;
    margin-bottom: 10px;
    line-height: 1.5rem;
    padding: .9rem 1.4rem;
    border: none;
    width: 100%;
}
.footer .contact-form .contact-input:focus {
    background: #1a1a1a;
}
.footer .contact-form .contact-btn {
    float: right;
    font-size: 1.1em;
}
.footer .footer-bottom {
    background: #343a40;
    color: #686868;
    height: 50px;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 0px;
    left: 0px;
    padding-top: 20px;
    font-size: 21px;
}
/*
    SINGLE_POST
*/
.single_post {
    margin-bottom: 30px;
}
.single_post .info {
    margin: 20px 0;
}
.single_post .info i {
    display: inline-block;
    margin-right: 20px;
}
.single_post a {
    text-decoration: underline;
}
.single_post a:hover {
    text-decoration: none;
    color: #008489;
}
/*
  FORMS
*/
.reg_form h2 {
    text-align: center;
    margin: 30px 0;
}
.reg_form input {
    height: 3.3rem;
}
.reg_form a {
    font-size: 1.2em;
    transition: all .3s;
    color: #5c5b5b;
    text-decoration: underline;
    margin-left: 60px;
}
.reg_form a:hover {
    margin-left: 55px;
    transition: all .3s;
}
/*
FORMS
*/
form div.err p{
    color: #ff0000;
    font-style: normal;
    font-size: 0.8rem;
}
/*
COMMENTS
*/
.all-comments{
    padding-top: 3rem;
}
.all-comments h3{
    margin-bottom: 2rem;
}
.all-comments .one-comment{
    padding: 1rem;
    border: 4px solid #ffA500;
    border-radius: 4px;
    background: #0000ff;
    color: #ffffff;
    font-size: 21px;
    margin-bottom: 1rem;
}
.all-comments .one-comment i{
    margin: 0.3rem 1rem 0 0;
    font-weight: 600;
}
.all-comments .one-comment span{
    display: inline-flex;
    margin: 0.5rem 1.5rem 1.5rem 0;
    font-weight: 500;
}

.single_post_text{
    font-size: 21px;
    text-align: justify;
}

@media (min-width: 1680px) {
    header nav {
        display: block; /* Все элементы видимы */
    }
}

@media (min-width: 1025px) and (max-width: 1281px) {
    .slider-title {
        display: block;
    }
    
    #carouselExampleCaptions {
        display: block;
    }

    .carousel-caption-hack {
        bottom: 3.0rem;
    }
    
    h1 {
        font-size: 21px;
    }

    .carousel-caption h5 {
       font-size: 2rem;
    }

    .carousel {
        height: 345px;
    }

    .sidebar .topics ul li a {
        font-size: 0.8em;
    }
}

@media (min-width: 821px) and (max-width: 1025px) {
    .slider-title {
        display: block;
    }
    
    #carouselExampleCaptions {
        display: block;
    }

    .carousel-caption-hack {
        bottom: 7.05rem;
    }
    
    h1 {
        font-size: 21px;
    }
    
    header h1 {
        margin-top: 27px;
    }

    .carousel-caption h5 {
       font-size: 1rem;
    }

    .carousel {
        height: 285px;
    }

    .sidebar .topics ul li a {
        font-size: 0.8em;
    }
}


@media (min-width: 768px) and (max-width: 821px) {
    .slider-title {
        display: block;
    }
    
    #carouselExampleCaptions {
        display: block;
    }

    .carousel-caption-hack {
        bottom: 11.05rem;
    }
    
    h1 {
        font-size: 21px;
    }

    .carousel-caption h5 {
       font-size: 1rem;
    }

    .carousel {
        height: 215px;
    }

    .sidebar .topics ul li a {
        font-size: 0.8em;
    }
}

@media (max-width: 768px) {
    .slider-title {
        display: none;
    }
    
    #carouselExampleCaptions {
        display: none;
    }
    
    h1 {
        font-size: 21px;
    }
}

@media (max-width: 540px) {
    .slider-title {
        display: none;
    }
    
    #carouselExampleCaptions {
        display: none;
    }
    
    h1 {
        font-size: 18px;
    }
}

@media (max-width: 320px) {
    .slider-title {
        display: none;
    }
    
    #carouselExampleCaptions {
        display: none;
    }
    
    h1 {
        font-size: 18px;
    }
}
