/* Стили для body and внешнего контейнера */

body {
  margin: 0;
  color: #334150;
  background-color: #2b333e;
  font-family: "Raleway", sans-serif;
  line-height: 1.5em;
}

#toTop {
display: none;
text-align: center;
    font-size: 2rem;
    font-weight: bold;
    position: fixed;
    width: 3rem;
    height: 3rem;
    bottom: 35px;
    right: 3rem;
    padding: 0;
    overflow: hidden;
    outline: none;
    border: none;
    border-radius: 2px;
    -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    cursor: hand;
    border-radius: 50%;
    background: #d1d6d9;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-transition: all 0.3s cubic-bezier(0.25, 0.25, 0, 1);
    -o-transition: all 0.3s cubic-bezier(0.25, 0.25, 0, 1);
    transition: all 0.3s cubic-bezier(0.25, 0.25, 0, 1);

}

#container {
  width: 960px;
  background: #fff;
  margin: 20px auto;
  padding: 20px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}

.search1{
	    position: absolute;
    margin-left: 15rem;
    margin-top: -10rem;
	z-index:1;
background-color: white;
}

/* Логотип и нижний колонтитул */

#logo {
  display: block;
  width: 13rem;
  padding: 0 78% 20px 0;
  border: none;
  border-bottom: 3px solid #e0e5e9;
  margin-bottom: 40px;
}

#footer {
  border-top: 3px solid #e0e5e9;
  margin-top: 40px;
  padding: 20px 0 0 0;
  font-size: .8em;
}


/* Заголвки */

h1 {
  color: #334150;
  margin-bottom: 30px;
  line-height: 1.2em;
}

h2, h2 a {
  color: #3bc87e;
}

h2, h2 a:hover {
  color: #43e08d;
}

h2 a {
  text-decoration: none;
}

h3.categoryDescription {
  margin-top: -20px;
  margin-bottom: 40px;
}


/* Заголовки статей */

#headlines {
  list-style: none;
  padding-left: 6rem;
  width: 75%;
}

#headlines li {
  margin-bottom: 2em;
  border-style: outset;
}

.pubDate {
  font-size: .8em;
  color: #eb6841;
  text-transform: uppercase;
}

#headlines .pubDate {
  display: none;
  width: 100px;
  font-size: .5em;
  vertical-align: middle;
}

#headlines.archive .pubDate {
  width: 130px;
}

.summary {
  padding-left: 100px;
}

#headlines.archive .summary {
  padding-left: 100px;
}

.category {
  font-style: italic;
  font-weight: normal;
  font-size: 60%;
  color: #999;
  display: block;
  line-height: 2em;
padding-left: 100px
}
 
.category a {
  color: #999;
  text-decoration: underline;
}
 

/* Заголовок для страницы администратора */

#adminHeader {
  width: 940px;
  padding: 0 10px;
  border-bottom: 1px solid #00a0b0;
  margin: -30px 0 40px 0;
  font-size: 0.8em;
}


/* Стили для формы с цветным фоном, скругленными углами и тенью */

form {
  margin: 20px auto;
  padding: 40px 20px;
  overflow: auto;
  background: #fff4cf;
  border: 1px solid #666;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;  
  border-radius: 5px;
  -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
}


/* Задаем для элементов формы согласованные поля, отступы, и высоту строки */

form ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

form ul li {
  margin: .9em 0 0 0;
  padding: 0;
}

form * {
  line-height: 1em;
}


/* Метки полей */

label {
  display: block;
  float: left;
  clear: left;
  text-align: right;
  width: 15%;
  padding: .4em 0 0 0;
  margin: .15em .5em 0 0;
}


/* Поля */

input, select, textarea {
  display: block;
  margin: 0;
  padding: .4em;
  width: 80%;
}

input, textarea, .date {
  border: 2px solid #666;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;    
  border-radius: 5px;
  background: #fff;
}

input {
  font-size: .9em;
}

select {
  padding: 0;
  margin-bottom: 2.5em;
  position: relative;
  top: .7em;
}

textarea {
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: .9em;
  height: 5em;
  line-height: 1.5em;
}

textarea#content {
  font-family: "Courier New", courier, fixed;
}
  

/* Рамка вокруг поля с фокусом ввода */

form *:focus {
  border: 2px solid #7c412b;
  outline: none;
}


/* Правильно заполненное поле имеет зеленый фон */

input:valid, textarea:valid {
  background: #efe;
}


/* Кнопки отправки */

.buttons {
  text-align: center;
  margin: 40px 0 0 0;
}

input[type="submit"] {
  display: inline;
  margin: 0 20px;
  width: 12em;
  padding: 10px;
  border: 2px solid #7c412b;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;  
  border-radius: 5px;
  -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  color: #fff;
  background: #ef7d50;
  font-weight: bold;
  -webkit-appearance: none;
}

input[type="submit"]:hover, input[type="submit"]:active {
  cursor: pointer;
  background: #fff;
  color: #ef7d50;
}

input[type="submit"]:active {
  background: #eee;
  -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset;
  -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset;
  box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset;
}


/* Таблицы */

table {
  width: 100%;
  border-collapse: collapse;
}

tr, th, td {
  padding: 10px;
  margin: 0;
  text-align: left;
}

table, th {
  border: 1px solid grey;
    border-style: outset;
}

th {
  border-left: none;
  border-right: none;
  background: #334150;
  color: #fff;
  cursor: default;
}

tr:nth-child(odd) {
  background: #fff;
}

tr:nth-child(even) {
  background: #fff;
}

tr:hover {
  background: #ddd;
  cursor: pointer;
}

.pubDate{
display:none;
}

/* Окна для вывода статуса и сообщений об ошибках */

.statusMessage, .errorMessage {
  font-size: .8em;
  padding: .5em;
  margin: 2em 0;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px; 
  -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
  -box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
}

.statusMessage {
  background-color: #2b2;
  border: 1px solid #080;
  color: #fff;
}

.errorMessage {
  background-color: #f22;
  border: 1px solid #800;
  color: #fff;
}

a {
  text-decoration: none;
  transition: .3s ease-in-out;
}

.s11 {
  background-image: linear-gradient(#3bc87e 50%, #3bc87e 50%), linear-gradient(silver 50%, silver 50%); 
  background-position: center bottom; 
  background-repeat: no-repeat; 
  background-size: 0 2px, 100% 2px; 
  color: #1E3A52; 
  padding-bottom: 3px; 
  transition: .5s ease-in-out;
}
.s11:hover {
  background-size: 100% 2px, 100% 2px;
  color: #3bc87e;
}

.dropdown {
          float:left; 
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #f9f9f9;
            border-color: #2b333e;
            border-style: solid;
			border-radius: 8px;
            width: 140px;
            margin-top: -0.3em;
			z-index:2;
        }

        #dropbtn {
            padding-left: 25px;
            width: 40px;
        }

        #dropbtn::after {
            content: "";
            height: 16px;
            position: absolute;
            right: 0;
            top: 7px;
            width: 16px;
        }

        /* Links inside the dropdown */
        .dropdown-content a {
            color: black;
            padding: 2px 0 2px 25px;
            text-decoration: none;
            display: block;
        }

        /* Change color of dropdown links on hover */
        .dropdown-content a:hover {
            background-color: #f1f1f1
        }

        /* Show the dropdown menu on hover */
        .dropdown:hover .dropdown-content {
            display: block;
        }
		
		.home{
			float:left;
		}
		.personal_account{
			float:left;
			margin-left:1rem;
		}

.text_article{
width: 75%;
font-style: italic; 
margin-bottom: 30px;
font-size: 1.2rem;
}

.content_text{
width: 75%;
}

#menu1  {
  list-style: none; 
  margin: 0;
  padding-left: 0; 
     margin-top: -3rem;
    background: #334150;
    height: 50px;
    margin-bottom: 5rem;
}
#s2 {
  text-decoration: none; 
  background:#334150;
  color:#fff; 
  padding:0px 15px; 
  line-height:50px; 
  display: block; 
  border-right: 1px solid #8a9ba1;
  -moz-transition: all 0.3s 0.01s ease; 
  -o-transition: all 0.3s 0.01s ease;
  -webkit-transition: all 0.3s 0.01s ease;

}
#s2:hover {
  background:#8a9ba1;
}
#s1 {
  float:left; 
  position:relative;
}

    #s1 > #menu1 {
        position:absolute;
        top: 6.2rem;
        display:none;   
    }
     
    #s1:hover > #menu1 {
        display:block; 
        width:250px;       
    }
   #s1:hover > #menu1 > #s1 {
        float:none; 
    }


.main_table{
display:none;
}

@media only screen and (min-width: 801px) {
#right_menu {
  display: none;
}
}

@media only screen and (max-device-width: 800px){
.MsoNormal{
overflow-wrap: anywhere;
}

body{
line-height: 4em;
}

#toTop {
display: none;
    width: 10rem;
    height: 10rem;
    bottom: 10rem;
    right: 3rem;
}

#search {
opacity:1 !important;
}
.search1 {
    position: absolute;
    font-size: 3rem;
    margin-top: 1rem;
	margin-left: 2rem;
    background-color: white;
}

.view{
margin-top: 12rem;
}

.content_text{
   font-size: 3.2rem;
    width: 100%;
}

.text_article{
font-size: 1.2rem;
width: 100%;
}

.titl{
font-size: 3rem;
}

.backcategory{
font-size: 2rem;
}

#headlines li {

    font-size: 3rem;
}

.dropdown-content a {
    padding: 4rem 0 2rem 2rem;
}
.dropdown-content {
    margin-left: -6rem;
    width: 17rem;
    margin-top: 0.5em;
    z-index: 10;
}
.name{
position: absolute;
    z-index: 1;
    margin-left: 20rem;
    font-size: 2rem;
}
.dropdown{
position: absolute;
    margin-left: 47rem;
    z-index: 5;
    margin-top: 3rem;
    font-size: 4rem;
}

#right_menu{
position:fixed;
background-color: white;
width: 100%;
height: 10rem;
display: block;
    margin-left: -1.25rem;
    margin-top: -2.5rem;
}

tr, th, td {
padding: 25px;
    margin: 0;
    text-align: center;
}

#container {
    width: 100% !important;
}

.modif{
display:none;
}

.main_table{
    font-size: 50px;
    margin-top: 12rem;
}

#headlines {
	width: 95% !important;
    margin-left: -5rem;
margin-top: 13rem;
	}

#menuToggle {
  display: flex;
  flex-direction: column;
  position:absolute;
  top: 25px;
  left: 25px;
  z-index: 6;
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle input
{
  display: flex;
  width: 100px;
  height: 80px;
  position: absolute;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}

#menuToggle span
{
  display: flex;
  width: 109px;
  height: 7px;
  margin-bottom: 28px;
  position: relative;
  background: black;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 5px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-3px, -1px);
  background: #36383F;
}
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

#menu
{
  position: absolute;
width: 50rem;
  height: 126rem;
  box-shadow: 0 0 10px #85888C;
  margin: -50px 0 0 -50px;
  padding: 50px;
  padding-top: 125px;
  background-color: #F5F6FA;
  -webkit-font-smoothing: antialiased;
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li
{
  padding: 20px 0;
    transition-delay: 2s;
    font-size: 3rem;
margin-left: 1rem;
}

#menuToggle input:checked ~ ul
{
  transform: none;
}

#footer{
font-size: 1.8em;
}

}