.unselectable {
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  user-select: none;
}

* {
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}

*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: none;
  box-shadow: none;
  background-color: transparent;
}

::-webkit-scrollbar {
  width: 0.5em;
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 0.1em;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  height: 100%;
}

body {
  color: #234;
  background: #FFF;
  font-family: 'Rubik', sans-serif;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
  font-size: 21px;
  line-height: 1.5em;
  margin: 0px;
  padding: 0px;
  height: 100%;
}

#pageWrapper {
  width: auto;
  position: relative;
  min-height: 100vh;
  /* border: 6px solid #003366; */
}


#uhsWrapper {
  display: none;
}

/* ************************************************************ */

#main {
  width: 100%;
  min-height: 100vh;
  z-index: 1;
  position: relative;
}

#main,
#main p {
  -webkit-hyphens: none; /* auto; */
  -moz-hyphens: none; /* auto; */
  hyphens: none; /* auto; */
}



/* ************************************************************ */
/* Fade transitions for sections */

.fade-in {
	opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 500ms; /* 200ms; /* 2s; */
}

@keyframes fadeInOpacity {
	0% { opacity: 0; }
	100% { opacity: 1; }
}

.fade-out {
	opacity: 1;
	animation-name: fadeOutOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 500ms; /* 200ms; /* 2s; */
}

@keyframes fadeOutOpacity {
	0% { opacity: 1; }
	100% { opacity: 0; }
}




/* ************************************************************ */


/* typography */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0px 0px 1em 0px;
}

section p {
  font-family: 'Crimson Pro';
  color: #223344;
  text-align: center; /* default text alignment */
}

section p.descender::first-letter {
  font-weight: 300;
  font-style: italic;
  /* display: inline-block; */
  float: left;
  margin-left: -2rem;
  padding-right: 0.75rem;
  font-size: 5rem;
  line-height: 3.5rem;
}

section .txtWrapper {
  max-width: 560px;
}

p.alignCenter { text-align: center !important; }
p.alignLeft { text-align: left !important; }
p.alignRight { text-align: right !important; }


/* fixed ******************************* */

.fixedWrapper {
  position: fixed;
  width: auto; /* 100vw; */
  z-index: 100;
  top: 3rem;
  right: 1rem;
  background-color: lightyellow;
  text-align: right;
  display: none;
}

#timer {
  font-weight: 400;
}


/* fixed bottom ************************* */

.fixedBottom {
  position: fixed;
  left: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 100;
}

.fixedBottom .inside {
  /* font-size: 1.5rem; */
  font-size: 1em;
  line-height: normal;  
  font-weight: normal;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-end;
}

.fixedBottom .inside #intersect {
  flex: 0 0 60%;
  /* border: 1px solid red; */
  overflow: hidden;
}

.fixedBottom .inside #scrollWrapper {
  flex: 0 0 40%;
  /* border: 1px solid green; */
  text-align: right;
  overflow: hidden;
}


/* fixing ul */
/*
.fixedBottom .inside #intersect ul {
  padding: 0px;
  margin: 0px;
  list-style-type: none;
}
*/

.fixedBottom .inside #debugY {
  flex: 0 0 50%;
  text-align: right;
  display: none;
}


/* testing some sections **************** */

section {
  width: 100%;
  min-height: 100vh;
  /* 80vh;  */
  display: grid;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0px; /* 5rem; */
  position: relative;
  /* position: absolute; */
  /* border: 1px solid pink; */
}

/* text sections have padding */
section.text {
  padding: 5rem 2.5rem;
}

.blue {
  background: lightblue;
}

.pink {
  background: pink;
}

.green {
  background: lightgreen;
}

.whiteSmoke {
  background: whitesmoke;
}



/* Table for debug ***************************************** */

div.tableWrapper {
  display: inline-block;
  padding: 0.5em 2.5em 0.5em 0.5em;
  border-radius: 0.25em;
  background: rgba(0,0,0,0.1);
  position: relative;
  font-size: 18px;
  line-height: 18px;
  min-height: 2em;
  display: none;
}
div.tableWrapper #debugInfo.hidden {
  display: none;
}
div.tableWrapper #debugInfo {
  display: inline-block;
}
/* button */
div.tableWrapper a#debugShow {
  position: absolute;
  top: 0px;
  right: 0px;
  background: transparent;
  color: white;
  padding: 0.5em 0px;
  min-width: 2.25em;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.25);
  outline: none;
  text-decoration: none;
}
div.tableWrapper a#debugShow:hover {
  cursor: pointer;
  text-decoration: none;
}
table {
  font-size: 18px;
  line-height: 18px;
}
table thead th {
  text-align: left;
  /* font-weight: 400; */
  padding: 0.2em 1em 0.2em 0.2em;
}

table td {
  padding: 0.2em 1em 0.2em 0.2em;
}

table tbody td.active {
  color: red;
}



/* PATHS *************************************************** */
/* harcoded css */

#pageWrapper svg {
  opacity: 0; /* 0.35; */
  margin: 0px; /* -5rem; /* to accomodate section padding */
  padding: 0px;
  z-index: 1000;
  /* visibility: hidden; */
  height: 100vh; /* 1080px; /* 100vh; /* 1080px; /* 100vh; */
  width: 2720px; /* auto; /* 2720px; /* this measure is from inkscape */
}


/* *********************************************************************************** */
/* *********************************************************************************** */
/* *********************************************************************************** */


/* crimson-pro-300 - latin */
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local(""), url("../fonts/crimson-pro-v12-latin-300.woff2") format("woff2"), url("../fonts/crimson-pro-v12-latin-300.woff") format("woff"), url("../fonts/crimson-pro-v12-latin-300.ttf") format("truetype");
}

/* crimson-pro-300italic - latin */
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: local(""), url("../fonts/crimson-pro-v12-latin-300italic.woff2") format("woff2"), url("../fonts/crimson-pro-v12-latin-300italic.woff") format("woff"), url("../fonts/crimson-pro-v12-latin-300italic.ttf") format("truetype");
}

/* crimson-pro-regular - latin */
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local(""), url("../fonts/crimson-pro-v12-latin-regular.woff2") format("woff2"), url("../fonts/crimson-pro-v12-latin-regular.woff") format("woff"), url("../fonts/crimson-pro-v12-latin-regular.ttf") format("truetype");
}

/* crimson-pro-700 - latin */
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local(""), url("../fonts/crimson-pro-v12-latin-700.woff2") format("woff2"), url("../fonts/crimson-pro-v12-latin-700.woff") format("woff"), url("../fonts/crimson-pro-v12-latin-700.ttf") format("truetype");
}

/* crimson-pro-italic - latin */
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local(""), url("../fonts/crimson-pro-v12-latin-italic.woff2") format("woff2"), url("../fonts/crimson-pro-v12-latin-italic.woff") format("woff"), url("../fonts/crimson-pro-v12-latin-italic.ttf") format("truetype");
}

/* crimson-pro-700italic - latin */
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: local(""), url("../fonts/crimson-pro-v12-latin-700italic.woff2") format("woff2"), url("../fonts/crimson-pro-v12-latin-700italic.woff") format("woff"), url("../fonts/crimson-pro-v12-latin-700italic.ttf") format("truetype");
}



/* *********************************************************************************** */
/* *********************************************************************************** */
/* *********************************************************************************** */


/* Vistis Corner and DD */
/*
.Corner {
	position: absolute;
	top: 0px;
	right: 0px;
	z-index: 30;
	width: 48px;
	height: 48px;
	background: white;
}
*/

.fixedBox {
  display: block;
  width: auto;
  position: fixed;
  z-index: 200;
}

/*
 * This stylesheet must ensure consistency of log and log placement
 * across DD website and game site
 */

.LogoWrapper {
  display: block;
  float: left;
  width: auto; /* 100%; */
  margin: 0px 0px 0px 0px;
  position: relative;
  top: 0px;
  left: 0px;
}
/* logo below has been taken from main css */
a#logo {
  display: block;
  float: left;
  padding: 16px;
  color: #003366;
}
a#logo svg {
  display: block; /* important!! */
}
a#logo:after {
	content: "";
	display: table;
	clear: both;
}
a:hover#logo {
  cursor: pointer;
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

@media only screen {

  .fixedBox {
    /* padding: 0px; /* 19px 0 0 0px; */
    padding: 3px 0px 0px 2px;
  }

  /* Scene name ************************************ */
  #sceneNameWrapper {
    position: fixed;
    top: 19px; /* 34px + 16px; /* 1.5rem; */
    right: 1rem; /* 1.5rem; */
    text-align: right;
    font-size: 0.8em; /* 1em; */
    line-height: 1em;
    opacity: 0.8;
    z-index: 100;
  }

  #playOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.5);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #playOverlay button {
    font-family: 'Crimson Pro';
    font-size: 1.75rem; /* 3rem; */
    line-height: 1em;
    border: 0px;
    border-radius: 0.1em;
    padding: 0.25em 0.9em 0.35em 0.9em;
    display: inline;
    background-color: #F0F0F0;
    hyphens: none;
  }
  
  #playOverlay button:hover {
    cursor: pointer;
  }  

}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
@media only screen and (min-width: 800px) {
  
  #playOverlay button {
    font-size: 2.25rem;
  }

}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
@media only screen and (min-width: 1024px) {

  .fixedBox {
    /* padding: 31px 0px 0px 9px; /* 48px 0 0 9px; /* DONT CHANGE! */
    padding: 34px 0px 0px 11px; /* This is with no border! - DONT CHANGE! */
  }
  
  #sceneNameWrapper {
    top: 50px; /* 34px + 16px; /* 1.5rem; */
    right: 1.5rem;
    font-size: 1em;
  }

  #playOverlay button {
    font-size: 3rem;
  }
 
}