/* CSS Document */


@media all and (max-width: 1100px) {
	.armory-table tr td em, .armory-table tr th em {
		font-style: normal;
		display: none;
	}
	td.task-priority {
		text-align: center !important;
	}
}

@media all and (min-width: 900px) {
	body .curriculum-section.open > .headline-wrap h2 span.time {
		opacity: 1;
	}
	body .curriculum-section > .headline-wrap:hover h2 span.time {
		opacity: 1;
	}
	.curriculum-section .curriculum-segment .time {
		opacity: 1;
		max-height: 1000px;
	}
	
	.fusion-layout-column .fusion-column-wrapper {
		margin: 0 !important;
		padding: 0 !important;
	}
}

@media all and (max-width: 900px) {
	
	/********* BATTLE PLAN PAGE **********/
	
	#battle-plan .quarter {
		width: 100%;
		margin: 0;
	}
	
	#battle-plan .quarter:not(.selected) {
		display: none;	
	}
	
	#battle-plan .quarters {
		width: 100% !important; 
		margin: 0 !important;
	}
	
	#battle-plan .scores {
		flex-direction: column;
	}
	
	#battle-plan h4 > span {
		display: none;	
	}	
}

@media all and (max-width: 850px) {
	
	.curriculum-segment .col-left {
		width: 100%;
		float: none;
	}
	.curriculum-segment .col-right {
		margin: 30px 10px 0 0;
		float: left;
		width: 100%;
	}
	.curriculum-segment .ryit-media-container .mejs-horizontal-volume-slider, .curriculum-segment .ryit-media-container .mejs-mute {
		display: none;
	}
	.task-time-est .fa-arrow-up {
		display: none;
	}
	#armory-task-table tfoot {
		display: none;
	}
	
	p.handheld-notice {
		display: block !important;
		max-width: 300px;
		margin: 30px auto 10px !important;
		color: silver;
		font-style: italic;
		text-align: center;
	}
	
	/* ----------- TASK TABLE ------------ */
	
	body .fusion-title h1, body .fusion-title h2, body .fusion-title h3 {
		margin-bottom: 0.2em !important;	
	}

	
	body.tasks #task-tracker {
		padding: 0 !important;
	}
	
	body task-tracker-ui .ui-wrap label {
		display: none;
	}
	
	table.armory-table {
		width: 100%;
		border-collapse: collapse;
	}
	
	table.armory-table thead {
	/*	display: none;	 */
	}
	
	body .armory-table tr.task-row td {
		transition: none;
	}
	
	body table.armory-table tbody {
		/* border-top: 10px solid rgb(58, 89, 92); */
	}
	
	.armory-task-table[data-view='completed'] .task-completion-time {
		min-width: 120px;
	}
	
	/**************************** TASK TABLE COMPLETED TASKS ****************************/
	
	td.task-completion-time .time {
		display: none;
	}
	
	/*
	div#popup-add-task td.complete-by, div#popup-add-task.completed td.completion-time {
		grid-area: 1 / 10 / 1 / 19;
	}
	
	body table.armory-table[data-view="completed"] tr .task-name {
		grid-area: 1 / 1 / 1 / 7 !important; 
	
	body table.armory-table[data-view="completed"] tr .task-select {
		grid-area: 1 / 9 !important; 
	}
	
	body table.armory-table[data-view="completed"] tr .task-completion-time {
		grid-area: 1 / 7 / 1 / 9 !important;
		padding: 5px 0 0 0;
	}
	
	body table.armory-table[data-view="completed"] tr .task-action {
		grid-area: 1 / 10 !important;	
	}
	
	body table.armory-table .task-select, body table.armory-table .task-action, body table.armory-table .task-timer {
		padding: 0 !important;
	}
*/

	
	/**************************** TARGET TABLE ****************************/
	
	body div[id*="add-target"] tr {
		display: grid;
		grid-template-columns: repeat(9, 1fr) !important; /* Adjust based on the number of <td>s */
		grid-template-rows: 1fr;
		gap: 0;
		border-top: 1px solid #c2c2c2 !important;
		width: 100%;
		justify-content: center;
		align-items: top;
	}
	
	body #armory-target-table tr .task-name {
		grid-area: 1 / 1 / 1 / 8 !important; /* Spans full width of row 1 */
	}
	
	body #armory-target-table tr .task-select {
		grid-area: 1 / 8 !important; /* Spans full width of row 1 */
		height: 100%;
	}
	
	body #armory-target-table tr .task-action {
		grid-area: 1 / 9 !important; /* Spans full width of row 1 */
		height: 100%;
	}
	
	/********************* ADD/EDIT TASK ROW ********************/ 
	
	body #popup-add-task {
		height: auto !important;
	}
	
	body div[id*="add-ta"] tr {
		border: none !important;
	}
	
	div[id*="add-ta"]:not(.completed) td.task-completion-time {
		display: none !important;
	}
	
	div[id*="add-ta"] td.submit input:hover, div[id*="add-ta"] td.cancel input:hover {
		background: rgba(0,0,0,0.2);
	}
	
	/********************* ADD/EDIT TASK POPUP *********************/

	body div#popup-add-task.completed td.task-name {
		display: grid;
		grid-area: 1 / 1 / 1 / 12;
	}
	
	body div#popup-add-task.completed td.task-completion-time {
		display: grid;
		grid-area: 1 / 12 / 1 / 19;
	}
	
	body div#popup-add-task td.submit {
        grid-area: 2 / 8 / 2 / 10;
        min-width: 100px;
        width: 100% !important;
	}
	
	body div#popup-add-task td.cancel {
		grid-area: 2 / 10 / 2 / 12;
	}
	
	/********************* HABITS *********************/
	
	div.habits_wrap {
	/*	display: block !important; */
	}
	
	div.leaderboard li {
		text-align: center !important;
	}
	
	div.leaderboard li span {
		font-family: "fira sans", sans-serif;
	}
		
	div[id*="add-ta"] table td input[type=submit], .armory-popup button {
		margin-top: 3px !important;	
	}
	
	div#armory-settings div#tabs > div {
		padding-right: 20px;
		padding-left: 20px;
	}
	
	div.habits_wrap div.col {
        width: 100%;
        margin: 0 auto 80px;
        grid-area: 1 / 2 / 1 / 32 !important;
	}
	
	div.habits_wrap ul.habits_list {
		border-radius: 	7px 7px 0 0 !important;
	}

	div.habits_wrap div.col#col1 {
		margin-bottom: 0px;
	}
	
	div.habits_wrap div.col#col2 {
		grid-area: 2 / 2 / 2 / 32 !important;
		margin-bottom: 20px;
		margin-top: 0;
		border-radius: 0 0 10px 10px;
	}		
	
	div.habits_wrap div.col#col2 .ui {
		display: none;
	}
	
	ul.habits_list li.game-score {
		border-radius: 0;
	}
	
	
	/* Task tracker */
			
	div[id*="add-ta"] td.name {
		grid-area: 1 / 1 / 1 / 19 !important;
	}
	
			
	div[id*="add-ta"] td.complete-by, div[id*="add-ta"] td.completion-time {
		grid-area: 2 / 1 / 2 / 19 !important;
		/* display: grid !important; */
	}

	div[id*="add-ta"] td.submit {
		grid-area: 3 / 6 / 3 / 10 !important;
        max-width: 1000px;
        width: 100% !important;
	}
	
	div[id*="add-ta"] td.cancel {
        grid-area: 3 / 10 / 3 / 14 !important;
    }
	
		
	/********* SETTINGS PAGE **********/
	
	body.settings #tabs li {
		width: 100%;
	}
	
	body.settings #tabs li.ui-tabs-active {
		border: none;	
	}
	
	body.settings #tabs li a {
		width: 100%;	
		border-bottom: 1px solid rgba(255,255,255,0.15);
	}
	
	body.settings #tabs li:last-of-type a {
		border-bottom: none;	
	}
	

	/********* COURSE LESSONS **********/
	
	.lesson {
		flex-direction: column;
	}
	
	.lesson .text {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	
	.lesson .col-left, .lesson .col-right {
		width: 100%;
		margin: 0;
		padding: 0 20px;
	}
	
	.lesson .col-right {
		padding-top: 40px;
	}
	
	.lesson .checklist {
		margin: 20px auto;
		width: 100%;
		max-width: 100%;
	}
	
	.lesson .headline-wrap h2 span.title {
		font-size: 22px;
	}
	
	.course-section > .headline-wrap h2 span.subtitle {
		display: none;	
	}
	
	/* Notifications */
	table#notifications .notification-time span {
		display: none;	
	}
}

@media all and (max-width: 700px) {
	#main {
		padding: 0 !important;
	}
	
	.curriculum-segment {
		padding: 50px 30px 60px;
	}
	.curriculum-section > .headline-wrap .number {
		border-radius: 0;
		transition: 0.5s all;
		position: absolute;
		top: -15px;
		height: 70px;
		padding: 10px 0;
	}
	.curriculum-section > .headline-wrap h2 span.title {
		font-size: 20px;
		padding: 0px;
		vertical-align: 5px;
		float: left;
		margin-bottom: 0 !important;
	}
	.curriculum-section > .headline-wrap h2 span.subtitle {
		opacity: 1;
		float: left;
		display: block;
		border: none;
		padding: 0;
		font-size: 15px;
		color: #bbb;
	}
	.curriculum-segment {
		padding: 50px 20px 60px;
	}
	.curriculum-section > .headline-wrap {
		padding: 10px 20px 10px 0;
	}
	.curriculum-section > .headline-wrap h2 {
		margin-left: 50px;
	}
	body:not(.courses) .post-content {
		padding: 0 15px !important;
	}
	
	/******* COURSE CSS **********/
	
	.course-section > .headline-wrap {
		padding: 0 20px;
	}
	
	.course-section h2 {
		padding: 5px 0;	
	}
	
	.course-section h2 .subtitle {
		display: none;
	}
	
	.course-section h2 .title {
		font-size: 20px !important;
        margin: 0;
        width: 100%;
        margin-right: 34px;
	}
	
	.course-section h2 .time {
		display: none !important;	
	}
}

@media all and (max-width: 640px) {
	
	.awb-menu.collapse-enabled.mobile-size-full-absolute.expanded .awb-menu__main-ul {
		top: 70px !important;
	}
	
	li.menu-item.no-text span.menu-text	{
		display: block !important;
	}
	
	li.menu-item.no-text a {
		padding-left: 20px !important;
	}
	
	div#aside_wrap {
		box-shadow: none !important;
	}
	
	div.fusion-image-element {
		justify-content: center;
		display: flex;
	}
		
	/************* TASK TRACKER **************/
	
	div[id*="add-ta"] td.submit {
		grid-area: 3 / 1 / 3 / 10 !important
	}
	
	div[id*="add-ta"] td.cancel {
		grid-area: 3 / 10 / 3 / 19 !important
	}
	
	.post-content div.target-headline {
		display: flex;
		justify-content: space-between;
	}
	
	.post-content div.target-headline h3 {
		border: none !important;	
		width: 60%;
	}
	
	.post-content div.target-headline input {
		text-align: right;
		width: 37.5%;
	}
	
	div#task-tracker-ui .add-menu {
		right: 0;
		border-radius: 0 0 0 4px;
	}
	
	
	/**************************** TASK TABLE ACTIVE TASKS ****************************/

	
	body table.armory-table {
		border-radius: 0 !important;
		margin-top: 8px !important;
	}
	
	body.tasks .post-content {
		padding: 0 !important;	
	}
	
	body.tasks div.fusion-layout-column {
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	
	.post-content div.target-headline h3.name {
		margin: 0 12px 0 0px;
	}
	
	.armory-table th:nth-of-type(1) {
		border-radius: 0;
	}
	
	.armory-table th:last-of-type {
		border-radius: 0;
	}
	
	body table.armory-table tr {
		display: grid;
		gap: 0;
		width: 100%;
		max-height: none !important;
	}
	
	body table.armory-table tr td {
		width: 100% !important;
	}
	
	table.armory-table .task-name {
		grid-area: 1 / 3 / 1 / 16 !important; /* Spans full width of row 1 */
		font-size: 17px;
		padding: 2px 0 2px 0px;
	}
	
	.armory-task-table[data-view='completed'] .task-name {
		grid-area: 1 / 2 / 1 / 15 !important;
	}
	
	.armory-task-table[data-view='completed'] .task-completion-time {
		grid-area: 1 / 15 / 1 / 19;
	}

	/*
	table.armory-table .task-select {
		grid-area: 1 / 8 !important;
		border-radius: 0;
	}

	table.armory-table .task-timer {
		grid-area: 1 / 9 !important; 
		min-width: 40px;
	}
	
	table.armory-table .task-action {
		grid-area: 1 / 10 !important; 
		max-width: 100%;
	}*/

	table.armory-table .task-action {
		/* padding-top: 7px !important;	 */
	}

	table.armory-table td.task-target {
		display: none;
	}
		
	table .task-complete-by > div {
		text-align: center;
	}
	
	.armory-task-table[data-view='completed'] .task-completion-time .time {
		display: none;
	}
}

@media all and (max-width: 500px) {
	
	div#add-task > table {
		margin-bottom: 5px !important;
	}
	
	/* Remove empty spaces on the sides */
	#main {
		padding: 0 !important;
	}	
	
	#main .post-content > div > div > div{ 
		padding: 0;	
	}
		
	#armory-settings select {
		min-width: auto;
	}
	
	/* Add task styling */
	
	#task-tracker-ui .ui-wrap {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
	}
	
	#task-tracker-ui .ui-wrap {
        display: grid;
        justify-content: center;
        grid-template-columns: repeat(18, 1fr);
        width: 100%;
        grid-template-rows: 1fr;
	}
	
	div#task-tracker-ui[data-view='targets'] .ui-wrap {
        display: flex;
        justify-content: center;
		flex-direction: column;
	}
	
	#task-tracker-ui .ui-wrap label {
		margin: 0;
	}
	
	#task-tracker-ui .ui-wrap fieldset {
		justify-content: center;
        flex-wrap: wrap;
        display: flex;
        width: 100%;
        flex: 1 1 auto;
        margin: 0 0 10px;
        grid-area: 1 / 4 / 1 / 16;
	}
	
	#task-tracker-ui .ui-wrap fieldset.filter {
		flex-direction: column;
	}
	
	#task-tracker-ui .ui-wrap fieldset.sort {
		grid-area: 2 / 8 / 2 / 9;
	}
	
	#task-tracker-ui .ui-wrap fieldset.sort label {
		display: none;	
	}
	
	#task-tracker-ui .ui-wrap fieldset.target {
		grid-area: 2 / 9 / 2 / 12;
        margin-left: 3px;
	}
	
	#task-tracker-ui .ui-wrap fieldset > * {
		margin: 0 auto;	
	}
	
	#task-tracker-ui .ui-wrap fieldset + fieldset {
		justify-content: center;
		margin: 0 0 20px;	
	}
	
	div#task-tracker-ui:not([data-view='targets']) .armory-task-table:not([data-sort-order='priority']) .task-timer {
		grid-area: 1 / 1 / 1 / 4;
	}
	
	.armory-task-table[data-view='completed'] .task-select, .armory-task-table[data-view='completed'] .task-move { 
		grid-area: 1 / 1 / 1 / 2;
	}
	
	/********************/
	
	div#status-bar {
		height: 75px;
		display: grid;
		grid-template-columns: repeat(10, 1fr);
		padding: 10px 0;
	}
	
	div#status-bar.hide {
		bottom: -75px;
	}
	
	div#status-bar .status {
		width: 100%;
		grid-area: 1 / 1 / 1 / 11;
		max-width: 100%;
		text-align: center;
	}
	
	div#status-bar .tab {
		bottom: 75px;
	    border-left: 1px solid black;
	    border-top: 1px solid black;
    	border-right: 1px solid black;
	}
	
	div#status-bar.closed {
		bottom: -75px;
	}
	
	div#status-bar p.task-name {
		max-width: 100%;
    	overflow: hidden;
		text-overflow: ellipsis;
		text-align: center;
	}
	
	div#status-bar .task-timer {
		grid-area: 2 / 1 / 2 / 11;
		width: 100%;
		text-align: center;
	}
	
	div#status-bar .tab {
		left: 0;
		border-radius: 0 4px 0 0;
	}
	
	/********** HABITS PAGE **********/
	
	/*
	body.habits ul.habits_list {
		margin-right: 0;
	}
	*/
	
	body.habits .habits_wrap div.game:last-of-type #col2 {
		margin-bottom: 140px;	
	}
	
	body[class*="habits"] div.date_ui {
		background: transparent;
		border: none;
	}
	
	#main ul.habits_list .name {
		padding-left: 25px !important;
		border-radius: 0 !important;
		font-size: 15px;
	}
	
	body.habits #main ul.habits_list .help {
		border-radius: 0 !important;
	}
	
	body.habits #main ul.habits_list li#header .name {
		grid-area: 1 / 1 / 1 / 20;
	}
	
	body.habits ul.habits_list .input {
		grid-area: 1 / 15 / 1 / 20;
	}
	
	body.habits #main ul.habits_list .score {
		grid-area: 1 / 20 / 1 / 25 !important;
	}

	body.habits #main ul.habits_list .help {
		display: none;
	}
	
	body.habits #main .day-score {
		grid-area: 1 / 17 / 1 / 33;	
	}
	
	body.habits .fusion-builder-row {
		margin: 0 !important;	
	}
	
	body[class*="habits"] .post-content {
		padding: 0 !important;
	}
	
	body[class*="habits"] .fusion-column-wrapper {
		margin: 0 !important;	
	}
	
	body[class*="habits"] .fusion-fullwidth {
		width: 100%;
		padding: 0;
		margin: 0 !important;
	}

	body.habits div.date_ui {
		margin: 0 auto 30px;	
	}
	
	body.habits #main ul.habits_list {
		margin-bottom: 0;
	}
	
	body[class*="habits"] div.habits_wrap div.col {
		grid-area: 1 / 1 / 1 / 33 !important;
		margin-bottom: 0 !important;
	}
	
	body[class*="habits"] .leaderboard {
		margin: 0 0 50px 0;
	}

	body[class*="habits"] .leaderboard[data-leaderboard-size='0'] {
		display: none;
	}
	
	body.habits div.game {
		margin-bottom: 0;
	}
	
	
	/******************* USER HABITS PAGE *********************/
	
	body.user-habits .habits_wrap div.game #col2 {
		margin-bottom: 60px;
	}
	
	body.user-habits .habits_wrap div.game:last-of-type #col2 {
		margin-bottom: 140px;	
	}
	
	/*
	
	body.habits .game div.name {
		grid-area: 1 / 1 / 1 / 19 !important;			
	}
	
	body.habits .game div.score {
		grid-area: 1 / 19 / 1 / 26 !important;			
	}
	
	body.habits .game div.help {
		grid-area: 1 / 26 / 1 / 33 !important;			
	}
	*/
	
	/********** SIDEBAR **********/
	
	div#aside_wrap aside .habits_wrap, div#aside_wrap aside .wrap {
		width: 100%;
	}
	
	div#aside_wrap.open {
		width: 100% !important;
	}

	div#aside_wrap.open aside#habits {
		width: 100% !important;
	}
	
	div#aside_wrap.open aside#habits.closed {
		right: -100% !important;	
	}
	
	#aside_wrap.open .tab {
		box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
		left: 0px;
		width: 44px;
		z-index: 100;
		border-radius: 0 3px 3px 0;
		box-shadow: 2px 2px 6px 0 rgba(0,0,0,0.2);
	}		
	
	div#aside_wrap aside .habits_wrap, div#aside_wrap aside .wrap {
		width: 100% !important;
	}

	div.date_ui {
		display: flex;
		flex-flow: column;
	}
	
	div.date_ui div {
		text-align: center;
		margin: 0 auto;
	}
	
	div.date_ui div.choose_date {
		margin: 15px auto 30px;	
	}
	
	div.date_ui h3 {
		margin: 0 !important;
		justify-content: center;
	}
	
	div.date_ui p.date {
		text-align: center;
	}
	
	.armory-table td span.tag:last-of-type {
		display: none;
	}
	
	.armory-table td.task-name p {
		max-width: calc(100% - 10px);
	}
	
	ul.habits_list li#header .name {
		grid-area: 1 / 1 / 1 / 21 !important;
	}
	
	ul.habits_list .name {
		grid-area: 1 / 1 / 1 / 16 !important;
	}
	
	ul.habits_list .score {
		grid-area: 1 / 21 / 1 / 25 !important;
	}
	
	ul.habits_list .input {
		grid-area: 1 / 16 / 1 / 20 !important; 	
	}
	
	aside div.habits_wrap .day-score {
		grid-area: 1 / 21 / 1 / 33 !important;
	}
	
	ul.habits_list .help {
		display: none;
	}

	/****** USER PROFILE POPUP *******/
	
	.armory-popup.user-profile .portrait {
		width: 100%;
		display: block;
		clear: both;
	}
}

@media all and (max-width: 400px) {
	
	body div[id*="add-ta"] td.task-name {
		grid-area: 1 / 1 / 1 / 19 !important;
	}		
	
	body div[id*="add-ta"] td.task-complete-by {
		grid-area: 2 / 1 / 2 / 19 !important;
	}		
}

