/* The Modal (background) */


#switch_colour {
    width: 100px;
    height: 100px;
	border-radius: 40px;
    background-color: red;
    position: relative;
    -webkit-animation-name: switch; /* Safari 4.0 - 8.0 */
    -webkit-animation-duration: 4s; /* Safari 4.0 - 8.0 */
    -webkit-animation-iteration-count: infinite; /* Safari 4.0 - 8.0 */
    animation-name: switch;
    animation-duration: 4s;
    animation-iteration-count: infinite;
	position:fixed;
	right: 23px;
    bottom: 50px;
    z-index: 99999;
	
}

.modal2 {
    display: block;
    position: fixed;
    z-index: 999999;
    right: 20px;
    top: 0;
    width: 250px;
    height: 100%;
    overflow: auto;
    -webkit-animation-name: fadeIn;
    -webkit-animation-duration: 0.4s;
    animation-name: fadeIn;
    animation-duration: 0.4s;
}

/* Modal Content */
.modal-content {
    position: fixed;
    bottom: -370px;
    background-color: #f9f9f9;
    width: 250px;
    height: 390px;
    -webkit-animation-name: slideIn;
    -webkit-animation-duration: 0.4s;
    animation-name: slideIn;
    animation-duration: 0.4s;
    border-radius: 0;
}

/* The Close Button */
.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 16px 16px;
    background-color: #333;
    color: white;
}

.modal-body2 {
	
	padding: 16px 16px;
	height: 80%;
	max-height: 80% !important;
	
}

.modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
	height: 10%;
}

/* Add Animation */
@-webkit-keyframes slideIn {
    from {bottom: -300px; opacity: 0}
    to {bottom: 170px; opacity: 1}
}

@keyframes slideIn {
    from {bottom: -300px; opacity: 0}
    to {bottom: 170px; opacity: 1}
}

@-webkit-keyframes fadeIn {
    from {bottom: -300px; opacity: 0}
    to {bottom: 170px; opacity: 1}
}

@keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}


@media (max-width: 767px) {	

	#switch_colour {	
		
		height: 54px !important;
		width: 50% !important;
		bottom: 50px !important;
		border-radius: 0 !important;
		left: 50% !important;
		
	}
	#myModal {
		
		display:none;
		
	}
	
	.modal-content {
		
		 width:100% !important;
		 left: 0;
		 bottom: 122px;
		
	}
	
	.modal2 {
		
			width:100% !important;
			right:0;
		
	}	
	
}
