@import url("https://f.pmo.ee/fonts/Charter.css");
@import url("https://f.pmo.ee/fonts/GTEesti.css");

html {
--webbg: #fff;
--text: #262626;
--bg: #eaedf1;
--cubes: #d5d8dd;
--whiteorblack: #eff3f5;
--white: #eff3f5;
--black: #262626;
--sectioncolor: #0064fa;
--sectioncolor2: #0000ba;
--sectioncolor3: #a5e6e9;
--borderbottom: rgba(0,0,0,0.1);
}

html.dark-theme {
--webbg: #141414;
--text: #eff3f5;
--bg: #202124;
--cubes: #717c8e;
--whiteorblack: #262626;
--borderbottom: rgba(255,255,255,0.1);
}

body {
	margin: 0;
	max-width: 616px;
	margin: auto;
	background: var(--webbg);
}

* {
	-webkit-font-smoothing: grayscale;
	-moz-osx-font-smoothing: grayscale;
	font-family: "GT Eesti", serif;
	font-weight: 400;
	font-size: 17px;
	line-height: 20px;
	margin: 0;
	color: var(--text);
}

.cubes {
color: var(--cubes);
background-image: radial-gradient(circle at 1px 1px,currentColor 1px,transparent 0);
background-size: 4px 4px;
background-position: 0;
flex-grow: 1;
width: 100%;
height: 12px;
}

.pk {
	font-family: "GT Eesti";
	font-weight: 700;
	font-size: 28px;
	line-height: 28px;
	margin-top: 12px;
	margin-bottom: 8px;
}

.ld {
	margin-bottom: 20px;
	font-size: 18px;
	line-height: 22px;
	font-family: "GT Eesti";
	font-weight: 600;
}

.clickable {
	cursor: pointer;
}

.clickable:hover {
  filter: brightness(1.1);
}


table {
	width: 100%;
	border-collapse: collapse;
	table-layout: auto;
}

table tr {
	min-height: 67px;
	height: 67px;
	border-bottom: 1px solid var(--borderbottom);
}

table tbody tr:nth-of-type(even) {
	background: transparent;
}

table td,
table th {
	vertical-align: middle;
	text-align: left;
	padding: 5px;
}

table th {
	background: var(--sectioncolor);
	color: var(--white);
	font-weight: 600;
}

table th span {
	font-size: 13px;
	line-height: 13px;
	color: var(--white);
	font-weight: 700;
	display: block;
}

table td img {
	width: 11px;
	margin: 0;
	margin-left: 5px;
}

table td img.sama {
	margin-bottom: 3px;
}

table td img.up {
	margin-bottom: -1px;
}

table td img.down {
	margin-bottom: -1px;
}

table td img.uus {
	width: 18px;
	margin-bottom: -1px;
	margin-left: 7px;
}

table tbody tr.n1 td:nth-of-type(1),
table tbody tr.n2 td:nth-of-type(1),
table tbody tr.n3 td:nth-of-type(1) {
	background-image: url("images/kuld.svg");
	background-repeat: no-repeat;
  background-size: 47px 47px;
	background-position-x: center;
  background-position-y: center;
}

table tbody tr.n2 td:nth-of-type(1) {
	background-image: url("images/hobe.svg");
}

table tbody tr.n3 td:nth-of-type(1) {
	background-image: url("images/pronks.svg");
}


table td:nth-of-type(1),
table th:nth-of-type(1) {
	width: 55px;
	max-width: 55px;
	min-width: 50px;
	text-align: center;
}

table td:nth-of-type(1) {
	font-weight: 700;
}

table td:nth-of-type(9) {
	font-weight: 600;
}

table td:nth-of-type(2),
table th:nth-of-type(2) {
	font-weight: 600;
	padding-left: 10px;
	max-width: 250px;
	line-height: 1;
}

table td:nth-of-type(2) span {
	display: block;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 400;
	margin-top: 3px;
}

table td:nth-of-type(3),
table td:nth-of-type(7) {
  text-align: right;
}

table th:nth-of-type(3),
table th:nth-of-type(4) {
  padding-left: 10px;
}

table td:nth-of-type(4),
table td:nth-of-type(8) {
	padding: 5px 3px;
	max-width: 32px;
	min-width: 32px;
}

table td:nth-of-type(3),
table td:nth-of-type(5),
table td:nth-of-type(7),
table td:nth-of-type(9) {
	font-size: 16px;
}

table td:nth-of-type(1),
table td:nth-of-type(3),
table td:nth-of-type(4),
table td:nth-of-type(5),
table td:nth-of-type(6) {
	background: var(--bg);
}


table td.miinus {
	color: #A92D3B;
}

table svg {
	margin-top: 8px;
}

table .kaive-mob {
	display: none;
}

table thead .mob {
	display: none;
}


@media only screen and (max-width: 529px) {

	* {
		font-size: 16px;
		line-height: 18px;
	}

	table th:nth-of-type(3),
	table th:nth-of-type(4) {
	  padding-left: 5px;
	}

	table th span {
		font-size: 11px;
	}


	table .kaive-desktop {
		display: none;
	}

	table .kaive-mob {
		display: table-cell;
		font-size: 14px;
		text-align: center;
	}

	table .kaive-mob b {
		font-weight: 700;
		font-size: 14px;
	}

	table td:nth-of-type(4) {
  padding-right: 0px;
}

table td img {
	display: block;
	margin: auto;
	margin-top: 3px;
}

table td img.uus {
margin: auto;
margin-top: 3px;
}

table td:nth-of-type(1),
table th:nth-of-type(1) {
  width: 37px;
  max-width: 45px;
  min-width: 37px;
}

table tbody tr.n1 td:nth-of-type(1),
table tbody tr.n2 td:nth-of-type(1),
table tbody tr.n3 td:nth-of-type(1) {
  background-size: 42px 42px;
}


@media only screen and (max-width: 339px) {

	* {
		font-size: 13px;
		line-height: 16px;
	}

	table th span {
		font-size: 12px;
	}

	table thead .mob {
		display: block;
	}

	table thead .desktop {
		display: none;
	}



	table .kaive-desktop {
		display: none;
	}

	table .kaive-mob {
		display: table-cell;
		font-size: 12px;
	}

	table .kaive-mob b {
		font-weight: 700;
		font-size: 12px;
	}

	table td:nth-of-type(4) {
  padding-right: 0px;
}

table td:nth-of-type(1), table th:nth-of-type(1) {
  min-width: 30px;
}



}
