/* Common style */

/* Import fonts */
@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
/*@font-face {
  font-family: vcr-osd-mono;
  src: url(/sources/vcr-osd-mono.ttf);
  }
*/

/* Color themes */
.theme-light {
  --color-background: #ffffff;
  --color-font: #24292f;
  --color-sidenav: #eee;
  --color-sidenav-hover: #aaa;
  --color-sidenav-font: #111;
  --color-header: #000; 
  --color-footer: #57606a;
}
.theme-dark {
  --color-background: #0d1117;
  --color-font: #c9d1d9;
  --color-sidenav: #161b22;
  --color-sidenav-hover: #7a7b7c;
  --color-sidenav-font: #f0f6fc;
  --color-header: #fff;
  --color-footer: #8b949e;
}

/* Footer on bottom of the page */
html, body {
  background-color: var(--color-background);
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

body {
  width: 100%;
  height: 100%;
  display: table;
}

main {
  display: table-row;
  height: 100%;
}

footer {
  font-size: 0.8rem;
  color: var(--color-footer);
}

/* The side navigation menu */
#sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 2; /* Stay on top of overlay layer */
  top: 0;
  left: 0;
  background-color: var(--color-sidenav);
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
#sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: var(--color-sidenav-font);
  display: block;
  transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
#sidenav a:hover, a:active {
  color: var(--color-sidenav-hover);
}

/* Position and style the close button */
nav #closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 50px;
  margin-left: 50px;
}

/* Night mode */
#themeSwitcher {
  width: 30px;
  height: 30px;
  padding: 8px 8px 8px 32px;
  fill: none;
  stroke: var(--color-sidenav-font);
  stroke-width: 1px;
  stroke-linejoin: miter;
  transition: 0.3s;
}

#themeSwitcher:hover {
  fill: none;
  stroke: var(--color-sidenav-hover);
  stroke-width: 1px;
  stroke-linejoin: miter;
  transition: 0.3s;
}

/* Openbtn and rookiebwoy logo in the same line */
header {
  display: inline-block;
  height: 40px;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
}

#rookiebwoyHeaderLogo {
  width: 195px;
  height: 40px;
  float: right;
  margin-left: auto;
  padding: 0px 15px 15px 15px;
  fill: var(--color-header);
}

#openbtn {
  width: 30px;
  height: 100%;
  padding: 15px 15px 15px 15px;
  font-size: 36px;
  text-decoration: none;
  color: var(--color-header);
  transition: 0.3s;
}

#openbtn:hover, #openbtn:active {
  color: var(--color-sidenav-hover);
}

/* Footer style */
footer {
  text-align: center;
  opacity: 1; /* Change opacity of the footer text */
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
main {
  transition: margin-left .5s;
  padding: 20px;
}

/* Style the overlay layer */
#overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 1; /* Specify a stack order in case you're using a different order for other elements */
  /*cursor: not-allowed; /* Add a pointer on hover */
}

#redBanner {
  background-color: #ec273f;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 5px;
  margin-top: 0;
}



#redBanner a {
  text-decoration: underline;
  color: #ffffff;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  #sidenav {padding-top: 15px;}
  #sidenav a {font-size: 18px;}
  #themeSwitcher {width: 20px; height: 20px;}
} 

/* --- Cookies --- */
#cookieConsentContainer {
	z-index: 10;
	width: 300px;
	min-height: 20px;
	box-sizing: border-box;
	padding: 5px 25px 5px 25px;
	background: var(--color-background);
	overflow: hidden;
	position: fixed;
  bottom: 35px;                       /* keep the footer visible */
	left: 35px;
	display: none;
  border: 2px solid var(--color-font);
  outline: 5px solid var(--color-background);
}

#cookieDesc {
	margin: 0;
	padding: 0;
	color: var(--color-font);
	font-size: 12px;
	line-height: 18px;
	display: block;
	margin-top: 10px;
	text-align: justify;
}

#cookieLink a {
	float: left;
	display: block;
	color: var(--color-font);
	font-size: 12px;
	padding: 10px 0px;
	margin-top: 5px;
	margin-left: 30px;
	text-align: left;
	text-decoration: underline;
}

#cookieButton a {
	float: right;
	display: block;
	color: var(--color-background);     /* Inverted colors for button */
	font-size: 12px;
	font-weight: bold;
	margin-top: 5px;
	margin-right: 30px;
	background: var(--color-font);      /* Inverted colors for button */
	box-sizing: content-box; 
	padding: 10px 15px;
	text-align: center;
	text-decoration: none;
	transition: background 0.3s;
}

#cookieButton a:hover { 
	cursor: pointer;
  opacity: 0.7;
}

@media screen and (max-width: 450px) {
	#cookieConsentContainer {
		bottom: 35px !important;          /* keep the footer visible */
		left: 7px !important;
		width: calc(100vw - 14px) !important;
		padding: 5px 20px 8px 20px;
	}
}
/* --- End of cookies --- */