
.toggle,
[id^=drop] {
	display: none;
}

#dropdownMenuButton{
	display: block;
}

/* Giving a background-color to the nav container. */
nav {
	margin:0;
	padding: 0;
	background-color: #254441;
}

#logo {
	display: block;
	padding: 0 30px;
	float: left;
	font-size:20px;
	line-height: 60px;
}

/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

nav:after {
	content:"";
	display:table;
	clear:both;
	z-index: 999;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
 nav ul {
	float: right;
	padding:0;
	margin:0;
	list-style: none;

	margin-top:8px;
	display: flex;
	flex-direction: row;
	z-index: 999;
	}

/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	position: relative;
	float: left;
	background-color: #203d36;

		}

nav li a {
	position: relative;
	display:block;
	padding:8px 20px;
	color:#FFF;
	font-size:15px;
	text-decoration:none;

	font-weight: 500;
	z-index: 999;



    letter-spacing: 0px;
    text-transform: uppercase;
}
.top-navbar nav ul li::after {
    position: absolute;
    content: '';
    left: 50%;
    bottom: auto;
    top: 5px;
    width: 5px;
	height: 5px;
    opacity: 0;
    margin-left: -3px;
    background-color: #ffffff;
	border-radius: 50px;
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
    transition: all 900ms ease;
    -webkit-transition: all 900ms ease;
    -ms-transition: all 900ms ease;
    -o-transition: all 900ms ease;
    -moz-transition: all 900ms ease;
		z-index: 999;
}

.top-navbar nav ul li a::before {
    position: absolute;
    content: '';
    left: 0%;
    bottom: auto;
    top: 5px;
    width: 5px;
	height: 5px;
	border-radius: 50px;
    opacity: 0;
    margin-left: -10px;
    background-color: #ffffff;
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
    transition: all 900ms ease;
    -webkit-transition: all 900ms ease;
    -ms-transition: all 900ms ease;
    -o-transition: all 900ms ease;
    -moz-transition: all 900ms ease;
		z-index: 999;
}

.top-navbar nav ul li a::after {
    position: absolute;
    content: '';
    right: 0%;
    left: auto;
    bottom: auto;
    top: 5px;
    width: 5px;
	height: 5px;
	border-radius: 50px;
	border: none !important;
    opacity: 0;
    margin-right: -11px;
    background-color: #ffffff;
    transition: all 900ms ease;
    -webkit-transition: all 900ms ease;
    -ms-transition: all 900ms ease;
    -o-transition: all 900ms ease;
    -moz-transition: all 900ms ease;
		z-index: 999;
}







.top-navbar nav ul li:hover::after{
	opacity: 1;

}

.top-navbar nav ul li a:hover::before{
	opacity: 1;
	left: 40%;
}
.top-navbar  nav ul li a:hover::after{
	opacity: 1;
	right: 40%;
}


nav ul li ul li:hover { background: #000000; }

/* Background color change on Hover */
nav a:hover {
	color: #6bc77a;
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
	display: none;
	position: absolute;
	z-index: 999;

	/* has to be the same number as the "line-height" of "nav a" */
	top: 42px;
}


/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}

/* Fisrt Tier Dropdown */
nav ul ul li {
	width:170px;
	float:none;
	display:list-item;
	position: relative;
	z-index: 999;
}

/* Second, Third and more Tiers
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
nav ul ul ul li {
	position: relative;
	top:-60px;
	/* has to be the same number as the "width" of "nav ul ul li" */
	left:170px;
	z-index: 999;
}


/* Change ' +' in order to change the Dropdown symbol */
li > a:after { content:  ''; }
li > a:only-child:after { content: ''; }

nav ul ul  a {
	color: black;
		background-color: white;
	}

nav ul ul  a:hover {
	color: white;
		background-color: #6bc77a;
	}

nav ul ul ul a {
	color: black;
		background-color: white;
	}

/* Media Queries
--------------------------------------------- */

@media all and (max-width : 768px) {

	#logo {
		display: block;
		padding: 0;
		width: 100%;
		text-align: center;
		float: none;
	}

	nav {
		margin: 0;
		z-index: 999;
	}

	/* Hide the navigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.menu {
		display: none;
	}

	/* Stylinf the toggle lable */
	.toggle {
		display: block;
		/* background-color: #254441; */
		padding:14px 20px;
		color:#FFF;
		font-size:17px;
		text-decoration:none;
		border:none;
		position: relative;
	}

	.toggle:hover {

	}

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* Change menu item's width to 100% */
	nav ul li {
		display: block;
		width: 100%;
		z-index: 999;
		}

	nav ul ul .toggle,
	nav ul ul a {
		padding: 0 40px;
	}

	nav ul ul ul a {
		padding: 0 80px;
	}

	nav a:hover,
 	nav ul ul ul a {
		background-color: #000000;
	}

	nav ul li ul li .toggle,
	nav ul ul a,
  nav ul ul ul a{
		padding:14px 20px;
		color:#FFF;
		font-size:17px;
	}


	nav ul li ul li .toggle,
	nav ul ul a {
		background-color: #212121;
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position:static;
		color: #ffffff;
		z-index: 999;
		/* has to be the same number as the "line-height" of "nav a" */
	}

	/* Hide menus on hover */
	nav ul ul li:hover > ul,
	nav ul li:hover > ul {
		display: none;
	}

	/* Fisrt Tier Dropdown */
	nav ul ul li {
		display: block;
		width: 100%;
	}

	nav ul ul ul li {
		position: static;
		/* has to be the same number as the "width" of "nav ul ul li" */

	}

}

@media all and (max-width : 330px) {

	nav ul li {
		display:block;
		width: 94%;
		z-index: 999;
	}

}

.carousel {
  min-height: 100%;
	height: 100%;
}

.carousel-item  {
  min-height: 100%;
	height: 100%;
}


.learnanimate2{

  position:relative;

  margin:0 auto;/* устанваливаем блок div по центру страницы*/

  width:500px; /* Ширина */

  height: 267px;  /* Высота */

}

.learnanimate2 img {

  position:absolute; /* абсолютное позиционирование*/

  left: 0; /* выравниваем картинки по левому верхнему углу div-а*/

  top: 0; /* выравниваем картинки по левому верхнему углу div-а */

}

.learnanimate2 img.first { /* первая картинка полностью прозрачная */

  opacity:0;

  filter:alpha (opacity=0);

}

.learnanimate2:hover img.first { /* при наведении курсора первая картинка становится не прозрачной */

  opacity:1;

  filter:alpha (opacity=100);

}

.learnanimate2:hover img.second, .animate2 img.second:hover { /* а вторая при наведении курсора становится прозрачной */

  opacity:0;

  filter:alpha (opacity=0);

}
