/* questionnaire.style.css : Additional questionnaire style here */

/************************************
Lachie - Survey Theme 1
*************************************/
.row { /* fixes horizontal scroll */
    margin-left: auto;
    margin-right: auto;
}

#page-template { 
    min-height: auto !important;
    overflow: auto;
    min-height: unset !important;
}

body {
    /* font-family: ; */ /** TD-4: Default Text: Font family **/
    /* font-size: 16px */ /** TD-5: Default Text: Font size **/
    /* text-align: left; */ /** TD-7: **/
    color: #121111; /** TD-8: Default Text: Colour**/
	background: #ffffff;
}

#page-template > .page-container.body {
	min-height: calc(100vh - 150px); /* 150px is the height of the footer */
}

.question-container {
    width: 1000px; /** TD-61: Container width **/
    margin: 0 auto;
    padding: 24px 40px 48px; 
    background: white;
    margin-top: calc(300px * 0.5); /* 300 is based on the banner height (TD-56) */
    border-radius: 8px; /** TD-21: Container Border Radius **/
	margin-bottom: 62px;
}

.question-container .buttons {
	margin-left: -8px;
    width: calc(100% + 16px);
	display: flex;
	justify-content: center; /** TD-23: Button Position. Left: "justify-content: left", Right: "justify-content: right" **/
}

.question-container .buttons > button {
	margin: 0 8px;
    height: 56px; /** TD-19: Button Height **/
    padding: 0 40px;
	width: unset !important; /** TD-22: Button Styling. Default: Hug (width is unset). Fit container: width is set to 100% **/
	border-radius: 8px; /** TD-20: Button Border Radius **/
	transition: 0.1s ease;
    background: #E9E9E9 !important; /** TD-37: Back Button Fill Colour (Idle) **/
    border-color: unset !important; /** TD-38: Back Button Border Colour (Idle) **/
	color: #4B4550 !important; /** TD-39: Back Button Text Colour (Idle) **/
    border-width: 0px; /** TD-21: Button Border Width **/
    border-style: solid;
}

.question-container .buttons > button.next-button {
	background: #272A45 !important; /** TD-27: Next Button Fill Colour (Idle) **/
    border-color: unset !important; /** TD-28: Next Button Border Colour (Idle) **/
	color: #FFFFFF !important; /** TD-29: Next Button Text Colour (Idle) **/
}

.question-container .buttons > button.next-button:hover {
	background: #272A45 !important; /** TD-30: Next Button Fill Colour (Hover) **/
    border-color: unset !important; /** TD-31: Next Button Border Colour (Hover) **/
    color: #FFFFFF !important; /** TD-32: Next Button Text Colour (Hover) **/ 
}

.question-container .no-back-button .nav-control-back {
	display: none !important;
}

#questions section {
	padding-top: 24px !important; /** TD-9: Spacing between grouped questions **/
}

#page-content {
	margin-bottom: 0 !important;
}

.flashlight-question {
	max-width: 100%;
}

.header {
	height: 100px;
    z-index: 10;
    position: relative;
	margin: 0 auto;
}

.header .header-overlay {
	background: #FFFFFF;
	height: 100%;
}

.header h1 {
	text-shadow: none !important;
	color: inherit;
    margin: 0;
    font-size: 24px;
}

.header-content {
	margin-left: 40px !important;
	margin-right: 40px !important;
}

.banner {
	background-size: cover;
	height: 300px !important; /** TD-56: Banner Height **/
	background: #ddd; /** TD-54: Banner Background Colour **/
	position: absolute !important;
	width: 100%;
	margin: 0 auto;
    /* display: none; */ /** TD-53: Disable Banner **/
}

.header-content {
	height: 100%;
    padding: 16px 0;
    display: flex;
	align-items: center;
}

.header h1 img {
	max-width: 360px;
    max-height: 75px;
    margin-right: 24px;
}

.footer-container {
	width: 100%;
    height: 150px;
    background: #000000; /** TD-64: Footer Background Colour **/
    color: white; /** TD-67: Footer Text Colour **/
    display: flex; /** TD-63: Disable footer. Default: on = "flex", off = "none" **/
    justify-content: center;
    align-items: center;
}

.footer-container a {
	color: white;
}

.progress-section-container {
	margin-left: auto;
	margin-right: 24px;
}

#progress-bar {
	width: 250px;
    border-bottom: unset !important;
    /* display: none; */ /** TD-48: Toggle Progress Bar **/
}

/**** TD-50: Progress Bar Layout. Option: Top ****/
/* #progress-bar {
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
}

#progress-bar .progress {
    border-radius: 0 !important;
} */
/*************************************************/

/**** TD-50: Progress Bar Layout. Option: Bottom ****/
/* #progress-bar {
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
}

#progress-bar .progress {
    border-radius: 0 !important;
} */
/*************************************************/

#progress-bar .progress {
	height: 24px; /** TD-52: Progress Bar Height. Options: Small = "4px", Medium = "8px", Large = "24px" **/
	border-radius: 8px;
}

#progress-bar .progress .progress-bar {
    background-color: #272A45; /** TD-51: Progress Bar Colour **/
}
.header-logo-right {
    background-image: url(https://weufappblob01.blob.core.windows.net/flashlight-portal-44/container-flashlight-v1/theme/theme01/assets/Banner_IDKids.png);
	background-repeat: no-repeat;
	height: 85px;
	width: 480px;
    background-size: contain;
    background-position: center;
}

/**** Set background image ****/
/*#page-template {
    background-image: url(https://i.picsum.photos/id/1081/1920/1080.jpg?hmac=Cxwi_LWoCVD7tcZqMOcXDJssRuTWdT69UfAFMIxdwGU);
    background-size: cover !important;
    background-repeat: no-repeat;
}*/
/*****************************/

/**** TD-57: Attach banner to question container ****/
/*.banner {
	position: relative !important;
	width: 1000px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	margin-top: 56px;
}

.question-container {
	margin-top: 0px;
	border-top-left-radius: 0px;
	border-top-right-radius: 0px;
}*/
/*********************************************/

/**** TD-44: Header Location = Container. Attach header to container ****/
/*.banner {
	margin-top: 0 !important;
	border-top-left-radius: 0px !important;
	border-top-right-radius: 0px !important;
}

.header {
	width: 1000px;
    margin-top: 56px;
}

.header .header-overlay {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}*/
/*********************************/

/**** Question Styling ****/
.flashlight-label {
    margin-bottom: 24px;
}

.input-group textarea.generic-textarea, .input-group input.generic-input {
    border-radius: 4px !important; /** TD-11: Field Border Radius **/
    background: #f5f5f5;
    border: 1px solid #dfdfdf;
	transition: 0.2s ease;
}

.input-group textarea.generic-textarea:focus, .input-group input.generic-input:focus {
    border-color: #272A45;
    background: #ffffff;
    /*box-shadow: 0 0 0 3px #ecd6ff;*/
}

.flashlight-question > .form-group {
    padding: 3px;
}

.flashlight-question .p1Radio .flashlight-radio-text {
    border: unset;
    margin-top: 0;
    padding: 16px;
    background: unset;
}

.flashlight-question .p1Radio {
    width: 100% !important;
}

.flashlight-question .p1Radio .flashlight-waves-effect:active {
    box-shadow: none;
}

.flashlight-question .p1Radio .flashlight-radio-text:hover {
    background: #f4f4f4;
}

.flashlight-question .round-button {
    border-radius: 4px; /** TD-11: Field Border Radius **/
}

.flashlight-radio .round-button>i {
    height: 16px !important;
    width: 16px !important;
    margin-right: 16px !important;
    margin-top: 0 !important;
}

.flashlight-radio .round-button>i:before {
    font-size: 16px;
}

.flashlight-radio .p1Radio .flashlight-radio-text span.round-button-label {
    transform: translateY(3px) !important;
    display: block;
}

.flashlight-radio .p1Option .flashlight-radio-text span.round-button-label {
    display: unset;
    transform: unset;
}

.flashlight-radio .p1Option .flashlight-radio-text {
    padding: 16px;
    margin-top: 0;
    margin-bottom: 8px;
}

.flashlight-radio .p1Option .flashlight-radio-text:hover {
    background: #f4f4f4;
}

.flashlight-radio .p1Option .flashlight-radio-text.selected {
    /*background: #b888e2;*/ /*Option list styling: selected background color*/
    /*color: #ffffff;*/ /*Option list styling: selected text color*/
}

.question-container #questions > section:nth-of-type(1) {
    padding-top: 8px !important;
}

/* QUESTION: TEXTBOX GRID */
.flashlight-question .flashlight-textboxgrid-table td {
    padding: 8px 4px 0 4px !important;
}

.flashlight-textboxgrid input.generic-input {
    padding: 8px;
}
/**/

@media only screen and (max-width: 1100px) {
    .question-container {
        width: 90%;
    }
	.header h1 img {
		max-width: 316px;
	}
	#progress-bar {
		width: 200px;
	}
	.header h1 img {
		max-width: 100%;
	}
	.progress-section-container {
		margin-left: 24px;
		margin-right: 24px;
	}
}

@media only screen and (max-width: 680px) {
    .header h1 {
        margin: 0 auto;
    }

    .header h1 img {
        max-width: 100%;
    }
	.header-content {
		display: block;
	}
	.header-right {
        max-width: 50%;
    }
    
    .header h1 span > * {
        display: block;
        font-size: 0.8em;
        margin: 0 auto;
        text-align: center;
    }
    
    .header h1 span > span { /*only applied when an image is set*/
        margin-top: 8px;
    }
    
    .question-container {
        width: 100%;
        padding: 16px;
    }
    
    .question-container .buttons > button {
        font-size: 18px;
    }

    .flashlight-radio .p1Radio .flashlight-radio-text span.round-button-label {
        transform: translateY(-3px) !important;
    }
    
    .progress-section-container {
        position: absolute;
        left: 0;
        bottom: 0;
    }
    
    #progress-bar {
        width: 100vw;
        border-bottom: 0;
    }
    
    #progress-bar .progress {
        height: 6px;
        border-radius: 0;
    }
	.header .header-overlay{
		position: relative;
	}
	.header-logo-right{
		position: absolute;
		margin: auto;
		top: 0px;
		height: 50px;
		width: 100%;
		left: 20px;
		right: 20px;
		background-position: left;

	}
	.header h1{
		margin-top: 32px;
	}
	.header{
		height: 132px;
	}
	.progress-section-container {
		margin-left: 0px;
		margin-right: 0px;
	}
}
@media only screen and (max-width: 440px) {
	.header h1 {
		margin-top: 40px;
	}
	.header-content {
		margin-left: 20px !important;
		margin-right: 20px !important;
	}
	.header-logo-right{
		left: 12px;
		right: 12px;
	}
}

/**************************/

/*****Survey control colour (response selection)******/
.flashlight-question .selected i.shown-when-selected{
	color: #272A45;
}
.flashlight-question .round-button.selected{
	color: #272A45;
	border-color: #272A45;
}
.flashlight-question .round-button.selected:hover{
	border-color: #272A45;
}
.flashlight-slider .slider .handle{
	background-color: #272A45;
}
.flashlight-slider .slider.active .progress {
	background-color: #272A45;
}
/****************/

/*****multi-code-matrix-ticket******/
.flashlight-question table.generic-table thead tr th {
	width: 92px;
}
.flashlight-question table.generic-table tbody tr td {
	line-height: 18px !important;
}

.flashlight-checkboxgrid table.generic-table thead tr th:nth-child(1) {
	width: auto !important;
}
.flashlight-checkboxgrid table.generic-table thead tr th {
	width: 94px;
}
.flashlight-question table.generic-table thead tr th:nth-child(1){
	width: 300px !important;
}
.flashlight-radiobuttongrid.flashlight-question table.generic-table {
	table-layout: fixed !important;
}
.flashlight-radiobuttongrid .input-group {
	min-width: calc(100% - -30px);
}
.flashlight-checkboxgrid table.generic-table {
	table-layout: fixed !important;
}
.flashlight-checkboxgrid .input-group {
	min-width: calc(100% - -38px);
}
/**************/

/*Flashlight drag and drop wrapper changes*/
.flashlight-dragdropcategorysort .table-targets h4 {
	white-space: unset !important;
}

.flashlight-dragdropcategorysort .table-targets li {
	white-space: unset !important;
}

/*************/

.flashlight-videoresponse .webrtc-block .embed-responsive-16by9 .record-webrtc span#record_label{
    display:inline-block; 
    text-overflow:ellipsis;
    overflow:hidden; 
    width:100%;
}
.flashlight-slider .box-slider {
    max-width: 100% !important;
}