/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 5px auto; /* 15% from the top and centered */
    border: 1px solid #888;
    width: 50%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    /* Position it in the top right corner outside of the modal */
    position: absolute;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
}

/* Close button on hover */
.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}

/* Add Zoom Animation */
.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)}
    to {-webkit-transform: scale(1)}
}

@keyframes animatezoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* Bordered form */
form {
    border: 3px solid #f1f1f1;
}

/* Full-width inputs */
input[type=text], input[type=password] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Set a style for all buttons */
button {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
button:hover {
    opacity: 0.8;
}

/* Extra style for the cancel button (red) */
.cancelbtn {
    width: auto;
    padding: 10px 18px;
    background-color: #f44336;
}

/* Center the avatar image inside this container */
.imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
}

/* Avatar image */
img.avatar {
    width: 40%;
    border-radius: 50%;
}

/* Add padding to containers */
.container {
    padding: 16px;
}

/* The "Forgot password" text */
span.psw {
    float: right;
    padding-top: 16px;
}
/*Колонтитулы и формы регистрации*/
.clear{
    clear: both;
}

.mesage_error{
    color: #cc0000;
}

.success_message{
    color: green;
}

.block_for_messages{
    text-align: center;
}

#header, #footer {
    /*border: 2px solid #000;*/
    background-color: white;
}

#header {
    padding-left: 10px;
}

#footer{
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
}

#header h2, #footer h2{
/*    position: absolute;
    left: 32px;*/

    text-align: center;
    margin: 0;
}

#auth_block{
    width: 50%;
    float: right;
    text-align: center;
}


#link_register{
    float: left;
}

#link_auth, #link_logout{
    float: right;
}

#form_register, #form_auth{
    width: 50%;
    margin: auto;
}


#authorized h2{
    text-align: center;
}


#sidebar, #content {
    position: absolute;
}

#sidebar, #content, centerpanel {
    overflow: auto;
    padding: 10px;
}

#sidebar {
    /*float: left;*/
    width: 30%;
    background: #ECF5E4;
    border-right: 1px solid #231F20;
    top: 130px; /* Расстояние от верхнего края */
    bottom: 0; /* Расстояние снизу  */
}

#content {
    /*float: left;*/
    background: #FFFFF0;
    top: 130px; /* Расстояние от верхнего края */
    left: 31%; /*Расстояние от левого края */
    bottom: 0;
    right: 8px;
}

#centerpanel {
    position: absolute;
    /*width: 70%;*/
    /*height: 150px;*/
    background: #ECF5E4;
    border-right: 1px solid #231F20;
    top: 30%; /* Расстояние от верхнего края */
    left: 25%; /*Расстояние от левого края */
    bottom: 30%;
    right: 25%;
}

input[type="number"]::-webkit-inner-spin-button {
    cursor: pointer;
    opacity: 1;
}

menu {
    /*    position: relative;*/
    position: absolute;
    padding-top: 30px;
    padding-left: 130px;
    font-size: 20px;
    text-align: left;
}

main{
    position: relative;
    padding-top: 10px;
    padding-left: 10px;
    font-size: 28px;
    color: white;
    text-align: center;
}

message{
    position: relative;
    padding: 20px;
    font-size: 18px;
    color: black;
    text-align: left;
}


/* Навигация */
nav {
	margin: 27px auto 0;

	position: relative;
	width: 570px;
	height: 50px;
	background-color: #34495e;
	border-radius: 8px;
	font-size: 0;
}

nav a {
	line-height: 50px;
	height: 100%;
	font-size: 15px;
	display: inline-block;
	position: relative;
	z-index: 1;
	text-decoration: none;
	text-transform: uppercase;
	text-align: center;
	color: white;
	cursor: pointer;
}
nav .animation {
	position: absolute;
	height: 100%;
	top: 0;
	z-index: 0;
	transition: all .5s ease 0s;
	border-radius: 8px;
}
a:nth-child(1) {
	width: 100px;
}
a:nth-child(2) {
	width: 120px;
}
a:nth-child(3) {
	width: 100px;
}
a:nth-child(4) {
	width: 120px;
}
a:nth-child(5) {
	width: 120px;
}
nav .start-home, a:nth-child(1):hover~.animation {
	width: 100px;
	left: 0;
	background-color: #1abc9c;
}
nav .start-about, a:nth-child(2):hover~.animation {
	width: 120px;
	left: 100px;
	background-color: #e74c3c;
}
nav .start-blog, a:nth-child(3):hover~.animation {
	width: 100px;
	left: 230px;
	background-color: #3498db;
}
nav .start-portefolio, a:nth-child(4):hover~.animation {
	width: 120px;
	left: 320px;
	background-color: #9b59b6;
}
nav .start-contact, a:nth-child(5):hover~.animation {
	width: 120px;
	left: 450px;
	background-color: #e67e22;
}

body {
	font-size: 14px;
	font-family: sans-serif;
	background: #2c3e50;
}

h1 {
	text-align: center;
	margin: 40px 0 40px;
	text-align: center;
	font-size: 30px;
	color: #ecf0f1;
	text-shadow: 2px 2px 4px #000000;
	font-family: 'Cherry Swash', cursive;
}

p {
    padding: 10px;
    position: relative;
    bottom: 20px;
    width: 100%;
    text-align: center;
    /*color: #ecf0f1;*/
    color: black;
    font-family: 'Cherry Swash',cursive;
    font-size: 16px;
}

span {
    color: #2BD6B4;
}

/* Навигация */

/* Карусель */
.carousel-wrapper {
    height: 480px;
    position: relative;
    width: 855px;
    margin: 0 auto;
}
.carousel-item {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding:25px 50px;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

/* Annotation */
.annotation {
    display: inline-block;
    position: absolute;
    top: 100%;
    font-size: 18px;
    color: antiquewhite;
    padding: 18px;
    
    /*   width: 32px;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0.6;
    border: 1px solid #aaa;
    z-index: 99999;
    */
    /*    width: 32px;
    height: 32px;
    */
    /*
    background-color: #D6D6D6;
    border: solid black;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 12px;*/
}

/* Button */

.arrow {
    display: inline-block;
    position: absolute;
    top: 50%;
    height: 32px;
    font-size: 16px;
    color: black;
    /*   width: 32px;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0.6;
    border: 1px solid #aaa;
    z-index: 99999;
    */
    /*    width: 32px;
    height: 32px;
    */
    /*
    background-color: #D6D6D6;
    border: solid black;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 12px;*/
}


.arrow-prev {
    left: 0px;
    /*background: url('../images/prev.png') no-repeat;*/
}


.arrow-next {
    text-align: right;
    right: 0px;
    /*background: url('../images/next.png') no-repeat;*/
    /*    background: rgba(0, 0, 0, 0.5);
    content: attr(data_next);
    background-image: url('./images/next.png');
    z-index: 99999;
        */
    /*transform:translateY(-50%) rotate(-45deg);
        */
}

.light{
  color:white;
}

@media (max-width: 600px) {
      .arrow, .light .arrow {
        background-size: 10px;
        background-position: 10px 50%;
      }
}

/*Select every element*/
[id^="item"] {
    display: none;
  }

  .item-1 {
    z-index: 2;
    opacity: 1;
  background:url('../images/DBrowser_1.png');
  background-size:cover;
  }
.item-2{
  background:url('../images/DBrowser_2.png');
   background-size:cover;
}
.item-3{
  background:url('../images/DBrowser_3.png');
  background-size:cover;
}
.item-4{
  background:url('../images/DBrowser_4.png');
   background-size:cover;
}
.item-5{
  background:url('../images/DBrowser_5.png');
   background-size:cover;
}
.item-6{
  background:url('../images/DBrowser_6.png');
   background-size:cover;
}
.item-7{
  background:url('../images/DBrowser_7.png');
   background-size:cover;
}
.item-8 {
    background: url('../images/DBrowser_8.png');
    background-size: cover;
}
.item-9 {
    background: url('../images/DBrowser_9.png');
    background-size: cover;
}
.item-10 {
    background: url('../images/DBrowser_10.png');
    background-size: cover;
}
.item-11 {
    background: url('../images/DBrowser_11.png');
    background-size: cover;
}
.item-12 {
    background: url('../images/DBrowser_12.png');
    background-size: cover;
}
.item-13 {
    background: url('../images/DBrowser_13.png');
    background-size: cover;
}
.item-14 {
    background: url('../images/DBrowser_14.png');
    background-size: cover;
}
.item-15 {
    background: url('../images/DBrowser_15.png');
    background-size: cover;
}
.item-16 {
    background: url('../images/DBrowser_16.png');
    background-size: cover;
}

*:target ~ .item-1 {
    opacity: 0;
  }

#item-1:target ~ .item-1 {
    opacity: 1;
  }

#item-2:target ~ .item-2, #item-3:target ~ .item-3, #item-4:target ~ .item-4, #item-5:target ~ .item-5, #item-6:target ~ .item-6, #item-7:target ~ .item-7, #item-8:target ~ .item-8,
#item-9:target ~ .item-9, #item-10:target ~ .item-10, #item-11:target ~ .item-11, #item-12:target ~ .item-12, #item-13:target ~ .item-13, #item-14:target ~ .item-14,
#item-15:target ~ .item-15, #item-16:target ~ .item-16 {
    z-index: 15;
    opacity: 1;
}

/* Карусель */
