body {
	margin:0px;
	padding:0px;
	font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
	min-height:100vh;
}

a {
	color:rgb(48, 48, 202);
	text-decoration:none;
}

a:hover {
	text-decoration:underline;
}


/* ****************************************************************** */
/* ********************************NAV BAR ************************** */
nav {
	min-height:50px;
    background-color: #0b5ea5;
    overflow: hidden;
	-webkit-user-select: none; /* Safari */        
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* IE10+/Edge */
	user-select: none; /* Standard */

}
nav .logo {
    width: 94px;
    height: 58px;
    position: absolute;
    top: 0;
    left: 0;
}
nav ul {
	margin:0;
	padding:0;
	display:block;
    padding-left: 120px;
}
nav a {
	color:white;
}

nav a:hover {
	text-decoration:none;
}

nav li, nav .burger {
	float:left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
	list-style:none;
	cursor:pointer;
}

.login-user {
	float:right;
}

.login-user a {
	display:none;
}

nav li:hover, nav li.active{
    background-color: #d5e4ff;
    color: black;
}

nav li:hover a, nav li.active a {
	color:black;
}

nav #burger-checkbox {
	display:none;
}

/* Hide the link that should open and close the topnav on small screens */
nav .burger  {
    display: none;
	text-align:center
}


/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
	nav .burger {
		display:block;
	}
	nav li, nav li.login-user, nav .burger {
		float:none;
	}
	.login-user span {
		display:none!important;
	}
	.login-user a {
		display:inline!important;
	}
	nav ul {
		display:none;
        padding-left:0;
	}
	nav #burger-checkbox:checked+ul {
		display: block;
	}

}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  } 
} 

/* *****************************Footer************************* */
.footer {
    flex-shrink: 0;
    color: #fff;
    background-color: #333;
}

.logo-container {
    background-color:#eeefef;
    color:#000;
    display: flex;
    gap: 1rem;
}

.logo-container img {
    height: 55px;
}
/* *******************************Page************************** */
.page {
    max-width:800px;
    padding:5px;
    margin:0 auto;
    text-align: justify;
}
.page h1 {
    margin-bottom: 15px;
}
.page p {
    text-align: justify;
}
/* ********************************Login page ************************** */
.login-form {
	width:400px;
	max-width:100%;
	margin:0 auto;
	border:solid 1px #dee2e6;
	border-radius:10px;
	padding:10px;
}

/*******************************Analyse table page************************** */
.analyse-table td, .analyse-table th {
    vertical-align: middle;
}
.analyse-table thead {
    background-color: #b3c9fb;
}

.analyse-table tbody tr:nth-of-type(odd) {
    background-color: #ecf4ff;
  }


/***********************Analyse page************************** */
.container-fluid:has(>.box-container) {
    max-height: 100vh;
    display: flex;
    flex-direction: column;
}
fhr-viewer {
    flex-shrink: 0;
}
.context {
    padding:5px;
    height:48px;
    flex-shrink: 0;
}

.context a.btn  {
    margin-right:4px;
    padding:2px 4px;
}

.context .btn-group {
    margin-right: 4px;
}

.context .btn-group .btn {
    padding: 2px 4px;

}

.box-container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    flex-grow: 1;
    overflow-x: auto;
}

.box-container label {
    font-size:0.8em;
}

.box-container h5 {
    text-align: center;
    margin-bottom: 0;
    font-weight: bold;
    font-size: 1em;
    width:100%;
}

.box-container .box {
    padding: 5px;
    background-color: #fff;
    transition: opacity 0.1s;
    opacity: 0.3;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid #6e6e6e;
}
.box-container .box.double-width, .box-container .box.triple-width {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: flex-start;
}
.box-container .box.double-width, .box-container .box.increased-width {
    grid-column-end: span 2;
}
.box-container .box.triple-width {
    grid-column-end: span 3;
}

.box-container .button-category {
    border:solid 1px;
    border-radius: 10px;
    padding:2px 5px;
}

.box-container .box.double-width .button-category, .box-container .box.triple-width .button-category {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width:100%;
}

.box-container .category-title {
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
    width:100%;
}


.box-container .box div.button-container {
    border-radius: 10px;  
    margin: 0;
    width:100%;
}

.box-container .box.double-width .button-container, 
.box-container .box.double-width .category-title,
.box-container .box.triple-width .button-container, 
.box-container .box.triple-width .category-title {
    width:fit-content;
    margin:0 1px 1px 1px;
}

.box-container .btn:not(.btn-chan-select) {
    width:100%;
    padding: 1px 8px;
    color: #000;
    border: 0px;
    border-radius: 10px;
    cursor: pointer;
}
.box-container .btn-chan-select {
    padding: 1px 8px;
}

.box-container label.btn:has(>input:checked) {
    font-weight: bold;
    border:2px solid;
}

.box-container .box>div:has(>.btn>input:checked) {
    margin:0
}

.box-container .box.selected {
    opacity: 1;
    background-color: #eaedf3;
}

.box-container .box .legend {
    display: none;
}
.box-container .box.selected .legend {
    display: block;
    opacity: 50%;
}

.box-container .box.selected .legend {
    display: block;
    opacity: 80%;
}

.box-container .legend-title {
    text-align:center;
    font-weight: bold;
}

.comment-history-content {
    font-size:0.8em;
}

/*

@media screen and (min-width: 1400px) {
    .box-container .box {
        width: 16.666%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1399px) {
    .box-container .box {
        width: 33.333%;
    }   
}

@media screen and (min-width: 576px) and (max-width: 767px) {
    .box-container .box {
        width: 50%;
    }
}

@media screen and (max-width: 575px) {
    .box-container .box {
        width: 100%;
    }
}*/