
.case-group{
    width: 100%;
    float: left;
    font-size: 20px;
    text-align: left;
    
    margin-top: 20px;   
}


.case-group a{	
	text-decoration: none;
	position: relative;
    top: -105px;
}

.case-subgroup{
    float: left;
    text-align: left;
    padding: 10px;
    margin: 10px;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 10px 0 rgba(0, 0, 0, 0.2);	
}

.case-subgroup:hover{
    box-shadow: 0 4px 8px 0 rgba(55, 55, 55, 0.2);
}

.case-subgroup-box{
    width: 100%;
}




/* case -----------------------------------------------------------------------------------------*/

.case-frame{
	box-sizing: border-box;
	width: 49%;
    float: left;

    margin: 0.5%;
	padding: 14px;
	
    border: 1px solid #ccc;
}

.case-container{
	float: left;
	width: 100%;
}

.case-frame:hover{
	background-color: #f8f8f8;
}


.case-id{
	float: left;
	display: none;
}

.case-info{
	float: left;
	width: 140px;
}

.case-info2{
	float: left;
	width: 140px;
}

.case-alg-container{
	float: none;
	margin-left: 160px;
}

.case-alg-container2{
	float: none;
	margin-left: 220px;
}

.case-name{
	float: left;
	width: 100%;
	text-align: center;
}

.case-img{
	float: left;
	width: 100%;
}

.case-img img{
	width: 120px;
}

.case-img-big img{
	width: 200px;
}

.case-prob{
	float: left;
	width: 100%;
	text-align: center;
}

.case-alg-line{
	float: left;
	width: 100%;
}

.case-alg-id{
	display:none;
}

.case-alg-selected{
	display:none;
}

.case-bullet{
	float: left;
	line-height: 24px;
	margin-right: 4px;
}

.case-bullet img{
	width: 15px;
	height: 15px;
}

.case-index{
	float: left;
	height: 100%;
	line-height: 24px;
	
	margin-right: 8px;
}

.case-alg{
	float: left;
	line-height: 24px;
	text-align: left;

}

#case-button-add-alg{
	float: left;
	width: 190px;	
	margin-left: 5px;
	margin-right: 5px;
	margin-top: 12px;
	color: #fff;
	height: 40px;
	line-height: 40px;
	background-color: #0099ff;
	text-align: center;
	border-radius: 5px;
	font-size: 16px	;
}

#case-button-add-alg:hover{
    cursor: pointer;
	background-color: #008ae6;
}



/* add Alg ----------------------------------------------------------------------- */
#addAlgWindowFrame{
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    
}

#addAlgWindow{
	float: left;
	width: 80%;	
	
	margin: 10%;
	margin-top: 110px;
	padding: 20px;
	padding-bottom: 10px;
		
    background-color: #fefefe;
    border: 1px solid #888;	
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);  
}

#add-frame{
	float: left;
	width: 100%;
}

#add-visuals{
	float: left;
	width: 100%;
}

#add-info{
	float: left;
	width: 100%;
}


.add-line{
	float: left;
	width: 100%;
	margin-top: 10px;
}


#add-title{
	float: left;
	width: 15%;
	
	text-align: left;
	font-size: 20px;
}

#add-case{
	float: left;
	width: 120px;
	
	text-align: left;
}


#add-arrow{
	float: left;
	width: 70px;
	
	line-height: 124px;
	text-align: center;
}

#add-arrow img{
	width: 30px;
}

#add-preview{
	float: left;
	width: 130px;
	
	text-align: left;
}

#addAlg-submit-button{
	width: 100%;
	line-height: 40px;
	margin-bottom: 0px;
}


.add-label{
	float: left;
	width: 15%;
	
	text-align: left;
}


.add-field{
	float:right;
	width: 85%;
	
	text-align: left;
}

input{
	width: 100%;
}

/* mobile ---------------------------------------------------------------------------------------- */
@media only screen and (max-width: 1280px){
	.case-frame{
        width: 100%;
    }
}

@media only screen and (max-width: 780px){	
	
	.case-img img{
		width: 80px;
	}
	
    .case-frame{
        width: 100%;
		font-size: 14px;
    }
	
	.case-info{
        width: 100px;
    }
	
	.case-alg-container{
		margin-left: 120px;
	}
	
	.add-label{
		width: 100%;
	}
	.add-field{
		width: 100%;
	}
	
	/* specific case page */
	.case-img-big img{
		float: left;
		width: 220px;
	}
	
	.case-info2{
		float: left;
		width: 100%;
	}
	.case-alg-container2{
		float:left;
		width: 100%;
		margin-left: 0px;
		margin-top: 10px;
	}
	
	#case-button-add-alg{
		width: 210px;
		margin-right: 140px;
	}
	
	/* add alg */
	#addAlgWindow{
		width: 90%;	
		
		margin: 5%;
		margin-top: 80px;
		padding: 10px; 
		padding-bottom: 0px;
	}
	
	#addAlg-submit-button{
		min-width: 0px;
	}

	.add-line{
		margin-bottom: 5px;
	}

	.add-label{
		width: 100%;
		margin-bottom: 5px;
	}

	.add-field{
		width: 100%;
	}
}
