* {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	font-family: 'Press Start 2P', cursive;
	color: white;
	text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
}

html.dark-text {
	color: rgb(42, 42, 42);
	text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
}

body {
	position: relative;
	margin: 0;
	padding: 0;
}

header h1 {
	font-size: 1.5rem;
	line-height: 2lh;
}

footer {
	margin-top: 2rem;
}

#root {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	height: 100%;
}

#page {
	margin: 0;
	padding: 2rem;
	min-height: 100vh;
	height: 100%;

	background-color: rgba(0, 0, 0, 0.2);

	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	
}

#page>* {
	flex: 0 1 auto;
	max-width: 37.5rem;
}

h1 {

      font-size: 30px;

      text-shadow: 2px 2px #484747;

    }

main {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-direction: column;
}

main>* {
	flex: 0 1 100%;
}


nav#mini-nav {
	max-width: 26rem;
	margin: 3rem 0;

	display: flex;
	justify-content: space-between;
	flex-flow: row wrap;
	gap: 1rem 1rem;
}

nav#mini-nav>.button {
	max-width: 100%;
	flex: 1 1 auto;
	border-radius: 0.5rem;
	background-color: rgba(0, 0, 0, 0.4);
	padding: 1rem;
	text-align: center;
}

nav#mini-nav>a.button>img {
	max-width: 100%;
	vertical-align: middle;
	animation: shadowPopDown 0.1s forwards;
}

nav#mini-nav>.button.fill {
	flex: 0 1 100%;
}

@font-face {
  font-family: 'MinecraftiaRegular';
  src: url('assets/fonts/Minecraftia-Regular.ttf'); 
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  display: none;
  opacity: 0;
  width: max-content;
  background-color: #727171;
  color: #ffffff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 2px;
  font-family: 'MinecraftiaRegular' sans-serif;
  font-size: 11px;
  position: absolute;
  z-index: 1;
  bottom: -60%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  box-shadow: 0 0 2px #666565;
  white-space: nowrap;

  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  pointer-events: none;
}

.tooltip:hover .tooltiptext {
  display: inline-block; 
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
 
#server-details {
	cursor: pointer;
	position: relative;
}

#server-address-copied {
	pointer-events: none !important;
	position: absolute;
	bottom: 150%;
	z-index: 999;
	opacity: 0;

	padding: 1rem;
	border-radius: 0.5rem;
	background-color: rgba(255, 255, 255, 1);
	color: rgb(42, 42, 42);
	text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.server-address-copied #server-address-copied {
	animation: inOut 2.2s ease-in-out;
}

#background-video {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -9;
}

#toggle-mode-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s;
}

#toggle-mode-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

#toggle-mode-btn img {
  width: 44px;
  height: 44px;
  transition: filter 0.3s ease;
}

.c {
	text-align: center;
}

.dspaced {
	line-height: 1.5lh;
}

.badge {
	position: absolute;
	font-size: 0.5rem;
	line-height: 0.8lh;
	padding: 0 1em;
	border-radius: 0.2em;
	background-color: rgba(255, 255, 255, 1);
	color: rgb(42, 42, 42);
	text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
	transition: all 0.2s ease-in-out;
}

.badge.top {
	top: -0.5lh;
}

.badge.bottom {
	bottom: -0.5lh;
}

.badge.left {
	left: -1rem;
}

.badge.right {
	right: -1rem;
}

.badge.right.skew {
	transform: rotate(6deg);
}

.badge.left.skew {
	transform: rotate(-4deg);
}

.hover-effect:hover>.badge.right.skew {
	transform: rotate(5deg);
}

.hover-effect:hover>.badge.left.skew {
	transform: rotate(-3deg);
}

.hover-effect:hover>.badge.top {
	top: -0.7lh;
}

.hover-effect:hover>.badge {
	box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

a.hover-effect:hover>img {
	animation: shadowPopUp 0.1s forwards !important;
}

a,
a:active,
a:hover,
a:visited {
	text-decoration: underline;
	color: rgb(157, 184, 239);
}

nav a,
nav a:active,
nav a:hover,
nav a:visited {
	text-decoration: none;
	color: white;
}

/* animations */

@keyframes shadowPopUp {
	from {
		filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.5));
		transform: scale(1);
	}

	to {
		filter: drop-shadow(4px 8px 4px rgba(0, 0, 0, 0.3));
		transform: scale(1.1);
	}
}

@keyframes shadowPopDown {
	from {
		filter: drop-shadow(4px 8px 4px rgba(0, 0, 0, 0.3));
		transform: scale(1.1);
	}

	to {
		filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.5));
		transform: scale(1);
	}
}

@keyframes inOut {
	0% {
		opacity: 0;
		transform: scale(0);
	}

	5%,
	95% {
		opacity: 1;
		transform: scale(1);
	}

	100% {
		opacity: 0;
		transform: scale(0);
	}
}

@keyframes fadeInUp {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

html.intro-animation .intro-fade-in-up {
	animation: fadeInUp 1s ease-out;
	opacity: 0;
	animation-fill-mode: forwards;
}

.delay-1 {
	animation-delay: 0.1s !important;
}

.delay-2 {
	animation-delay: 0.2s !important;
}

.delay-3 {
	animation-delay: 0.3s !important;
}

.delay-4 {
	animation-delay: 0.4s !important;
}

.delay-5 {
	animation-delay: 0.5s !important;
}

/* responsive changes Mobile V1.1 dont work on firefox for some reason */

/* 600px */
@media only screen and (max-width: 600px) {
  html {
    font-size: 16px;
  }
}

/* 400px  */
@media only screen and (max-width: 400px) {
  html {
    font-size: 12px; 
  }
}