/*** R2 aastahitt 2017 ***/
.r2-top-hit-2017.wrapper {
	background-color: #b8a888;
	min-height: 100%;
}

.r2-top-hit-2017 header {
	padding: 50px 5px;
	background-color: #b8a888;
	display: flex;
	justify-content: center;
	/*max-height: 312px;*/
}

.r2-top-hit-2017 header img {
	max-height: 212px;
	max-width: 387px;
	height: 100%;
	width: 100%;
}

.r2-top-hit-2017 .container {
	background-color: #b8a888;
	padding-bottom: 76px;
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: wrap;
	justify-content: center;
}

.r2-top-hit-2017 .vote {
	max-width: 595px;
	background-color: #b8a888;
	flex-grow: 1;
}

.r2-top-hit-2017 .text {
	max-width: 595px;
	padding: 26px;
	flex-grow: 1;
}

@media (max-width: 1190px) {
	.r2-top-hit-2017 .vote, .r2-top-hit-2017 .text {
		max-width: 682px;
	}
}

.r2-top-hit-2017 .form-row-song .form-field {
	width: 50%;
}

.r2-top-hit-2017 .form-fieldgroup {
	display: flex;
}

.r2-top-hit-2017 .form-field-title {
	text-align: center;
	color: #fff;
	font-size: 28px;
	font-weight: bold;
	line-height: 1.18;
	margin: 26px 0 3px 0;
}

.r2-top-hit-2017 .form-field {
	position: relative;
}

.r2-top-hit-2017 form input {
	border: 0;
	height: 57px;
	padding: 8px 8px 6px 17px;
	color: #b8a888;
	font-size: 28px;
	font-weight: bold;
	line-height: 1.18;
}

.r2-top-hit-2017 .form-song-group .form-field:first-of-type input {
	text-align: right;
	padding: 8px 17px 6px 8px;
}

.r2-top-hit-2017 .form-event-group input, .r2-top-hit-2017 .form-email-group input {
	text-align: center;
	padding: 8px 8px 6px 8px;
}

.r2-top-hit-2017 .form-field label {
	position: absolute;
	top: 13px;
	left: 16px;
	text-transform: lowercase;
	color: #b8a888;
	transition: .4s;
	font-size: 28px;
	font-weight: bold;
	line-height: 1.18;
	cursor: text;
	pointer-events: none;
}

.r2-top-hit-2017 .form-event-group label {
	text-align: center;
	width: 100%;
	left: 0;
}

.r2-top-hit-2017 .form-song-group .form-field:first-of-type label {
	left: auto;
	right: 20px;
}

.r2-top-hit-2017 .form-song-group .form-field:first-of-type::after {
	position: absolute;
	top: 10px;
	right: -8px;
	content: '–';
	z-index: 2;
	color: #b8a888;
	font-size: 28px;
	font-weight: bold;
}

.r2-top-hit-2017 input:focus ~ label,
.r2-top-hit-2017 input:valid ~ label {
	top: 57px;
	color: #fff;
	font-size: 20px;
	transition:all 0.2s linear;
}

.r2-top-hit-2017 form input:invalid {
	box-shadow: 0 0;
}

.r2-top-hit-2017 button {
	width: 100%;
	margin: 57px 0 25px;
	height: 57px;
	border-radius: 0;
	background-color: #000;
	border: 0;
	text-transform: uppercase;
	color: #b8a888;
	font-size: 28px;
	font-weight: bold;
	line-height: 1.18;
	cursor: pointer;
}

.r2-top-hit-2017 button:hover {
	background-color: #000;
	border-color: #000;
	color: #fff;
}

.end-message {
	text-align: center;
	color: #fff;
	font-size: 28px;
	font-weight: bold;
	line-height: 1.18;
}

.r2-top-hit-2017 .error-message,
.r2-top-hit-2017 .success-message,
.r2-top-hit-2017 .already-voted-message {
	display: none;
	text-align: center;
	color: #fff;
	font-size: 28px;
	font-weight: bold;
	line-height: 1.18;
}

.r2-top-hit-2017 .link {
	cursor: pointer;
}

.color-white {
	color: #fff;
}

.color-black {
	color: #000;
}

.r2-top-hit-2017 .link.hover-white:hover {
	color: #fff;
}

.r2-top-hit-2017 .link.hover-white:hover .arrow-left::before,
.r2-top-hit-2017 .link.hover-white:hover .arrow-right::before {
	background-color: #fff;
}

.r2-top-hit-2017 .link.hover-white:hover .arrow-left::after {
	border-right-color: #fff;
}

.r2-top-hit-2017 .link.hover-white:hover .arrow-right::after {
	border-left-color: #fff;
}

.r2-top-hit-2017 .link.hover-black:hover {
	color: #000;
}

.r2-top-hit-2017 .link.hover-black:hover .arrow-left::before,
.r2-top-hit-2017 .link.hover-black:hover .arrow-right::before {
	background-color: #000;
}

.r2-top-hit-2017 .link.hover-black:hover .arrow-left::after {
	border-right-color: #000;
}

.r2-top-hit-2017 .link.hover-black:hover .arrow-right::after {
	border-left-color: #000;
}

.r2-top-hit-2017 .error-message .email,
.r2-top-hit-2017 .error-message .estonia,
.r2-top-hit-2017 .error-message .foreign {
	color: #504125;
}

.r2-top-hit-2017 .txt4 {
	font-size: 28px;
	font-weight: 600;
	line-height: 1.18;
}

.r2-top-hit-2017 .txt5 {
	font-size: 28px;
	font-weight: 600;
	line-height: 1.18;
}

.r2-top-hit-2017 .txt6 {
	font-size: 23px;
	line-height: 1.24;
	font-weight: bold;
	margin: 10px 0 0 0;
}

.r2-top-hit-2017 .txt7 {
	font-size: 21px;
	font-weight: 600;
	line-height: 1.24;
	margin-top: 0;
}

.r2-top-hit-2017 .txt8 .txt-row {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.r2-top-hit-2017 .txt8 .txt-cell {
	min-width: 271px;
	font-size: 18px;
}

@media (max-width: 500px) {
	.r2-top-hit-2017 .txt8 .txt-cell {
		min-width: 100%;
	}
}

.r2-top-hit-2017 .txt8 .txt-cell:first-of-type {
	font-size: 20px;
	font-weight: bold;
}

footer.r2-top-hit-2017 {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 76px;
	min-width: 100%;
	margin: 0;
	padding: 5px;
	z-index: 3;

	-webkit-box-shadow: 0 0 18px -4px #000;
	-moz-box-shadow: 0 0 18px -4px #000;
	box-shadow: 0 0 18px -4px #000;
}

footer.r2-top-hit-2017 .infinite-sliding-logo {
	width: 100%;
	height: calc(100% - 10px);
	position: absolute;
	top: 0;
	left: 0;
	padding: 5px 0;

	background-color: #b8a888;
	-o-background-size: contain;
	-webkit-background-size: contain;
	-moz-background-size: contain;
	background-size: contain;
	background-origin: content-box;
	background-repeat: repeat-x;

	animation: SlidingLogo 120s linear infinite;
	will-change: transform;
}

@keyframes SlidingLogo {
	from {
		background-position: 0 0;
	}
	/*negative width for left <- right, positive for left -> right*/
	to {
		background-position: -10000px 0;
	}
}

.arrow-right,
.arrow-left {
	width: 0;
	height: 0;
	position: relative;
	padding: 0 10px;
	top: 4px;
	left: 0;
}

.arrow-right {
	margin-right: 10px;
}

.arrow-left {
	margin-right: 5px;
}

.arrow-right::before, .arrow-right::after,
.arrow-left::before, .arrow-left::after {
	content: '';
	border-color: transparent;
	border-style: solid;
	position: absolute;
}

.arrow-right::before,
.arrow-left::before {
	border: none;
	height: 6px;
	width: 14px;
	top: 11px;
	left: 0;
}

.arrow-right::after,
.arrow-left::after {
	border-width: 7px 10px;
	top: 7px;
}

.arrow-right::after {
	left: 10px;
}

.arrow-left::after {
	left: -15px;
}

.color-white .arrow-right::before,
.color-white .arrow-left::before {
	background-color: #fff;
}

.color-white .arrow-right::after {
	border-left-color: #fff;
}

.color-white .arrow-left::after {
	border-right-color: #fff;
}

.color-black .arrow-right::before,
.color-black .arrow-left::before {
	background-color: #000;
}

.color-black .arrow-right::after {
	border-left-color: #000;
}

.color-black .arrow-left::after {
	border-right-color: #000;
}

/*** R2 Top Hit history ***/
header.r2-top-hit-history {
	background: initial;
}

.r2-top-hit-history {
	display: flex;
	flex-wrap: wrap;
	margin: 10px;
}

.r2-top-hit-history span {
	cursor: pointer;
	font-weight: bold;
}

.r2-top-hit-history div:not(:first-child) span:before {
	content: ' | ';
	display: inline-block;
	padding: 0 5px;
	font-weight: normal;
}

.r2-top-hit-history span.underline {
	text-decoration: underline;
	font-weight: normal;
}

.r2-top-hit-history span:hover {
	text-decoration: none;
}

.flex-container {
	display: flex;
	flex-wrap: wrap;
}

.results-table {
	padding: 20px;
}

.results-header {
	width: 100%;
	text-align: center;
	font-weight: bold;
	padding: 10px;
}

.results-row-nr {
	min-width: 26px;
	display: table-cell;
	text-align: right;
}

.results-row-result {
	display: table-cell;
}

/*Current year results view*/

.r2tophit2017header {
	margin: 0 auto;
	max-width: 1130px;
	font-size: 34px;
	margin-bottom: 24px;
    font-weight: 500;
    line-height: 1.18;
    padding-left: 40px;
}

.r2TopHitCurrentResults {
	margin: 0 auto;
	max-width: 1130px;
	padding-bottom: 150px;
	color: #333;
    font-size: 18px;
    padding-left: 40px;
    padding-right: 20px;
}

.r2TopHitCurrentResults table {
	width: 47%;
	display: inline-block;
	vertical-align: top;
}

.r2TopHitCurrentResults table:first-child {
	margin-right: 30px;
}

.r2TopHitCurrentResults tr td {
	height: 30px;
}

.r2TopHitCurrentResults tr:first-child th {
	height: 45px;
	text-align: left;
	border-bottom: 1px solid black;
}

.r2TopHitCurrentResults tr:first-child th:first-child {
	width: 40px;
}


@media (max-width: 700px) {
	.r2TopHitCurrentResults {
		flex-direction: column;
		padding-left: 10%;
	}

	.r2TopHitCurrentResults table {
		width: 100%;
		display: block;
	}
	.r2TopHitCurrentResults table:first-child {
		margin-bottom: 20px;
	}
}
