/* Custon CSS (Non-leaflet) */

/*### GLOBAL ###*/

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

body {
	margin: 0;
	position: relative;
}

/* Google Material UI */

@font-face { /* fallback */
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(material-ui.woff2) format('woff2');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -moz-font-feature-settings: 'liga';
  -moz-osx-font-smoothing: grayscale;
}

/*########################################### INTRODUCTION ###*/

#introduction {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	min-height: 100vh;
	z-index: 50000;
	transition: opacity 1s;
}

/*Background for pages without button*/
#static_bg {
	display: none; /* block */
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgb(250,250,250);
}

/*#### FANCY BUTTON ####*/

#main_button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 200px;
	height: 100%;
	transition: width 1s, height 1s, color 0.5s, text-shadow 0.5s;
	font-size: 1.5em;
	user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	box-shadow: inset 0 0 20px rgb(150, 150, 150);
	color: rgba(0, 0, 0, 1);
	cursor: pointer;
	z-index: 90000;
	text-shadow: -2px 0 1px rgb(255,255,255), 0 2px 1px rgb(255,255,255), 2px 0 1px rgb(255,255,255), 0 -2px 1px rgb(255,255,255),
		-3px 0 1px rgba(255,255,255,0.8), 0 3px 1px rgba(255,255,255,0.8), 3px 0 1px rgba(255,255,255,0.8), 0 -3px 1px rgba(255,255,255,0.8),
		-4px 0 1px rgba(255,255,255,0.6), 0 4px 1px rgba(255,255,255,0.6), 4px 0 1px rgba(255,255,255,0.6), 0 -4px 1px rgba(255,255,255,0.6);
}
#main_button:hover {
	width: 15vw;
	/* height: 7vw; */
	color: rgba(0, 0, 0, 0);
	text-shadow: none;
}

#button_zone {
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}
#cover_top, #cover_left, #cover_right, #cover_bottom {
	background-color: rgb(250, 250, 250);
	transition: height 1s;
}
#cover_top {
	/* Height is button top margin */
	width: 100%;
	height: 530px;
}
#cover_middle {
	/* Height is button height */
	display: flex;
	width: 100%;
	height: 80px;
	transition: height 1s;
}
#cover_left, #cover_right {
	flex: 1;
	height: 100%;
}
#cover_bottom {
	flex: 1;
	width: 100%;
}

.cover_middle_hover {
	height: 100px !important;
}
.cover_middle_clicked {
	height: 100vh !important;
}
.cover_top_clicked {
	height: 0px !important;
}
.main_button_clicked {
	width: 100vw !important;
	cursor: default !important;
}

/*### INTRO CONTENT ###*/
#content_container{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s;
    overflow-y: scroll;
}
.title {
    margin-top: 40px;
    margin-bottom: 0px;
    font-size: 3.5em;
    color: rgb(44, 101, 193);
}
.subtitle {
    font-size: 1.8em;
    color: rgb(76, 138, 219);
    margin-bottom: 20px;
}
.content_page {
	display: none; /* flex */
	width: 100%;
	justify-content: center;
}
.paragraph_container {
    display: flex;
    flex-direction: column;
    width: 1150px;
    min-width: 70vw;
    max-width: 95vw;
    font-size: 1.3em;
    color: rgb(1, 1, 1);
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 50px;
}
.paragraph_container h2 {
	font-size: 1.8em;
    color: rgb(76, 138, 219);
    margin-bottom: 6px;
}
.paragraph_container > p {
    margin-bottom: 12px;
    text-align: justify;
}
#credits a {
	font-size: 1em;
    color: rgb(89, 161, 219);
    margin-bottom: 8px;
}
.paragraph_container span.cite_list {
	font-size: 0.8em;
    margin-bottom: 8px;
    margin-left: 50px;
    font-style: italic;
}
#credits a:hover {
    color: rgb(47, 95, 135);
}
#credits > a {
	margin-left: 50px;
	font-size: 0.8em;
}
.paragraph_container span.cite_head a {
	float: right;
	margin-right: 50px;
}
.paragraph_container img {
	align-self: center;
	width: 500px;
	margin-bottom: 20px;
}

/*### INTRO MENU BAR ###*/
#menubar {
    width: 1150px;
    min-width: 70vw;
    max-width: 95vw;
    height: 35px;
    min-height: 35px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-around;
    background-color: rgb(255,255,255);
}

.menu_button {
	position: relative;
    height: 100%;
    background-color: rgb(68, 114, 188);
    opacity: 1;
    transition: opacity 0.3s, background-color 0.3s;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
    color: rgb(230,230,255);
    font-weight: bold;
    z-index: 2;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}
.menu_button:not(:last-child) {
	border-right-style: solid;
	border-right-color: rgb(230,230,255);
	border-right-width: 1px;
}
.menu_button:not(.menu_button_active):hover {
    opacity: 0.7;
}
.menu_button_active {
    box-shadow: 0 0 15px 4px rgb(192, 212, 242);
    background-color: rgb(110, 153, 221);
    color: rgb(255,255,255);
    z-index: 1;
    transition: box-shadow 0.3s;
}

/*### INTRO EXTRAS ###*/
.big_button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 300px;
	height: 70px;
	background-color: rgb(243, 123, 123);
	border-radius: 5px;
	align-self: center;
	box-shadow: 2px 2px 0px rgb(99, 53, 53);
	text-decoration: none;
	font-weight: bold;
	color: rgb(61, 34, 34);
	text-shadow: 1px 1px rgb(239, 223, 220);
	margin-top: 20px;
	margin-bottom: 20px;
}

.big_button:hover {
	margin-top: 21px;
	margin-left: 1px;
	margin-bottom: 19px;
	box-shadow: 1px 1px 0px rgb(99, 53, 53);
}


/*############################################### SIMULATION ###*/

#simulation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#map {
	position: relative;
	height: 85%;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

#mapid {
	width: 100%;
	height: 100%;
}

#mapbox_attrib {
	width: 52px;
	height: 13px;
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 500;
	margin-left: 2px;
	margin-bottom: 2px;
}

.leaflet-control-attribution {
	font-size: 10px !important;
	opacity: 0.8 !important;
}

.leaflet-control-attribution:hover {
	opacity: 1 !important;
}

#bottom_bar {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 15%;
}

#legend_container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 15%;
    height: 100%;
    background-color: rgb(230, 230, 230);
    font-size: 4em;
    color: rgb(80, 80, 80);
}

#settings_container {
    width: 15%;
    height: 100%;
    background-color: rgb(230, 230, 230);
    display: flex;
    justify-content: center;
    align-items: center;
}

/*### INFO PANE ###*/

#info_pane {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 9001;
    opacity: 0; /* 1 */
    width: 0; /* 20% */
    height: 85%;
    transition: opacity 1s, width 1s;
    background-color: rgb(200, 200, 200);
    overflow: hidden;
}

#info_pane_title {
    display: flex;
    align-items: center;
    width: 20vw;
    height: 3vw;
    background-color: rgb(100, 220, 120);
    font-weight: bold;
    padding-left: 5%;
    font-size: 1.6vw;
}

#info_pane_exit, #settings_pane_exit {
    width: 1.7vw;
    height: 1.7vw;
    background-color: rgb(200, 120, 100);
    margin: 5%;
    cursor: pointer;
    border-radius: 0.05vw;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(153, 80, 62);
    font-family: "Segoe UI Symbol", sans-serif;
    font-size: 1.1vw;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}
#info_pane_exit {
	margin-right: 4%;
    margin-left: auto;
}
#settings_pane_exit {
	margin-left: 4%;
    margin-right: 5%;
}

#info_pane_body_scroll {
    box-sizing: content-box;
    padding-right: 17px; /* to hide scrollbar */
    overflow-y: scroll;
    width: 20vw;
    height: 92%;
}

#info_pane_body {
    box-sizing: border-box;
    width: 20vw;
    padding: 0.7vw;
    font-size: 1em;
}

@media screen and (min-width: 1600px) {
    #info_pane_body_scroll {
        padding-right: 1.1vw;
    }
}

/*### LEGEND ###*/

.legend_button {
    width: 2.5vw;
    height: 2.5vw;

    cursor: pointer;
    margin: 4%;
    opacity: 0.3; /* 1 */
    transition: opacity 0.5s;
}

#legend_allies, #legend_axis, #legend_actual {
    font-size: 7vh;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

#legend_allies {
    color: rgb(100, 100, 220);
    /*border-color: rgb(70, 70, 200);*/
    opacity: 1; /* 0.3 */
}

#legend_axis {
    color: rgb(220, 100, 100);
    /*border-color: rgb(200, 70, 70);*/
}

#legend_actual {
    color: rgb(85, 210, 95);
    /*border-color: rgb(70, 200, 70);*/
}

#legend_separator {
    width: 0.2vw;
    height: 40%;
    background-color: rgb(200, 200, 200);
    margin: 3%;
    border-radius: 2px;
}

/*### SETTINGS ###*/

/* TODO - add help icon "New? Use the help icon for guidance" --> Got it*/
/* button to main menu */

.settings_button {
    width: 2.5vw;
    height: 2.5vw;
    cursor: pointer;
    margin: 3%;
    opacity: 0.3; /* 1 */
    transition: opacity 0.5s;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    width: 0;
	height: 0;
	line-height: 0;
}
.settings_button:hover {
    opacity: 0.5;
}
#settings_info, #settings_options, #settings_back {
    overflow: hidden; /* Fix icon overflow */
    width: 3vw;
    height: 8vh;
    line-height: 8vh;
    font-size: 6vh;
}

#help_content {
	display: none; /* flex */
	position: absolute;
	z-index: 9005;
	top: 10%;
	left: 15%;
	width: 70%;
	height: 70%;
	overflow-y: scroll;
	background-color: rgb(30,30,30);
	box-shadow: 3px 3px 10px rgb(100,100,100);
}
#help_content img {
	width: 100%;
	object-fit: contain;
}

#settings_pane {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 9001;
    opacity: 0; /* 1 */
    width: 0; /* 20% */
    height: 85%;
    transition: opacity 1s, width 1s;
    background-color: rgb(200, 200, 200);
    overflow: hidden;
}
#settings_pane_title {
    display: flex;
    align-items: center;
    width: 20vw;
    height: 3vw;
    background-color: rgb(237, 167, 75);
    font-weight: bold;
    font-size: 1.6vw;
}
#settings_pane_body_scroll {
    box-sizing: content-box;
    padding-right: 17px; /* to hide scrollbar */
    overflow-y: scroll;
    width: 20vw;
    height: 92%;
}
#settings_pane_body {
    box-sizing: border-box;
    width: 20vw;
    padding: 0.7vw;
    font-size: 1em;
}
#settings_pane_body p {
	display: flex;
	align-items: center;

}

#date_display {
	position: absolute;
	bottom: 10px;
	box-sizing: content-box;
	display: none; /* flex */
	justify-content: center;
	align-items: center;
	padding-left: 8px;
	padding-right: 8px;
	font-size: 18px;
	color: rgb(255,255,255);
	background-color: rgba(0,0,0,0.6);
	border-radius: 5px;
	z-index: 500;
}

/** TIMELINE **/

#timeline_container {
	overflow: hidden;
	position: relative;
	width: 70%;
	height: 100%;
	cursor: ew-resize;
	background-color: rgb(255,255,255);
	-moz-user-select: none;
}

/* So while dragging the timeline, the cursor will stay unchanged */
#timeline_container_cursor_drag_fix {
	display: none;
	position: fixed;
	width: 100%;
	height: 100%;
	cursor: ew-resize;
	left: 0;
	top: 0;
	z-index: 9003;
}

#timeline {
	/*width: 100%; */
	height: 100%;
	/*display: flex;*/
	position: absolute;
	left: 50%;
	top: 0;
}

#timeline_cursor {
	height: 100%;
	position: absolute;
	left: 50%;
	top: 0;
	border-left-style: dashed;
	border-left-width: 2px;
	border-left-color: rgb(255,0,0);
}

/*##### TIMELINE CONTROLS #####*/

#timeline_playback {
	display: flex;
	position: relative;
	top: 0;
	margin-left: auto;
	margin-right: auto;
	height: 35%;
	width: 20%;
	justify-content: center;
	z-index: 9004;
	cursor: auto;
}

#timeline_playback_left {
	width: 0;
	height: 0;
	border-top: 5.25vh solid rgb(230,230,230);
	border-left: 1vw solid transparent;
}

#timeline_playback_right {
	width: 0;
	height: 0;
	border-top: 5.25vh solid rgb(230,230,230);
	border-right: 1vw solid transparent;
}

#timeline_playback_center {
	width: 100%;
	height: 100%;
	background-color: rgb(230,230,230);
	display: flex;
	justify-content: center;
	line-height: 5.25vh;
}

#forward_text, #backward_text {
	font-size: 2.5vh;
	width: 1.5vw;
	color: rgb(100,100,100);
	margin-left: 0.1vw;
	margin-right: 0.1vw;
}

#timeline_play, #timeline_forward, #timeline_backward {
	font-size: 5vh;
	color: rgb(50,50,50);
	transition: color 0.5s;
	margin-left: 0.1vw;
	margin-right: 0.1vw;
	cursor: pointer;
}

#timeline_play:hover, #timeline_forward:hover, #timeline_backward:hover {
	color: rgb(150,150,150);
}

/*
#timeline_playback_center {
	border-top: 5.25vh solid rgb(230,230,230);
	border-left: 1.5vw solid transparent;
	border-right: 1.5vw solid transparent;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
}
*/






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

#timeline_shadow_left {
	content: '';
	background-color: transparent;
	position: absolute;
	top: 0;
	left: -10px;
	width: 10px;
	height: 100%;
	box-shadow: 0px 0px 45px rgb(150, 150, 150);
}
