@font-face{
    font-family: "Mittelschrift";
    src: url("res/fonts/mittelschrift.woff2") format('woff2'),
         url("res/fonts/mittelschrift.ttf") format('truetype')
}

html, body{
    background-image:  url("res/background.jpg");
    background-size: 100% 100%;
    background-color: black;
    font-family: "Mittelschrift";
    color: white;
    position: fixed;
    height: 100%;
    width: 100%;
    margin: 0px;
    padding: 0px;
}
canvas{
	position: relative;
	display: block;
    width: 100%;
    height: 100%;
}



@media (orientation: landscape){

    .orientationmessage{
        display: none;
    }
    /*HEADER*/

    #headerwrapper{
        position: absolute;
        height: 100%;
        width: 100%;
        z-index: 500;
    }

    .topheader{
        position: relative;
        height: 3%;
        width: 100%;
        background-color: #63C2A2;
    }

    .bottomheader{
        position: absolute;
        width: 100%;
        background-color: #FFFFFF;
        z-index: 500;
    }

    .headerarrow{
        position: absolute;
        display: none;
        max-width:100%;
        max-height:100%;
        margin-left: 1%;
        cursor: pointer;
    }

    .headertext{
        text-align: center;
        vertical-align: middle;
        line-height: 50%;
        font-weight: normal;
    }

    .headertext a, .headerarrowtext a {
        color: #63C2A2;
    }

    .headerarrowtext{
        position: absolute;
        display: none;
        left: 10%;
        text-align: center;
        vertical-align: middle;
        line-height: 50%;
        color: #63C2A2;
        font-weight: normal;
    }

    .headertext.main{
        color: #F37731;
    }

    .menuheader, .diagramheader{
        display: none;
    }

    .footer {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 4%;
        width: 100%;
        background-color: #63C2A2;
        z-index: 500;
    }

    @media only screen and (min-height: 501px){
        .bottomheader{
            height: 8%;
        }
        .headertext{
            font-size: 3.7vh;
        }
        .headerarrowtext{
            font-size: 3.7vh;
        }
    }
    @media only screen and (max-height: 500px) {
        .bottomheader{
            height: 10%;
        }
        .headertext{
            font-size: 4.5vh;
        }
        .headerarrowtext{
            font-size: 4.5vh;
        }
    }

    /*LANDING PAGE*/

    .menuBase{
        position: absolute;
        left: 50%;
        top: 50%;
        max-height: 100%;
        max-width: 100%;
    }

    .menuBase h1{
        text-align: center;
        vertical-align: middle;
    }

    .startMenu{
        width: 100%;
        height: 80%;
        position: relative;
        border: 1px solid #aaa;
        border-radius: 20px;
        -moz-border-radius: 20px;

        background: #00b2ee;
    }

    .startMenu h1{
        position: relative;
        text-align: center;
        vertical-align: middle;
        margin: 4% 0;
    }

    .jobRow{
        position: relative;
        width: 45%;
        float: left;
    }

    #jobRowLeft, #regionRowLeft{
        margin-left: 5%;
    }

    #jobRowRight, #regionRowRight{
        margin-right: 5%;
    }

    .jobBack img, .jobPageBack{
        -moz-transform: scaleX(-1);
        -o-transform: scaleX(-1);
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
        filter: FlipH;
        -ms-filter: "FlipH";
    }

    .jobPageForward, .jobPageBack{
        position: absolute;
        cursor: default;
    }

    .jobPageForward.available, .jobPageBack.available, .jobBack{
        position: absolute;
        cursor: pointer;
    }

    .jobBack img{
        position: relative;
        float: left;
    }

    .jobBack span{
        position: relative;
        text-align: center;
        vertical-align: middle;
        float: left;
        z-index: 99999;
    }

    .regionItem, .jobItem{
        cursor: pointer;
        position: relative;
        border-radius: 10px;
        -moz-border-radius: 10px;
        background: #0096cb;
    }

    .jobItem.spareItem{
        position: relative;
        margin: 0px;
        float: left;
    }

    .regionItem.selected, .jobItem.selected{
        background: #ffb000;
    }

    .regionItem img, .jobItem img{
        pointer-events: none;
        position: relative;
        float: left;
    }

    .regionItem h2, .jobItem h2{
        pointer-events: none;
        position: relative;
        text-align: center;
        vertical-align: middle;
        float: left;
        z-index: 99999;
    }

    @media only screen and (max-width: 800px) {
        .menuBase{
            width: 540px;
            height: 300px;
            margin-left: -270px;
            margin-top: -140px;
        }

        .menuBase h1{
            font-size: 18px;
        }

        .startMenu h1{
            font-size: 15px;
            margin: 10px 0;
        }

        .jobRow{
            height: 148px;
        }

        .regionItem, .jobItem{
            width: 220px;
            height: 34px;
            margin: 5px;
        }

        .jobItem.spareItem{
            margin: 0 150px;
        }

        .jobBack{
            left: 40px;
            top: 2px;
            width: 140px;
            height: 40px;
        }

        .jobBack img{
            width: 28px;
            margin: 6px;
        }

        .jobBack span{
            font-size: 18px;
            margin: 10px;
        }

        .jobPageBack{
            left: 150px;
            bottom: 6px;
            width: 34px;
            height: 34px;
        }

        .jobPageForward{
            left: 350px;
            bottom: 6px;
            width: 34px;
            height: 34px;
        }

        .regionItem img, .jobItem img{
            width: 28px;
            height: 28px;
            margin: 2px;
        }

        .regionItem h2, .jobItem h2{
            font-size: 10px;
            margin-left: 10px;
        }
    }

    @media only screen and (min-width: 801px) {
        .menuBase{
            width: 1000px;
            height: 580px;
            margin-left: -500px;
            margin-top: -270px;
        }

        .menuBase h1{
            font-size: 29px;
        }

        .startMenu h1{
            font-size: 26px;
        }

        .jobRow{
            height: 290px;
        }

        .regionItem, .jobItem{
            width: 440px;
            height: 67px;
            margin: 4px;
        }

        .jobItem.spareItem{
            margin: 0 300px;
        }

        .jobBack{
            left: 40px;
            top: 30px;
            width: 180px;
            height: 70px;
        }

        .jobBack img{
            width: 52px;
            margin: 9px;
        }

        .jobBack span{
            font-size: 24px;
            margin: 21px;
        }

        .jobPageBack{
            left: 300px;
            bottom: 8px;
            width: 52px;
            height: 52px;
        }

        .jobPageForward{
            left: 650px;
            bottom: 8px;
            width: 52px;
            height: 52px;
        }

        .regionItem img, .jobItem img{
            width: 52px;
            height: 52px;
            margin: 6px;
        }

        .regionItem h2, .jobItem h2{
            margin-left: 50px;
            font-size: 21px;
        }
    }

     /*NODES*/

    .spiderdiagram{
        position: absolute;
        display: block;
        width: 100%;
        height: 100%;
    }

    .node{
    	z-index: 2;
    	position: absolute;
    }

    .node h1{
        position:absolute;
        top: 30%;
        width: 80%;
        z-index: 10;
        left: 10%;

        text-align: center;
        vertical-align: middle;
        font-weight: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .node img{
    	height: 100%;
    	width: 100%;
    	position: relative;
        border-radius: 50%;
     }
    .node a{
        cursor: pointer;
        left: 0;
        position:absolute;
        top: 70%;
        width: 100%;
        z-index: 10;
    }

    .node a:hover{
        text-decoration: underline;
        text-decoration-style: dotted;
    }

    .nodeBase{
        position: absolute;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%); 
        transform: translate(-50%, -50%); 
        text-align:center;
    }

    .nodeImg{
        position: relative;
        -webkit-transform: scale(0) translate(-50%, -50%);
        -ms-transform: scale(0) translate(-50%, -50%); 
        transform: scale(0) translate(-50%, -50%); 
        transform-origin: 0% 0%;
    	transition: all 0.8s;
    }

    .nodeImg.expand{
        -webkit-transform: scale(1) translate(-50%, -50%);
        -ms-transform: scale(1) translate(-50%, -50%); 
        transform: scale(1) translate(-50%, -50%); 
    }

    .nodeIcon img{
        position: absolute;
        display: block;
        width: 22%;
        height: 22%;
        top: 12%;
        left: 39%;
    }

    @media only screen and (max-width: 800px) {
        .node a{
            top: 65%;
        }
        .node h1{
            top: 25%;
        }
        .nodeIcon img{
            top: 9%;
        }
        .childNode{
            width: 13%;
            height: 13%;
        }
        .childNode h1{
            font-size: 1.6vw;
            height: 29%;
        }
        .childNode a{
            font-size: 1.55vw;
        }
        .parentNode{
            width: 16%;
            height: 16%;
        }
        .parentNode h1{
            font-size: 1.9vw;

        }
        .parentNode a{
            font-size: 1.8vw;
            top: 70%;
        }

        .informationImg.infoDesc h1 {
            font-size: 1.5vw;
        }

        .informationImg.infoDesc ul {
            font-size: 1.2vw;
        }
    }

    @media only screen and (min-width: 801px) {
        .nodeIcon img{
            top: 12%;
        }
        .childNode{
            width: 10%;
            height: 10%;
        }
        .childNode h1{
            font-size: 1.0vw;
        }
        .childNode a{
            font-size: 0.9vw;
        }
        .parentNode{
            width: 15%;
            height: 15%;
        }
        .parentNode h1{
            font-size: 1.5vw;
        }
        .parentNode a{
            font-size: 1.3vw;
            top: 75%;
        }

        .informationImg.infoDesc h1 {
            font-size: 1.2vw;
        }

        .informationImg.infoDesc ul {
            font-size: 1vw;
        }
    }

    /*INFO DIV*/
    .infoDiv{
        position: absolute;
    }

    .informationImg{
        z-index: 15;
        position: absolute;
        display: none;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%); 
        transform: translate(-50%, -50%);
    }

    .informationImg img{
        max-width:100%;
        max-height:100%;
        position: absolute;
        cursor: pointer;
    }

    .infoDesc{
        display: block;
        position: absolute;
        z-index: 999;

        border: 1px solid rgba(0,0,0,0);
        border-radius: 10px;
        background: #3c91af;

        color: white;
    }

    .infoDesc:before {
        content: "";
        position: absolute;
        top: 100%;
        z-index: 999;
        border: solid 15px transparent;
        border-top-color: #3c91af;
    }

    .infoDesc h1 {
        position: relative;
        margin: 3% 5% 1% 5%;
    }

    .infoDesc span{
        display: block;        
        position: relative;
        text-align: left;
        margin: 1% 5% 1% 5%;
    }

    .infoDesc div{
        max-height: 70%;
        overflow: auto;
    }

    @media only screen and (min-width: 1201px) {
        .informationImg{
            width: 48px;
            height: 48px;
        }
        .infoDesc{
            width: 350px;
            height: 170px;

            -webkit-transform: translate(-10%, -120%);
            -ms-transform: translate(-10%, -120%); 
            transform: translate(-10%, -120%);
        }
        .infoDesc:before{
            left: 5%;
        }
        .infoDesc h1{
            font-size: 22px
        }
        .infoDesc span{
            font-size: 18px;
        }
    }
    @media only screen and (min-width: 801px) and (max-width: 1200px) {
        .informationImg{
            width: 48px;
            height: 48px;
        }
        .infoDesc{
            width: 310px;
            height: 150px;
            -webkit-transform: translate(-10%, -120%);
            -ms-transform: translate(-10%, -120%); 
            transform: translate(-10%, -120%);
        }
        .infoDesc:before{
            left: 5%;
        }
        .infoDesc h1{
            font-size: 18px
        }
        .infoDesc span{
            font-size: 16px;
        }
    }
    @media only screen and (min-width: 601px) and  (max-width: 800px) {
        .informationImg{
            width: 32px;
            height: 32px;
        }
        .infoDesc{
            width: 250px;
            height: 120px;
            -webkit-transform: translate(-30%, -120%);
            -ms-transform: translate(-30%, -120%); 
            transform: translate(-30%, -120%);
        }
        .infoDesc:before{
            left: 24%;
        }
        .infoDesc h1{
            font-size: 16px
        }
        .infoDesc span{
            font-size: 14px;
        }
    }
    @media only screen and (max-width: 600px){
        .informationImg{
            width: 32px;
            height: 32px;
        }
        .infoDesc{
            width: 230px;
            height: 100px;

            -webkit-transform: translate(-40%, -120%);
            -ms-transform: translate(-40%, -120%); 
            transform: translate(-40%, -120%);
        }
        .infoDesc:before{
            left: 34%;
        }
        .infoDesc h1{
            font-size: 15px
        }
        .infoDesc span{
            font-size: 13px;
        }
    }

    /*INFO POPUP*/

    .fullscreenBackground{
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: gray;
        opacity: 0.7;
        z-index: 1500;
        display: none;
    }

    .popup{
        background-color: white;
        position: absolute;
        color: gray;
        display: none;
        z-index: 1600;

        border-color: #000000;


        top:0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
    }

    .popup h1{
        margin-top: 6%;
        margin-bottom: 0%;
    }

    .popuplink{
        position: absolute;
        text-align: center;
        margin: auto;
        width: 100%;
        bottom: 5%;

        color: inherit;
        text-decoration: none;
        cursor: pointer;
    }

    .popuplink:hover{
        text-decoration: underline;
        text-decoration-style: dotted;
    }

    .pagenumber{
        position: absolute;
        bottom: 5%;
        right: 5%;
    }
    .arrow{
        position: absolute;
        display: block;

        margin: 0 auto; 
        top: 50%;
        cursor: pointer;
        z-index: 1500;
    }

    #closebutton{
        position: absolute;
        right: 5%;
        top: 5%;
        cursor: pointer;
    }

    #leftarrow{
        left: 3%;
    }

    #rightarrow{
        right: 3%;
        -moz-transform: scaleX(-1);
        -o-transform: scaleX(-1);
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
        filter: FlipH;
        -ms-filter: "FlipH";
    }

    #popupicon{
        position: absolute;
        left: 5%;
        top: 4%;
    }

    .horseshoeContainer{
        position: relative;
        float: left;

        margin-left: 3%;
        margin-right: 1%;
        margin-top: 3%;
        margin-bottom: 3%;

        width: 16%;
        height: 94%
    }

    .horseshoeContainerContent{
        position: absolute;
        margin-left: 10%;
        bottom: 10%;
        left: 0;
        width: 100%;
    }

    .horseshoeContainerContent img{
        width: 50%;
        height: 50%;

        display: block;
        margin: 0 auto; 
    }

    .horseshoeContainerContent h1{
        text-align: center;
        vertical-align: middle;
    }

    .jobInfoContainer{
        word-wrap: break-word;
        overflow: hidden;
        float: left;

        margin-left: 5%;
        margin-bottom: 1%;

        width: 65%;
        height: 75%;

        font-size: 1.25vmin;
    }

    .jobInfoContainer h2{
        font-size: 1.5vmin;
    }

    .jicText{
        white-space: pre-wrap;
    }

    @media only screen and (max-width: 800px) {
        #closebutton{
            max-width: 32px;
            max-height: 32px;
        }
        #popupicon{
            max-width: 42px;
            max-height: 42px;
        }
        .arrow{
            max-width: 30px;
            max-height: 31px;
        }
        .popup{
            width: 82%;
            height: 82%;
            max-width: 540px;
            max-height: 320px;
            border: solid 7px;
            border-radius: 30px;
        }
        .popup h1{
            font-size: 4.2vmin;
        }
        .horseshoeContainerContent h1{
            font-size: 3.7vmin;
        }
        .jobInfoContainer{
            font-size: 3vmin;
        }
        .jobInfoContainer h2{
            font-size: 3.8vmin;
        }
        .popuplink{
            font-size: 3.7vmin;
        }
        .pagenumber{
            font-size: 3.7vmin;
        }
    }
    @media only screen and (min-width: 801px) {
        #closebutton{
            max-width: 64px;
            max-height: 64px;
        }
        #popupicon{
            max-width: 84px;
            max-height: 84px;
        }
        .arrow{
            max-width: 59px;
            max-height: 61px;
        }
        .popup{
            width: 70%;
            height: 70%;
            max-width: 1220px;
            max-height: 820px;
            border: solid 14px;
            border-radius: 55px;
        }
        .popup h1{
            font-size: 3.2vmin;
        }
        .horseshoeContainerContent h1{
            font-size: 2.3vmin;
        }
        .jobInfoContainer{
            font-size: 2.2vmin;
        }

        .jobInfoContainer h2{
            font-size: 3vmin;
        }
        .popuplink{
            font-size: 3vmin;
        }
        .pagenumber{
            font-size: 3vmin;
        }
    }

    /*MISC*/

    .show{
        display: block;
    }

    .noSelect {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /*CONTACT POPUP*/

    #contactback{
        cursor: pointer;
        position: absolute;
        text-decoration: underline;
        text-decoration-style: dotted;
        z-index: 9999;
        left: 3%;
        top: 3%;
    }

    #contactpopup h1{
        position: relative;
        text-align: center;
        vertical-align: middle;
        margin-top: 3%;
    }

    .popuptextbox{
        overflow: hidden;
        text-align: center;
        vertical-align: middle;
    }

    .popuptextbox a{
        text-decoration: underline;
        text-decoration-style: dotted;
        color: inherit;
    }

    .socialmediacontainer{
        margin: 0 auto;
    }

    .socialmediaitem{
        background-color: initial;
        float: left;
    }

    .socialmediaitem img{
        pointer-events: none;
        position: relative;
        float: left;
    }

    .socialmediaitem h2{
        pointer-events: none;
        position: relative;
        text-align: center;
        vertical-align: middle;
        float: left;
        z-index: 99999;
    }

    .socialmediaitem:hover{
        cursor: pointer;
        background-color: #ccc;
    }

    @media only screen and (max-width: 800px) {
        #contactpopup h1{
            font-size: 20px;
        }

        .popuptextbox{
            margin: 30px 100px;
            font-size: 14px;
        }

        .socialmediacontainer{
            height: 120px;
            width: 320px;
        }

        .socialmediaitem{
            width: 155px;
            height: 50px;
            margin: 2.5px;
            border-radius: 10px;
        }

        .socialmediaitem img{
            width: 36px;
            height: 36px;
            margin: 7px;
        }

        .socialmediaitem h2{
            font-size: 11px;
            margin-left: 6px;
            margin-top: 15px;
        }
    }
    @media only screen and (min-width: 801px) {
        #contactpopup h1{
            font-size: 32px;
        }

        .popuptextbox{
            margin: 40px 150px;
            font-size: 24px;
        }

        .socialmediacontainer{
            height: 200px;
            width: 660px;
            margin-top: 20px;
        }

        .socialmediaitem{
            width: 320px;
            height: 90px;
            margin: 5px;
            border-radius: 10px;
        }

        .socialmediaitem h2{
            font-size: 24px;
            margin-left: 20px;
            margin-top: 32px;
        }

        .socialmediaitem img{
            margin: 9px
        }
    }
}

/*PORTRAIT*/
@media (orientation: portrait){
    .topheader{
        display: none;
    }
    .bottomheader{
        display: none;
    }
    .footer{
        display: none;
    }
    .spiderdiagram{
        display: none;
    }
    .menuBase{
        display: none;
    }
    .orientationmessage{
        display: block;
        background-color: white;
        position: absolute;
        color: #63C2A2;
        z-index: 999;
        border-radius: 55px;

        width: 72%;
        height: 72%;
        max-width: 540px;
        max-height: 280px;
        border: solid 7px;

        top:0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
    }
    .orientationmessage h1{
        text-align: center;
        font-size: 6vw;
        width: 80%;
        position: relative;
        top: 50%;
        margin: auto;
        transform: translateY(-50%); 
    }
}