:root {
	background: linear-gradient(180deg, rgba(35,56,95,1) 0%, rgba(72,105,152,1) 55%, rgba(196,180,155,1) 100%);
  	background-image: url('img/back.png');
  	background-size: cover;
	background-attachment: fixed;
  	color: #FFFFFF;
  	font-family: tahoma, sans-serif, "Segoe UI Symbol";
}

a {
    color: #FFFFFF;
    text-decoration: none;
}

* {
  	scrollbar-color: #FFFFFF transparent;
  	scrollbar-width: thin;
}

a:hover {
    color: #0d0d0d;
    background-color: #FFFFFF;
    cursor: pointer;
}

img:hover {
	background: none;
	transform: scale(1.15);
}

a.img:hover {
	background: none;
	cursor: pointer;
}

img.no-hover {
	outline: transparent;
	transform: none;
}

.list {
	list-style-type: none;
	padding: 0;
	margin-top: 10px;
	margin-bottom: 0px;
}

.list li {
	display: flex;
	margin: 5px 0;
}

.list a {
	color: inherit;
	text-decoration: inherit;
	position: relative;
	display: inline-block;
}

/* apparently i've got helluva lot of lists... */

.list a:hover {color: #0d0d0d; background-color: #FFFFFF;}

.list1 li::before {content: "▸ "; color: #cb0606;}
.list1 li:hover::before {content: "▶ "; color: #cb0606;}
.list1 li:has(strong)::before {content: "";}
.list1 li:hover:has(strong)::before {content: ""; color: #cb0606;}
.list1 li strong {color: #cb0606;}
.list1 li strong::before {content: "▶ "; color: #cb0606;}

.list2 li::before {content: "▸ "; color: #00644e;}
.list2 li:hover::before {content: "▶ "; color: #00644e;}
.list2 li:has(strong)::before {content: "";}
.list2 li:hover:has(strong)::before {content: ""; color: #00644e;}
.list2 li strong {color: #00644e;}
.list2 li strong::before {content: "▶ "; color: #00644e;}

.list3 li::before {content: "▸ "; color: #2e1415;}
.list3 li:hover::before {content: "▶ "; color: #2e1415;}
.list3 li:has(strong)::before {content: "";}
.list3 li:hover:has(strong)::before {content: ""; color: #2e1415;}
.list3 li strong {color: #2e1415;}
.list3 li strong::before {content: "▶ "; color: #2e1415;}

.list4 li::before {content: "▸ "; color: #553595;}
.list4 li:hover::before {content: "▶ "; color: #553595;}
.list4 li:has(strong)::before {content: "";}
.list4 li:hover:has(strong)::before {content: ""; color: #553595;}
.list4 li strong {color: #553595;}
.list4 li strong::before {content: "▶ "; color: #553595;}

.list5 li::before {content: "▸ "; color: #2573cb;}
.list5 li:hover::before {content: "▶ "; color: #2573cb;}
.list5 li:has(strong)::before {content: "";}
.list5 li:hover:has(strong)::before {content: ""; color: #2573cb;}
.list5 li strong {color: #2573cb;}
.list5 li strong::before {content: "▶ "; color: #2573cb;}

.text_list {
	list-style-type: none;
	padding: 0;
    margin: 0;
}

.text_list li {
    margin-bottom: 10px; /* Отступ между элементами списка */
}

#logo { /* contains the logo image */
	margin-top: -160px;
}

#logo img {
	margin-right: 20px;
	width: 80%;
}

#gallery1 { /* 3 columns */
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 4px;
}

#gallery2 { /* 2 columns */
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 4px;
}

#gallery3 { /* 5 columns */
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 4px;
}

#gallery4 { /* 6 columns */
    display: grid;
    grid-template-columns: repeat(6, auto);
    gap: 4px;
}

#gallery5 { /* 9 columns */
    display: grid;
    grid-template-columns: repeat(9, auto);
    gap: 4px;
    padding-bottom: 8px;
}

#gallery1 a,
#gallery2 a,
#gallery3 a,
#gallery4 a,
#gallery5 a,
#gallery1 img,
#gallery2 img,
#gallery3 img,
#gallery4 img,
#gallery5 img {
    display: block;
    height: auto;
    width: 100%;
}

#poemlist { /* the list for poems */
	display: grid;
	grid-template-columns: auto auto auto;
	gap: 15px;
}

h1 {margin-bottom: 0.688rem;}

#title { /* page title */
	padding-left: 11px;
	padding-bottom: 0px;
}

#navpanel { /* navigation under the title*/
	padding-left: 11px;
	margin-bottom: 9px;
}

#maindiv { /* main container for content */
	padding-top: 11px;
	padding-left: 11px;
	padding-right: 14px;
	margin-right: 3px;
	max-height: 36.25rem;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-gutter: stable both edges;
}

#header { /* header (invisible) */
	height: 100px;
	margin-bottom: 10px;
	display: flex;
	background-color: transparent;
}

#content { /* container in the middle */
	display: flex;
	align-items: stretch;
	height: min-content;
	width: 46.4rem;
	margin-left: 10px;
	margin-right: 10px;
	padding-left: 9px;
	padding-right: 17px;
	padding-top: 0px;
	padding-bottom: 17px;
	background-image: url('img/bg.png');
	background-color: #0d0d0d;
	text-align: left;
	border-top: 0.8rem solid #cb0606;
	border-bottom: 0.5rem solid #ffffff;
}

#content_wrapper { /* correct div arrangement in the .content div */
	display: inline-block;
}

#wrapper { /* wrapping all 3 containers up */
	display: flex;
	justify-content: center;
	align-items: stretch;
}

#sidebar_left {  /* container on the left */
	display: flex;
	width: 180px;
	padding: 15px;
	align-content: center;
	background-image: url('img/bg.png');
	background-color: #0d0d0d;
	text-align: right;
	border-top: 0.8rem solid #cb0606;
	border-bottom: 0.5rem solid #ffffff;
	margin-left: 150px;
	font-family: verdana;
	font-size: 16;
}

#sidebar_wrapper_left { /* wrapping the left container */
	display: flex;
	flex-direction: column;
	padding-left: 35px;
	padding-top: 50px;
	font-size: 20px;
}

#sidebar_right {  /* container on the right */
	display: flex;
	flex-direction: column;
	width: 200px;
	padding: 15px;
	background-image: url('img/bg.png');
	background-color: #0d0d0d;
	font-size: 14;
	border-top: 0.8rem solid #cb0606;
	border-bottom: 0.5rem solid #ffffff;
	margin-right: 150px;
}

#right_list { /* right navigation list, often scrollable */
	overflow-y: auto;
	padding-right: 7px;
	margin-right: -5px;
}

#sidebar_wrapper_right { /* wrapping the right container */
	display: flex;
	flex-direction: column;
	padding-left: 10px;
	padding-right: 10px;
}

#footer { /* footer (invisible) */
	height: 10px;
	margin-top: 0px;
	display: flex;
	background-color: transparent;
}

#psa { /* container for special pages */
	width: 600px;
	padding: 15px;
	padding-top: 0px;
	background-image: url('img/bg.png');
	background-color: #0d0d0d;
	font-size: 14;
	border-top: 0.8rem solid #cb0606;
	border-bottom: 0.5rem solid #ffffff;
	display: flex;
}

#psa_wrapper {  /* wrapping the PSA container */
	align-content: center;
	flex-direction: column;
}

@media screen and (max-width: 600px) { /* not sure how it works yet, might revisit later */
	.content, #content-wrapper {
		flex: 1;
	}
}