/* ============================================================================= */
/* Bootstrap navigation menu */
/* ============================================================================= */

/* Default display for banner */
/* The vw attribute will enable correct centering regardless of vertical scrollbar appearing */
.msgame-banner {
	position: fixed;
	min-height: 80px;
	background-image: url('../image/background-header.jpg');
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	width:100vw;
}

/* Default display for navbar under banner */
.msgame-navbar {
  position: fixed !important;
  top: 80px;
  right: 0;
  left: 0;
  z-index: 1030;
}

/* Default display for content under navbar */
.msgame-content {
	position:relative;
	padding-top:130px;
	font-size:small;
}

/* Make dropdowns appear on hover for large screens */
@media all and (min-width: 992px) {
	.navbar .nav-item .dropdown-menu { display: none; }
	.navbar .nav-item:hover .nav-link { color: #fff;  }
	.navbar .nav-item:hover .dropdown-menu { display: block; }
	.navbar .nav-item .dropdown-menu { margin-top:0; }
}	

/* Remove header to save space on mobile phones */
@media all and (max-height: 600px), all and (max-width: 600px) {
	.msgame-banner { display:none; }
	.msgame-navbar { top: 0; }
	.msgame-content {	padding-top:75px; }
}

/* ============================================================================= */
/* Main site standard page content */
/* ============================================================================= */

/* Justify text in paragraphs */
p {
  text-align: justify;
  text-justify: inter-word;
}

/* Table cell alignment */
td {
    vertical-align: top;
}

/* Quotes in articles */
.msgame-quote {
	display: block;
	font-size: 90%;
	width: 90%;
	margin: 0 auto;	
}	

/* Images in body */
.msgame-image-right-div {
	min-width: 15%;	
	max-width: 50%;
	float: right;		
	margin-left: 25px;	
	margin-top: 10px;
	margin-bottom: 10px;		
	clear:right;
}
.msgame-image-right {
	width: 100%;
	max-width: 500px;
	max-height: 500px;
	border: 1px solid grey;
}
.msgame-image-left-div {
	min-width: 15%;	
	max-width: 50%;
	float: left;		
	margin-right: 25px;	
	margin-top: 10px;	
	margin-bottom: 10px;		
	clear:left;	
}
.msgame-image-left {
	width: 100%;
	max-width: 500px;
	max-height: 500px;
	border: 1px solid grey;
}
.msgame-image-center-div {
	display: block;
	width: 100%;
	max-width: 600px;	
	max-height: 600px;		
	margin-top: 10px;	
	margin-bottom: 10px;	
	margin-left: auto;
	margin-right: auto;	
	text-align: center;
}
.msgame-image-center {
	max-width: inherit;	
	max-height: inherit;	
}
.msgame-image-caption {
	max-width: 90%;
    text-align: center;
	margin-right: auto;
	margin-left: auto;
	font-size: 90%;
    color: #6c757d;
}

/* References in history pages */
.msgame-reference-id {
    width: 25px;
}

/* Header for archived website, articles, files pages and research pages */
.msgame-list-h5 {
	display: inline;	
	padding: 0px;
}
.msgame-list-h5-tagline {
	font-size:12px;	
}

/* On mobiles center images */
@media all and (max-width: 768px) {
.msgame-image-right-div {
	float: unset;
	width: 100%;
	max-width: unset;
	max-height: unset;
	margin-left: unset;		
	clear: both;	
}
.msgame-image-left-div {
	float: unset;
	width: 100%;
	max-width: unset;
	max-height: unset;
	margin-right: unset;		
	clear: both;	
}
.msgame-image-center-div {
	width: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0 auto;
	clear: both;	
}
}




/* ============================================================================= */
/* Login form */
/* ============================================================================= */

/* Login form */
.login-form {
    width: 400px;
    margin: 10px auto;
}
.login-form form {        
    margin-bottom: 15px;
    /* background: #f7f7f7; */
    /* box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); */
    padding: 30px;
}
.login-btn {
    font-size: 15px;
    font-weight: bold;
  	min-height: 40px;
}  


/* ============================================================================= */
/* Bootstrap modal carousel per modal-carousel.php */
/* ============================================================================= */

/* Image gallery in body */
.msgame-thumbnail {
	width: 200px;
	height: 200px;
	object-fit: contain;	
	display: block;
	margin-top: 10px;		
	margin-left: auto;
	margin-right: auto;
}
.msgame-thumbnail-caption {
	width: 200px;	
	margin-bottom: 10px;		
	margin-left: auto;
	margin-right: auto;	
	text-align: center;
	font-size: 90%;
    color: #6c757d;		
}

/* CSS for bootstrap modal with previous and next buttons */
.msgame-modal-image-div {
	display:inline-block;
	max-width:80%;
}
.msgame-modal-image {
	min-width: 75%;
	max-width:100%;
	max-height:500px;
	border: 1px solid #62676b;
}	
.msgame-arrow {
	color: lightgrey;
	text-decoration: none;
}
.msgame-arrow:hover {
	color: white;
	text-decoration: none;
}

/* On small mobiles adjust modal image when viewed sideways */
@media all and (max-height: 400px) {
.msgame-modal-image {
	max-width:100%;
	max-height:225px;
}
}


/* ============================================================================= */
/* Bootstrap modal for video player per header.php */
/* ============================================================================= */
.video-link {
	display: none;
	position: absolute;
	margin-top: 135px;
	width: 100%;
}
.video-stage {
	display: none;
	position: absolute;
	overflow: hidden;
	margin-top: 160px;
	background-color: rgb(111 107 107);
}

/* On mobile phones the navbar is sticky and banner removed, so adjust location of video player */
@media all and (max-height: 600px), all and (max-width: 600px) {
	.video-link {
		display: none;
		position: absolute;
		margin-top: 0px;
		width: 100%;
	}
	.video-stage {
		display: none;
		position: absolute;
		overflow-x: auto;
		overflow-y: scroll;		
		margin-top: 60px;
		background-color: rgb(111 107 107);
	}
}