html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-family: 'Helvetica Neue';

    --light_background_color: #d5a9ff;
    --new_color: #e4c1ff;
    --dark_font_color: #422254;
    --light_font_color: #de8aff;
    --border_color: #6e3a8c;
    --border_color_2: #491d6e;
    --hover_color: #b28aff;

    color:  var(--dark_font_color);
    background-color: var(--light_background_color);

    position: relative;
    min-height: 100%;
    height: 100vh;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue.eot');
    src: local('Helvetica Neue'), local('HelveticaNeue'),
        url('../fonts/HelveticaNeue.eot?#iefix') format('embedded-opentype'),
        url('../fonts/HelveticaNeue.woff') format('woff'),
        url('../fonts/HelveticaNeue.ttf') format('truetype');
}

a {
  color: var(--border_color_2);
  text-decoration: none;
  transition: 0,6s;
}

a:hover {
  color: #a14ad6;
  color: var(--dark_font_color);
  text-decoration: underline;
}

.index_text > a , li > a {
    text-decoration: underline;
}

.index_text > ol {
    margin: 5px 5px 5px 5px;
}

.index_ol > li {
    margin: 5px 0px 8px 5px;
    font-style: oblique;
}

h1, h2, h3, ol, ul, li, form, p {
    color: var(--dark_font_color)
}

.grid_1, .grid_2 {
    position: relative;
    min-height: 100%;
    height: auto;
    flex-direction: column;
    display: grid;
    grid-template-columns: auto;
    width: 100%;
}

.grid_1 {
    grid-template-rows: 675px auto 40px;
}
.grid_2 {
    grid-template-rows: 260px auto 40px;
}

.head, .main, .footer {
    position: relative;
    display: flex;
    flex-direction: column;
    grid-column: 1;
    padding: 0px 0px 0px 0px;
    margin: 0px auto 0px auto;
    width: 840px;
}

.head {
    grid-row: 1;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.main {
    grid-row: 2;
}
.content {
	position: relative;
    display: grid;
    width: 100%;
    /*height: 100%;*/
    align-items: center;
    justify-content: center;
}
.content_index {
	position: relative;
    display: flex;
    flex-direction: column;
    width: 97%;
    height: 99%;
    align-items: flex-start;
    justify-content: center;
    padding: 0px 0px 0px 0px;
    margin: 10px 15px 0px 15px;
}

.index_text {
    margin: 6px 0px 6px 0px;
    text-align: justify;
    font-size: 18px;

}

.rules_text {
    margin: 6px 0px 6px 0px;
    text-align: justify;
    font-size: 18px;
}

.add_fox_text {
    margin: 6px 0px 6px 0px;
    text-align: justify;
    font-size: 18px;
}

.prizes_text {
    margin: 6px 0px 6px 0px;
    text-align: justify;
    font-size: 18px;
}

.prizes {
margin: 15px 0px 35px 0px;

}

.prizes > h1, h2 {
    margin: 6px 0px 2px 0px;
}


.prizes > h3 {
    margin: 4px 10px 4px 4px;
}

.prizes > h4 {
    margin: 8px 0px 8px 14px;
}

.prizes > img {
	width: 840px;
	display:  block;
    margin: 10px;
}

.prizes_zritel {
    width: 760px;
}

.prizes > h4 > a  {
    text-decoration: underline;
}

.prizes > p > a  {
    text-decoration: underline;
}

.sponsor_img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.index_text, .rules_text > h1, h2  {
    margin: 6px 0px 3px 0px;
}

.rules_text > h1, h2, ul, ol, li {
    margin: 6px 0px 6px 0px;
}

.footer {
    grid-row: 3;
    justify-content: center;
    align-items: center;
    border-top: var(--border_color) solid 1px;
}

.logo {
	width: 820px;
	display:  block;
    margin-left: auto;
    margin-right: auto;
}

.small_logo {
	width: 840px;
	display:  block;
    margin-left: auto;
    margin-right: auto;
}

.big_logo_box, .small_logo_box {
    border-top: var(--border_color) solid 1px;
    border-bottom: var(--border_color) solid 1px;
}

.small_logo_box {
    padding: 15px 0px 15px 0px;
}

.big_logo_box {
    padding: 15px 0px 0px 0px;
}

.menu_top {
    padding-bottom: 15px;
}

/* *************************************************** */

.table_sort {
	font-size: 14px;
	width: 820px;
	text-align: center;
	border-collapse: collapse;
	border-top: 1px var(--border_color_2) solid;
	border-bottom: 0px var(--border_color_2) solid;
    margin: auto;
}

.td {
    color:#422254
    border-radius: 10px;
}

.table_sort tr:hover td {
	text-decoration: underline;
	color: var(--dark_font_color);
	background: var(--hover_color);

}

.table_sort th{
    background: var(--border_color);
    color: var(--light_font_color);
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

.table_sort td, th {
	border:0px solid var(--dark_font_color);
	color: var(--dark_font_color);
	padding: 3px 7px;
    vertical-align: middle;
}

th.sorted[data-order="1"],
th.sorted[data-order="-1"] {
    position: relative;
}

th.sorted[data-order="1"]::after,
th.sorted[data-order="-1"]::after {
    right: 6px;
    position: absolute;
}

th.sorted[data-order="-1"]::after {
	content: "▼";
}

th.sorted[data-order="1"]::after {
	content: "▲";
}

.table_sort tbody tr:nth-child(even) {
    background: var(--new_color);
}

th.printer {
    text-align: left;
}

td.number {
    width: 20px;
}

td.nickname {
    text-decoration: underline;
    text-align: left;
}

td.printer {
    text-align: left;
}

th.time, th.photo, th.video {
    text-align: center;
    width: 90px;
}

div.preview {
    display: flex;
    position: relative;
    height: 40px;
    justify-content: center;
    align-items: center;
}

img.preview {
    display: flex;
    height: 40px;
    border: 1px solid var(--border_color);
    opacity: 0.99;
}

.hidden {
    display: none;
}

/* *************************************************** */

form {
    margin: 0;
    padding: 0;
}

.div_form {
    border: 0px solid black;
    display: grid;
	grid-template-columns: 119px 240px auto;
	grid-template-rows: auto;
}

.row1 {
    background: var(--new_color);
        border-radius: 4px;

}.row2 {
    /* */
}

.form_labels {
	position: relative;
	display: flex;
	grid-column: 1;
    align-items: center;
    justify-content: left;
    padding: 5px;
}

.form_fields {
	position: relative;
	display: flex;
	grid-column: 2;
    justify-content: left;
    align-items: center;
    padding: 5px;
}

.form_help {
	position: relative;
	display: flex;
	grid-column: 3;
    align-text: left;
    justify-content: left;
    align-items: center;
    padding: 5px;
}

.form_url {
	position: relative;
	display: flex;
    grid-column: 3/3;
    align-text: left;
    justify-content: left;
    align-items: center;
    padding: 5px;
}
input[type=submit]{
    background: var(--border_color);
    padding: 10px 10px;
    border: none;
    border-radius: 6px;
    color: var(--light_font_color);
    cursor: pointer;
}

/* *************************************************** */


.angles {
    width: 666px;
}

/* *************************************************** */


.pages_box {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
    padding: 12px 6px;
	order: 0;
	margin: 0px 6px;
}

.pages{
	position: static;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 800px;
	height: 19px;
	left: 13.31px;
	margin: 2px 0px;
}

.page {
	border: 1px solid var(--dark_font_color);
	background: var(--new_color);
	padding: 3px 6px 3px 6px;
	border-radius: 8px;
}

.page:hover {
    color: var(--dark_font_color);
	border: 1px solid var(--dark_font_color);
	background: var(--light_background_color);
}


#overlay {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(213, 169, 255, 0.65);
    z-index: 999;
    -webkit-animation: fade .6s;
    -moz-animation: fade .6s;
    animation: fade .6s;
    overflow: auto;
}

.popup {
    top: 25%;
    left: 0;
    right: 0;
    font-size: 14px;
    margin: auto;
    width: 85%;
    min-width: 320px;
    max-width: 600px;
    position: absolute;
    padding: 15px 20px;
    border: 1px solid #383838;
    background: var(--light_background_color);
    z-index: 1000;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    border-radius: 4px;
    font: 14px/18px 'Tahoma', Arial, sans-serif;
    -webkit-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -moz-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -ms-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -webkit-animation: fade .6s;
    -moz-animation: fade .6s;
    animation: fade .6s;
}

.close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    position: absolute;
    border: none;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    background-color: var(--dark_font_color);
    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    cursor: pointer;
    outline: none;

}
.close:before {
    color: rgba(255, 255, 255, 0.9);
    content: "X";
    font-family:  Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: normal;
    text-decoration: none;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

.close:hover {
    background-color: rgba(66, 34, 84, 0.65)
}

.popup > a {
    text-decoration: underline;
}

.pop4 {
    margin-bottom: 5px;
}
