/*-----  псевдоклассы   ---------------------------*/
 
.pseudo p::selection { 
	color: blue; 
	background-color: orange; 
}
 
.pseudo a:visited { color: magenta;}
.pseudo a:hover {color: green;}

/*-----  test1        ---------------------------*/

.test1 {
	display: inline-block;
	font-size: 20px;
	background-color : lightgrey;
	line-height: 50px;
}
.test1:hover { font-size: 45px;}

/*-----  test2    ------------------------------*/

.test2 {
	display: inline-block;
	font-size: 20px;
	background-color : lightgrey;
	line-height: 50px;
	vertical-align:top;	
}
.test2:hover { font-size: 45px;}

.red:hover { background-color : red; }
.orange:hover {	background-color : orange; }
.yellow:hover {	background-color : yellow; }
.purple:hover {	background-color : purple; }

/*-----  test3   ------------------------------*/
.test3 {
	display: inline-block;
	font-size: 20px;
	background-color : lightgrey;
	line-height: 50px;
}

.testbox3 { 
	padding: 10px;
	border: dashed 3px black;
}

.testbox3:hover .test3 {font-size: 45px; }

/*----- test4   ------------------------------*/

.testbox4 {	
	display: inline-block;
	font-size: 20px;
	background-color : lightgrey;
	line-height: 50px;
}

.testbox4 .block1 { display: block; }
.testbox4 .block2 { display: none; }

.testbox4:hover .block1 { display: none; }
.testbox4:hover .block2 { display: block; }


/*-----  test5 test6    ------------------------------*/

.test5, .test6 {
	display: inline-block;
	min-width : 30px;
	min-height : 30px;
	margin: 10px;
	border: solid 1px black;
}

.test5:hover .test5{
	margin-top: 2px;
	margin-bottom: 18px;
	margin-left:2px;
	margin-right: 18px;
}

.test6:hover .test6{
	margin-right: -10px;
	margin-left: 30px;
	background-color : white;
}

/*---------   box10  ------------------------------------*/

.test10, .test20, .test30, .test40 {   /* тот же набор правил, что и для .test5  */
	display: inline-block;
	min-width : 30px;
	min-height : 30px;
	margin: 10px;
	border: solid 1px black;
}

.box10 {	border: dashed 3px black; }
					
.box10:hover .test10 { margin-top: 18px; margin-bottom: 2px; margin-left: 18px; margin-right: 2px;}
.box10:hover .test20 { margin-top: 18px; margin-bottom: 2px; margin-left: 2px; margin-right: 18px;}
.box10:hover .test30 { margin-top: 2px; margin-bottom: 18px; margin-left: 18px; margin-right: 2px;}
.box10:hover .test40 { margin-top: 2px; margin-bottom: 18px; margin-left: 2px; margin-right: 18px;}

			
/*-------- Выпадающее меню  -----------------------*/
/*---------  https://html5css.ru/howto/howto_css_dropdown.php  ---*/

.dropdown {						/*The container <div> - необходим для размещения выпадающего меню*/
    position: relative;
    display: inline-block;
    margin: 10px;
    margin-bottom: 150px;
}

.dropbtn { 						 /* Dropdown Button  - кнопка меню */
    background-color: #4CAF50;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
}

.dropdown-content {				/*  список пунктов меню */
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {           /* ссылки внутри пунктов списка */
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #ddd;}  /* меняем цвет ссылки при наведении*/

.dropdown:hover .dropdown-content {display: block;} /* раскрываем список при наведении*/

.dropdown:hover .dropbtn {background-color: #3e8e41;} /* меняем цвет кнопки при наведении */

/*---------------------------------------------------------------------------------------*/
			 
			 /*-----  ex1        ---------------------------*/
	
			.ex1 {
				font-size: 20px;
				display: inline-block;
				background-color : lightgrey;
				line-height: 50px;	
			}
			
			.ex1:hover { color: red;}
			
			
			 /*-----  ex2        ---------------------------*/
	
			.ex2 {
				font-size: 20px;
				display: inline-block;
				background-color : lightgrey;
				line-height: 50px;	
			}
			
			.ex2:hover { letter-spacing: 10px;}
			
			 /*-----  exbox3        ---------------------------*/
			 
			.exbox3 {
				display: inline-block;
				border: solid 1px black;
				padding: 10px;
			}
			
			.exbox3 .block { 
				display: inline-block;
				width: 30px; height: 30px;
				background-color: black;
			}
			
			.exbox3:hover { 
				padding-top: 20px;
				padding-bottom: 0px;
				padding-left: 20px;
				padding-right: 0px;
			}
			
			/*-----  ex4        ---------------------------*/
			
			.ex4 {
				display: inline-block;
				border: solid 1px black;
				width: 100px; height: 100px;
				background-image: url(../../resources/htmlimg.png);
				background-position: center;
				background-size: 100%; 
			}
			
			.ex4:hover { background-size: 200%;  }
			
			/*-----  ex5        ---------------------------*/
			
			.exbox5 {
				display: inline-block;
				border: solid 1px black;
			}
			
			.exbox5 .block1  { 
				display: inline-block;
				width: 30px; height: 30px;
			}
			.exbox5 .block2 { 
				display: inline-block;
				width: 30px; height: 30px;
				background-color: black;
			}
			
			.exbox5:hover .block1  { background-color: black;	}
			.exbox5:hover .block2  { background-color: white;	}
