:root {
	--colorG: #f2f2f2;
	--bordeR: none;
}

/*
set up BIGBOX which go all boxes
*/

.container {
	
	height: 100vh;
	display: grid;
	grid-gap: 5px;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
	grid-template-areas: 
	"b1 b1 b1 b1 b2 b2"
	"b1 b1 b1 b1 b2 b2"
	"b1 b1 b1 b1 b2 b2"
	"b1 b1 b1 b1 b2 b2"
	"b3 b3 b3 b3 b2 b2"
	"b3 b3 b3 b3 b2 b2"	
}	

/*
set up BOX1 which goes the CHART
*/

.b1 {
	border-style: groove;
	background-color: var(--colorG);
	grid-area: b1;
  padding: 1px;
  border: 1px solid #ccc;
  border-radius: 4px;
	box-sizing: border-box;
  width: 100%;

}
/*
set up the CHART
*/

#myChart {
	responsive: true;
	resize: both;
	box-sizing: border-box;
}

/*
set up BOX2 
*/
.b2 {
	border-style: groove;
	background-color: var(--colorG);
	grid-area: b2;
  padding: 1px;
  border: 1px solid #ccc;
  border-radius: 4px;
	box-sizing: border-box;
  width: 100%;

 
}

.curveTabTable, .blastTab, .blastTabCost {
	border-style: groove;
	background-color: var(--colorG);
	
	display: grid;
	grid-gap: 5px;
	
	width: 100%;
  padding: 3px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
}


/*
SET UP the TABLE
*/

.headS{
	background-color:  #cacece;
	color: black;
}

.head1{
	background-color:  #ff4d4d;
	color: black;
}
.head2{
	background-color:  #00e600;
	color: black;
}
.head3{
	background-color:  #4d94ff;
	color: black;
}

td {
	
	border-colapse: colapse;
	border: 1px solid #A9A9A9;
  border-radius: 2px;
	
	background-color: none;
	
	font-size: 1.9vh;
	text-align: center;
	
	padding-top: 1px;
  padding-bottom: 1px;
 	padding-left: 0px;
 	padding-right: 0px;
	
}

table {
	border-spacing: 1px;
	font-size: 1.8vw;
	box-sizing: border-box;
	
}
/*
highlight the table
*/

body:not(.nohover) tbody tr:hover {
  background-color: #ffa;
}

/*
set up the the TABS
*/

.mytabs {
	display: flex;
	flex-wrap: wrap;
	background-color: var(--colorG);
	padding: 1px;

 }

.mytabs input[type="radio"] {
	display: none;	

}

.mytabs label {
	background: #fff;
	font-weight: bold;
	padding: 5px 25px;

	font-size: 0.9vw;
  text-align: center;
	cursor: pointer;
	border: 1px solid #ccc;
  border-radius: 2px;
}

.mytabs .tab {
	width: 100%;
	background: var(--colorG);
	order: 1;
	display: none;

}

.mytabs input[type="radio"]:checked + label +.tab{
	display: block;

}

.mytabs input[type="radio"]:checked + label{
	background: var(--colorG);
	border: 1px solid #ccc;
  border-radius: 2px;
}	

.infoCost {
	border-style: groove;
	background-color: var(--colorG);
	
	width: 100%;
  padding: 5px 0,5px;
  border: 1px solid #ccc;
  border-radius: 4px;
	  	

	display: grid;
	grid-gap: 5px;

	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr;
		
}

.numPrimer, .boost, .downHoleDetonator,
.explosivePrice, .surfaceDetonator,
.drillMeterCost{

	
	border: 1px solid #A9A9A9;
  border-radius: 1px;
	width:100%;
	
	text-align: center;
	box-sizing: border-box;
	
	cursor: default;
	padding: 1px;

}

.curveTabInfo {
	border-style: groove;
	background-color: var(--colorG);
	
	width: 100%;
  padding: 1px;
  border: 1px solid #ccc;
  border-radius: 4px;
	box-sizing: border-box;  	

	display: grid;
	grid-gap: 5px;

	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr 1fr;
	
	
	grid-template-areas:
	
	"d10 d10R d90 d90R"
	"d20 d20R n nR"
	"d50 d50R powder powderR"
	"d80 d80R kghole kgholeR"
	
}

.d10, .d10R, .d20, .d20R, .d20R, 
.d50 , .d50R , .d80 , .d80R ,.d90 , 
.d90R, .kghole, .kgholeR, 
.n, .nR, .powderf, .powderfR {

	
	border: 1px solid #A9A9A9;
  border-radius: 1px;
	width:100%;
	
	text-align: center;
	box-sizing: border-box;
	
}


.d10 {

	grid-area: d10;
}

.d10R {
	
	grid-area: d10R ;
}

.d20 {
	
	grid-area: d20 ;
}

.d20R {
	
	grid-area: d20R ;
}

.d50 {
	
	grid-area: d50;
}

.d50R {
	
	grid-area: d50R;
}
.d80 {
	
	grid-area: d80;
}

.d80R {

	grid-area: d80R;
}

.d90 {
	
	grid-area: d90;
}

.d90R {
	
	grid-area: d90R;
}

.kghole {
	
	grid-area: kghole;
}

.kgholeR {
	
	grid-area: kgholeR;
}
/*
.n {
	
	grid-area: n;
}

.nR {
	
	grid-area: nR;
}

.powderf{
	
	grid-area: powderf;
}

.powderfR{
	
	grid-area: powderfR;
}

*/


/*
set up BOX3 which goes the parameters
*/

.b3 {
	border-style: groove;
	background-color: var(--colorG);
	grid-area: b3;
	display: grid;
	grid-gap: 5px;

	width: 100%;
  padding: 3px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  responsive: true;
	
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr 1fr;

	grid-template-areas:
	"rockFactor angle stemming numberholes "
	"rockDensity diameter spacing selectCurves"
	"explosiveDensity deviation burden btn_A"
	"RWS height subdrill btn"
}



/*
set up the blast's PARAMETERS which goes in the BOX 3
*/

#rockFactor, #rockDensity, #explosiveDensity, #RWS, 
#angle, #diameter, #deviation, #height, #stemming, #burden, 
#spacing,#subdrill, #selectCurves, #numberholes, #selectRMD {

	padding: 2px;
	border: 1px solid #A9A9A9;
  border-radius: 2px;
	width:95%;
	box-sizing: border-box;
}
#rockFactor, #rockDensity, #explosiveDensity, #RWS, #angle, #diameter, 
#deviation, #height, #stemming, #burden, #spacing, #subdrill, #numberholes,
{
	
	margin-bottom:10px;
	font-size: 0.9vw;
		
}

.rockFactor{

	grid-area: rockFactor;
}

.rockDensity{

	grid-area: rockDensity;
}


.explosiveDensity{

	grid-area: explosiveDensity;
}

.RWS{

	grid-area: RWS;
}

.angle{

	grid-area: angle;
}

.diameter {

	grid-area: diameter ;
}

.deviation {

	grid-area: deviation ;
}

.height{

	grid-area: height;
}

.stemming{

	grid-area: stemming;
}


.burden{

	grid-area: burden;
}

.spacing{

	grid-area: spacing;
}

.subdrill {

	grid-area: subdrill;
}

.selectCurves {

	grid-area: selectCurves;
}

.numberholes{
	grid-area: numberholes;
}

.btn{
	grid-area: btn;
}

.btn_A {
	grid-area: btn_A;
}


#simulate, #delete, #btn_A {
	
  	width: 45%;
  	background-color: #669966;
  	border: solid;
  	color: white;
  	padding: 4px 1px;
  	font-size: 1.2vw;
  	margin: -10px 2px;
  	cursor: pointer;
		text-align: center;
}

#delete {
 	
  	background-color: #c65353;
}

#btn_A {
		background-color: #5c5a56;
		width: 95%;	
		font-size: 1.1vw;	
}

.btn_Save {
		
		align-items: flex-end;
		font-size: 1.2vw;
		display: flex;
		flex-direction: column;
		text-align: center;
		
}

#btn_Save {
	background-color: #b5b5b5;
	cursor: pointer;
}
/*
set up contact button
*/

#parentContactBtn{
	position: relative;
	
}

.contactBtnPhoto {
	position: relative;
	left: 25%;
	top: 10%;
	
}

 
.contactBtnEng {
	position: relative;
	left: 1%;
	top: 10%;

}

.contactBtnSup {
	position: relative;
	left: 17%;
	top: 12%;
		
}

.contactBtnSoc {
	position: relative;
	left: 28%;
	top: 10%;
	transform: translate(-20%, -20%);
	
}
.contactBtnRef {
	position: relative;
	left: -25%;
	top: 25%;
	
	
}

.disclaimer {
	position: relative;
	left: 0,5%;
	top: 25%;
	
	
}

/*Configure the Pop Up*/

.modal {
  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: rgba(0,0,0,0.4); /* Black background with opacity */
}

.modal-content {
  background-color: #f8f8f8;
  margin: 7% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 30%; /* Could be more or less, depending on screen size */
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#popup_title {

	text-align: center;
	font-weight: bold;		
}

.RMD {
		padding-top: 5px;
		padding-bottom: 10px;
		text-align: center;		
		display: flex;
		flex-direction: column;
		align-items: center;
}

.JPS, .JPA {
	
	padding-bottom: 10px;
	text-align: center;	
	display: flex;	
	flex-direction: column;
	align-items: center;
}

.rockDensi, .youngsMod, .UCS  {
	/*text-align: center;*/
	display: flex;
	align-items: center;
	margin: 1px auto;
	flex-direction: column;
	padding-bottom: 10px;
	
	
}
#rockDensi, #youngsMod, #UCS  {
	text-align: center;
}

/*Configure the RMD list and JPS list*/

#selectRMD {
	/*list-style: none;*/
	padding-top: 2px;
	border: 1px solid #A9A9A9;
  border-radius: 2px;
	width:65%;
	box-sizing: border-box;
	display: block; 
	text-align: center;
	cursor: pointer;
	margin: 10px auto;
}

#selectJPS, #selectJPA {
	
	padding-top: 2px;
	border: 1px solid #A9A9A9;
  border-radius: 2px;
	width:65%;
	box-sizing: border-box;
	display: block;
	text-align: center;
	cursor: pointer;
	margin: 10px auto;
}

