/**
 * CONTENTS
 *
 * Variables............The variables for this css file
 * Colors...............Classes for colors
 * Global...............Globally-available variables and config.
 * Map..................Adjustment of the map
 * Startscreen..........Mainly balloon settings + background image
 * Navigation...........tour-top-navi
 * Story-frame..........story-frame without start-screen
 *
 */

/*------------------------------------*\
  #Variables
\*------------------------------------*/

:root {
    --color-main: #409d76;
    --color-one: #00adc5;
    --color-two: #89bd23;
}


/*------------------------------------*\
  #Colors
\*------------------------------------*/

.color--main{color: var(--color-main);}
.color--one{color: var(--color-one);}
.color--two{color: var(--color-two);}

.bckgrnd_color--main{background-color: var(--color-main);}
.bckgrnd_color--one{background-color: var(--color-one);}
.bckgrnd_color--two{background-color: var(--color-two);}

.border_color--main{border-color: var(--color-main);}
.border_color--one{border-color: var(--color-one);}
.border_color--two{border-color: var(--color-two);}

/*Hintergrundfarbe Aktive Storyelemente*/
.story-content.active{
    background-color: #f4f4f4;
}

#story-box h2{
    color: var(--color-main);
}


/*------------------------------------*\
  #Global
\*------------------------------------*/

body{
    overflow: hidden;
    font-family: 'Roboto Slab', sans-serif;
}

.story-btn{
    display:inline-block;
    position: relative;
    padding:7px 25px;
    margin: 1.5rem .5rem .5rem 0;
    cursor:pointer;
    font-size:17px;
    font-weight: 600;
    color:#ffffff;
    text-decoration:none;
    border: none;
    border-radius: 4px;
}

    .story-btn:active{
        top:1px;
    }

.hidden {
    display: none !important;
}


/*------------------------------------*\
  #Map
\*------------------------------------*/

#vcs_map_container{
    bottom: 50%;
}

#vcs_map_container.tour-inactive{
    right: 0;
}

@media screen and (min-width:48em /*768px*/) {
	#vcs_map_container{
		bottom: 0px;
		right: 45%
	}
}


/*------------------------------------*\
  #Header
\*------------------------------------*/

header:not(.tour-header) {
    background-color: transparent;
    border-color: transparent;
}

.tour-header {
	top: 0;
	left: 0;
	right: 0;
	position: fixed;
	z-index: 6;
	border-color: var(--color-main);
	box-sizing: border-box;
}

.story-title-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: inline-block;
    text-align: center;
    font-size: 1.2rem;
}

.story-logo-box {
    height: 100%;
}


/*------------------------------------*\
  #Startscreen
\*------------------------------------*/

#balloon-startscreen {
    top: 20%;
    margin: 0 1rem;
    min-width: 8rem;
    border: 5px solid var(--color-main);
}

    #balloon-startscreen::before {
        border-color: var(--color-main) transparent;
    }

.startscreen {
    top: 0;
    left: 0;
    bottom: 0;
}

@media screen and (min-width:48em /*768px*/) {
	#balloon-startscreen {
		top: 9%;
		left: 20%;
	}
}

@media screen and (min-width:75em /*1200px*/) {
	#vcs_map_container{
		right: 40%
	}
}

/*Background image startscreen*/
#story-frame.startscreen{
    background: url("../../datasource-data/storyExample/assets/images/Wirtschaftsatlas-Berlin-ohne-Navirose.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10001;
}


/*------------------------------------*\
  #Navigation
\*------------------------------------*/

.story-btn--nav{
    display: inline-block;
    color: white;
    font-weight: bold;
    padding: 4px;
    margin-bottom: 4px;
    border-radius: 2px;
    font-size: .9rem;
    text-decoration: none;
}

.tour-top-navi{
    position: relative;
    height: 6rem;
    margin: 0 1rem;
}

@media screen and (min-width:48em /*768px*/) {
    .tour-top-navi {
		margin: 0 1rem;
        height: 4rem;
	}
}

@media screen and (min-width:64em /*1024px*/) {
	.tour-top-navi {
		margin: 0 2rem;
	}
}


/*------------------------------------*\
  #Story-frame
\*------------------------------------*/

/* #story-frame: startscreen + tour-frame ----------------------------------- */
#story-frame{
    position: absolute;
    right: 0;
    z-index: 5;
    background: white;
    transition: top .5s ease-in;
}

/* for mobile devices */
.tour {
    top: 50%;
	left: 0;
    bottom: 0;
    padding: 3rem 2rem 1rem 3rem;
}

#story-frame.tour.tour-inactive{
    right: -40%;
    left: 100%;
}

/* tour-frame = tour-top-navi + story-box ----------------------------------- */
#tour-frame{
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 0;
    right: 0;
}

#tour-button {
    position: absolute;
    left: -2rem;
    bottom: 16px;
    padding:.45rem .55rem;
}

    #tour-button:active {
        top:auto;
    }    

#tour-button > i:before{
    content: "\f061";
}
.tour-inactive > #tour-button > i:before{
    content: "\f060";
}


/* story-box -----------------------------------------------------------------*/
#story-box{
    position: absolute;
    top: 6rem;
    left: 0;
    right: 0;
    bottom: 0;
}

#story-box.ui-scroll-content {
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-y: scroll;
}

#story-box h1, #story-box h2 {
    margin-left: 1rem;
    padding: 1rem 0;
}

#story-box section {
    margin: 0 1rem;
    border-bottom: 8px solid var(--color-main);
}

.text-center{
    text-align: center;
    margin: 1.5rem 0;
}

@media screen and (min-width:48em /*768px*/) {

	#story-frame{
		top: 4.5rem;
    }

	.tour {
		left: 55%;
	}
    #story-frame.tour-stop {
        left: 120%;
        top: 5rem;
    }

	#tour-frame {
		top: 3rem;
	}

    #story-box{
        top: 4rem;
    }

}


@media screen and (min-width:64em /*1024px*/) {

    #story-box.ui-scroll-content {
        padding-left: 2rem;
        padding-right: 2rem;
        overflow-y: scroll;
    }
}

@media screen and (min-width:75em /*1200px*/) {

	.tour {
		left: 60%;
	}
}
