/* 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;*/
    left: 0; 
    background-color: white;
}


#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 24px;
    color: #ecf0f1;
    text-shadow: 2px 2px 4px #000000;
    font-family: 'Cherry Swash', cursive;
}

#restrict {
    display: inline-block;
    position: relative;
    top: 100%;
    font-size: 18px;
    color: #f10a0a;
    text-shadow: 2px 2px 4px #000000;
    font-family: 'Cherry Swash', cursive;
    text-align: center;
    padding: 88px;
}


#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 {
    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;
}

menu {
    /*    position: relative;*/
    float: right;
    font-size: 20px;
    text-align: left;
    top: 32px;
}

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: 600px;
	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: 120px;
}
a:nth-child(2) {
	width: 120px;
}
a:nth-child(3) {
	width: 120px;
}
a:nth-child(4) {
	width: 120px;
}
a:nth-child(5) {
	width: 120px;
}
nav .start-home, a:nth-child(1):hover~.animation {
	width: 120px;
	left: 0;
	background-color: #1abc9c;
}
nav .start-about, a:nth-child(2):hover~.animation {
	width: 120px;
	left: 120px;
	background-color: #e74c3c;
}
nav .start-blog, a:nth-child(3):hover~.animation {
	width: 120px;
	left: 240px;
	background-color: #3498db;
}
nav .start-portefolio, a:nth-child(4):hover~.animation {
	width: 120px;
	left: 360px;
	background-color: #9b59b6;
}
nav .start-contact, a:nth-child(5):hover~.animation {
	width: 120px;
	left: 480px;
	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;
    text-align: center;
    /*   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/Stamm.png');
  background-size:cover;
  }
.item-2{
  background:url('../images/Stamm_sr.png');
   background-size:cover;
}
.item-3{
  background:url('../images/Stamm_mr.png');
  background-size:cover;
}
.item-4{
  background:url('../images/Stamm_nn.png');
   background-size:cover;
}
.item-5{
  background:url('../images/Stamm_ca.png');
   background-size:cover;
}
.item-6{
  background:url('../images/Stamm_ft.png');
   background-size:cover;
}
.item-7{
  background:url('../images/Stamm_wt.png');
   background-size:cover;
}
.item-8 {
    background: url('../images/Stamm_it.png');
    background-size: cover;
}
.item-9 {
    background: url('../images/Stamm_io.png');
    background-size: cover;
}
.item-10 {
    background: url('../images/Stamm_us.png');
    background-size: cover;
}
.item-11 {
    background: url('../images/Stamm_df.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 {
    z-index: 10;
    opacity: 1;
}
}
/* Карусель */

.dropuser {
    float: left; 
    cursor: pointer;
    width: 100px;
}

/*Выбор языка*/

.dropbtn {
    /*float: right; если не добавить right: 10px; то выровняется по краю родителя*/
    cursor: pointer;
    width: 50px;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    float: right; /*если не добавить float: right то следующие элементы не пристроятся слева*/
    right: 20px; /*это для выравнивания по правой стороне*/
    position: absolute;
    top: 7px;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: relative;
    background-color: #f9f9f9;
    width: 50px;
}

.dropbtn::after {
    background: rgba(0, 0, 0, 0) url("../images/downarrow.png") no-repeat scroll center center;
    content: "";
    height: 16px;
    position: absolute;
    top: 0px;
    width: 16px;
}

.dropdown-content a:first-child {
    background: url('../images/Russia.png') no-repeat left center;
}

.dropdown-content a:last-child {
    background: url('../images/Eng.png') no-repeat left center;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 2px 0 2px 34px;
    text-decoration: none;
    display: block;
}

    /* Change color of dropdown links on hover */
    .dropdown-content a:hover {
        background-color: #f1f1f1;
    }

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/*Выбор языка*/
