* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
body {
  font-family: Arial;
  margin: 0px;
  height: 100vh;
  width: 100vw;
}
a,
.degree_or_radian,
div,
span {
  font-size: 30px;
}

.degGrid {
  grid-column: 2 !important;
}
.radGrid {
  grid-column: 3 !important;
}

.degree_or_radian {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* .cubeRoot {
  font-weight: bold;
  font-size: 18px;
} */

input.radioButton {
  height: 12px;
  width: 12px;
  margin-top: 0px;
  margin-left: 0px;
}
#mainContentAreaScientific {
  display: grid;
  width: 100vw;
  height: 100vh;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(12, 1fr);
  grid-column-gap: 8px;
  grid-row-gap: 8px;
  padding: 16px;
  margin: 0px;
  background-color: #f0f4f7;
}

@media (max-width: 250px) {
  a,
  span,
  .degree_or_radian {
    font-size: 10px;
    /* display: block; */
  }
  .superscript,
  .subscript {
    font-size: 6px;
  }
  .memory {
    font-size: 12px;
    /* display: block; */
  }
  input[type='text'] {
    font-size: 16px;
  }
  #mainContentAreaScientific {
    grid-column-gap: 8px;
    padding: 16px;
  }
}
.gridRowSet {
  grid-row: 12/14 !important;
}

.normalGridRowSet {
  grid-row: 8/10 !important;
}

@media (min-width: 250px) {
  a,
  span,
  .degree_or_radian {
    font-size: 10px;
    /* display: block; */
  }
  .superscript,
  .subscript {
    font-size: 6px;
  }
  .memory {
    font-size: 12px;
    /* display: block; */
  }
  input[type='text'] {
    font-size: 16px;
  }
  #mainContentAreaScientific {
    grid-column-gap: 8px;
    padding: 16px;
  }
}

@media (min-width: 320px) {
  a,
  span,
  .degree_or_radian {
    font-size: 14px;
    /* display: block; */
  }
  .superscript,
  .subscript {
    font-size: 10px;
  }
  .normalFontSize {
    font-size: 18px;
  }
  .memory {
    font-size: 14px;
    /* display: block; */
  }
  .cubeRoot {
    font-size: 20px;
    /* display: block; */
  }
  input[type='text'] {
    font-size: 22px;
  }
  #mainContentAreaScientific {
    grid-column-gap: 8px;
    padding: 16px;
  }
}
@media (min-width: 320px) and (max-height: 550px) {
  a,
  span,
  .degree_or_radian {
    font-size: 10px;
    /* display: block; */
  }
  .superscript,
  .subscript {
    font-size: 6px;
  }
  .normalFontSize {
    font-size: 18px;
  }
  .memory {
    font-size: 12px;

    /* display: block; */
  }
  .multiplyButton {
    font-size: 12px;
  }
  .cubeRoot {
    font-size: 16px;
    /* display: block; */
  }
  input[type='text'] {
    font-size: 22px;
  }
  #mainContentAreaScientific {
    grid-column-gap: 8px;
    padding: 16px;
  }
}

@media (min-width: 640px) {
  a,
  div,
  span,
  .degree_or_radian {
    font-size: 20px;
  }
  .normalFontSize {
    font-size: 24px;
  }
  .superscript,
  .subscript {
    font-size: 16px;
  }
  .memory {
    font-size: 24px !important;

    /* display: block; */
  }
  .cubeRoot {
    font-size: 28px;
    /* display: block; */
  }
  #mainContentAreaScientific {
    grid-column-gap: 8px;
    padding: 16px;
  }
}

/* INPUT/MEM TEXT BOXES*/
.keyPad_TextBox,
.keyPad_TextBox1 {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #dde6ed;
  text-align: right;
  /* padding-right: 5px; */
  grid-column: span 5;
  grid-row: span 1;
}

.keyPad_TextBox1_height {
  height: 100%;
}
.keyPad_TextBox1_scientific {
  grid-column: span 7 !important;
}
.span-one {
  grid-column: span 1;
}
.calc_close {
  background: url('../images/Sprite.png') no-repeat -204px -13px;
  width: 16px;
  height: 16px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  line-height: 25px;
  position: absolute;
  right: 12px;
  text-align: center;
  top: 12px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
}
#keyPad_Help {
  color: #000;
  background: url('../images/Sprite.png') no-repeat -22px -8px;
  width: 54px;
  height: 25px;
  /* padding: 1px; */
  cursor: pointer;
  font-weight: bold;
  line-height: 20px;
  position: absolute;
  right: 79px;
  text-align: center;
  top: 7px;
  /*	border:1px solid;
	border-radius:5px;
	-webkit-border-radius:5px;
	-moz-border-radius:5px;
	-ms-border-radius:5px;
	box-shadow:0 2px 2px #000000;
	-webkit-box-shadow:0 2px 2px #000000;
	-moz-box-shadow:0 2px 2px #000000;
	-ms-box-shadow:0 2px 2px #000000;*/
}
.calc_container_normal {
  background: #f0f4f7;
  /* border: 1px solid #aaa; */
  /* border-radius: 5px; */
  /* box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1) inset; */
  padding: 0px;
  width: 100%;
  position: relative;
}

.radioButton {
  /* margin-right: 8px; */
}
#keyPad_Helpback {
  color: #000;
  background: url('../images/Sprite.png') no-repeat -22px -43px;
  width: 54px;
  height: 25px;
  /* padding: 1px; */
  cursor: pointer;
  font-weight: bold;
  line-height: 20px;
  position: absolute;
  right: 79px;
  text-align: center;
  top: 7px;
}

/* not necessary classes */

#mainContentArea {
  /* addded */
  display: flex;
  flex-direction: column;
  display: grid;
  width: 100vw;
  height: 100vh;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(8, 1fr);
  grid-column-gap: 8px;
  grid-row-gap: 8px;
  padding: 20px;
  margin: 0px;
  background-color: #f0f4f7;
}
.afterMRowChange {
  grid-template-rows: repeat(9, 1fr) !important;
}
.calc_container {
  background-color: #f0f4f7;
  padding: 0px;
  width: 100%;
  position: relative;
}

/* KEY ROW */
/* KEY BUTTONS */
#keyPad a {
  /*  */
  display: flex;
  justify-content: center;
  align-items: center;
  /*  */
  background: #f1f1f1;
  border-color: #aaa;
  border-image: none;
  border-radius: 4px;
  /* border-style: solid; */
  /* border-width: 1px 1px 3px; */
  color: #444;
  cursor: pointer;
  /*  display: block; */
  float: left;
  /* font-weight: bold; */
  /* height: 25px; */
  height: 100%;
  line-height: 20px;
  /* margin-right: 5px; */
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  grid-column: span 1;
  background-color: #fff;
  border-radius: 4px;
}
/* #keyPad a.min {
} */
#keyPad a.last {
  margin-right: 0px;
}

#keyPad_btnEnter:active {
  /* position: absolute !important; */
  /* bottom:17px !important;   */
  background: #07a872 !important;
}
#keyPad a:active {
  background: #f0f4f7;
}
.marginUP {
  /* margin-top: -40px; */
  margin-top: 0px;
}
.text_container {
  grid-column: span 5;
  grid-row: span 1;
}
.memoryhide {
  visibility: hidden;
  position: absolute;
  top: 52px;
  right: 429px;
  bottom: 0;
  opacity: 0;
  transition: opacity 1s, visibility, 1s;
}
.memoryshow {
  visibility: visible;
  opacity: 1;
}
/* ARROWS */
.calc_arrows {
  /*line-height: 29px!important;*/
}
/* ENTER a: QUAD WIDTH */
#keyPad #keyPad_btnEnter {
  background: none repeat scroll 0 0 #2ecc71;
  border-color: #27ae60;
  color: #fff;
}
#keyPad #keyPad_btnEqualNormal {
  background: none repeat scroll 0 0 #2ecc71;
  border-color: #27ae60;
  color: #fff;
}

#keyPad_btnEqualNormal:active {
  /* position: absolute !important; */
  /* bottom:17px !important;   */
  background: #07a872 !important;
}
/* BACKSPACE/CLEAR INPUT KEYS*/
#keyPad #keyPad_btnClr,
#keyPad #keyPad_btnInverseSign,
#keyPad #keyPad_btnAllClr {
  background: none repeat scroll 0 0 #e74c3c;
  color: #fff;
  border-color: #c0392b;
}
#keyPad #keyPad_btnBack {
  background: none repeat scroll 0 0 #e74c3c;
  color: #fff;
  border-color: #c0392b;
}
.keyPad_btnCommand:active {
  background-color: #d64f4f !important;
}

/* SPECIAL FORMATTING FOR SUPER-SCRIPT KEYS */
#keyPad #keyPad_btnSquare,
#keyPad #keyPad_btnCube,
#keyPad #keyPad_btnExp,
#keyPad #keyPad_btnYpowX {
}
/* CLEAR BOTH */
.clear {
  clear: both;
}
.superscript,
.subscript {
  position: relative;
  top: -0.5em;
}

.subscript {
  top: 0.5em;
}
/** new help changes **/

/** new help changes **/
