@font-face {
	font-family: Teko;
	/*src: url('Teko-VariableFont_wght.ttf');*/
	src: url('../../ressources/font/Teko/Teko-VariableFont_wght.ttf');
}
@font-face {
	font-family: Stereofunk;
	src: url('../../ressources/font/Stereofunk/Stereofunk.ttf');
}
@font-face {
	font-family: BebasNeue;
	src: url('../../ressources/font/BebasNeue/BebasNeue-Regular.ttf');
}

@keyframes breathe {
	to {transform: scale(1.1)}
}
@keyframes fadeInOpacity {
	0% {opacity: 0}
	to {opacity: 1}
}

@keyframes moveLeft {
	0%, 100% {
		transform: translateX(0) ease;
		opacity: 0;
	} 70% {
		opacity: 1;
	} to {
		transform: translateX(-30%);
		opacity: 0;
	}
}
@keyframes moveRight {
	0%, 100% {
		transform: translateX(0) ease;
		opacity: 0;
	} 70% {
		opacity: 1;
	} to {
		transform: translateX(30%);
		opacity: 0;
	}
}

body {
	user-select: none;

	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	background-position: center;
}

/* ---Screen Overlay--------------- */
/* (Quest,Low-food,Achievement) */
#ScreenOverlayCont {
	pointer-events: none;

	font-family: 'Arial', sans-serif;
	position: fixed;
	color: white;

	top: 0;
	left: 26vh;
	right: 0;
	bottom: 0;
	z-index: 10000;
	transition: left 0.3s ease;
}
#ui-bar.stowed #ScreenOverlayCont {
	left: 0;
}



#ScreenOverlayContPopup {
	pointer-events: none;

	font-family: 'Arial', sans-serif;
	font-size: 1.2vh;
	position: fixed;
	color: white;
	top: 0;
	left: 26vh;
	right: 0;
	bottom: 0;

	z-index: 10000;
	transition: left 0.3s ease;
}
#ui-bar.stowed #ScreenOverlayContPopup {
	left: 0;
}

.ScreenOverlayPopUp {
	pointer-events: none; /* Disable click */
	position: absolute;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;

	justify-content: center; align-items: center;

	transition: opacity 0.5s;
}
.ScreenOverlayPopUpDownRight {
	justify-content: flex-end; align-items: flex-end;
}
.ScreenOverlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgba(0, 0, 0, 0.8);
	z-index: 100;
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	font-size: 10vh;

	visibility: hidden;
	pointer-events: none;
	opacity: 0;

	transition: opacity 0.5s ease-in-out;
}
.ScreenOverlayActiveVisibility {
	visibility: visible;
}
.ScreenOverlayActiveOpacity {
	pointer-events: all;
	opacity: 1;
}
.ScreenOverlayExitButtonCont {
	position: absolute;
	bottom: 2vh;

	display: flex;
	justify-content: center;
}
.ScreenOverlayExitButton {
	font-weight: bold;
	font-size: 4vh;

	/* position: absolute; */
	/* bottom: 2vh; */
	padding: 1vh 5vh;
	margin: 2vh;
	border: solid 0.5vh brown;
	border-radius: 2vh;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;

	transition: all 0.15s ease-in-out;
}
.ScreenOverlayExitButton:hover {
	background: rgba(0, 0, 0, 0.75);
	transform: translate(0.2vh, -0.2vh);
}
#ScreenOverlayContPerma {
	pointer-events: none;
	font-size: 1.2vh;

	position: fixed;
	font-family: 'Arial', sans-serif;
	position: fixed;
	color: white;
	top: 0;
	left: 26vh;
	right: 0;
	bottom: 0;

	z-index: 500;
	transition: left 0.3s ease;
}
#ui-bar.stowed #ScreenOverlayContPerma {
	left: 0;
}

#ScreenOverlayContPerma > #overlayMapButton {
	pointer-events: all;
	cursor: pointer;
	position: absolute;
	bottom: 0;
	right: 0;
	margin: 2em 4em;
	border-radius: 5em;
	border-top-left-radius: 9em;
	z-index: 100;
	display: flex;
	justify-content: center;
	transition: transform 0.15s ease-in-out;
}
#ScreenOverlayContPerma > #overlayMapButton:hover {
	transform: scale(1.05);
}
#ScreenOverlayContPerma > #overlayMapButton > img {
	height: 10em;
	filter: drop-shadow(0 0 0.3em rgb(0, 0, 0))
		drop-shadow(0 0 0.3em rgb(0, 0, 0))
		drop-shadow(0 0 0.3em rgb(0, 0, 0));
}

#ScreenOverlayContPerma > #overlayAngelaButton {
	pointer-events: all;
	cursor: pointer;
	position: absolute;
	top: 0;
	right: 0;
	margin: 2em 4em;
	border-radius: 50%;
	z-index: 100;
	display: flex;
	justify-content: center;
	transition: transform 0.15s ease-in-out;
}
#ScreenOverlayContPerma > #overlayAngelaButton:hover {
	transform: scale(1.05);
}
#ScreenOverlayContPerma > #overlayAngelaButton > img {
	height: 10em;
	filter: drop-shadow(0 0 0.3em rgb(0, 0, 0))
		drop-shadow(0 0 0.3em rgb(0, 0, 0))
		drop-shadow(0 0 0.3em rgb(0, 0, 0));
}

#ScreenOverlayContPerma > #overlayFilter {
	display: none; /* also written in the html */
	pointer-events: none;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(60, 0, 132, 0.1);
}

#jumpScare {
	pointer-events: none;
	position: absolute;
	z-index: 123456789;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
}

#ScreenOverlayContPermaOver {
	pointer-events: none;

	font-family: 'Arial', sans-serif;
	position: fixed;
	color: white;

	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
}

#ScreenOverlayContPermaOver > #pauWarning {
	display: none;
	pointer-events: all;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);

	/* display: flex; */
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#ScreenOverlayContPermaOver > #pauWarning .pauText {
	font-size: 5vh;
	color: white;
	padding: 0.1em 1em;
	position: relative;

	background: linear-gradient(45deg, white 10%, transparent 10%, transparent 90%, white 90%);
}

#ScreenOverlayContPermaOver > #pauWarning .art {
	font-family: Mona, "IPA モナー Pゴシック", IPAMonaPGothic, "IPA mona PGothic", "IPA MONAPGOTHIC", "MS PGothic AA", "mona-gothic-jisx0208.1990-0", "MS PGothic", "ＭＳ Ｐゴシック", Saitamaar, sans-serif;
	font-weight: normal;
	line-height: normal;
	font-size: 1.2em;
	text-align: left;
}




/* ---MouseFollower--------------- */
#mouseFollowerCont {
	opacity: 0;

	font-family: 'Arial', sans-serif;
	font-size: 1.6vh;
	font-weight: bold;
	position: fixed;
	color: rgb(255, 255, 255);
	top: 50vh;
	left: 50vh;
	z-index: 3000;
	pointer-events: none;
	border-style: solid;
	border-color: transparent;
	border-width: 0 0.2vh 0 0.8vh;

	display: flex;
	justify-content: center;
	align-items: center;
	transform: translateY(-50%);
	filter:
		drop-shadow(-0.4vh 0 0 rgb(25, 27, 39))
		drop-shadow(0.4vh 0 0 rgb(25, 27, 39))
		drop-shadow(0 0 0.5vh rgba(255, 255, 255, 0.543));

	transition: opacity 0.2s ease-in-out;
}
#mouseFollowerCont.reverse {
	flex-direction: row-reverse;
}
#mouseFollowerCont > arrow {
	width: 0;
	height: 0;
	border: solid;
	border-color: transparent rgb(55, 53, 75) transparent transparent;
	border-width: 2vh 2vh 2vh 0;
	transform: translateX(2px); /*prevent gap*/
}
#mouseFollowerCont.reverse > arrow {
	border-color: transparent transparent transparent rgb(55, 53, 75);
	border-width: 2vh 0 2vh 2vh;
	transform: translateX(-2px);
}
#mouseFollowerCont > div {
	text-align: left;
	background-color: rgb(55, 53, 75);
	border-radius: 1vh;
	min-height: 10vh;
	width: 30vh;
	padding: 0.5em 0.8em;
}
#mouseFollowerCont > div > name {
	display: block;
	font-size: 1.5em;
}
#mouseFollowerCont > div > desc {
	display: block;
}
#mouseFollowerCont > div > hr {
	margin-block-start: 0.1em;
	margin-block-end: 0.3em;
	border-style: solid;
	border-width: 0.1em;
	border-color: rgb(255, 255, 255);
	background-color: rgb(255, 255, 255);
}

/* ---Floating Mouse Notif--------------- */
.floatingMouseNotif {
	position: fixed;
	max-width: 30vh;
	opacity: 0;

	font-size: 2vh;
	font-family: 'Arial', sans-serif;
	color: rgb(255, 255, 255);

	filter:
		drop-shadow(0 0 0.3em rgb(0, 0, 0))
		drop-shadow(0 0 0.3em rgb(0, 0, 0))
		drop-shadow(0 0 0.3em rgb(0, 0, 0));

	animation-name: floatingMouseNotifAnim;
	animation-duration: 3s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: 1;
}
@keyframes floatingMouseNotifAnim {
	0%, 60% {
		opacity: 1;
		transform: translate(0, -0.1em);
	} 30%, 90% {
		opacity: 1;
		transform: translate(0, 0.1em);
	} to {
		opacity: 0;
		transform: translate(0, -3em);
	}
}

/* ---Prologue--------------- */

pguider {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 3; /* aaaah */
	font-size: 2vh;
	width: 3em;
	aspect-ratio: 1;

	box-sizing: border-box;
	overflow: hidden;

	pointer-events: none;
	filter: drop-shadow(0 0.1em 0.2em rgb(0,0,0));
	animation: pguiderAnim 0.6s infinite alternate;
}
@keyframes pguiderAnim {
	0% {transform: translateY(0)}
	to {transform: translateY(-0.2em)}
}
pguider > img {
	width: 100%;
	height: 100%;
}

/* ---Girl Location Marker--------------- */
.GLMS_markerCont {
	position: absolute;

	display: flex;
	flex-wrap: wrap;

	gap: 0.5vh;
}
.GLMS_marker {
	width: 9vh;
	height: 9vh;
	border-radius: 50%;
	/* padding: 0.5vh; */
	padding: 4px;
	display: flex;
	justify-content: center;
	align-items: center;

	box-shadow: 0 1vh 1vh #000000;
}
.GLMS_marker.GLMS_marker_main {
	background-color: var(--GLMS_color);
}
.GLMS_marker.GLMS_marker_transition {
	background-color: #ffd700; /* gold */
}
.GLMS_marker > img {
	width: 100%;
	height: 100%;
	/* object-fit: cover; */ /* pixelate image to much */
	border-radius: 50%;
}

/* ---Random Event Marker--------------- */
.RET_marker {
	height: 9vh;
	padding: 4px;
	display: flex;
	justify-content: center;
	align-items: center;

	filter: drop-shadow(0 0 0.2vh #000000) drop-shadow(0 0 0.5vh #000000);
}
.RET_marker > img {
	height: 100%;
}
.RET_marker[data-type="trust"] > img { /* blue */
	filter: brightness(0) saturate(100%) invert(11%) sepia(93%) saturate(7494%) hue-rotate(243deg) brightness(72%) contrast(129%);
}
.RET_marker[data-type="lust"] > img { /* purple */
	filter: brightness(0) saturate(100%) invert(18%) sepia(96%) saturate(7445%) hue-rotate(285deg) brightness(82%) contrast(113%);
}
.RET_marker[data-type="fight"] > img { /* red */
	filter: brightness(0) saturate(100%) invert(9%) sepia(71%) saturate(5991%) hue-rotate(6deg) brightness(120%) contrast(122%);
}

/* ---Twine overwrite--------------- */
textarea {
	min-width: unset;
}
#ui-bar.stowed ~ #story {
	margin-left: 2.5em;
}
#story {
	margin-left: calc(26vh + 2.5em);
	margin-right: 2.5em;
	transition: margin-left 0.3s ease;
}
#passages {
	max-width: 100vh;
}

.link-internal { /* [[Twine Link]] */
	color: #eee;
	background-image: linear-gradient(to top, rgba(110,30,30,1) 00%, rgba(60,10,10,1) 100%);
	background-size: 150% 150%;
	transition: all 0.25s ease 0s;
	border: 1px solid rgb(60,0,0);
	line-height: normal;
	padding: 0.4em;
	margin: 0.2em;
	border-radius: 0.4em;
	box-shadow: 5px 5px 12px 2px rgb(0 0 0 / 70%);
	min-width: 6em;
	appearance: auto;
	text-align: center;
	display: inline-block;
}
.link-internal:hover {
	color: #FFF;
	text-shadow: 0 -1px 4px #FFF, 0 -2px 10px #FFF;
	text-decoration: none;
	background-position: bottom center;
	transform: translateY(-2px) !important;
}
hr {
	/* ok */ /* display: block; */
	height: unset; /* height: 1px; */
	border: unset; /* border: none; */
	border-top: unset; /* border-top: 1px solid #eee; */
	margin: unset; /* margin: 1em 0; */
	padding: unset;	/* padding: 0; */
}

/* --- Perma Element --------------- */
#permaContFull {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	pointer-events: none;
}

#permaCont {
	position: fixed;
	top: 0;
	left: 26vh;
	right: 0;
	bottom: 0;
	z-index: 1000;
	pointer-events: none;

	transition: left 0.3s ease;
}
#ui-bar.stowed ~ #permaCont {
	left: 0;
}

/* Other ?? */ /*you need to explain it tho*/

/* Main Room */
.MRS_backgroundImagesCont {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.MRS_backgroundImagesCont img,
.MRS_backgroundImagesCont video {
	pointer-events: none;

	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	max-width: unset;

	/* vertical based */
	height: 100%; /* gets overriden by @media */
	width: auto; /* gets overriden by @media */
}

.MRS_backgroundImagesCont div.MRS_hover_title {
	pointer-events: none;

	position: absolute;
	transform: translateX(50%); /* to the right */

	font-family: Arial, sans-serif;
	font-weight: bold;
	font-size: 5vh;
	text-transform: uppercase;
}

.MRS_backgroundImagesCont .MRS_base {
	opacity: 1;
}

.MRS_backgroundImagesCont .MRS_hover,
.MRS_backgroundImagesCont .MRS_hover_2,
.MRS_backgroundImagesCont .MRS_hover_3 {
	opacity: 0;
	transition: opacity 0.5s ease;
}
.MRS_backgroundImagesCont .MRS_clip:hover ~ .MRS_hover,
.MRS_backgroundImagesCont .MRS_clip_2:hover ~ .MRS_hover_2,
.MRS_backgroundImagesCont .MRS_clip_3:hover ~ .MRS_hover_3 {
	opacity: 1;
}

.MRS_backgroundImagesCont .MRS_clip,
.MRS_backgroundImagesCont .MRS_clip_2,
.MRS_backgroundImagesCont .MRS_clip_3 {
	opacity: 0;
	pointer-events: all;

	cursor: pointer;
}

/* put a video as background */
.BackgroundVideo {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100%;
	min-height: 100%;
	max-width: unset;
	pointer-events: none;
}
.bgvid {
	position: fixed;
	left: 0;
	top: 0;
	height: 100%;
	width: 100vw;
	object-fit: fill;
	z-index: -1;
	pointer-events: none;
}



/* hide a scrollbar */
.hideScrollBar {
	scrollbar-width: none;  /* Firefox */
}
.hideScrollBar::-webkit-scrollbar {
	display: none;  /* Safari and Chrome */
}



/* top ui aventure */
#peacewood-container {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding-right: 14vh; /* for the menu button */
}

.peacewood-circle {
	width: 8vh;
	height: 8vh;
	border-radius: 50%;
	background-color: #ccc;
	margin: 0 0.5vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-shadow: 0 0.6vh 0.6vh rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s ease;
	/* border: 0.6vh solid #4CAF50; */
	border-style: solid;
	border-width: 0.6vh;
	border-color: var(--floor-color);
}

.peacewood-circle > img {
	max-width: 60%;
	max-height: 60%;
	filter: var(--floor-color-filter);
}

.peacewood-circle.peacewood-active {
	background-color: #666;
	border-color: var(--floor-color);
}

.peacewood-circle.peacewood-large {
	width: 10vh;
	height: 10vh;
	box-shadow: 0 0px 16px rgba(255, 255, 255, 0.878); /* Adjusted opacity */
	background-color: #666;
}

.peacewood-circle .peacewood-label {
	position: absolute;
	bottom: -3vh;
	left: 50%;
	transform: translateX(-50%);
	font-size: 1.4vh;
	color: #666;
	font-weight: bold;
}

.peacewood-line {
	position: absolute;
	left: 2vh;
	width: 90%;
	height: 0.6vh;
	background-color: var(--floor-color);
	/* z-index: -1; */
}

#finalbattle {
	filter: brightness(0) saturate(100%) invert(93%) sepia(19%) saturate(2646%) hue-rotate(358deg) brightness(101%) contrast(107%);
}

.passage {
	--floor-color: #9a0606; /* fallback */
	--floor-color2: #FFD0D0; /* fallback */
	--floor-color-filter: grayscale(100%); /* fallback */
}

#border-container {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding-right: 14vh; /* for the menu button */
}

.border-circle {
	width: 8vh;
	height: 8vh;
	border-radius: 50%;
	background-color: #ccc;
	margin: 0 0.5vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-shadow: 0 0.6vh 0.6vh rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s ease;
	border: 0.6vh solid var(--floor-color);
}

.border-circle > img {
	max-width: 60%;
	max-height: 60%;
	filter: var(--floor-color-filter);
}

.border-circle.border-active {
	background-color: #666;
	border-color: var(--floor-color);
}

.border-circle.border-large {
	width: 10vh;
	height: 10vh;
	box-shadow: 0 0px 16px rgba(255, 255, 255, 0.878); /* Adjusted opacity */
	background-color: #666;
}

.border-circle .border-label {
	position: absolute;
	bottom: -3vh;
	left: 50%;
	transform: translateX(-50%);
	font-size: 1.4vh;
	color: #666;
	font-weight: bold;
}

.border-line {
	position: absolute;
	left: 2vh;
	width: 90%;
	height: 0.6vh;
	background-color: var(--floor-color);
	/* z-index: -1; */
}

.hidden {
	display: none;
}

/* mixed */
/* .border-line {
	position: absolute;
	top: 50%;
	left: -100vw;
	right: -100vw;
	height: 0.6vh;
	background-color: red;
	z-index: -1;
} */


/* backgrounds */

body.wastelands {
	/*background-image: url('../../ressources/backgrounds/3A.webp');*/
}
body.forest {
	/* background-image: url('../../ressources/backgrounds/2A_1.webp'); */
	background-image: url('../../ressources/backgrounds/2A.webp');
}
body.death {
	background-image: url('../../ressources/backgrounds/SV.webp');
}
body.bedroom-mc {
	background-image: url('../../ressources/backgrounds/1SA_1.webp');
}
body.bedroom-cherie {
	background-image: url('../../ressources/backgrounds/1SC3.webp');
}
body.bedroom-elfie {
	background-image: url('../../ressources/backgrounds/1SE1.webp');
}
body.bedroom-lana {
	background-image: url('../../ressources/backgrounds/1SL_1.webp');
}
body.kitchen {
	background-image: url('../../ressources/backgrounds/1SK.webp');
}
body.bathroom {
	background-image: url('../../ressources/backgrounds/1SB2.webp');
}
body.livingroom {
	background-image: url('../../ressources/backgrounds/1SR.webp');
}
body.storage {
	background-image: url('../../ressources/backgrounds/1B.webp');
}
body.river {
	background-image: url('../../ressources/backgrounds/1R2.webp');
}
body.shed {
	background-image: url('../../ressources/backgrounds/1RS.webp');
}

.big-circular-button {
	width: 30vh;
	height: 30vh;
	background-color: #666;
	border-radius: 50%;
	margin: 2vh 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease-out;

	border-style: solid;
	border-width: 0.7vh;
	border-color: var(--floor-color)
}

.big-circular-button > img.icon4 {
	max-width: 60%;
}

.big-circular-button:hover {
	animation: breathe 1s infinite alternate; /* Breathing animation */
}


/* TUTORIAL */

.tutorial {
	position: relative;
	left: 0;
	right: 0;
	margin: auto;
	width: 50vw;
	display: block;
	z-index: 100;
}

.tutorial > .map {
	display: block;
}
.tutorial > .uihelp {
	display: none;
}
.tutorial > .mechanism {
	display: none;
}
.tutorial > .goals {
	display: none;
}

.tutorial > .enter-button {
    text-align: center;
    padding: 1vw 2vw;
    border: 0.2vw solid #8E0000;
    border-radius: 15px;
    cursor: pointer;
    color: white;
    margin-left: auto;
    transition: background-color 0.3s ease;
    width: 20vw;
    margin-top: -5vh;
    font-size: 1.2vw;
    background-color: #262626;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1000;
}

.containerbox2 {
    background-color: #262626;
    border-radius: 2vw;
    padding: 2.5vw;
    display: grid;
    grid-template-rows: auto repeat(3, 1fr) auto;
    grid-template-columns: repeat(3, 1fr) 10vw;
    height: 75vh;
    gap: 2vw;
    position: relative;
    border: 0.2vw solid #8E0000;
    z-index: 0;
}

.containerbox2 > h1 {
    color: white;
    text-align: center;
    margin-bottom: 1.5vw;
    grid-row: 1;
    grid-column: 1/5;
    font-size: 2vw;
    margin-top: 0;
}

.containerbox2 > .spacerui {
    width: 8vw;
}

.containerbox2 > .textui {
    position: absolute;
    color: white;
    margin-left: 2.7vw;
    margin-right: 13vw;
    margin-top: 17vh;
    height: 52vh;
    overflow-y: auto;
	width: 70%;
}

.containerbox2 > .textui > img.img-ui {
    width: 96%;
    border: 0.2vw solid #8E0000;
}

.containerbox2 > .vertical-line {
	grid-row: 2 / 5;
    grid-column: 4;
    border-left: 0.3vw solid white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5vw 0;
    padding-top: 0;
    padding-bottom: 0;
    z-index: -1;
}

.containerbox2 > .vertical-line > .side-button {
    width: 8vw;
    height: 6vw;
    margin-bottom: 1vh;
    border: 2px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 15px;
    position: relative;
    margin-left: auto;
    cursor: pointer;
    z-index: 1;
    transition: 0.3s ease;
}

.containerbox2 > .vertical-line > .side-button > img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;

	width: 50%;
    height: 70%;
    object-fit: contain;
    filter: invert(8%) sepia(94%) saturate(6363%) hue-rotate(27deg) brightness(93%) contrast(125%);
    padding-top: 10%;
}

.containerbox2 > .vertical-line > .side-button > .button-text {
    color: white;
    text-align: center;
    font-size: 0.8vw;
    margin-top: 0.5vw;
}


/* Forest / Wastelands */

.image-container {
	position: absolute;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20vh;
	aspect-ratio: 1;
    left: 0;
    bottom: 0;
	background-color: #666;
	border-radius: 50%;

	border-style: solid;
	border-width: 0.7vh;
	border-color: var(--floor-color);
}
.image-container > img {
	width: 93%;
	filter: var(--floor-color-filter);
}
.image-container > div {
	position: absolute;
    font-size: 2.3vh;
    color: var(--floor-color2);
	font-weight: bold;
}

.dropdown-rectangle {
	position: absolute;
	top: 100%;
	width: 80%;
	/* margin-top: -10%; */
	height: 0;
	opacity: 0;
	visibility: hidden;
	background-color: #666; /* Slightly lighter gray */
	border-radius: 0 0 30px 30px; /* Bottom corners rounded */
	transition: height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/* z-index: -1; */
	font-size: 2.5vh;

	border-style: solid;
	border-width: 0.7vh;
	border-color: var(--floor-color);

	color: var(--floor-color2);
}

.dropdown-rectangle > img.icon5 {
	max-width: 70%;
	filter: var(--floor-color-filter);
}

.rectangular-button:hover .dropdown-rectangle {
	height: 17vh;
	opacity: 1;
	visibility: visible;
}

.circular-button {
	width: 11vh;
	height: 11vh;
	background-color: #666; /* Slightly lighter gray */
	border-radius: 50%;
	margin: 2vh 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease-out;

	border-style: solid;
	border-width: 0.7vh;
	border-color: var(--floor-color)
}

.circular-button:hover {
	transform: scale(1.1);
}

.circular-button:first-child {
	margin-left: 3vw;
}

.circular-button:last-child {
	margin-left: 3vw;
}

.circular-button > img.icon1,
.circular-button > img.icon2,
.circular-button > img.icon3 {
	max-width: 70%;
	filter: var(--floor-color-filter);
}

.rectangular-button {
	position: relative;
	width: 23vh;
	height: 8vh;
	background-color: #666; /* Slightly lighter gray */
	color: #fff;
	border-radius: 10vw;
	display: flex;
	align-items: center;
	justify-content: center;

	border-style: solid;
	border-width: 0.7vh;
	border-color: var(--floor-color)
}

.rectangular-button .chevron-arrow-left,
.rectangular-button .chevron-arrow-right {
	max-height: 60%;
	filter: var(--floor-color-filter);
	transition: transform 0.3s ease-out;
}

.rectangular-button:hover .chevron-arrow-left {
	animation: moveLeft 1s infinite linear; /* Animation for continuous left movement */
}

.rectangular-button:hover .chevron-arrow-right {
	animation: moveRight 1s infinite linear; /* Animation for continuous left movement */
}

.previousmap {
	position: absolute;
	z-index: 3;
	font-size: 1.8em;
	display: flex;
	align-content: center;
	margin: 3vh;
	top: 0;
	left: 0;
}
.previousmap.previousmap_fixed {
	position: fixed;
	top: unset;
	left: unset;
}
.previousmap .link-internal {
	position: sticky;
	height: 17.5vh;
	width: 17.5vh;
	border-radius: 50%;
	border: 3px solid rgba(255, 0, 0, 0.4);
	text-shadow: 0px 0px 8px rgba(255, 0, 0, 0.4), 0px 0px 16px rgba(255, 0, 0, 0.4), 0px 0px 24px rgba(255, 0, 0, 0.4);/* For centering text */
	box-shadow: inset 0 0 0.5vw rgba(255, 0, 0, 0.4), 0 0 0.5vw rgba(255, 0, 0, 0.4), 0 0 1vw rgba(255, 0, 0, 0.4);
	background-color: rgba(0, 0, 0, 0.4);
	background-image: none;
	padding: 1vh 1vh;
	min-width: 15vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.previousmap .link-internal:hover {
	background-color: rgba(0, 0, 0, 0.8);
	box-shadow: inset 0 0 1vw rgba(255, 0, 0, 0.6), 0 0 1vw rgba(255, 0, 0, 0.6), 0 0 1.5vw rgba(255, 0, 0, 0.6), 0 0 2vw rgba(255, 0, 0, 0.6);
	text-shadow: 0 0 1vw rgba(255, 0, 0, 0.6), 0 0 1.5vw rgba(255, 0, 0, 0.6), 0 0 2vw rgba(255, 0, 0, 0.6);
}

.vcenter {
	position: absolute;
	top: 0;
	bottom: 0;
	margin: auto;
}

/* Market Popup */
#MRKT_streakPopup {
	pointer-events: all;
    color: white;
    font-size: 1.75vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.MRKTpopup {
	position: fixed;
	top: 50%;
	left: 50%;
	max-width: 55em;
	transform: translate(-50%, -50%) scale(0.8);
	background-color: #222;
	padding: 2vh;
	border-radius: 0.8vh;
	box-shadow: 0 0 0.8vh color-mix(in srgb, hsl(235, 50%, 45%) 80%, transparent);
	display: none;
	text-align: center;
	z-index: 100;
	opacity: 0;
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.MRKTpopup.show {
	display: block;
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	animation: MRKTpopupAnimation 0.5s ease-in-out;
}

.MRKTpopup.hide {
	animation: MRKTpopupAnimation 0.5s ease-in-out reverse;
}

@keyframes MRKTpopupAnimation {
	0% {
		transform: translate(-50%, -50%) scale(0.8);
		opacity: 0;
	}
	100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}
}

.MRKTpopup h3 {
	font-size: 3vh;
	margin: 0;
	color: rgb(57, 67, 172);
}

.MRKTpopup p {
	font-size: 1.8vh;
	margin: 0.8vh 0;
	margin-bottom: 2vh;
	color: white;
}

.MRKTpopup button {
	background-color: rgb(57, 67, 172);
	color: white;
	border: none;
	padding: 0.96vh 1.2vh;
	border-radius: 0.4vh;
	cursor: pointer;
	transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
	font-size: 2.3vh;
}
.MRKTpopup button:hover {
	background-color: color-mix(in srgb, hsl(235, 50%, 45%) 90%, black);
	transform: scale(1.1);
}

.MRKTpopup .MRKT_exit {
	position: absolute;
	padding: 0.5em 1.2em;
	top: -0.5em;
	right: -0.5em;
	border-radius: 0.3em;
	background-color: rgb(57, 67, 172);
	box-shadow: 0 0 0.8vh color-mix(in srgb, hsl(235, 50%, 45%) 80%, transparent);
	text-shadow: 0 0 0.8vh hsl(235, 50%, 45%);
	color: white;

	transition: background-color 0.3s, transform 0.3s;
}
.MRKTpopup .MRKT_exit:hover {
	background-color: color-mix(in srgb, hsl(235, 50%, 45%) 90%, black);
	transform: scale(1.1);
}


.MRKTpopup .MRKTstreak-popup-stats {
	display: flex;
	justify-content: center;
	align-items: center;

}
.MRKTpopup .MRKTstreak-popup-stats > img {
	height: 2.8vh;
    margin-right: 0.8vh;
}
.MRKTpopup .MRKTstreak-popup-stats > .MRKTstreak-popup-stats_streak {
	margin-right: 4em;
}

/* Transition scene requirement Popup */
#GLMS_transReqPopup {
	pointer-events: all;
    color: white;
    font-size: 1.75vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.GLMS_popup {
	position: fixed;
	width: 90vh;
	max-width: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.8);
	background-color: rgba(0, 0, 0, 0.7);
	padding: 2vh;
	border-radius: 0.8vh;
	box-shadow: 0 0 0.8vh rgb(163, 0, 0);
	z-index: 100;

	display: flex;
	flex-direction: column;
	align-items: center;
}

.GLMS_popup > hr {
	width: 100%;
	border: none;
	height: 0.2vh;
	background-image: linear-gradient(to right, transparent, rgb(163, 0, 0), transparent);
	margin: 1vh 0;
}


.GLMS_title {
	display: flex;
	align-items: center;
}
.GLMS_title > h3 {
	font-size: 2.3em;
	margin: 0;
}
.GLMS_title > div { /* img cont */
	height: 8vh;
	width: 8vh;

	display: flex;
	align-items: center;
	justify-content: center;
}
.GLMS_title > div > img {
	height: 80%;
	margin-left: 2vh;
}

.GLMS_content { /* TODO */
	display: none;
	height: 10vh;
	width: 100%;
	background-color: #333;
}

.GLMS_reqCont {
	width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
	align-items: center;
}
.GLMS_reqCont > .GLMS_req {
	height: 6vh;
	margin: 0.5vh 0;
	padding: 0 3vh;
	display: flex;
    align-items: center;

	background-color: rgb(50, 0, 0);
	border: solid 0.1vh rgb(163, 0, 0);
	border-radius: 0.4vh;
}
.GLMS_reqCont > .GLMS_req > h3 {
	font-size: 1.6em;
	margin: 0;
}
.GLMS_reqCont > .GLMS_req > img {
	height: 80%;
	margin-left: 5vh;
	padding: 0.5vh;
}

.GLMS_buttons {
	display: flex;
	justify-content: center;
}
.GLMS_buttons > div {
	background-color: rgb(92, 0, 0);
	border: solid 0.3vh rgb(163, 0, 0);
	color: white;
	border: none;
	margin: 1vh;
	padding: 0.2em 1.4em;
	border-radius: 1vh;
	font-size: 2.5em;
	transition: background-color 0.3s, transform 0.3s;
}
.GLMS_buttons > div[disabled] {
	background-color: rgb(69, 60, 60);
}
.GLMS_buttons > div:not([disabled]):hover {
	background-color: rgb(163, 0, 0);
	transform: scale(1.1);
	cursor: pointer;
}

.GLMS_exit {
	position: absolute;
	top: -2vh;
	right: -3vh;
	font-size: 2.3em;
	padding: 0.2em 0.7em;
	border-radius: 0.3em;
	background-color: rgb(92, 0, 0);
	border: solid 0.3vh rgb(163, 0, 0);
	cursor: pointer;

	transition: background-color 0.3s, transform 0.3s;
}
.GLMS_exit:hover {
	background-color: rgb(163, 0, 0);
	transform: scale(1.1);
}





/* Google translate */

body { /* google trans at init */
	position: static !important; 
	min-height: unset !important; 
}

.VIpgJd-ZVi9od-ORHb-OEVmcd {  /* top bar */
	display: none !important;
}

.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q {  /* text on hover */
	background-color: unset !important;
    box-shadow: unset !important;
}

.VIpgJd-yAWNEb-L7lbkb {  /* text info popup on hover */
	display: none !important;
}

#permaCont > .TMS_smallButton {
	pointer-events: all;
	position: fixed;
	right: 0;
	bottom: 0;
	margin: 1vh 2vh;
}
#permaCont > .TMS_smallButton > img {
	height: 8vh;
	opacity: 0.5;
	cursor: pointer;

	transition: opacity 0.2s, filter 0.2s;
}
#permaCont > .TMS_smallButton:hover > img {
	opacity: 1;
	filter: drop-shadow(0 0 0.3em white)
		drop-shadow(0 0 0.3em white);
}

#permaCont > .TMS_back {
	position: fixed;
	pointer-events: all;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.8);

	display: none;
    align-items: center;
    justify-content: center;
}

#permaCont > .TMS_back > .TMS_wip {
	position: absolute;
    bottom: 65vh;
    font-size: 2em;
    background-color: #333;
    box-shadow: 0 0 1vh 1vh #333;
    padding: 0 3em;
    border-radius: 0.5em;
}

#permaCont > .TMS_back > .TMS_cont {
	background-color: #333;
	box-shadow: 0 0 1vh 1vh #333;
	border-radius: 0.8vh;
	padding: 2vh;

	display: flex;
    flex-direction: column;
    align-items: center;
}

#permaCont > .TMS_back > .TMS_cont > .TMS_title {
	display: block;
	width: 100%;
	text-align: center;
}
#permaCont > .TMS_back > .TMS_cont > .TMS_title::after {
	content: '';
	display: block;
	width: 100%;
	height: 0.2vh;
	background-color: #222;
	margin: 0.1em 0;
	margin-bottom: 0.5vh;
	border-radius: 0.1vh;
}

#permaCont > .TMS_back > .TMS_cont > .TMS_reset {
	background-color: #444;
	border: solid 0.1vh #222;
	border-radius: 0.2em;
	padding: 0.5em 1em;

	transition: background-color 0.2s;
}
#permaCont > .TMS_back > .TMS_cont > .TMS_reset:hover {
	background-color: #555;
}

#permaCont > .TMS_back > .TMS_cont > #google_translate_element {
	margin: 0.1em 0;
}

/* toggle switch */

.tgSwitch {
    position: relative;
    display: inline-block;
    width: 3em;
    height: 1em;
}
.tgSwitch > input {
    opacity: 0;
    width: 0;
    height: 0;
}
.tgSwitch > div {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 1em;
    transition: background-color 0.3s;
}
.tgSwitch > div:before {
    position: absolute;
    content: '';
    height: 0.8em;
    width: 0.8em;
    left: 0.1em;
    bottom: 0.1em;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}
.tgSwitch > div:after {
    content: 'OFF';
    position: absolute;
    right: 0.5em;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 0.7em;
}
.tgSwitch > input:checked + div {
    background-color: #2196F3;
}
.tgSwitch > input:checked + div:before {
    transform: translateX(2em);
}
.tgSwitch > input:checked + div:after {
    content: 'ON';
    left: 0.5em;
    right: auto;
}

/* SPECIAL EVENT */
.christmasCandyCanes {
	position: absolute;
	z-index: 50;
	cursor: pointer;
	filter: drop-shadow(0 0 0.3em rgba(255, 255, 255, 0.5))
		drop-shadow(0 0 0.3em rgba(255, 255, 255, 0.5));

	transition: transform 0.2s, filter 0.2s;
}
.christmasCandyCanes:hover {
	transform: scale(1.1);
	filter: drop-shadow(0 0 0.3em white)
		drop-shadow(0 0 0.3em white);
}

/* GENERAL */

#story * {
	box-sizing: border-box;
}

#story {
	background-attachment: fixed;
	scrollbar-width: thin;
	scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}