
@font-face {
	font-family: 'Lato';
	src: local('Lato Regular'), local('Lato-Regular'),
		 url('/assets/fonts/lato-v15-latin-regular.woff2') format('woff2'),
		 url('/assets/fonts/lato-v15-latin-regular.woff') format('woff');
  }

body {
	color: #333;
	background-color: #fff;
	background-image: url("../images/background.svg");
	margin: 0px;
	font-family: 'Avenir', 'Lato';
}
a:visited {
	color: #1f5caa;
}
a {
	color: #2f8aff;
	text-decoration: none;
}
div.container_center {
	width: 100%;
	display: flex;
	justify-content: center;
	flex-direction: row;
	flex-wrap: wrap;
}
div.container {
	margin-left: 100px;
	margin-right: 100px;
	padding: 10px;
	background-color: #fff5;
}
div.as_item {
	margin-top: 20px;
}
hr {
	border-top: 3px solid #2f8aff;
	border-bottom: 0;
}
img.external-link {
	width: 1em;
	padding: 10px;
	filter: invert(50%) sepia(82%) saturate(3401%) hue-rotate(197deg) brightness(101%) contrast(101%);
}
h3 {
	margin-bottom: 0.25em;
}
h4 {
	margin-bottom: 0.5em;
}
.rix-ips {
	margin-top: 0;
	margin-left: 1em;
	margin-bottom: 1em;
}

.mb-1 {
	margin-bottom: 3px;
}
.mb-2 {
	margin-bottom: 6px;
}

.row {
	display: flex;
	flex-direction: row;
	align-items: center;
}
.col {
	display: flex;
	flex-direction: column;
}

/* Statistics page */

.as_item {
	width: 500px;
}
.as_item > .row {
	justify-content: space-between;
}
.as_item img {
	height: 135px;
	width: 500px;
}
a.pop:hover {
	background-color: #1f5caa;
}
a.pop {
	background-color: #2f8aff;
	color: white;
	padding: 2px 12px;
	border-radius: 12px;
	font-size: 14px;
}
*+a.pop {
	margin-left: 12px;
}
.color {
	margin-right: 0.5em;
}
.color.disc {
	min-width: 0.75em;
	min-height: 0.75em;
	border-radius: 50%;
}
.color.line {
	min-width: 0.75em;
	min-height: 0.25em;
	border-radius: 0;
}
.color.blue {
	background-color: #355efe;
}
.color.green {
	background-color: #7bcf0e;
}
.color.darkgreen {
	background-color: #457704;
}
.color.pink {
	background-color: #df76fe;
}
.color-list {
	max-width: 500px;
	padding-left: 0;
}
.color-list > li {
	line-height: 1.5em;
}
.color-list.row {
	justify-content: space-around;
}

/* interface page */

@media only screen and (max-width: 1848px) {
	.interfaceImages {
		display: flex;
		flex-direction: column;
	}
	.interfaceImages > img {
		max-width: 535px;
	}
	.interfaceImages > img+img {
		margin-top: 20px;
	}
}
@media only screen and (min-width: 1849px) {
	.interfaceImages {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}
}

.smallFont {
	font-size: 16px;
	display: inline;
}

/* graphs page */
.graphRow {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 500px;
}
.graphRow:first-child {
	font-size: 12px;
}
.graphRow:first-child > div:NOT(.graphLabel) {
	width: 210px;
	display: flex;
	justify-content: center;
}
.graphRow:first-child .graphData {
	width: fit-content;
}

.graphLabel {
	width: 80px !important;
	font-weight: bold;
}
.graphData {
	position: relative;
	margin: 2px;
}
.graphMaxAvgCurrData {
	padding-top: 0.5em;
}
.graphMaxAvgCurrData > div .graphLabel {
	padding-left: 1em;
}
.graphMaxAvgCurrData > div .graphData {
	padding: 0.25em 1em;
	border-radius: 0.5em;
}

.graphMaxAvgCurrData .inLabel,
.graphMaxAvgCurrData > div > .graphData.in:hover {
	background-color: #7bcf0e;
}
.graphMaxAvgCurrData .outLabel,
.graphMaxAvgCurrData > div > .graphData.out:hover {
	background-color: #355efe;
	color: #fff;
}

.graphMaxAvgCurr > img {
	width: 500px;
	height: 135px;
}


.graphMaxAvgCurrData > div > .graphData {
	position: relative;
	display: inline-block;
  }
  
  .graphMaxAvgCurrData > div > .graphData .tooltip {
	visibility: hidden;
	width: 150px;
	background-color: #636363;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px 10px;
	position: absolute;
	z-index: 1;
	bottom: 150%;
	left: 34%;
	margin-left: -60px;
	opacity: 0;
	transition: opacity 0.33s;
  }
  
  .graphMaxAvgCurrData > div > .graphData .tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: #636363 transparent transparent transparent;
  }
  .graphMaxAvgCurrData > div > .graphData:hover .tooltip {
	visibility: visible;
	opacity: 1;
	transition: 0.33s ease-in-out 0.33s opacity;
  }

@media only screen and (max-width: 1150px) {
	.graphMaxAvgCurr {
		display: block;
	}
}
@media only screen and (max-width: 550px) {
	.graphMaxAvgCurr > img {
		width: 370px;
		height: 100px;
	}
	.graphMaxAvgCurr {
		font-size: 12px;
	}
	.graphRow {
		width: 370px;
	}
}

/* Table */
table {
	max-width: 1000px;
	width: 100%;
	border-collapse: collapse;
}
thead > tr {
	background-color: #2f8aff;
	color: #fff;
	border: 3px solid #2f8aff;
	height: 3em;
}
th.as-number {
	width: 75px;
}
th.network {
	width: 65px;
}
tbody {
	border: 3px solid #2f8aff;
}
tbody tr:nth-child(even) {
	background-color: #fffbe4;
}
tbody > tr:hover {
	background-color: #cde3ff;
}
tbody td {
	padding: 5px 10px;
}
tbody td.location {
	text-align: center;
}
tbody td.location > a {
	width: 56px;
}
td.network {
	text-align: center;
}


@media only screen and (max-width: 930px) {
	tbody td {
		padding: 0px;
	}
	tbody td.location:nth-child(2) {
		border-left: 1px solid #2f8aff;
		border-right: 1px solid #2f8aff;
	}
}
@media only screen and (min-width: 1300px) {
	tbody td {
		padding: 10px 20px;
	}
}

/* Menu */
header {
	background-color: #2f8aff;
	position: sticky;
	top: 0px;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding: 20px;
	background-image: url("../images/background.svg");
	background-blend-mode: soft-light;
	background-position-x: -246px;
	background-position-y: -45px;
	z-index: 100;
}
nav.menu {
	display: flex;
	flex-direction: row;
	margin-left: 20px;
}
nav.menu > .menu-item,
nav.menu > a {
	display: flex;
	justify-content: center;
	align-items: center;
	white-space: nowrap;
	padding: 10px;
	margin-left: 10px;
	color: white;
	font-size: 18px;
	font-weight: 700;
	position: relative;
	width: 140px;
	cursor: pointer;
}
nav.menu > a::after {
    width: 120px;
    height: 1em;
    background: #2f8aff;
    opacity: 0.5;
    content: '';
    position: absolute;
    z-index: -1;
}
nav.menu > .menu-item > .submenu {
	position: absolute;
	opacity: 0;
	display: flex;
	z-index: -1;
	flex-direction:column;
	transition: opacity 0.25s ease-in-out, top 0s linear 0.25s;
	background-color: #1f5caa;
	top:-1000px;
	width: max-content;
	font-size: 14px;
}
nav.menu > .menu-item > .submenu a {
	color: #fff;
	padding: 15px 20px;
}
nav.menu > input#menuToggler {
	display: none;
}
nav.menu > label[for="menuToggler"] {
	display: none;
	width: 50px;
	height: 50px;
	border-top: 1px solid white;
	border-bottom: 1px solid white;
}
header > div.rightSide {
	display: flex;
	flex-direction: row-reverse;
}
#menu-toggler {
	display: none;
}
#menu-button {
	display: none;
	padding: 26px 11px;
	cursor: pointer;
	-webkit-user-select: none;
	-ms-user-select: none;
}
#menu-button > span {
	height: 4px;
	width: 35px;
	border-radius: 2px;
	background-color: white;
	position: relative;
	display: block;
	transition: all 0.2s ease-in-out;
}
#menu-button > span::before {
	top: -10px;
	visibility: visible;
}
#menu-button > span::after {
	top: 10px;
}
#menu-button > span::before,
#menu-button > span::after {
	height: 4px;
	width: 35px;
	border-radius: 2px;
	background-color: white;
	position: absolute;
	content: "";
	transition: all 0.1s ease-in-out;
}
 
input[type=checkbox]:checked ~ #menu-button span {
	background: transparent;
}
input[type=checkbox]:checked ~ #menu-button span::before {
	transform: rotate(45deg) translate(7px, 7px);
	opacity: 1;
}
input[type=checkbox]:checked ~ #menu-button span::after {
	transform: rotate(-45deg) translate(7px, -7px);
}


/* Menu for smaller screens */
@media only screen and (max-width: 930px) {
	nav.menu > label[for="menuToggler"] {
		display: block;
	}
	nav.menu {
		display: none;
	}
	div.container {
		margin-left: 10px;
		margin-right: 10px;
		padding: 10px;
	}
	header > div.rightSide > #menu-button {
		display: block;
	}
	#menu-toggler:checked ~ nav.menu {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	#menu-toggler:checked ~ nav.menu {
		height: 100%;
		font-size: 16px;
	}
	nav.menu > .menu-item, nav.menu > a {
		flex-direction: column;
		align-items: baseline;
	}
	nav.menu > .menu-item > .submenu {
		position: static;
		opacity: 1;
		z-index: 0;
		background-color: transparent;
	}
	nav.menu > .menu-item > .submenu a {
		padding: 10px 20px;
	}
}

/* Menu for bigger screens */
@media only screen and (min-width: 931px) {
	nav.menu > .menu-item::after {
		content: '';
		width: 5px;
		height: 5px;
		margin-left: 10px;
		margin-bottom: 2px;
		border-bottom: 2px solid #fff;
		border-right: 2px solid #fff;
		background-color: transparent;
		border-radius: 50% 0% 0% 0%;
		transform: rotate(45deg);
		transition: border-right-color 0.25s linear 0.25s, border-bottom-color 0.25s linear 0.4s, background-color 0.5s linear 0s, border-radius 1s ease-in-out;
	}
	nav.menu > .menu-item:hover::after {
		border-bottom-color: #1f5caa;
		border-right-color: #1f5caa;
		background-color: #1f5caa;
		border-radius: 50%;
		transition: border-bottom-color 0.25s linear 0.25s, border-right-color 0.25s linear 0.4s, background-color 0.5s linear, border-radius 1s ease-in-out;
	}

	nav.menu > .menu-item:hover > .submenu {
		opacity: 1;
		display: flex;
		z-index: 1;
		overflow: hidden;
		top: 58px;
		transition: opacity 0.25s ease-in-out, top 0s linear 0s;
	}
	nav.menu > .menu-item::before,
	nav.menu > a::before {
		content: '';
		position: absolute;
		top: 47px;
		width: 0px;
		border-bottom: 2px solid #1f5caa;
		transition: width 0.5s ease-in;
	}
	nav.menu > .menu-item:hover::before,
	nav.menu > a:hover::before {
		width: 100px;

	}
	nav.menu > .menu-item > .submenu a:hover {
		background-color: #2f8aff;
	}
	nav.menu > .menu-item > .submenu a+a {
		border-top: 1px solid #102e55;
	}
}

@media print {
	header {
		display: none;
	}
	body {
		background: unset;
	}
	hr {
		border-width: 1px;
		border-color: unset;
	}
}