/*
    common
    ------
*/

* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    _font-family: "Michroma";
    _font-family: "Jost";
}

html, body {
    position: relative;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    color: #FFF;  
    font-size: 12px;
    overflow: hidden;
    background-color: #000000;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none; 
    overscroll-behavior-y: contain; 
}

a {
    color:#81C341;
    text-decoration: none;
}

p {
    margin: 15px 0;
    color: #AAA;
    font-size: 14px;
}

h1 {
    margin: 10px 0;
    font-size: 24px;
}

h2 {
    margin: 15px 0;
    font-size: 22px;
}

h3 {
    margin: 15px 0;
    font-size: 20px;
    font-weight:normal;
}

.highlight {
    color: #3996CC;
    font-weight: bold;
}

/* 
    -----
    Shell 
    -----
*/

#menupage {
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

#tilecontainer {
    width: 100%;
    padding: 10px 30px 40px 50px;
}
.menutile {
    border: 1px solid #000;
    float: left;
    width: 40%;
    margin: 10px
}
.tiletext {
    color: #FFFFFF;
}

#mainpage {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background-color: #000000;
    z-index: 10000;
    overscroll-behavior-y: contain;
}

#mainpage-toolbar {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    display: none;
    opacity: 0;
    background-color: #000000;
    z-index: 10000;
}
#mainpage-toolbar-title {
    position: absolute;
    top: 18px;
    left: 0;
    text-align: center;
    height: 50px;
    width: 100%;
    font-size: 14px;
    z-index: 11000;
    color: #FFFFFF;
}
#mainpage-backbutton {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 40px;
    height: 40px;
    background: url(../images/shell/back.svg) no-repeat;
    background-size: 20px 20px;
    background-position-x: center;
    background-position-y: center;
    background-color: #000000;    
    border-radius: 50%;
    z-index: 20000;
    display: none;
}

#mainpage-content {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 95px;
    z-index: 9000;
}

/*
    map
*/

.pinch-zoom-container {
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
}

.pinch-zoom-image {
    width: 100%;
}


/* 
    popup 
*/

#popup {
    left: 50%;
    transform: translate(-50%, 60px);
    position: absolute;
    top: 0;
    bottom: 60px;
    _margin: 16% 5%;
    background-color: #FFF;
    width: 90%;
    max-width: 600px;
    display: none;
    z-index: 11000;
}
#popup-header {
    position: absolute;
    top: 0;
    height: 0;    
    width: 100%;
}

#popup-content {
    position: absolute;
    top: 0;
    bottom: 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}
#popup-content h1 {
    color: #000000;
}

#popup-footer {
    position: absolute;
    bottom: 0;
    height: 80px;
    width: 100%;  
    text-align: center; 
}

#popup-footer .button {
    margin: 20px 25%;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    display: none;
    background-color: #000;
    z-index: 10000;
}

/* 
    tabs 
*/

.tabs {
    position: fixed;
    width: 100%;
    height: 66px;
    bottom: 0;
    padding-top: 10px;
    background-color: #0E0E0E;
    z-index: 11000;
    text-align: center;
}

.tabs-button {
    _float: left;
    display: inline-block;
    color: #FFF;
    background: no-repeat;
    height: 50px;
    background-size: 20px 20px;
    background-position-x: center;
    opacity: 0.4;
    cursor: pointer;
}

.tabs-button .selected {
    opacity: 1;
}

.tabs-buttontext {
    position: absolute;
    bottom: 18px;
    text-align: center;
    font-size: 11px;
}

/* 
    toolbar 
*/

.toolbar {
    position: absolute;
    width: 100%;
    height: 55px;
    top: 0;
    padding-top: 14px;
    background-color: #000000;
    z-index: 21000;
}

.toolbar-caption {
    width: 50%;
    text-align: center;
    font-size: 18px;
    color: #FFF;
    margin: 0 auto;
}

.toolbar-button {
    width: 50px;
    float: left;
    color: #FFF;
    background: no-repeat;
    height: 50px;
    background-size: 20px 20px;
    background-position-x: center;
    z-index: 22000;
}


/* 
    button 
    --------
*/

.button-wrapper {
    width:100%;
    display: flex;
    justify-content: center;
}
.button {
    display: block;
    max-width: 400px;
    height: 36px;
    border-radius: 5px;
    background-color: #81C341;
    color: #FFF;
    text-align: center;
    text-decoration: none;
    padding: 10px 0;
    margin: 5px 20px;
}


/* 
    header 
    --------
*/


.header-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position-y: -30px;
    background-repeat:repeat-x;
    padding: 15px;
    opacity: 1;
}
.header-content {
    height: 150px;
    margin-top: -150px;
    padding: 20px;
    text-align: left;
}

.header-logo {
    width: 120px;
    height: 80px;
    background: no-repeat;
    background-size: 120px auto;
    position: absolute;
    top: 15px;
    left: 20px;
}
.header-partner-logo {
    width: 160px;
    height: 160px;
    background: no-repeat;
    background-size: 160px auto;
    position: absolute;
    top: 20px;
    right: 20px;
}

.header-title {
    position: absolute;
    top: 320px;
    width: 80%;
    height: 80px;
    color: #FFFFFF;
    font-size: 28px;
    font-weight: bold;
}

.header-sub-title {
    position: absolute;
    top: 230px;
    width: 90%;
    height: 80px;
    color: #FFFFFF;
    font-size: 18px;
}


/* 
    details page 
    ------------
*/
.details {
    overflow-y: scroll;
    height: 100%;
}

.details-image {
    width: 100%;
}

.details-title {
    color: #FFF;
    font-size: 24px;
    width: 100%;
    padding: 20px 20px 10px 20px;
}
#popup-content .details-title {
    color: #222222;
}

.details-subtitle {
    color: #3996CC;
    font-size: 18px;
    width: 100%;
    padding: 10px 20px 10px 20px;
}

.details-content {
    color: #BBB;
    font-size: 16px;
    width: 100%;
    padding: 10px 20px 50px 20px;
}

.details-content p {
    margin-left: 0;
    margin-right: 0;
}

/* 
    all lists
    ---------
*/

.list {
    margin: 10px 15px 20px 15px;
}

/* 
    carousel list
    -------------
*/

.glider-contain {
    margin-bottom: 10px !important;
}

.glider-slide {
    margin-right: 6px;
    width:160px !important;
}

.image-wrap {
    width: 100%;
    height: 90px;
    overflow: hidden;
}
.image-wrap img {
    height: 100%;
    width: auto;
}

.carousel-title {
    margin-top: 0;
    color: #BBBBBB;
    background-color: #222222;
    padding: 6px;
    min-height: 80px;
}
.carousel-subtitle {
    margin-top: 0;
    padding: 6px;
    color: #3996CC;
    font-size: 12px;
    background-color: #222222;
    min-height: 30px;
}
.carousel-title.sponsor,
.carousel-subtitle.sponsor {
    min-height: 10px;
}

.carousel-footer {
    margin-top: 0;
    padding: 6px;
    color: #3996CC;
    font-size: 12px;
    font-weight: bold;
    background-color: #222222;
}

/* 
    image list
    -----------
*/

.imagelist {
    width: 100%;
    padding: 0;
}

.imagelist-image {
    width: 100%;
    height: 300px;
    background-position: center;
    background-size: cover;
}

.imagelist-title {
    color: #FFFFFF;
    margin: 10px 0 5px 0;
    font-size: 20px;
}
#popup-content .imagelist-title {
    color: #222222;
    font-size: 16px;
}

.imagelist-subtitle {
    color: #888;
    margin: 0 15px 30px 0;
}


/* 
    thumb list
    ----------
*/
.thumblist {
    width: 100%;
    padding: 0;
}

.thumblist-row {
    width: 100%;
    height: 155px;
    margin-bottom: 5px;
}

.thumblist-image {
    width: 150px;
    height: 150px;
    background-position: center;
    background-size: cover;
    border-radius: 5px;
}

.thumblist-title {
    color: #FFFFFF;
    font-size: 15px;
    margin-top: -145px;
    margin-left: 160px;
}
#popup-content .thumblist-title {
    color: #222222;
    font-size: 15px;
}

.thumblist-subtitle {
    color: #888;
    font-size: 13px;
    margin-top: 5px;
    margin-left: 160px;
}



/* 
    data list
    ----------
*/
.datalist {
    width: 100%;
    padding: 0;
}

.datalist-row {
    width: 100%;
}

.datalist-title {
    display: block;
    color: #FFFFFF;
    font-size: 18px;
}
#popup-content .datalist-title {
    color: #222222;
    font-size: 16px;
}

.datalist-subtitle {
    display: block;
    color: #888;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 25px;
}

.tingle-modal-box__content h1 {
    color: #000;
    margin: 0;
}

.tingle-modal-box__content p {
    margin: 10px 0;
}

/* 
    image
    ----
*/
.image {
    width: 100%;
    _padding: 20px 15px;
}

/* 
    text
    ----
*/
.text {
    color: #BBB;
    font-size: 16px;
    width: 100%;
    padding: 5px 15px;
}

/* 
    survey
    ------
*/
.survey {
    padding: 0 15px;
}

.question {
    display: block; 
    margin: 20px 0;
}
.question-label {
    display: block;
    margin: 20px 0 10px 0;
    color: #BBBBBB;
}
.question input[type=text] {
    width: 100%;
    height: 40px;
    font-size: 14px;
}
.question input[type=checkbox],
.question input[type=radio] {
    display: inline-block;
    width: 25px;
    height: 25px;
}
.question-option-label {
    display: inline-block;
    position: absolute;
    font-size: 14px;
    height: 30px;    
    padding: 7px 0 0 6px;
}


/* 
    Media Queries
    -------------
*/
@media only screen and (max-width: 480px) {
    body {
        padding: 0;
    }

    #mainpage-content,
    #secondpage-content,
    #tabs,
    #toolbar {
        max-width: 100%;
    }
}
