* {
	box-sizing: border-box;
}
@font-face {
	font-family: SourceSerifPro;
	src: url('fonts/Source_Serif_Pro/SourceSerifPro-Regular.woff');
	font-style: normal;
	font-weight: normal;
}
@font-face {
	font-family: SourceSerifPro;
	src: url('fonts/Source_Serif_Pro/SourceSerifPro-Italic.woff');
	font-style: italic;
	font-weight: normal;
}
@font-face {
	font-family: SourceSerifPro;
	src: url('fonts/Source_Serif_Pro/SourceSerifPro-Light.woff');
	font-style: normal;
	font-weight: 300;
}
@font-face {
	font-family: SourceSerifPro;
	src: url('fonts/Source_Serif_Pro/SourceSerifPro-LightItalic.woff');
	font-style: italic;
	font-weight: 300;
}
@font-face {
	font-family: SourceSerifPro;
	src: url('fonts/Source_Serif_Pro/SourceSerifPro-Bold.woff');
	font-style: normal;
	font-weight: bold;
}
@font-face {
	font-family: SourceSerifPro;
	src: url('fonts/Source_Serif_Pro/SourceSerifPro-BoldItalic.woff');
	font-style: italic;
	font-weight: bold;
}
	html {
		font-size: 62.5%;
	}
	/* стилі для стартової */
	.index {
		width: 100%;
		height: 100vh;
		background: url(../img/shahadat-rahman-BfrQnKBulYQ-unsplash.jpg) no-repeat 0;
		background-size: cover;
		background-attachment: fixed;
		color: #f5f9fb;
	}
	.index .ph {
		background: rgba(223, 165, 82, 0.4);
		background-size: cover;
		background-attachment: inherit;
		text-align: center;
		height: 100%;
	}
	.index header {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		width: 100%;
		height: 25vh;
		font-size: 1.5rem;
		text-align: center;
		background: linear-gradient(to bottom, rgba(240, 240, 244, 0.96) 25%, rgba(255, 255, 255, 0) 75%);
	}
	.index div.logo {
		flex-basis:   100px;
		background:  url("../img/logo1.png") no-repeat 50% 50%;
		background-size: contain;
		margin: .5rem;
		width: 180px;
	}
	.index header div:not(.logo) {
		align-self: center;
		width: 65%;
	}

.index h1{
	font-size: 5rem;
	
	margin: 5rem 0 2rem;
}
.index h2 {
	font-size: 3rem;
	line-height: 2em;
	padding-right: 5vw;
	color: rgba(255,255,255,0.7);
	text-align: right;
}
.index p {
    font-size: 2rem;
    font-style: italic;
   	color: rgba(255,255,255,1);
	padding: 0 3rem;
}
.index footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
}
.index .trans {
	justify-content: center;
}
.index .trans a {
	margin: 0 2rem;
	color: rgb(235, 130, 52);
	border: none;
	font-size: 1.8rem;
	padding: 0 1rem;
	width: 12rem;
	background-color: #FCD088;
}
.index .trans a:first-child {
	margin-left: 0;
}
.index .trans:last-child a {
	width: auto;
	padding: 0 1rem;
	margin-top: -2rem;
}
/* 
/* кінець стилів для стартової */
html {
	background-color: #FCD08878;
}
body {
	font-size: 1.8rem;
	display: flex;
	flex-direction: column;
	font-family: SourceSerifPro;
	text-align: justify;
	
}
header {
	width: 100%;
	height: 150px;
	background: url('../img/page_header.png');
	-webkit-background-size: 100%;
	background-size: 100%;
	background-position: 0 100%;
	display: flex;
	justify-content: space-around;
	align-items: center;
}
.hs {
	flex-basis: 20%;
	height: 80%;
	background: url('../img/logo.png') no-repeat;
	align-self: center;
	background-size: contain;
}
h1 {
	flex-basis: 60%;
	text-align: center;
	color: white;
	font-size: 3rem;
	position: relative;
}
h1 span {
	font-size: .7em;
	position: absolute;
	right: 0;
}

.container {
	display: flex;
	justify-content: space-between;
	margin: 2rem;
}
nav {
	flex-basis: 33%;
	
}
article {
	width:  65%;
	background-color: rgb(255,255,255, .8);
	}
article div:first-child {
	display: flex;
	justify-content: flex-end;
	align-items: baseline;
}
h3 {
	font-size: 2.4rem;
	font-weight: bold;
	line-height: 1.2;
	text-align: center;
	margin: 2rem 0 1rem;
	width: 80%;
}
select {
	height: 2.4rem;
	font-size: .8em;
	color: rgb(255, 255, 225);
	margin-right: 1rem;
	background: rgb(104, 140, 189);\
	font-weight: bold;
	font-family: inherit;
}
p {
	text-indent: 2.4em;
	line-height: 1.5;
	padding: 5px 20px 0 10px;
}
figure {
	width: 70%;
	margin: 20px auto;
}
figure img {
	box-shadow: 5px 5px 5px rgb(115, 51, 133);
	width: 100%;
}
figcaption {
	font-size: 1.7rem;
	font-weight: 300;
	width: 100%;
}
ol, ul {
	margin-left: 15px;
	padding: 0 15px;
	line-height: 1.5;
}
ol p {
	margin: 0 -20px 0 -10px;
}
article a {
	text-decoration: none;
	color: rgb(203, 5, 5);
}
article a:visited {
	color: rgb(203, 89, 5);
}
article a:hover {
	border-bottom: 2px dotted rgb(247, 134, 52);
	color:rgb(247, 134, 52);
}

pre{
	background-color: rgba(253, 232, 199, .3);
	padding: 1rem 0;
	border-radius: 2px;
	margin: 1rem 0;
	user-select: none;
	overflow-x: scroll;
	}
code {
	background-color: rgba(253, 232, 199, .3);
	user-select: none;
}
kbd {
	font-style: normal;
	background: rgb(147,80,36) linear-gradient(rgb(106,58,26), rgb(147,80,36) 80%);
	color: whitesmoke;
	padding: .2rem .6rem;
	border-radius: 3px;
	text-shadow: 0 -1px rgba(0,0,0,.5);
	font-size: 1.6rem;
	box-shadow:
   0 3px rgb(131, 60, 13), 0 2px 8px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.3), inset 0 0 3px rgba(255,255,255,.5);
}
p.note {
	border-left: 3px solid #cf0505;
	border-right: 3px solid #cf0505;
	margin: 1rem 1.5rem 1rem 3rem;
	text-indent: 0;
	border-radius: 10px;
	font-style: italic;
}
pre span {
	color: #633a8e;
}
article br {
	margin-bottom: 1rem;
}
.note span {
	display: block;
	text-indent: 2.5em;
	font-style: normal;
}
b {
	font-weight: bold;
}
q {
	font-style: italic;
}
q::before {
	content: "«"
}
q::after {
	content: "»"
}
.hint {outline: none;}
pre.text, img.text {
  display: block;
  width: 100%;
  height: 0;
  /*border: 1px solid black;*/
  padding: 0;
  margin-top: 5px;
  outline: none;
  overflow: hidden;
}
pre.text:focus, .hint:focus ~ pre.text, img.text:focus, .hint:focus ~ img.text {height: auto; overflow-x: scroll;}
.trans {
	width: 70%;
	margin: 2rem auto 0;
	text-align: center;
	display: flex;
	justify-content: space-around;
	height: 50px;
	align-items: flex-start;
}
.trans a{
	width: 10rem;
	height: 30px;
	line-height: 30px;
	border: 1px solid #9d70a7;
	border-radius: 5px;
	background: #FCD088;
	font-size: 1.6rem;
	color: rgb(247, 134, 52);
  box-shadow: inset 0 0 8px orangered;
	text-decoration: none;
}
.trans a:first-child {
	margin-left: 11vw;
}
#up {
    position: fixed;
    left: 25%;
    bottom: 20px;
    font-size: 4rem;
    border-radius: 50%;
    border: 1px solid #a88463;
    box-shadow: 0 0 5px #e74f7e;
    width: 6rem;
    height: 6rem;
    background: #dab660;
    color: #6d3189;
    font-weight: bold;
    box-shadow: inset 0 0 8px orangered;
}
#up:hover, .trans a:hover {
  box-shadow: inset 0 0 15px orangered;
	color: whitesmoke;
}
.trans a:active {
	transform: scale(.5)
}
.note code {
  font-style: normal;
}
.note br {
	margin-bottom: -5px;
}
.content {
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 0;
	}
.content p {
	margin-bottom: 0.8em
}
.content h2 {
	font-size: 2.4rem;
	text-align: center;
	margin-bottom: 1.4rem;
}
.autor .content {
	max-width: 830px;
}
.autor figure {
	float: left;
	width: 35%;
	margin-right: 2rem
}
ol li li:before, .autor li:before {
	content: "► ";
  font-size: .8em;
	color: rgb(131, 60, 13);
}
@media (max-width: 768px) {
	html {
		font-size: 50%
	}
	.container {
		flex-direction: column;
	}
	nav { 
	text-align: center
	}
	article {
		width: 100%;
	}
	#up {
		left: 5%
	}
}