* { margin: 0; padding: 0; overflow-x:hidden;}

/*Здесь базовые стили для глупых браузеров. Например, для телефонов не high-end уровня. Pocket Internet Explorer для Windows Mobile 6.5 здесь же :).*/

html {
	height:100%;
	width:100%;
	height:100vh;
	width:100vw;
}

body {
	cursor: url('cursor.cur'), auto; 
	font-size: 30px;
	font-family: "Times New Roman", Times, serif;
	height:100%;
	width:100%;
	margin:0;
	padding:0;
	height:100vh;
	max-width: 100%;
	width:100vw;
}


#content {
	width:100%;
	width:100vw;
	overflow:visible;
}

*:focus {outline: none;}

h1,h2,h3,h4,h5,h6,h7,div {
    margin: 0;
}

ul {padding-left: revert;}

li {overflow: visible;}

form label {
	cursor: url('hold.cur'), pointer; 	
        -ms-user-select: none;
        -moz-user-select: none;
        -khtml-user-select: none;
        -webkit-user-select: none;
}

.button1 {
	cursor: url('hold.cur'), pointer; 
	background-color: #B0FFD6;
	color: #002200;
	font-size: 2vw;
	border-radius: 20%;
	border: 2px solid #4CAF50;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
	box-shadow: 0 5px rgba(60, 60, 60, 0.6);
	overflow:hidden;
}
.button1 * {
	overflow:hidden;
}
.button1:hover {
   	background-color: #4CAF50; /* Green */
    	color: white;
}
.button1:active {
  background-color: #3e8e41;
  box-shadow: 0 2px rgba(60, 60, 60, 0.8);
  transform: translateY(3px);
}
/* button2 - устаревшая версия кнопок в меню, являющаяся картинкой. Сейчас присутствует только в разделе "файлообменник".*/
.button2 a:hover {
	opacity: 0.5;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
	overflow:hidden;
}
.button2 * {
	overflow:hidden;
}
.button3a {
	cursor: url('hold.cur'), pointer; 
	font-size: 2.31vw;
	border-radius: 24%;
	border: 2px solid #000000;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
	width:45%;
	margin-top:5px;
	margin-bottom:5px;
	overflow:hidden;
}
.button3a a {
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
}
.button3a:active {
  transform: translateY(3px);
}
.button3a * {
	overflow:hidden;
}
.button3a a h3 {
	margin: 0px;
	font-size: 4.31vw;
	text-align:center;
}
.button3a a h4 {
	margin: 0px;
	font-size: 3.31vw;
	text-align:center;
}
.button3b {
	cursor: url('hold.cur'), pointer;
	font-size: 2.31vw;
	border-radius: 15%;
	border: 2px solid #000000;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
	padding-top: 3%;
	padding-bottom: 3%;
	overflow:hidden;
}
.button3b a {
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
}
.button3b:active {
  transform: translateY(3px);
}
.button3b * {
	overflow:hidden;
}
.button3b a h3 {
	margin: 0px;
	font-size:4.31vw;
	text-align:center;
}

span.button3a {
	display:inline-block;
}

a {
	cursor: url('hold.cur'), pointer;
	text-decoration: none;
}
a img {
	border:none;
}

.hide {display: none;}

.header {
	height:10%;
	width:100%;
	height:10vh;
	width:100vw;
	font-size:1.7vw;
	font-family:Georgia, Times, "Times New Roman", serif;
	padding-top:0px;
	padding-bottom:0px;
	padding-left:5px;
	position:sticky;
	top:0;
	overflow:hidden;
}
.header * {
	overflow:hidden;
}
.header span.ui {
	margin:auto;
	margin:0;
	padding:5px;
	position:absolute;
	display:inline;
	top:50%;
	transform:translate(0, -50%);
}
.header span.ui form {
	display:inline;
}

.footer {
	height:4%;
	width:100%;
	height:5vh;
	width:100vw;
	font-size:1.5vw;
	overflow:hidden;
	background: linear-gradient(90deg, #000000, #C5DDE8);
	position:fixed;
	bottom:0;
}
.footer * {
	overflow:hidden;
}

.logoTop {
	float:left;
}
#logoSecond {
	float:left;
}
#UISecond {
	margin-left:10vw;
}
label
{
	font-size:18px;
}
#userMSG {
	text-align:left;
	font-size: 25px;
}
#container {
	margin-left:auto;
	margin-right:auto;
	text-align:center;
}
a img {
	border:none;
}
table {font-size: 25px; outline: 8px solid red; width: 90%; border-collapse: collapse;}
th {border: 2px solid grey; text-align:center;}
td {border-top: 1px solid black; border-bottom: 1px solid black; border-right: 2px solid black; border-left: 2px solid black;}
tr:nth-child(2n+1) {border-bottom: 2px solid black;}
input:disabled { cursor: not-allowed; }

.newsLoading {
 width:100px;
 height:60px;
 background-image: url("/images/loading2.gif");
 background-position: center bottom;
 background-repeat: no-repeat;
 text-align: center;
 position: fixed;
 top: 60%;
 left:15%;
 display: none;
}

.newsPage {
 width:30px;
 height:30px;
 text-align: center;
 position: fixed;
 top: 75%;
 left:80%;
 display: none;
 overflow:hidden;
 border: 1px solid red;
}

.newsContent {
	background: #E0E0C0;
	background: linear-gradient(90deg, #D0D090, #C5DDE8);
	padding-bottom: 10px;
	border-top: 1px solid white;
}

.miniature {
	vertical-align: top;
	border: 1px solid transparent;
}

.miniature:hover {
  border: 1px solid yellow;
  cursor: url('hold.cur'), pointer;
}

#mainButtons {
    height: 100%;
    text-align: center;
}
 
#imgalery, #imgalery2 {
  display: none;
  position: fixed;
  z-index: 999;
}
 
#imgalery img, #imgalery2 img {
  max-height: 99vh;
  max-width: 90vw;
}
 
#overlay, #overlay2 {
  display: none;
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  z-index: 990;
}
 
#close-popup, #close-popup2 {
  width: 30px;
  height: 30px;
  background: #FFFFFF;
  border: 1px solid #AFAFAF;
  border-radius: 15px;
  cursor: url('hold.cur'), pointer;
  position: absolute;
  top: 15px;
  right: 15px;
}
 
#close-popup i, #close-popup2 i {
  width: 30px;
  height: 30px;
  background: url('/images/close.png') no-repeat center center;
  background-size: 16px 16px;
  display: block;
}

.newsHeader {
	margin:0px;
	text-align:center;
	font-size:5vw;
}

#motto {
	font-size:3vw;
	text-align:right;
	padding-right:5%;
}

#unknown {
	 display:block;
 }
#smobile {
	display:none;
}
#mobile {
	display:none;
}
#tablet {
	display:none;
}
#notebook {
	display:none;
}
#pc {
	display:none;
}

#UISecond .button3a {
	width:90%;
}

@media only screen and (min-width: 240px) {

/*Здесь стили более разумных, но все еще мобильных устройств. Android, iPhone  и так далее.*/

.newsContent {
	margin-left: 0px;
	margin-right: 0px;
	padding-left: 0px;
	padding-right: 0px;
}

#unknown {
	 display:none;
 }
#smobile {
	display:block;
}
#mobile {
	display:none;
}
#mobile {
	display:none;
}
#tablet {
	display:none;
}
#notebook {
	display:none;
}
#pc {
	display:none;
}

h1 {
	font-size:8vw;
}

.button1 {
	font-size:4vw;
}

.newsHeader {
	font-size:14vw;
}

#motto {
	font-size:4vw;
}
.button3a a h4 {
	font-size:4.8vw;
}
.footer {
	font-size:3.5vw;
}
}

@media only screen and (min-width: 480px) {
 
/*Здесь стили более разумных, но все еще мобильных устройств. Android, iPhone  и так далее.*/

.newsContent {
	margin-left: 5px;
	margin-right: 5px;
	padding-left: 5px;
	padding-right: 5px;
}

#unknown {
	 display:none;
}
#smobile {
	display:none;
}
#mobile {
	display:block;
}
#tablet {
	display:none;
}
#notebook {
	display:none;
}
#pc {
	display:none;
}
.button3a a h4 {
	font-size:4.4vw;
}
}
 
@media only screen and (min-width: 760px) {
 
/*Планшеты в режиме portrait.*/

.newsContent {
	margin-left: 10px;
	margin-right: 10px;
	padding-left: 10px;
	padding-right: 10px;
	padding-bottom: 15px;
}

#unknown {
	 display:none;
}
#smobile {
	display:none;
}
#mobile {
	display:none;
}
#tablet {
	display:block;
}
#notebook {
	display:none;
}
#pc {
	display:none;
}

h1 {
	font-size:4.5vw;
}

.button1 {
	font-size:2.5vw;
}

.newsHeader {
	font-size:3.4vw;
}

#motto {
	font-size:3vw;
}

#UISecond .button3a {
	width:45%;
}

.button3a a h4 {
	font-size:3.5vw;
}

.oneCol {
	display:none;
}
}
 
@media only screen and (min-width: 992px) {
 
/*Планшеты в режиме landscape, нетбуки, ноутбуки, десктоп.*/

.newsContent {
	margin-left: 12px;
	margin-right: 12px;
	padding-left: 12px;
	padding-right: 12px;
}

#unknown {
	 display:none;
}
#smobile {
	display:none;
}
#mobile {
	display:none;
}
#tablet {
	display:none;
}
#notebook {
	display:block;
}
#pc {
	display:none;
}

#motto {
	font-size:2.8vw;
}
.footer {
	font-size:1.8vw;
}
}
 
@media only screen and (min-width: 1382px) {
 
/*Десктоп с большими разрешениями, телевизоры.*/

.newsContent {
	margin-left: 15px;
	margin-right: 15px;
	padding-left: 18px;
	padding-right: 18px;
	padding-bottom: 25px;
}
	
#unknown {
	 display:none;
}
#smobile {
	display:none;
}
#mobile {
	display:none;
}
#tablet {
	display:none;
}
#notebook {
	display:none;
}
#pc {
	display:block;
}

#motto {
	font-size:2.5vw;
}
.footer {
	font-size:1.5vw;
}
}
