/* Box sizing rules */
*,*::before,*::after {
	box-sizing: border-box;
}
/* Remove default margin */
body,h1,h2,h3,h4,p,figure,blockquote,dl,dd {
	margin: 0;
}
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],ol[role='list'] {
	list-style: none;
}
/* Set core root defaults */
html:focus-within {
	scroll-behavior: smooth;
}
/* Set core body defaults */
body {
	min-height: 100vh;
	text-rendering: optimizeSpeed;
	line-height: 1.5;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
	text-decoration-skip-ink: auto;
}
/* Make images easier to work with */
img,picture {
	max-width: 100%;
	display: block;
}
/* Inherit fonts for inputs and buttons */
input,button,textarea,select {
	font: inherit;
}
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}
	*,*::before,*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
/* Above is code to clear CSS weirdness*/
::-webkit-scrollbar{
	width: 2vw;
	max-width: 1em;
}
::-webkit-scrollbar-thumb{
	border-radius: 1em;
}
a:link{
	color: grey;
}
body, html{
	height: 100%;
	margin: 0;
}
body {
	display: flex;
	flex-direction: column;
	font-family: sans-serif;
	transition: all 0.5s;
	transition-timing-function: ease-out;
}
button {
	cursor: pointer;
	transition: all 0.5s;
	transition-timing-function: ease-out;
}
.tip {
	position: relative;
	border-bottom: 2px dotted;
	display: inline-block;
}
.tip .tiptext {
	display: none;
	width: 20em;
	padding: 10px 10px;
	/* Position the tooltip */
	position: absolute;
	z-index: 40;
	top: 100%;
	left: -7.5em;
}
.tip:hover .tiptext {
	display: block;
	overflow: visible;
	z-index: 1;
}
#morphoSnake{
	min-width: 5em;
	width: 50%;
	max-width: 15em;
	height: auto;
	margin: auto;
}
#sidenav{
	display: inline-flex;
	flex-shrink: 1;
	position: absolute;
	height: 100%;
	max-width: 100%;
	overflow: hidden;
	z-index: 5;
}
#slider{
	min-width: 1em;
	width: 3vh;
	max-width: 1.5em;
	padding: 0;
	border: transparent;
	flex-shrink: 1;
	transition: all 0.5s ease-out;
}
#info{
	height: 100%;
	width: 0;
	flex-shrink: 1;
	opacity: 0.5;
	overflow: hidden;
	transition: all 0.5s ease-out;
}
#info.opened{
	opacity: 1;
	width: 30em;
	max-width: 100%;
	background-color: rgba(0, 0, 10, 0.95);
	overflow: auto;
}
.infoButton {
  font-size: 1.5em;
	background-color: transparent;
	width: 100%;
	border: transparent;
	text-align: left;
  padding: 0.2em;
}
.infoContent {
	max-height: 0;
	visibility:hidden;
	overflow: hidden;
	transition: all 0.4s ease-out;
  padding: 0 1em;
}
.infoContent.opened{
  padding: 1em;
	overflow: auto;
	visibility: unset;
	max-height: 25em;
}
.warning{
	text-align: center;
}
.infoExtreme{
	margin: auto;
	display: flex;
	flex-wrap: wrap-reverse;
}
.infoExtreme button{
  font-size: 1.5em;
	flex-grow: 1;
}
#morphodice{
	position: relative;
	display: flex;
	flex-direction: row;
	height: 100%;
	flex-grow: 1;
	overflow: auto;
}
.gamesection{
  padding-left: clamp(1.2em,3.5vh,1.7em);
  padding-right: 0.1em;
	height: 100%;
	overflow: auto;
  padding-bottom: 10%;
}
.section{
	margin-bottom: 1%;
}
input[type=number]{
  min-width: 2em;
  width: 4vmax;
	max-width: 3em;
}
.footer{
	width: 100%;
	text-align: center;
	z-index: 10;
	flex-shrink: 1;
	position: relative;
  font-size: max(1.5em,1.5vmax);
}
#rollturnbut{
	position: absolute;
	width: auto;
	right: 2.5vw;
	bottom: 135%;
	border: transparent;
	height: max-content;
	border-radius: 0.5em;
	padding: 0.5em;
	opacity: 0.9;
  font-size: min(3vmax, 1.5em);
}
#rollturnbut:hover{
	opacity: 1;
}
.collapsebutton{
	position: fixed;
	right: 3vmin;
	top: 0.2em;
	display: flex;
	flex-direction: row;
  font-size: min(3vmax, 2em);
}
.collapsebutton button{
	border: transparent;
	border-radius: 0.5em;
	opacity: 0.75;
}
.collapsebutton button:hover{
	opacity: 1;
}
#openAll{
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}
#collapseAll{
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.intro{
	text-align: center;
	padding: 0.5em;
	border-bottom-left-radius: 1em;
	border-bottom-right-radius: 1em;
}
.intro h1{
  font-size: max(1.5vmax, 2.5em);
}
.headButton {
  font-size: max(1vmax,1.5em);
	text-align: center;
	width: 100%;
	border-radius: 4em;
	transition: all 0.1s;
}
.headButton.active {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}
.tablebutton{
	display: flex;
	flex-wrap: wrap-reverse;
}
.tablebutton button{
	border-radius: 0.2em;
	float: left;
  padding: 0 1em;
	flex-grow: 1;
}
button.roller{
	flex-grow: 6;
}
.tablecontent{
	height: 0;
	visibility: hidden;
	overflow: hidden;
	transition: all 0.5s ease-out;
}
.tablecontent.opened{
	visibility:visible;
	height: fit-content;
	overflow: visible;
}
table{
	margin: auto;
	width: 100%;
	border-collapse: collapse;
}
td, th{
  padding: 2px;
}
td{
  font-size: 14px;
}
button.box {
	cursor: default;
	width: 100%;
	height: 1em;
	border-radius: 4em;
	border-top-right-radius: 0;
	border-top-left-radius: 0;
}

#lightswitch{
	width: fit-content;
	height: fit-content;
	margin: auto;
	padding: 1% 0;
}

/* The switch - the box around the slider */
.toggleswitch {
	position: relative;
	display: inline-block;
	width: 4em;
	height: 2em;
}
  
  /* Hide default HTML checkbox */
  .toggleswitch input {
	opacity: 0;
	width: 0;
	height: 0;
  }
  
  /* The slider */
  .toggleslider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s;
  }
  
  .toggleslider:before {
	position: absolute;
	content: "";
	height: 1.5em;
	width: 1.5em;
	left: 0.25em;
	bottom: 0.25em;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
  }
  
  input:checked + .toggleslider {
	background-color: #238620;
  }
  
  input:focus + .toggleslider {
	box-shadow: 0 0 1px #238620;
  }
  
  input:checked + .toggleslider:before {
	-webkit-transform: translateX(2em);
	-ms-transform: translateX(2em);
	transform: translateX(2em);
  }
  
  /* Rounded sliders */
  .toggleslider.round {
	border-radius: 1em;
  }
  .toggleslider.round:before {
	border-radius: 50%;
  }