img{border:0;vertical-align:middle;}
* { box-sizing: border-box; outline: none; }
a:link { text-decoration: none; }
.hidden { opacity: 0; }
.transition { transition: all 0.4s ease; }
.ellipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@font-face { font-family: 'RobCondReg'; src: local('Roboto Condensed'), local('RobotoCondensed-Regular'), url('../fonts/RobotoCondensed-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; letter-spacing: 0; }
@font-face { font-family: 'RobSlabReg'; src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url('../fonts/RobotoSlab-Regular.ttf') format('truetype'); font-weight: normal; font-style: normal; letter-spacing: 0; }

/* Styles */
html {
    height: 100%;
    font-size: 100%;
    overflow: hidden;
}
	.font1 { font-size: 80%; }
	.font2 { font-size: 85%; }
	.font3 { font-size: 90%; }
	.font4 { font-size: 95%; }
	.font5 { font-size: 100%; }
	.font6 { font-size: 105%; }
	.font7 { font-size: 110%; }
	.font8 { font-size: 115%; }
	.font9 { font-size: 120%; }
	.font10 { font-size: 125%; }

	@media (-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2){
		html { font-size: 50%; }
		.font1 { font-size: 40%; }
		.font2 { font-size: 45%; }
		.font3 { font-size: 50%; }
		.font4 { font-size: 55%; }
		.font5 { font-size: 60%; }
		.font6 { font-size: 65%; }
		.font7 { font-size: 70%; }
		.font8 { font-size: 75%; }
		.font9 { font-size: 80%; }
		.font10 { font-size: 95%; }
	}

	.weight-r { font-weight: 400; }
body {
	border: 0; margin: 0;
    background: #1e1e1e url('../img/bg.png') no-repeat top center / 100% auto;
	height: 100%;
    font-family: 'RobCondReg', sans-serif;
	padding: 4vh 3vw 0;
    display: flex;
    flex-direction: column;
}

.primary { color: #212121; font-size: 1.5rem; }
.secondary { color: #737373; font-size: 1.125rem; }
change.__vervallen--0 .chip-time .primary { color: #fafafa; }
change.__vervallen--0 .chip-time .secondary, .chip-msg.secondary { color: #dbdbdb; }
/* Header */
    header {
        flex: 0 0 auto;
        align-items: center;
        display: flex;
        color: #fff;
        font-size: 1.125rem;
        margin-bottom: 1.3rem;
        line-height: 1.3;
    }
        .app-logo {
            width: 3.5rem; height: 3.5rem;
            margin-right: 1rem;
        }
        .app-title { flex: 1 0 auto; }
            .app-monitor { color: #b23159; }

        .app-date { text-align: right; white-space: nowrap; }
            .date-clock { font-size: 2.25rem; }
            .clock-dots {
                padding: 0 0.1rem;
                -webkit-animation: clockdots 2s ease infinite normal both;
                animation: clockdots 2s ease infinite normal both;
            }
            .clock-dots.dots-received { color: #b23159; }
        .date-date { position: relative; }
        .date-date > span {
            position: absolute; top: 0; right: 0;
            opacity: 0;
            -webkit-animation: datefade 15s ease infinite normal both;
            animation: datefade 15s ease infinite normal both;
        }
            .date-date > span:nth-child(2){ -webkit-animation-delay: -7.5s; animation-delay: -7.5s; }
/* End-Header */
/* Page */
    page {
        flex: 1 1 auto;
        overflow: hidden;
        display: flex;
    }
        .cont-changes {
            flex: 1 1 auto;
            overflow: hidden;
			padding-bottom: 2vh;
			display: flex;
        }
        .cont-cards {
            flex: 0 1 38%;
            display: none;
            overflow: hidden;
            background: #fafafa;
            border-radius: 0.5rem 0.5rem 0 0;
            position: relative;
            box-shadow: 0.1875rem 0 1.875rem #000;
        }
            .has-cards .cont-cards { display: block; }

    .cont-changes .changes-slider {
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        transition: all 0.6s cubic-bezier(0.5,-0.5, 0.61, 0.99);
        min-width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        align-content: flex-start;
    }
    .cont-changes h2 { color: white; }
    .cont-cards.updating > div { opacity: 0; }
/* End-Page */
/* Chips */
change {
	background: #fafafa;
	border-radius: 0.25rem;
	line-height: 1.1;
    width: 21rem;
    margin-right: 1rem;
    margin-bottom: 0.1rem;
	display: block;
}
	change.show_time { width: 24rem; }
    .font9 change, .font10 change, .font11 change, .font12 change { width: 32rem; }
    .font9 change.show_time, .font10 change.show_time, .font11 change.show_time, .font12 change.show_time { width: 30rem; }
    change[data-title]{
        margin-top: 4.2rem;
        position: relative;
    }
		change.is-first-in-column[data-title] {
			margin-top: 3rem;
		}
		change.title-single-line[data-title] {
			margin-top: 2.4rem;
		}
		change.is-first-in-column.title-single-line[data-title] {
			margin-top: 1.6rem;
		}
        change[data-title]::before {
            content: attr(data-title);
            position: absolute;
            left: 0;
            bottom: 100%;
            color: white;
            font-size: 1.5rem;
        }
    .__vervallen--1 { background: #ddd; }
	.__vervallen--1 .chip-room { display: none; }

    .chip-top {
        display: flex;
        align-items: stretch;
        overflow: hidden;
        border-radius: 0.25rem 0.25rem 0 0;
    }
        .chip-top:only-child { border-bottom-left-radius: 0.25rem; }
        .chip-top > * { display: flex; flex-direction: column; justify-content: center; padding: 0.5rem 0.4rem; }
    	.chip-class {
    		flex: 1 1 auto;
    	    /* white-space: nowrap; */
            overflow: hidden;
    	}
		.__vervallen--1  .chip-class { text-decoration: line-through; color: #b23159; }
    	.chip-time { text-align: right; flex: 0 0 auto; min-width: 3.4125rem; }
    	.__vervallen--0 .chip-time { background: #b23159; }
    	.__vervallen--0:not(.show_time) { border-left: 0.3rem solid #b23159; }
    	.chip-room {
            flex: 0 0 auto;
    		padding: 0 0.5rem;
            border-radius: 0 0.25rem 0.25rem 0;
    	}
	.chip-msg:not(:empty) {
		background: #b23159;
		padding: 0.3rem 0.4rem;
        border-radius: 0 0 0.25rem 0;
	}
	.show_time .chip-msg:not(:empty) { border-radius: 0 0 0.25rem 0.25rem; }
/* End-Chips */
/* Cards */
	card {
		position: absolute;
		top: 0; left: 0;
		bottom: 2.5rem; right: 0;
		overflow: hidden;
		z-index: 2;
		background: #fafafa;
		opacity: 0;
		border-radius: 0.5rem 0.5rem 0 0;
	}
		card.img-only { bottom: 0; }
		card.visible { opacity: 1; }
		.card-bubbles {
			position: absolute;
			right: 1.5rem; left: 1.5rem;
			bottom: 1rem;
			z-index: 3;
			text-align: right;
		}
			.card-bubble {
				display: inline-block;
				width: 1rem; height: 1rem;
				margin-left: 0.3rem;
				border-radius: 50%;
				background: #bdbdbd;
			}
				.card-bubble.active { background: #b23159; }

		/* All cards */
		card h2 { font-size: 2rem; line-height: 1.2; color: #212121; margin: 0; }
		card h4 { font-size: 1.8rem; line-height: 1.2; color: #212121; margin: 0; }
		.card-text { color: #616161; font-size: 1.5rem; padding: 0 1.5rem; margin-top: 1rem; }
		.card_weer .card-text { margin-top: 1rem; }
		.card-img {
			display: block;
			height: 0;
			width: 100%;
			padding-top: 50%;
			background-color: #bdbdbd;
			background-repeat: no-repeat;
			background-size: cover;
			background-position: center center;
			position: relative;
		}
			.img-only .card-img { padding-top: 100%; }

		/* Multi-card */
		.card-multi {
			display: block;
			overflow: hidden;
			height: 50%;
			padding-bottom: 1.5rem;
		}
		.card_multi3 .card-multi { height: 33.33%; }
		.card-multi .card-img { width: 30%; float: left; padding-top: 30%; }
		.card-multi .card-text { float: left; width: 70%; }

		/* Weather card */
		.card-weather-frame {
			height: 0;
			padding-top: 74%;
			overflow: hidden;
	        position: relative;
			background: #ccc;
		}
			.card-weather-frame iframe {
	            width: 550px; height: 512px; position: absolute; top: 0; left: 0;
	            transform-origin: 0 0;
				pointer-events: none;
	        }
	        .card-column { width: 50%; float: left; }

            .card_Weer .card-column {
                display: grid;
                grid-template-columns: 40% auto;
                grid-template-rows: auto auto;
                grid-template-areas: "icon title"
                                    "icon temp";
            }
                .card-weather-icon {
                    grid-area: icon;
                    margin-left: -1rem;
                }
                    .card-weather-icon img {
                        display: block;
                        width: 100%;
                    }
                .card_Weer .card-column h2 {
                    grid-area: title;
                    align-self: end;
                }
                .card_Weer .card-weather-temp {
                    grid-area: temp;
                }


		/* Progress bar */
	    .card-progressbar {
	        position: absolute;
	        left: 10%;
	        right: 10%;
	        background: #fff;
	        height: 20%;
	        display: block;
	        z-index: 10;
	        top: 55%;
	        box-shadow: 0 0.6rem 2.5rem rgba(0,0,0,0.5);
	        border-radius: 4rem;
	        border: 0.4rem solid #fff;
	    }
			.img-only .card-progressbar {
				height: 4rem;
				top: 80%;
			}
	        .card-progress {
	            width: 0%;
	            background: #b23159;
	            display: block;
	            height: 100%;
	            border-radius: 4rem;
	            overflow: hidden;
	            position: relative;
	            z-index: 5;
	        }
	        .card-progresslabel-current {
	            position: absolute;
	            z-index: 2;
	            font-size: 2rem;
	            top: 0.2rem;
	            left: 1rem;
	            color: #b23159;
	        }
	            .card-progress .card-progresslabel-current { color: #fff; }
	            .card-progresslabel-target {
	                font-size: 2rem;
	                position: absolute;
	                left: 50%;
	                margin: 0 auto;
	                background: white;
	                border-radius: 4rem;
	                padding: 0.2rem 0.8rem;
	                transform: translateX(-50%);
	                bottom: -55%;
	                box-shadow: 0 0.4rem 2rem rgba(0,0,0,0.5);
	                z-index: 10;
	            }
		/* Absenties */
		.card-absentie {
			line-height: 1.2;
			margin-top: 1rem;
			width: 50%;
			float: left;
		}
/* End-Cards */
/* Overlay */
.overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #212121; z-index: 20;
    display: flex; justify-content: center; align-items: center;
    flex-direction: column;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.4s, visibility 0s linear 1s;
	line-height: 1.6;
}
    .__loading .overlay, .overlay.__error {
        opacity: 1; visibility: visible; pointer-events: auto;
        transition: opacity 0.4s, visibility 0s linear 0s;
    }
    .overlay.__error {
        opacity: 0;
        -webkit-animation: overlay-enter 0.3s ease-in-out forwards;
        animation: overlay-enter 0.3s ease-in-out forwards;
    }
        .overlay.__error > div {
            opacity: 0;
            -webkit-animation: overlay-child-enter 0.6s cubic-bezier(0.48, 0.11, 0.38, 1) forwards;
            animation: overlay-child-enter 0.6s cubic-bezier(0.48, 0.11, 0.38, 1) forwards;
            -webkit-transform: translateY(8rem);
            transform: translateY(8rem);
        }
        .overlay.__error > div:nth-child(2) { animation-delay: 0.15s; }
        .overlay.__error > div:nth-child(3) { animation-delay: 0.3s; }
    .overlay-icon, .overlay.__load::after {
        content: '';
        width: 8rem;
        height: 8rem;
        border-radius: 50%;
        border: rgba(255,255,255,0.25) 0.2rem solid;
        margin-bottom: 2rem;
		color: #FFF252;
    }
        .__loading .overlay.__load::after {
            border-top-color: #fff;
            -webkit-animation: rotate 0.8s linear infinite;
            animation: rotate 0.8s linear infinite;
            margin-bottom: 0;
        }
        .__loading .overlay.__load::before {
            content: '';
            width: 4rem;
            height: 4rem;
            position: absolute;
			left: calc(50% - 2rem);
			top: calc(50% - 2rem);
            margin: auto;
            background-image: url('../img/logo.svg');
        }
    .__error { text-align: center; font-size: 2rem; color: #9E9E9E; padding: 0 10vw; }
    .error-title { font-size: 4.4rem; color: #fafafa; }
    .__error .app-logo { position: fixed; top: 4vh; left: 3vw; }

	.__error .overlay-icon { padding: 1.2rem; }
	.__error .overlay-icon svg { fill: currentColor; }
	.__error .overlay-icon svg > * {
		transform-origin: 50% 50%;
		-webkit-animation: erroricon-1 0.6s cubic-bezier(0.25,-0.66,0.39,0.99) 1s forwards;
		animation: erroricon-1 0.6s cubic-bezier(0.25,-0.66,0.39,0.99) 1s forwards;
	}
	.__error .overlay-icon rect.ei-1 { transform-origin: 50% 0; }
	.__error .overlay-icon rect.ei-2 { -webkit-animation-name: erroricon-2; animation-name: erroricon-2; }
	.__error .overlay-icon rect.ei-3 { -webkit-animation-name: erroricon-3; animation-name: erroricon-3; }

	.notice { position: absolute; bottom: 2.4rem; left: 2.4rem; padding: 0.8rem 1.6rem; z-index: 10; background: black; color: white; display: none; }
    .notice { display: block; }
/* End-Overlay */
/* Orientation 90 & 270 */
	.orientation--180 { transform: rotateZ(180deg); transform-origin: 50% 50%; }
	.orientation--90, .orientation--270 {
		height: 100vw; width: 100vh;
		transform: rotateZ(90deg) translateY(-100%);
		transform-origin: 0 0;
	}
	.orientation--270 { transform: rotateZ(270deg) translateX(-100%); }

	.orientation--90 body,
	.orientation--270 body { padding: 5vh 3vw 0; }
	.orientation--90 page,
	.orientation--270 page { flex-direction: column; height: 100%; }
	.orientation--90 .cont-changes,
	.orientation--270 .cont-changes { flex-basis: 100%; padding-bottom: 2vw; }
	.orientation--90.has-cards .cont-changes,
	.orientation--270.has-cards .cont-changes { flex-basis: 65%;  }
	.orientation--90 .cont-cards,
	.orientation--270 .cont-cards { flex: 1 1 30%; }
	.orientation--90 change,
    .orientation--270 change { width: 30vw; }

	/* Text-card */
	.orientation--90 .card_tekst .card-text,
	.orientation--270 .card_tekst .card-text { float: left; width: 60%; }
	.orientation--90 .card_tekst .card-img,
    .orientation--270 .card_tekst .card-img { float: left; width: 40%; padding-top: 28%; }
    .orientation--90 .img-only .card-img,
    .orientation--270 .img-only .card-img {
        padding-top: 0;
        height: 100%;
        background-size: contain;
        background-color: #3e3e3e;
    }

	/* Multi-card */
	.orientation--90 .card-multi,
	.orientation--270 .card-multi { width: 50%; float: left; height: 100%; }
	.orientation--90 .card_multi3 .card-multi,
	.orientation--270 .card_multi3 .card-multi { width: 33.33%; }
	.orientation--90 .card-multi .card-img,
	.orientation--270 .card-multi .card-img { width: 100%; display: block; padding-top: 68%; float: none; margin-bottom: 1rem; }
	.orientation--90 .card_multi2 .card-img,
	.orientation--270 .card_multi2 .card-img { padding-top: 46%; }
	.orientation--90 .card-multi .card-text,
	.orientation--270 .card-multi .card-text { float: none; width: 100%; }

	/* Weather card */
	.orientation--90 .card-weather-frame,
	.orientation--270 .card-weather-frame { width: 50%; height: 100%; float: left; }
	.orientation--90 .card_weer .card-text,
	.orientation--270 .card_weer .card-text { float: left; width: 50%; }

	@media (orientation:portrait){
		body { padding: 5vh 3vw 0; overflow: hidden; }
		page { flex-direction: column; height: 100%; }
		.cont-changes { flex-basis: 100%; }
		.has-cards .cont-changes { flex-basis: 65%;  }
		.cont-cards { flex: 1 1 30%; }
		change { width: 30vw; }

		/* Text-card */
		.card_tekst .card-text { float: left; width: 60%; }
        .card_tekst .card-img { float: left; width: 40%; padding-top: 28%; }

		/* Multi-card */
		.card-multi { width: 50%; float: left; height: 100%; }
		.card_multi3 .card-multi { width: 33.33%; height: 100%; }
		.card-multi .card-img { width: 100%; display: block; padding-top: 68%; float: none; margin-bottom: 1rem; }
		.card_multi2 .card-img { padding-top: 46%; }
		.card-multi .card-text { float: none; width: 100%; }

		/* Weather card */
		.card-weather-frame { width: 50%; height: 100%; float: left; }
		.card_weer .card-text { float: left; width: 50%; }
	}
/* End-Orientations */
/* Animations */
@-webkit-keyframes erroricon-1 { 40% { -webkit-transform: scale3d(1,1,1); } 70% { -webkit-transform: scale3d(0.8,0.9,1); } 100% { -webkit-transform: scale3d(0.8,0.9,1) translateY(-10%); } }
@keyframes erroricon-1 { 40% { transform: scale3d(1,1,1); } 70% { transform: scale3d(0.8,0.9,1); } 100% { transform: scale3d(0.8,0.9,1) translateY(-10%); } }
@-webkit-keyframes erroricon-2 { 70% { -webkit-transform: translateX(30%) scale3d(0.8,0.8,1); } 100% { -webkit-transform: translateX(140%) translateY(-10%) scale3d(0.8,0.8,1); } }
@keyframes erroricon-2 { 70% { transform: translateX(30%) scale3d(0.8,0.8,1); } 100% { transform: translateX(30%) translateY(-10%) scale3d(0.8,0.8,1); } }
@-webkit-keyframes erroricon-3 { 70% { -webkit-transform: translateX(-30%) scale3d(0.8,0.8,1); } 90% { -webkit-transform: translateX(-67%) translateY(32%) scale3d(2,0.3,1) } 100% { transform: translateX(-67%) translateY(32%) scale3d(2,0.3,1) } }
@keyframes erroricon-3 { 70% { transform: translateX(-30%) scale3d(0.8,0.8,1); } 90% { transform: translateX(-67%) translateY(32%) scale3d(2,0.3,1) } 100% { transform: translateX(-67%) translateY(32%) scale3d(2,0.3,1) } }
@-webkit-keyframes overlay-enter { 100% { opacity: 1; }}
@keyframes overlay-enter { 100% { opacity: 1; }}
@-webkit-keyframes overlay-child-enter { 100% { -webkit-transform: translateY(0); opacity: 1; }}
@keyframes overlay-child-enter { 100% { transform: translateY(0); opacity: 1; }}
@-webkit-keyframes rotate { 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } }
@keyframes rotate { 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); }}
@-webkit-keyframes clockdots { 50% { opacity: 0; } }
@keyframes clockdots { 50% { opacity: 0; } }
@-webkit-keyframes datefade { 0% { opacity: 1; } 45% { opacity: 1; } 50% { opacity: 0; } 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes datefade { 0% { opacity: 1; } 45% { opacity: 1; } 50% { opacity: 0; } 95% { opacity: 0; } 100% { opacity: 1; } }