:root {
  --blue: #23408f;
  --lightblue: #00aeef;
  --purple: #662d91;
  --magenta: #e30087;
  --yellow: #fff200;
  --orange: #f98b10;
  --cyan: #53bba9;
  --green: #3db64a;
  --pink: #fa94a7;
  --lightgray: #d9d9d9;
  --gray: #67686a;
  --black: #000;
  --white: #ffffff;
  --topbar-height: 60px;
  --page-height: calc(100dvh + 1px);
}

svg {
  fill: currentColor;
  shape-rendering: auto;
  text-rendering: auto;
  image-rendering: auto;
}

@font-face {
  font-family: "MessinaSans-Light";
  src: url("fonts/MessinaSans-Light.otf");
}

@font-face {
  font-family: "MessinaSans";
  src: url("fonts/MessinaSans-Regular.otf");
}

@font-face {
  font-family: "MessinaSans-Bold";
  src: url("fonts/MessinaSans-Bold.otf");
}

@font-face {
  font-family: "MessinaSans-Black";
  src: url("fonts/MessinaSans-Black.otf");
}

@font-face {
	font-family: "Oulu-Brooklyn-Extrabold";
	src: url("fonts/Oulu-Brooklyn-Extrabold-final.otf");
}
  




html,
body,
div,
span,
p,
input,
button,
h1,
h2,
h3,
h4,
h5,
nav,
header,
footer,
section,
ul,
li {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  text-rendering: optimizeLegibility;
}

button {
background-color: transparent;
border: 0;
}

html {
  height: var(--page-height);
  width: 100vw;
  overflow: hidden;
}

body {
  overflow: hidden; 
  margin: 0;
  padding: 0;
  font-family: "MessinaSans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #ffffff;
  background-color: #000000;
  height:  var(--page-height);;
  width: 100vw;
}


a,a:visited { 
  color: var(--blue);
  text-decoration: none;
}

a:hover,a:active,.current a {
  color: var(--magenta);
}


button:focus {
  outline: 4px solid var(--lightblue);
}

#pano {
  width: 100vw;
  height: var(--page-height);; 
  margin-top: 0;
  min-height: -webkit-fill-available;
}

.fb_html_layer {
  width: 100vw;
  height: 100dvh;
  padding: 5vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.fb_html_layer img {
  max-width: 100%;
}

.fb_linkbox {
	color: var(--white);
	background-color: var(--blue);
	max-width: 650px;
  min-height: 100px;
	padding: 15px 60px 15px 15px;
	margin: 5px 15px 15px 15px;
	text-wrap: wrap;
	width: calc( 100vw - 60px);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  display: flex;
}

.fb_linkbox h2 {
	font-size: 20px;
	font-weight: normal;
	font-family: "MessinaSans-Bold";
}

.fb_linkbox p {
  margin-top: 8px;
	font-size: 14px;
	font-weight: normal;
	font-family: "MessinaSans";
}

.fb_linkbox a {
  color: #FFF;
}



.fb_linkbox .link {
  display: block;
  position: absolute;
  width: 50px;
  margin-left: 30px;
  margin-top: 10px;
  align-self: center;
}

.fb_linkbox .link img {
  width: 100%;
  transition: transform 0.3s;
}

.fb_linkbox img:hover {
  transform: scale(1.1);
}

.fb_linkbox .link img:active {
  transform: scale(1.2);
}

@media screen and (max-width: 800px) {
  .fb_linkbox { min-height: auto; max-width: calc(80vw);};
  .fb_linkbox .link { margin-top: -12px;}
}

@media screen and (max-width: 800px) {
	.mobile_hide { display: none; visibility: hidden; overflow: hidden; };
}



.welcome {
	font-size: 10vmin;
	font-weight: normal;
	font-family: "Oulu-Brooklyn-Extrabold";
	width: 100%;
	word-wrap: anywhere;
	text-align: left;
	text-wrap: wrap;
	line-height: 10vmin;
	margin: 15px 80px 15px 15px;
  flex-grow: 1;  
	text-shadow: 0px 0px 20px rgba(0,0,0,0.3);
	user-select: none;
  position: relative;
  padding-top: 10vh;
  align-content: center;
}

.calltoaction {
	font-size: 2vmin;
	font-weight: normal;
	font-family: "MessinaSans-Bold";
	width: 100%;
	word-wrap: anywhere;
	text-align: left;
	text-wrap: wrap;
	line-height: 10vmin;
	margin: 15px 80px 15px 15px;
  flex-grow: 1;  
	text-shadow: 0px 0px 10px rgba(0,0,0,0.3);
	user-select: none;
  position: relative;
  padding-top: 10vh;
}











.fb_infobox_text_header {
  font-family: "MessinaSans-Bold";
  font-style: normal;
  font-weight: normal;
  font-size: 15px;
  line-height: 24px;
  margin-bottom: 8px;
  color: var(--white);
}

.fb_infobox_text {
  font-family: "MessinaSans";
  font-style: normal;
  font-weight: normal;
  font-size: 15px;
  line-height: 150%;
  margin-bottom: 20px;
  color: var(--white);
}

.fb_infobox_text a {
  text-decoration: underline;;
}

.fb_infobox_text ul, .fb_infobox_text li {
  list-style: inside;
}


.fb_infobox_link {
  font-family: "MessinaSans";
  font-style: underline;
  font-weight: normal;
  font-size: 14px;
  line-height: 150%;
  margin-bottom: 20px;
  color: var(--white);
}

.topbar {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: var(--topbar-height);
  padding: 0px;
  background-color: var(--blue);
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0) 100%); 
  color: var(--white);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  z-index: 2;
}

#fb_logo {
  height: var(--topbar-height);
  margin-left: 0px;
}



#fb_topbar_title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  color: var(--white);
  font-size: 20px;
  font-weight: normal;
  font-family: "MessinaSans-Bold";
}

#fb_topbar_title_scene {
  opacity: 1;
  transition: opacity 0.5s;
}



@media screen and (max-width: 800px) {

  #fb_topbar_stepper {
    position: fixed;
    width: 120px;
    right: 15px;
    top: 57px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: end;
    gap: 10px;
    color: var(--white);
    font-size: 15px;
    font-weight: normal;
    font-family: "MessinaSans";
    text-shadow: 0px 0px 5px rgba(0,0,0,0.5);
    transition: opacity 0.5s;
  }

		#fb_topbar_title {
			display: block;
			position: absolute;
			width: 55vw;
			text-align: left;
			padding: 5px;
			background: transparent;
			color: #fff;
			top: 50px;
			left: 10px;
			font-size: 26px;
      text-shadow: 0px 0px 5px rgba(0,0,0,0.5);
		}

}

.fb_scene_info_btn {
  width: 25px;
  height: 25px;
  transition: transform 0.1s;
  cursor: pointer;
  filter: drop-shadow(0 0 5px #0003);
}

.fb_scene_info_btn:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.fb_scene_info_btn:active {
  opacity: 1;
  transform: scale(1.2);
}

#fb_topbar_stepper {
  width: 120px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-items: end;
  gap: 10px;
  color: var(--white);
  font-size: 15px;
  font-weight: normal;
  font-family: "MessinaSans";
  transition: opacity 0.5s;
}

#fb_nav_btn {
    padding: 15px 10px;
    width: 25px;
    height: 20px;
    transition: transform 0.2s;
    cursor: pointer;
}
#fb_nav_help {
    padding: 0px 10px;
    width: 45px;
    height: 40px;
    transition: transform 0.2s;
    cursor: pointer;
}


#fb_nav_btn:hover {
  opacity: 0.8;
  transform: scale(1.1);
}
#fb_nav_btn:active {
  opacity: 1;
  transform: scale(1.2);
}

#fb_nav_close_btn {
  padding: 15px 10px;
  width: 25px;
  height: 20px;
  transition: transform 0.2s;
  cursor: pointer;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
}

#menu-fb_nav_help {
  position: fixed;
  left: 10px;
  bottom: 10px;
}






#fb_nav {
	background-color: rgba(0, 0, 0, 0.5);
	position: absolute;
	width: 100vw;
	height: 100dvh;
	top: 0;
	left: 0;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s, visibility 1s;
	pointer-events: none;
	z-index: 10;
}

#fb_nav.visible {
  visibility: visible;
  pointer-events: visible;
  opacity: 1;
}

#fb_nav ul {
  position: absolute;
  right: -500px;
  padding: 10px 4px 15px 4px;
  padding-bottom: 100px;
  width: 300px;
  height: 100dvh;
  background-color: rgba(255,255,255,0.95);
  transition: right 0.2s;
  overflow-y: auto;
}

#fb_nav.visible ul {
  right: 0;
}

#fb_nav li {
  background: var(--white);
  color: var(--blue);
  border-left: solid 2px var(--lightblue);
  padding: 5px 15px 5px 12px;
  margin: 2px;
  font-family: "MessinaSans";

}

#fb_nav li a {
  text-decoration: none;
  font-size: 15px;
  font-weight: normal;
  color: var(--blue);
}


#fb_nav li.visited {
  border-color: var(--lightblue);
  border-width: 0px 0px 0px 4px;
  padding: 5px 15px 5px 10px;
  border-style: solid;
  color: #000;
}

#fb_nav li.current {
  /*border-left: solid 4px var(--blue); */
}

#fb_nav li.current a {
  color: var(--black);
  font-family: "MessinaSans-Bold";
}





#fb_nav li.large {
 /* margin-top: 15px;*/
  font-family: "MessinaSans-Bold";
}

#fb_nav li.large a {
  font-size: 20px;
}

#fb_nav li.faculty {
  border-color: var(--orange);
}

#fb_nav li.faculty a {
 /* color: var(--purple);*/
}

#fb_nav li.hotspot a {
  font-size: 15px;
  font-family: "MessinaSans";
  margin-left: 15px;
}
 



.language {
  color: var(--blue);
  margin: 12px 15px 20px 15px;
  font-size: 12px;
  font-family: "MessinaSans";

}

.language a {
  text-decoration: none;
  color: var(--gray);
}

.language a:hover {
  text-decoration: underline;
  color: var(--purple);
}


.language .current {
  font-family: "MessinaSans-Bold";
  text-decoration: none;
}




#fb_help_box {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  width: 100vw;
  height: 100dvh;
  top: 0;
  left: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 1s;
  pointer-events: none;
  z-index: 10;

      margin: 0;
      display: flex;
      justify-content: center;
      align-items: center;

      font-family: sans-serif;

}
#fb_help_box.visible {
  visibility: visible;
  pointer-events: visible;
  opacity: 1;
}



#fb_help_box_bkg {

  position: relative; 
  width: 50%;
  min-width: 400px;
  height: 90vh;
  background-color: white;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
      padding: 20px;
      box-sizing: border-box;
      overflow-y: auto;
  overflow-y: auto;
}

 .help_box_lista {
      margin: 0;
      padding: 0;
      padding-top: 80px;
    }

    .help_box_rivi {
        display: flex;
  align-items: center; 
  margin-bottom: 20px;
    }

    .help_box_ikoni {
      width: 64px;
      height: 64px;
      flex-shrink: 0;
      margin-right: 20px;
    }

    .help_box_teksti {
      color: var(--blue);
      font-size: 16px;
      font-family: "MessinaSans";
      color: black;
      flex: 1;
    }
.help_box_sulje {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  font-size: 18px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease;
  z-index: 10;
}

.help_box_sulje:hover {
  color: #333;
}
/* hotspots */

.fb_hotspot_wrap {
	width: 64px;
	margin-left: calc(max(-45vw,-200px) + 30px);
	height: 32px;
	overflow: visible;
	display: flex;
	flex-direction: column-reverse;

}

.fb_hotspot_infocontainer {
  opacity: 0;
  transition: opacity 1.3s;
  background-color: var(--blue);
  padding: 15px;
  border-radius: 0px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  max-width: 90vw;
  width: 400px;
}

.fb_hotspot_infocontainer img {
  max-width: calc(100% + 30px);
  margin: -15px 0px 15px -15px;
}

.fb_hotspot_infocontainer a {
  color: #fff;
}



@keyframes tease {
  0% {
    background-size: 80%;
  }
  90% {
    background-size: 80%;
  }
  100% {
    background-size: 70%;
  }
}


.fb_hotspot_button {
  position: absolute;
  background-size: 90%;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  top: 0px;
  left: 0px;
  width: 64px;
  height: 64px;
  transition: transform 0.2s;
  cursor: pointer;
  z-index: 2;
  animation: tease 3s alternate ease-in-out infinite;
}

.fb_hotspot_button:hover {
  transform: scale(1.1);
}

.fb_hotspot_button:active {
  transform: scale(1.2);
}


.fb_hotspot_button_text {
  color: var(--white);
  font-size: 12px;
  font-weight: normal;
  font-family: "MessinaSans-Bold";
  position: relative;
  top: 0px;
  left: 140px;
  width: 200px;
  height: 64px;
  display: flex;;
  justify-content:left;
  align-items: center;;

  text-align: left;
  margin-left: -72px;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}






.focused {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.2s linear;
  pointer-events: all;
}
  
.sticky {
  visibility: visible;
	opacity: 1;
	transition: opacity 0.2s linear;
  pointer-events: all;

 /* color: var(--black);*/
  /*  background-color: var(--lightgray); */

  background-color: rgba(255,255,255,0.9);
 /* backdrop-filter: blur(20px);*/
  color: var(--blue);
  box-shadow: 0px 0px 20px rgba(0, 1, 4, 0.2);
  opacity: 1;

}


.sticky .fb_infobox_text_header, .sticky .fb_infobox_text {
  color: var(--blue);
}

.sticky .fb_infobox_text a {
  color: var(--blue);
  font-weight: bold;
}





.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s linear;
}

.hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.2s, opacity 0.2s linear;
}

.hide {
  opacity: 0;
}



#youtube_popup.open {
  opacity: 1;
  pointer-events: all;
}


#fb_lightbox {
  position: absolute;
  left: 50%;
  top: 50%;
  visibility: hidden;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

#fb_lightbox.visible {
  position: absolute;
  visibility: visible;
  opacity: 1;
}

#fb_lightbox .lb_bkg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: 100vh;
  transform-origin: center;
  transform: translate(-50%, -50%);
  background-color: #000000;
  opacity: 0.5;
  pointer-events: all;
}

#fb_lightbox .lb_window {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 100vw;
  height: 56vw;

  aspect-ratio: 16 / 9;

  overflow: visible;

  max-width: 100vw;
  max-height: 100vh;

  transform-origin: center;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: #000000;
  box-shadow: 0px 0px 100px #00000088;

  transition: transform 0.4s !important;
  pointer-events: none;
}

/* SCENE INFO */

#fb_scenebox {
	position: absolute;
	display: block;
	left: 50%;
	bottom: 30px;
	padding: 30px 30px;
	width: 800px;
  max-width: calc(100vw - 30px);
	max-height: calc(50%);
  transform: translate(-50%, 0px);
	background-color: rgba(255,255,255,0.9);
  /*backdrop-filter: blur(20px);*/
	color: var(--blue);
	box-shadow: 0px 0px 20px rgba(0, 1, 4, 0.2);
	opacity: 1;
	transition: opacity 0.5s, visibility 1s, bottom 0.5s;
  overflow-y: auto;
  overflow-x: hidden;
}


#fb_scenebox.hidden {
  bottom: -500px;
  opacity: 0;
  visibility: hidden;
}

#fb_scenebox_content {
  overflow-y: auto;
}


#fb_scenebox hr {
  margin: 20px 0px;
  border: 0;
  border-top: 1px solid #AAA;
  opacity: 0.5;
} 




#fb_scenebox_txt {
	font-family: "MessinaSans";
	font-style: normal;
	font-weight: normal;
	font-size: 15px;
	line-height: 22px; 
	color: var(--blue);
	margin-bottom: 2rem;
}

#fb_scenebox_hdr {
	font-family: "MessinaSans-Bold";
	font-style: normal;
	font-weight: normal;
	font-size: 20px;
  text-wrap: wrap;
  line-height: 22px; 
	color: var(--blue);
  margin-bottom: 10px;
}

#fb_scenebox_toggle {
	position: fixed;
	bottom: 30px;
	left: 50%;
	display: flex;
	gap: 5px;
	background-color: #fff;
	padding: 5px 15px 5px 15px;
	border-radius: 50px;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-family: "MessinaSans-Bold";
  font-weight: normal;
  color: var(--blue);
	transform: translate(-50%, 0px);
	transition: transform 0.2s;
	cursor: pointer;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
}


#fb_scenebox_toggle:hover {
	transform: translate(-50%, 0px) scale(1.1);
}
#fb_scenebox_toggle:active {
	transform: translate(-50%, 0px) scale(0.9);
}

#fb_scenebox a {
  text-decoration: underline;
}

@media screen and (max-width: 800px) {
  #fb_scenebox {
    bottom: 15px;
  }
}


.fb_scenebox_hotspots {
  margin-top: 20px;
}


.fb_scenebox_hotspot {
  background: rgba(255,255,255,0.8);
  margin: 0px 0px 2px 0px;
  padding: 10px;
} 

.fb_scenebox_hotspot:hover {
  background: rgba(255,255,255,1.0);
  cursor: pointer;
} 



.fb_scenebox_hotspot_icon {
  width: 24px;
  height: 24px;
  position: absolute;
}

.fb_scenebox_hotspot_text {
  margin-left: 30px;
  font-size: 15px;
  font-family: "MessinaSans";
  color: var(--blue);
}



.video_play_icon {
  position: absolute;
  top: -205px;
  left: 0px;
  width: 64px;
  height: 64px;
  background-image: url(skin/video_play.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 2;
}

.video_play_icon:hover {
	transform: scale(1.1);
}
.video_play_icon:active {
	transform: scale(1.2);
}



