/*
Theme Name: MyThemeNew
Author: Ведерников Сергей Николаевич
Author URI: https://1promtai.ru/
Description: Мой первый адаптивный шаблон WordPress
Version: 1.2
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

*{
  box-sizing: border-box;
 
}

h1 {
	font-size: 30px;
	text-decoration: none;
	font-weight: 600;
}

h2 {
	font-size: 20px;
	text-decoration: none;
	font-weight: 600;
}

h2 a{
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
	color: brown;
}

a {
	color: brown;
	font-weight: normal;
	text-decoration: none;
}

/*a:visited {
    color: gray;
}*/

a:active {
    color: black; 
}

p {
	color: black;
	line-height: 1.5;
}

li {
	list-style-type: none;
	text-decoration: none;
}

ul {
    display: block;
    list-style-type: none;
	text-decoration: none;
    padding-left: 1px;
}

body {
	margin: 0;
	font: 81.25% Arial,Helvetica,'Helvetica Neue',sans-serif;
	/*font-family: Montserrat,Arial,"Helvetica Neue",Helvetica,sans-serif;*/
	font-size: 16px;
	background: white;
	color: black;
}

/* grid */

.container {
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 2px;
}

aside {
	display: block;
	padding: 4%;
	font-weight: 400;
	background: Gainsboro;
}

section {
	padding: 2% 5% 0 5%;
	line-height: 1.9;
    /*word-break:break-all;*/
	word-break: break-word;
	overflow-wrap: break-word;
	background: white;
}

section  a {
	color: brown;
	text-decoration: none;
	font-weight: 400;
}

header h1 a {
	color: brown;
	text-decoration: none;
	padding-left: 15%;
	font-size: 30px;
}

header a {
	color: brown;
	text-decoration: none;
	padding-left: 0;
	font-size: 20px;
}

header {
	background: white;
}

/* навигация */
.container nav {
	background: white;
	padding: 15px;
}

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

nav a {
	color: brown;
	text-decoration: none;
}

nav a:hover {
	text-decoration: none;
}

nav li {
	list-style-type: none;
	text-decoration: none;
	background: white;
	padding: 1% 5% 0 5%;
	line-height: 1.9;
}

.error {
  color: red;
}



.container footer {
	text-align: center;
	background: black;
}

footer p {
	color: white;
	font-size: 13px;
}

/* media query for grid layout */

@media only screen and (min-width: 799px) {
    
  /* grid */
	
.container {
	grid-template-columns: repeat(3, 1fr);
	line-height: 1.5;
}
	
	.content-thin {
	display: grid;
	line-height: 1.5;
		padding: 1%;
		background: white;
		grid-template-columns: 1fr 1fr 1fr 1fr;
		grid-gap: 2vw;
}
	
	.content-thin a{
	word-break: break-word;
	overflow-wrap: break-word;
}
	
		.content-thin p{
	word-break: break-word;
	overflow-wrap: break-word;
}
	
.article-loop a{
	font-size: 20px;
	font-weight: 600;
	word-break: break-word;
	overflow-wrap: break-word;
}
	
.article-loop{
	display: block;
	background: white;
}
  
  /* specific item styles */
.container header,
.container nav,
.container footer {
	grid-column: span 4;
}

.container section {
		grid-column: span 3;
}

	
  /* Верхнее меню */
	
nav ul li {
		display: inline-block;
		padding: 1px;
}

	nav {
		display: inline-block;
		padding: 20px;
	}

  
  /* Меню toggle */
	.toggle {
		display: none;
		text-align: center;
		list-style-type: none;
		text-decoration: none;
	}
}

/* Тег код pre */

pre {
	color: brown;
	padding: 1%;
	width: auto;
	height: 170px;
	overflow: auto;
	background: linear-gradient(
    Gainsboro, transparent 1px
    ),
    linear-gradient(
    90deg,
    Gainsboro, transparent 1px
    );
	background-size: 10px 10px;
	background-position: center center;
	border: 2px solid grey;
}

pre {
	white-space: pre-wrap;
	max-width: 98%;
}

section img {
	max-width: 99%;
	height: auto;
}

/*   Теги   */

div.tagcloud a {
	color: Maroon;
	line-height: 1.1;
	text-decoration: none;
}


/*  Пагинация   */

.page-numbers {
padding: 1% 2%;
box-shadow: 0 0 10px #ccc;
margin: 0 1% 0 0;
background: #fff;
border-radius: 3px;
}

/*  Комментарии   */

.commentform {
	width: 99%;
	word-wrap: break-word;
}

.commentlist {
	max-width: 99%;
	word-break: break-all;
}

ol.commentlist {
	background: #d9e3ec;
	border-radius: 4px;
	border: 1px solid Gainsboro;
	background: white;
	background-size: 10px 10px;
	background-position: center center;
	padding-left: 4%;
	padding-right: 4%;
	word-wrap: break-word;
}

textarea#comment {
	background: LightSlateGray;
	border-radius: 4px;
	border: 1px solid Gainsboro;
	width: 99%;
}

img.avatar {
	border-radius: 50%;
	max-width: 40px;
	max-height: 40px;
}


/* Цитаты */

blockquote {
	border-left: 3px solid brown;
	color: DarkGray;
	padding-left: 2%;
	width: auto;
	height: auto;
	overflow: auto;
	background: white;
}

/*  Поиск*/

input#searchsubmit {
	background-color: white;
	border: 2px solid brown;
	color: black;
	padding: 2% 0 2% 0;
	border-radius: 2px 2px 2px 2px;
	max-width: 39%;
	width: 30%;
}

input#s {
	background-color: white;
	border: 2px solid brown;
	padding: 2% 0 2% 0;
	border-radius: 1px 1px 5px 1px;
	max-width: 60%;
	width: 60%;
}

/*  форма добавления комментариев*/

#respond {
	background-color: white;
	padding: 2% 2%;
	border: 2px solid Gainsboro;
	border-radius: 1px 30px 1px 1px;
}

#respond input {
	background-color: white;
	padding: 2% 2%;
	border: 2px solid Gainsboro;
	width: 95%;
	border-radius: 1px 10px 10px 1px;
}

#respond textarea {
	background-color: white;
	padding: 2% 2%;
	border: 2px solid Gainsboro;
	width: 95%;
	border-radius: 1px 10px 10px 1px;
}

/* Печать*/

button {
	width: 130px;
	height: 28px;
	border: 1px solid gray;
	border-radius: 3px;
	background: black;
	color: white;
}

/* media query for nav styles */
@media only screen and (max-width: 799px) {
  
	#nav {
		transition: transform .3s ease-in-out;
		top: 0;
		bottom: 0;
		min-height: 100vh;
		position: fixed;
		width: 300px;
		left: -340px;
		list-style-type: none;
		text-decoration: none;
	}

	#nav:target {
		transform: translateX(340px);
	}

	.close {
		text-align: center;
		display: block;
		text-decoration: none;
		font-size: 3em;
		position: relative;
		top: -30px;
	}
}

