@import url('//fonts.googleapis.com/css?family=Alfa+Slab+One%3A400');
@import url('//fonts.googleapis.com/css?family=Pacifico%3A400');
@import url('//fonts.googleapis.com/css?family=Anybody%3A200%2C200italic%2C400%2C400italic%2C700%2C700italic');

* {
	box-sizing: border-box;
}

body {
	max-width: 500px;
	margin: auto;
	font-family: "Anybody";
	font-weight: 400;
	background-color: #f0f0ff;
}

header {
	position: fixed;
	z-index: 9999;
	margin: 0;
	top: 0;
	left: 0;
	width: 100%;
	height: 2rem;	
	background-color: black;
}

h1 {
	font-size: small;
	font-family: 'Pacifico';
	color: white;
	margin: 0 10px;
	padding: 3px 0;
	float: left;
}

p.group-info {
    margin: 0;
    float: right;
    color: white;
    padding: 4px;
    font-weight: 200;
    font-size: 0.8rem;
}

span.group-info-code,
	span.group-info-pin {
	font-weight: 400;
}

p.group-info a,
	p.group-info a:hover,
	p.group-info a:visited,
	p.group-info a:active {
	display: inline-block;
    margin-left: 2px;
    padding: 1px 4px;
    font-family: "Alfa Slab One";
    font-weight: 400;
    text-decoration: none;
    border: solid 2px #ffff00;
    color: #bb0000;
    background-color: #ffffa0;
    border-radius: 2px;
}

main {
	padding: 0.05px; /*to prevent margin collapse */
	margin: 2rem 10px 2rem 10px;
}

nav#activities {
	display: flex;
	position: fixed;
	z-index: 1000;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2rem;
	background-color: black;
}

nav#activities a {
	border-radius: 0 0 10px 10px;
	flex-grow: 1;
	text-align: center;
	padding: 10px;
	border: solid 1px black;
	background: white;
	width: 50%;
}

nav#activities a:link,
	nav#activities a:active,
	nav#activities a:hover,
	nav#activities a:visited {
	color: black;
	text-decoration: none;
}

nav#activities a:first-child {
	border-left: none;
}

nav#activities a:last-child {
	border-right: none;
}

nav#activities a.active {
	border-top: none;
	background-color: #f0f0ff;
	font-weight: bold;
}

#share {
	position: fixed;
	z-index: 1500;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.7);
	font-size: 1.17em;
	transition: 0.5s ease-out;
}

.hide#share {
	background: none;
	transition: 0.5s ease-in;
}

#share-wrap {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	transform: unset;
	transform-origin: top right;
	transition: 0.5s ease-out;
}

.hide #share-wrap {
	transform: scale(0,0);
	transition: 0.5s ease-in;
}

#share-inner {
	position: relative;
	z-index: 1500;
	top: calc(2rem + 10px);
	margin: auto;
	border-radius: 10px;
	padding: 10px;
	background-color: #ffffff;
	width: calc(100% - 20px);
	max-width: 400px;
}

#qr-container {
	border-bottom: solid 2px #444444;
}

#code-container {
	border-bottom: solid 2px #444444;
}

#share-container {
}

#p-qr {
	float: left;
	width: 50%;
}

#qr {
	width: 50%;
}

#p-code {
	clear: both;
}

#p-copy,
	#p-whatsapp {
	background-image: url('link-solid.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position-x: 0;
	padding-left: 2.5rem;
}

#p-copy {
	background-image: url('link-solid.svg');
}

#p-whatsapp {
	background-image: url('whatsapp.svg');	
}

.share-highlight,
	.share-highlight:hover
	.share-highlight:visited {
	color: cornflowerblue;
}

.hide {
	visibility: hidden;
}

.site-name {
		font-family: 'Pacifico';
}

.competitor-details {
	display: flex;
	flex-direction: column;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin: auto -10px auto -10px;
	padding: 10px;
	box-shadow: 0 6px 6px 2px lightgrey;
}

.competitor-details p,
	.competitor-details h2 {
	display: inline-block;
	width: fit-content;
	margin-top: 5px;
	margin-bottom: 5px;
	padding-left: 5px;
	padding-right: 5px;
}

.competitor-details h2 {
	margin-bottom: 50px;
	background-color: rgba(240,240,240,0.8);
    font-size: xx-large;
    font-family: 'Alfa Slab One';
    font-weight: 400;
}

.competitor-details h2 strong,
	.results-competitor .country strong {
	font-weight: 400;
}

.competitor-details.competitor-al h2 strong,
	.results-competitor.competitor-al .country strong {color: #fd0021}	/* Albania */
.competitor-details.competitor-am  h2 strong,
	.results-competitor.competitor-am .country strong {color: #0033a0}	/* Armenia */
.competitor-details.competitor-at h2 strong,
	.results-competitor.competitor-at .country strong {color: #c1002c}	/* Austria */
.competitor-details.competitor-au h2 strong,
	.results-competitor.competitor-au .country strong {color: #012169}	/* Australia */
.competitor-details.competitor-az h2 strong,
	.results-competitor.competitor-az .country strong {color: #509e2f}	/* Azerbaijan */
.competitor-details.competitor-be h2 strong,
	.results-competitor.competitor-be .country strong {color: #ef3340}	/* Belgium */
.competitor-details.competitor-cy h2 strong,
	.results-competitor.competitor-cy .country strong {color: #cf6926}	/* Cyprus */
.competitor-details.competitor-cz h2 strong,
	.results-competitor.competitor-cz .country strong {color: #d7141a}	/* Czechia */
.competitor-details.competitor-ch  h2 strong,
	.results-competitor.competitor-ch .country strong {color: #ff0000}	/* Switzerland */
.competitor-details.competitor-de h2 strong,
	.results-competitor.competitor-de .country strong {color: #dd0000}	/* Germany */
.competitor-details.competitor-de h2 strong,
	.results-competitor.competitor-dk .country strong {color: #c9072b}	/* Denmark */
.competitor-details.competitor-ee h2 strong,
	.results-competitor.competitor-ee .country strong {color: #0072ce}	/* Estonia */
.competitor-details.competitor-es h2 strong,
	.results-competitor.competitor-es .country strong {color: #ad1519}	/* Spain */
.competitor-details.competitor-fi h2 strong,
	.results-competitor.competitor-fi .country strong {color: #002f6c}	/* Finland */
.competitor-details.competitor-fr h2 strong,
	.results-competitor.competitor-fr .country strong {color: #002654}	/* France */
.competitor-details.competitor-gb h2 strong,
	.results-competitor.competitor-gb .country strong {color: #012169}	/* United Kingdom */
.competitor-details.competitor-ge h2 strong,
	.results-competitor.competitor-ge .country strong {color: #ff0000}	/* Georgia */
.competitor-details.competitor-gr  h2 strong,
	.results-competitor.competitor-gr .country strong {color: #0d5eaf}	/* Greece */
.competitor-details.competitor-hr h2 strong,
	.results-competitor.competitor-hr .country strong {color: #0c4076}	/* Croatia */
.competitor-details.competitor-il h2 strong,
	.results-competitor.competitor-il .country strong {color: #0038b8}	/* Israel */	
.competitor-details.competitor-is h2 strong,
	.results-competitor.competitor-is .country strong {color: #dc1e35}	/* Iceland */
.competitor-details.competitor-ie h2 strong,
	.results-competitor.competitor-ie .country strong {color: #169b62}	/* Ireland */
.competitor-details.competitor-it h2 strong,
	.results-competitor.competitor-it .country strong {color: #009246}	/* Italy */
.competitor-details.competitor-lv h2 strong,
	.results-competitor.competitor-lv .country strong {color: #9e1c32}	/* Latvia */
.competitor-details.competitor-lt  h2 strong,
	.results-competitor.competitor-lt .country strong {color: #c1272d}	/* Lithuania */
.competitor-details.competitor-lu  h2 strong,
	.results-competitor.competitor-lu .country strong {color: #ef303e}	/* Luxembourg */
.competitor-details.competitor-mt  h2 strong,
	.results-competitor.competitor-mt .country strong {color: #d00c27}	/* Malta */
.competitor-details.competitor-md  h2 strong,
	.results-competitor.competitor-md .country strong {color: #0046ae}	/* Moldova */
.competitor-details.competitor-nl h2 strong,
	.results-competitor.competitor-nl .country strong {color: #21468b}	/* The Netherlands */
.competitor-details.competitor-no  h2 strong,
	.results-competitor.competitor-no .country strong {color: #00205c}	/* Norway */
.competitor-details.competitor-pl h2 strong,
	.results-competitor.competitor-pl .country strong {color: #dc143c}	/* Poland */
.competitor-details.competitor-pt  h2 strong,
	.results-competitor.competitor-pt .country strong {color: #006600}	/* Portugal */
.competitor-details.competitor-ro h2 strong,
	.results-competitor.competitor-ro .country strong {color: #002b7f}	/* Romania */
.competitor-details.competitor-sm h2 strong,
	.results-competitor.competitor-sm .country strong {color: #d99f31}	/* San Marino */
.competitor-details.competitor-rs h2 strong,
	.results-competitor.competitor-rs .country strong {color: #0c4076}	/* Serbia */
.competitor-details.competitor-se h2 strong,
	.results-competitor.competitor-se .country strong {color: #006aa7}	/* Sweden */
.competitor-details.competitor-sl h2 strong,
	.results-competitor.competitor-si .country strong {color: #0900f5}	/* Slovenia */
.competitor-details.competitor-ua  h2 strong,
	.results-competitor.competitor-ua .country strong {color: #005bbb}	/* Ukraine */

.competitor-details p {
	background-color: rgba(40,40,40,0.8);
	padding-top: 2px;
	font-size: x-large;
	font-family: "Anybody";	
}

.competitor-details p.artist {
	font-weight: 900;
	color: white;
}

.competitor-details p.song {
	color: goldenrod;
}

.vote {
	margin-top: 40px;
}

.criterion {
	display: flex;
	margin: 10px 0;
}

.radiobuttontitle {
	font-weight: bold;
	margin-bottom: 5px;
	margin-top: 15px;
	width: 9rem;
}

.radiobuttongroup {
	margin-top: 0;
	flex-grow: 1;
	display: flex;
}

.radiobuttongroup label {
	width: 100%;
	padding: 0.75rem 0;
	margin: 0;	
	text-align: center;
}

.radiobuttongroup input[type="radio"] {
	border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.radiobuttongroup label:first-of-type {
	background-color: rgba(255,0,0,0.2);
	border-radius: 3px 0 0 3px;
}

.radiobuttongroup label:nth-of-type(2) {
	background-color: rgba(255,102,0,0.2);
}

.radiobuttongroup label:nth-of-type(3) {
	background-color: rgba(255,204,0,0.2);
}

.radiobuttongroup label:nth-of-type(4) {
	background-color: rgba(204,255,0,0.2);
}

.radiobuttongroup label:nth-of-type(5) {
	background-color: rgba(102,255,0,0.2);
}
 
.radiobuttongroup label:last-of-type {
	background-color: rgba(0,255,0,0.2);
	border-radius: 0 3px 3px 0;
}

.radiobuttongroup input:checked + label:first-of-type {
	background-color: red;
}

.radiobuttongroup input:checked + label:nth-of-type(2) {
	background-color: #FF3300;
}

.radiobuttongroup input:checked + label:nth-of-type(3) {
	background-color: #FF6600;
}

.radiobuttongroup input:checked + label:nth-of-type(4) {
	background-color: #FFCC00;
}

.radiobuttongroup input:checked + label:nth-of-type(5) {
	background-color: #99CC00;
}
 
.radiobuttongroup input:checked + label:last-of-type {
	background: green;
}

.radiobuttongroup input:checked + label {
	background: #171717;
	color: #fff;
	font-weight: bold;
}

.radiobuttongroup input:focus {
	outline-style: none;
}

.vote-buttons {
	display: flex;
	gap: 10px;
	bottom: 0;
}

input[type="submit"],
	button,
	a.button {
    font-family: 'Alfa Slab One';
    background-color: cornflowerblue;
    color: white;
	width: 100%;
	border: 0;
	border-radius: 4px;
	height: 60px;
	font-size: large;
	margin-top: 20px;
	margin-bottom: 20px;
}

a.button:visited,
	a.button:active,
	a.button:hover,
	a.button:link {
	display: block;
	padding: 5px;
	text-decoration: none;
	text-align: center;
	color: white;	
}

input[type="submit"].vote {
	background-color: lightblue;
	color: black;
}

input[type="submit"].nul {
	background-color: red;
	color: palegoldenrod;
}

input[type="submit"].change-competitor {
	width: auto;
	height: auto;
	font-size: small;
}

select {
	font-family: "Anybody";
}

.results-competitor {
	position: relative;
	display: flex;
	flex-direction: column;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 180px;
	margin-bottom: 30px;
	padding: 10px;
	border: solid 5px black;
	box-shadow: 0 10px 5px #aaa;
}

.results-competitor p,
	.results-competitor dl {
	margin: 5px 0;
	color: white;
	background-color: rgba(0,0,0,0.8);
	padding-left: 5px;
	padding-right: 5px;
}

.results-competitor p,
	.results-competitor dl {
	display: inline-block;
	width: fit-content;
}

.results-competitor .position {
	height: 30px;
	width: 30px;
	text-align: center;
	border-radius: 15px;
	padding: 0;
	right: 10px;
	position: absolute;
	font-weight: bold;
	line-height: 2em;
}

.results-competitor .country {
	background-color: rgba(240,240,240,0.8);
    font-size: xx-large;
    font-family: 'Alfa Slab One';
    font-weight: 400;
    color: black;	
    margin-top: 0;
    margin-right: 35px;
}

.results-competitor .artist,
	.results-competitor .song,
	.results-competitor .score-details {
	padding-top: 2px;
}

.results-competitor .artist {
	font-weight: 900;
	color: white;
}

.results-competitor .song {
	color: goldenrod;	
}

.results-competitor .score-details {
	font-size: smaller;
	background-color: rgba(240,240,240,0.8);
	color: black;
}

.results-competitor .score-details div {
	display: inline-block;
}

.results-competitor .score-details dt, 
	.results-competitor .score-details dd {
	display: inline-block;
	margin-left: 0;
}

.results-competitor .score-details dt::after {
	content: ': ';
}

.results-competitor .score-details dd::after {
	content: ' // ';
}

.results-competitor .score-details div:last-child dd::after {
	content: '';
}

.results-summary {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	padding: 0;
	gap: 10px;
}

.results-summary-competitor {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	width: calc(50% - 5px);
	min-height: 50px;
	margin: 0;
	list-style-type: none;
	background-repeat: no-repeat;
	background-size: 30px;
	background-position: 5px center;
	border: solid 2px black;
	box-shadow: 0 10px 5px #aaa;
	padding: 5px 5px 5px 45px;
}

.results-summary-competitor div,
	.results-summary-competitor p,
	.results-summary-competitor button {
	width: 100%;
	margin: 0;
}


.results-summary-competitor button,
	#result-scope a.button {
	display: inline-block;
	height: auto;
	width: auto;
	margin: 0;
	font-size: smaller;
}

.results-summary-competitor.future {
	opacity: 0.2;
}

#result-scope {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

#result-scope h3 {
	margin: 0;
}

#result-scope a {
	display: block;
}

div.results-judges {
	margin: 0 0 30px 0;
	padding: 10px;
	border: solid 5px #000000;
	box-shadow: 0 10px 5px #aaa;
}

div.results-judges:nth-of-type(odd) {
	background-color: darkcyan;
	color: white;
}

div.results-judges:nth-of-type(even) {
	background-color: skyblue;
	color:black;
}

dl.results-groups {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 5px;
}

dl.results-groups div {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	border: 3px solid black;
	box-shadow: 0 10px 5px #aaa;
	background-color: darkcyan;
}

dl.results-groups dt {
	text-align: right;
	padding: 5px;
	margin: 0;
	white-space: nowrap;
	background-color: skyblue;
	color: black;
}

dl.results-groups dt::after {
    content: ':';
}

dl.results-groups dd {
	text-align: left;
	padding: 5px 5px 5px 45px;
	margin: 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-color: darkcyan;;
	color: white;
	font-weight: bold;
}

div.results-judges p {
	margin: 5px 0;
}

p.judge-name {
	display: inline-block;
	width: fit-content;
	margin-top: 5px;
	margin-bottom: 5px;
	padding-left: 5px;
	padding-right: 5px;
    font-size: x-large;
    font-family: 'Alfa Slab One';
    font-weight: 400;
}

div.results-judges:nth-of-type(odd) p.judge-name {
	background-color: rgba(15,15,15,0.8);
}

div.results-judges:nth-of-type(even) p.judge-name {
	background-color: rgba(240,240,240,0.8);
}

.waiting {
	height: 200px;
	background-image: url('spinner.png');
	background-position: center;
	background-repeat: no-repeat;
}

#form-judge-name input[type="text"],
	#form-pin input[type="text"],
	#form-code input[type="text"] {
	background-color: transparent;
	font-size: xx-large;
	font-family: 'Alfa Slab One';
	border: none;
	border-bottom: 1px solid cornflowerblue;
	border-radius: 0;
	display: inline-block;
	width: 100%;
	height: 60px;
	outline-style: none;
	padding: 0;
}

.error {
	padding: 10px;
	color: #ff0000;
	background-color: #ffffff;
	border-radius: 5px;
	padding 5px;
}

#bingo-card {
	display: flex;
	flex-wrap: wrap;
}

#bingo-card button.square {
	background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7));
	background-size: contain, cover, cover;
	background-position: center center;
	background-repeat: no-repeat;
	border: solid 1px #444444;
	border-radius: 0;
	font-family: 'Anybody';
	width: 50%;
	height: 6rem;
	padding: 0 40px;
	text-align: center;
	display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: small;
	margin: 0;
	white-space: normal;
	font-weight: bold;
}

#bingo-card button.square.ticked {
	color: green;
	background-image: url('../bingo/tick.png'), linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7));
}

#coverall {
	position: absolute;
	width: 100%;
	height: 100%;
	max-width: 480px;
    background-color: rgba(255, 255, 255, 0.4);}

#house,
	#winner {
	position: absolute;
	top: 50%;  /* position the top  edge of the element at the middle of the parent */
    left: 50%; /* position the left edge of the element at the middle of the parent */
	padding: 10px;
    border: solid 1px #000000;
    background-color: #ffffff;
    transform: translate(-50%, -50%) rotate(1765deg);
	font-size: 3rem;
	text-align: center;
	font-weight: bold;
}

#house {
	animation: /*spin 200ms 4 linear,*/ scale 1000ms 1 linear; 

}

@keyframes spin {
	from {
		transform: translate(-50%, -50%) rotate(325deg);
	}
	to {
		transform: translate(-50%, -50%) rotate(685deg);
	}
}

@keyframes scale {
	0% {
		font-size: 0;
		left: 10px;
		top: 10px;
		transform: translate(-50%, -50%) rotate(325deg);
	}
	80% {
		font-size: 4rem;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%) rotate(1765deg);
	}
	100% {
		font-size: 3rem;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%) rotate(1765deg);
	}
}

svg {
	height: 0,
	width: 0;
}
