header {
	height: 30px;
	color: white;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	font-family: 'Open Sans', sans-serif;
	font-weight: bold;
	font-size: 16px;
	padding-right: 50px;
	position: relative;
  overflow: hidden;
}

.navbar {
	margin-top: -100px;
}

.show-header .navbar {
	transition: 1s;
  margin-top: 0;
}

body {
	background-color: #202428;
	margin: 0;
	padding: 0;
	perspective: 1px;
	transform-style: preserve-3d;
	overflow-x: hidden;
	overflow-y: scroll;
	z-index: -1;
}

.navitem {
	color: white;
	text-decoration: none;
	padding: 10px;
	padding-right: 5px;
	padding-left: 5px;
	letter-spacing: 1px;

}

.navitem:hover {
	color: #32a1ce;
	transition: .3s;
}

.navitem:not(:hover) {
	transition: .3s;
}

.navitem:after {
	content: " <";
	opacity: 0%;
	color: #32a1ce;
	position: absolute;
	font-size: 18px;
	transition: opacity 0.5s, padding-left 0.5s;
}

.navitem:hover:after {
	opacity: 100%;
	transition: opacity 0.5s, padding-left 0.5s;
	padding-left: 5px;
}



.mainitems {
	display: flex;
	justify-content: space-between;
	padding-right: 120px;
}

.mainitem {
	color: white;
	text-decoration: none;
	padding-right: 30px;
	padding-left: 30px;
	letter-spacing: 1px;
}

.mainitem:hover {
	color: orange;
	transition: .3s;
}

.mainitem:after {
	content: "";
	display: block;
	position: relative;
	width: 60%;
	height: 3px;
	background-color: white;
	margin-left: 31px;
	opacity: 0%;
	top: 10%;
	transition: color .3s linear;
}

.mainitem:hover:after {
	display: block;
	opacity: 100%;
	background-color: orange;
	transition: opacity .3s linear
}

.mainitem:not(:hover) {
  transition: .3s;
}

.github {
	display: block;
	background-image: url(images/1.png);
	width: 2%;
	position: absolute;
	transition: opacity 0.3s, color 0.3s; 
}

.github:hover {
	color: orange;
	cursor: pointer;
	opacity: 0.25;
}

.mainitem:not(:hover) {
  transition: .3s;
}

ul {
	position: absolute;
	right: 2%;
	top: 60px;
	opacity: ;
}



.dark.light {
	background-color: #202428;
}

.main {
	color: white;
	display: block;
	padding-left: 70px;
	padding-top: 200px;
	font-size: 26px;
	font-family: 'Montserrat', sans-serif;
	width: 600px;

}

.hand {
	height: 80px;
	width: 140px;
}

.border {
  width: 250px;
  border-top: 3px solid #32a1ce;
}

.pad {
	background-color: #202428;
	margin-left: 70px;
}

.btn1 {
  position: relative;
  display:inline-block;
  text-decoration: none;
  color: #c0c0c0;
  font-size: 20px;
  background-color: inherit;
  font-family: 'Balsamiq Sans', cursive;
  padding: 15px;
  padding-right: 60px;
  padding-left: 60px;
  margin-top: 20px;
}

.grey {
	color: #c0c0c0;
}

*/
.btn1 {
  color: #FFF;
  transition: all 0.3s;
  position: relative;
}
.btn1 span {
  transition: all 0.3s;
}
.btn1::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: all 0.3s;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-top-style: solid;
  border-bottom-style: solid;
  border-top-color: rgba(255,255,255,0.5);
  border-bottom-color: rgba(255,255,255,0.5);
  transform: scale(0.1, 1);
}
.btn1:hover span {
  letter-spacing: 2px;
}
.btn1:hover::before {
  opacity: 1; 
  transform: scale(1, 1); 
}
.btn1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: all 0.3s;
  background-color: rgba(255,255,255,0.1);
}
.btn1:hover::after {
  opacity: 0; 
  transform: scale(0.1, 1);
}

.maingif {
	width: 800px;
	height: 540px;
	position: absolute;
	top: 20%;
	right: 1%;
	z-index: -1;
}

.homepage {
	display: flex;
}

.sec2 {
	background-color: #DDC5A2;
	margin-top: 20px;
	width: 100%;
	height: 1000px;
	position: absolute;

}

.vert {
		writing-mode: vertical-rl;
		font-size: 300px;
		user-select: none;
		position: absolute;
		top: 13%;
		right: 4%;
		text-transform: uppercase;
		font-family: 'Ropa Sans', sans-serif;
		line-height: 0.9;
		font-weight: bolder;
		color: white;
}

.vert1 {
		writing-mode: vertical-rl;
		font-size: 300px;
		user-select: none;
		position: absolute;
		top: 13%;
		right: 4%;
		text-transform: uppercase;
		font-family: 'Ropa Sans', sans-serif;
		line-height: 0.9;
		font-weight: lighter;
		color: #DDC5A2;
}

.my {
	font-family: 'Montserrat', sans-serif;
	font-size: 26px;
	color: white;
	position: absolute;
	font-weight: bold;
	left: 8%;
	top: 13%;
	text-transform: uppercase;
}

.modern {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	color: white;
	position: absolute;
	left: 8%;
	top: 20%;
	width: 400px;
	text-align: justify;
	font-weight: lighter;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin-top: 60px;
    margin-left: 120px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sec3 {
	background-color: #202428;
	margin-top: 1125px;
	width: 100%;
	height: 940px;
	position: absolute;
}

.vert2 {
	writing-mode: vertical-rl ;
	font-size: 40px;
	transform: rotate(180deg);
	font-size: 300px;
	font-family: 'Ropa Sans', sans-serif;
	font-weight: 700;
	color: white;
	position: absolute;
	text-transform: uppercase;
	text-align: right;
	user-select: none;
}

.vert3 {
	writing-mode: vertical-rl ;
	font-size: 40px;
	transform: rotate(180deg);
	font-size: 300px;
	font-family: 'Ropa Sans', sans-serif;
	color: #202428;
	position: absolute;
	text-transform: uppercase;
	text-align: right;
	user-select: none;
	font-weight: 200;
}

#btn2 {
	color: white;
	margin-top: 200px;
}

footer {
	position: absolute;
	margin-top: 2350px;
	width: 100%;
}

.foot {
	width: 100%;
	background-color: black;
	color: white;
	height: 43px;
	padding-top: 20px;
	display: flex;
	justify-content: center;
	font-family: 'Ropa Sans', sans-serif;
	font-size: 25px;
}

html {
	scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0, 0.5); /* Цвет полоски прокрутки */
}

::-webkit-scrollbar-track {
  background-color: transparent; /* Цвет фона полоски прокрутки */
}

::-webkit-scrollbar-track:hover{
width: 12px;
transition: .3s;
}

.ontop {
	position: fixed;
	z-index: 10000;
	left: 1%;
	margin-top: 2270px;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	background-color: rgba(0, 0, 0, .1);
}

.ontop:hover {
	cursor: pointer;
		background-color: rgba(0, 0, 0, .5);
		transition: .3s;

}

.ontop:not(:hover) {
	transition: .3s;
}

.project1 {
	height: 300px;
	position: absolute;
	transform-origin: center top;
}

.project2 {
	height: 300px;
	position: absolute;
	transform-origin: center top;
}


@keyframes spin {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(15deg);
  }
}



.project1:hover {
  animation: spin 0.4s linear forwards;
  cursor: pointer;
}

@keyframes spin-back {
  0% {
    transform: rotateX(15deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

.project1:not(:hover) {
  animation: spin-back 0.4s linear forwards;
}

.project2:hover {
  animation: spin 0.4s linear forwards;
  cursor: pointer;
}

.project2:not(:hover) {
  animation: spin-back 0.4s linear forwards;
}

.proj1 {
	color: white;
	font-family: 'Montserrat', sans-serif;
	z-index: 1000;
	position: absolute;
	top: 15%;
	right: 33%;
	font-size: 26px;
}

.proj2 {
	color: white;
	font-family: 'Montserrat', sans-serif;
	z-index: 1000;
	position: absolute;
	top: 70%;
	right: 33%;
	font-size: 26px;
}

#btn3 {
	position: absolute;
	top: 118%;
	right: 5%;
}

#particles-js {
	color: white;
	z-index: 1000;
	width: 100%;
	position: absolute;
	height: 700px;
}

#ava {
	position: absolute;
	width: 20%;
	top: 30%;
	left: 20%;
}

.about {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	width: 500px;
	position: absolute;
	top: 30%;
	left: 45%;
	text-align: justify;
	line-height: 30px;
}

.sec4 {
	background-color: #DDC5A2;
	margin-top: 900px;
	width: 100%;
	height: 1000px;
	position: absolute;
}

.foot2 {
	margin-top: 1900px;
}

.ontop2 {
	position: fixed;
	z-index: 10000;
	left: 1%;
	margin-top: 1825px;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	background-color: rgba(0, 0, 0, .1);
}

.ontop2:hover {
	cursor: pointer;
		background-color: rgba(0, 0, 0, .5);
		transition: .3s;

}

.ontop2:not(:hover) {
	transition: .3s;
}

#headphones1 {
	width: 320px;
	position: absolute;
	left: 16%;
	margin-top: 155px;
}

#headphones2 {
	width: 160px;
	position: absolute;
	left: 32%;
	margin-top: 50px;
}

.mainemail {
	color: white;
	background-color: rgba(0, 0, 0, .1);
	box-shadow: 0 0 40px rgba(0,0,0,0.5);
	width: 400px;
	height: 450px;
	position: absolute;
	left: 50%;
	padding: 50px;
	margin-top: 30px;
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	letter-spacing: 2px;
	text-align: justify;
	line-height: 30px;
}

#border2 {
	width: 120px;
	margin-top: 60px;
	padding-bottom: 60px;
}

#abouth {
	text-transform: uppercase;
	letter-spacing: 4px;

}

.emailbtn {
	background-color: rgba(0, 0, 0, .1);
	color: white;
	padding: 15px;
	padding-left: 30px;
	padding-right: 30px;
	border: solid white 1px;
	font-family: 'Open Sans', sans-serif;
	text-transform: uppercase;
	font-weight: bold;
	margin-top: 120px;
}

.emailbtn:hover {
	background-color: #32a1ce;
	transition: .3s;
	cursor: pointer;
}

.emailbtn:not(:hover) {
	transition: .3s;
}

#github {
	width: 30px;
	margin-top: 30px;
	opacity: 0.5;
	border-radius: 50%;
}

#github:hover {
	transition: .3s;
	opacity: 1;
	box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
	border-radius: 50%;
}

#github:not(:hover) {
	transition: .3s;
}

#github1 {
	box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
	border-radius: 50%;
}

#github1:hover {
	box-shadow: none;
}

.emailbtn:after {
  content: "<kline1265168@gmail.com>";
  text-transform: lowercase;
  position: absolute;
  top: 86.7%;
  left: 37%;
  letter-spacing: 0px;
  opacity: 0;
  font-weight: lighter;
  transition: opacity 0.5s, letter-spacing 0.5s;
}

.emailbtn:hover:after {
  letter-spacing: 4px;
  opacity: 1;
}

.foot3 {
	margin-top: 700px;
}

.container {
	width: 100%;
	display: flex;
	justify-content: center;
	height: 600px;
	padding-top: 20px;
}

.slider-line {
	width: 1000px;
	height: 562px;
	display: flex;
	position: relative;
	left: 0;
	transition: all ease 1s;
}

.proj12 {
	width: 1000px;
	height: 562px;
}

.slider {
	border: 2px solid black;
	width: 999px;
	height: 562px;
	overflow: hidden;
}

.slider-next {
	position: absolute;
	right: 5%;
	top: 95%;
	background-color: rgba(0, 0, 0, .1);
	color: white;
	padding: 15px;
	padding-left: 30px;
	padding-right: 30px;
	border: solid white 1px;
	font-family: 'Open Sans', sans-serif;
	text-transform: uppercase;
	font-weight: bold;
	margin-top: 10px;
}

.slider-next:hover {
	background-color: #32a1ce;
	transition: .3s;
	cursor: pointer;
}

.slider-prev:hover {
	background-color: #32a1ce;
	transition: .3s;
	cursor: pointer;
}

.slider-next:not(:hover) {
	transition: .3s;
}

.slider-prev:not(:hover) {
	transition: .3s;
}

.slider-prev {
	position: absolute;
	left: 5%;
	top: 95%;
	background-color: rgba(0, 0, 0, .1);
	color: white;
	padding: 15px;
	padding-left: 30px;
	padding-right: 30px;
	border: solid white 1px;
	font-family: 'Open Sans', sans-serif;
	text-transform: uppercase;
	font-weight: bold;
	margin-top: 10px;
}

.slidertext {
	color: white;
	position: absolute;
	left: 47%;
	top: 97%;
	font-size: 22px;
	font-family: 'Open Sans', sans-serif;
	font-weight: bold;
}

.slidertext {
    opacity: 0;
    transition: opacity 1s ease;
  }

  .active {
    opacity: 1;
  }

  .foot4 {
  	margin-top: 50px;
  }