@media (max-width: 600px) {
.center {
  text-align: center;
}

.button {
  font-size: 14px;
  display: inline-block;
  background: #fff;
  position: relative;
  height: 42px;
  font-weight: 200;
  width: 140px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  line-height: 34px;
  padding-left: 8px;
  padding-right: 10px;
  background-position: center right;
  background-repeat: no-repeat;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  background-color: #fafafa;
  background-image: linear-gradient(#FFF, #F6F6F6);
  background: #FFF;
  background: linear-gradient(#FFF, #F6F6F6);
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #292920;
}

.button.disabled {
  background: #bfbfb8;
  border-bottom: 3px solid #bfbfb8;
  pointer-events: none;
}

#container {
}

.fraction {
  display: inline-block;
  vertical-align: middle;
}

.fraction .numerator {
  border-bottom: 1px solid black;
  padding-bottom: 2px;
  margin-bottom: -2px;
  padding-top: 0px;
  text-align: center;
}

.formula {
  display: inline;
  font-style: italic;
  font-size: 14px;
  font-family: "Times New Roman", Times, serif;
  font-weight: 500;
  white-space: nowrap;
  position: absolute;
  left: 141px;
}

.fraction > div {
  padding-right: 4px;
  padding-left: 2px;
  margin: 3px 0px;
  padding-top: 3px;
}

.formula sub {
  font-size: 70%;
}

.slider-container {
  vertical-align: top;
  font-size: 12px;
  margin-top: 7px;
  position: relative;
}
.not-italic {
  font-style: normal;
}

.fraction.too-high {
  position: relative;
  top: 5px;
}

.header {
  height: 50px;
  box-shadow: 0 0 8px #c5c5c5;
}

.header {}

.header > div {
  display: inline-block;
}

.header-container {
  overflow: hidden;
  height: 64px;
}

.left-container {
  display: block;
  padding-top: 9px;
  padding-left: 0px;
  vertical-align: top;
  box-sizing: border-box;
  position: absolute;
  top: 352px;
  width: 100%;
}

.content > .right-container {
  display: block;
  vertical-align: top;
  position: relative;
  width: 100%;
}

.graph.stock-price-graph {
  width: 275px;
  height: 400px;
}

.left-container .graph-container {
  margin-top: 8px;
  margin-left: 85px;
  position: relative;
}

.graph-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.right-container .graph-container {
}

.graph-legend > div {
  /* display: inline-block; */
  position: relative;
  padding-left: 20px;
  padding-right: 12px;
  font-size: 11px;
  line-height: 17px;
  height: 18px;
  top: -2px;
}

.graph-legend > div::before {content: '';position: absolute;left: 0px;top: 50%;background: #ee3124;width: 16px;height: 2px;margin-top: -2px;}

.graph-legend {
  margin-top: 0px;
  margin-left: 0px;
}

.graph .xAxis .flot-tick-label {
  margin-top: -45px;
}
.graph .xAxis .flot-tick-label:not(:first-child)::before {
  content:'';
  width:1px;
  height:4px;
  background: #ccc;
  position:absolute;
  bottom:calc(100% + 2px);
  left:calc(50% - 1px);
}

.graph.stock-price-graph .xAxis .flot-tick-label {
  text-align: right !important;
  transform: translate(50%, 0);
  margin-top: -5px;
}

.graph.stock-price-graph .xAxis .flot-tick-label:last-child {
  transform: translate(-50%, 0);
}

.slider-title {
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  line-height: 16px;
}

.slider.vertical {
  position: absolute;
  width: 1px;
}

.slider.current-stock-price-slider {
  height: 104px;
  top: 168px;
  left: 37px;
}

.slider.strike-price-slider {
  height: 70px;
  top: 185px;
  left: 242px;
}

.slider.vertical .slider-min-value, .slider.vertical .slider-max-value {
  display: none;
}

.slider.vertical .slider-value {
  margin-left: -39px;
  width: 76px;
  margin-top: -14px;
  background: #00930f;
  text-align: left;
}

.slider-value > div {
  font-size: 12px;
  line-height: 14px;
  display: inline;
}

.slider.vertical .slider-handle {
  background: center no-repeat url(../assets/cursor.svg);
  border-radius: 0px;
  border: none;
  width: 40px;
  height: 35px;
  background-size: contain;
  margin-left: -34px;
  margin-top: -18px;
}

.mirror-h {
  transform: scaleX(-1);
}

.mirror-h .slider-value {
  transform: scaleX(-1);
}

.slider.vertical.strike-price-slider .slider-value {
  background: #012dad;
  width: 51px;
  margin-left: -11px;
}

.flot-tick-label {
  color: #797979;
}

.slider.strike-price-slider .slider-handle::before {
  width: 204px;
  border-top: 1px solid black;
}

.value-tag {
  position: absolute;
  font-size: 15px;
  margin-left: 48px;
  margin-top: 0px;
}

.graph .flot-text {
  z-index: 0;
}

.graph .flot-base {
  z-index: 1;
}

.graph::before {
  position: absolute;
  top: 9px;
  left: 34px;
  width: 295px;
  height: 178px;
  background: #f5f5f7;
  content: '';
}

.graph::after {
  position: absolute;
  left: 34px;
  width: 303px;
  height: 48px;
  background: #fff;
  content: '';
  top: -39px;
  z-index:10;  
}

.graph .xAxis .flot-tick-label:first-child {display: none;}

.graph > .flot-tick-label {
  margin-top: -45px;
  z-index: 1;
  background: rgba(255,255,255,0.8);
}

.value-box.call-value-box {
  position: absolute;
  border-right: 1px dashed #7a7a7a;
  border-top: 1px dashed #7a7a7a;
  z-index: 4;
  margin-left: -4px;
  padding-left: 4px;
  padding-bottom: 18px;
}

.graph-area {
  position: relative;
  margin-left: 35px;
  margin-top: 5px;
}

.value-box-value {
  position: absolute;
  width: 78px;
  height: 50px;
  background: yellow;
  top: -25px;
  left: -63px;
  padding: 8px 12px;
  box-sizing: border-box;
}

.value-box-value .type {
  font-size: 11px;
}

.value-box-value .value {
  font-size: 13px;
  font-weight: 500;
}

.variable {
  font-style: italic;
  font-family: serif;
  font-size: 14px;
  font-weight: 500;
  padding-left: 2px;
  padding-right: 2px;
}

.variable > span {
  font-style: normal;
}

.graph-legend > div.call-payoff-legend::before {
  background: #012dad;
}

.graph-legend > div.current-stock-legend::before {
  background: #3a9300;
  width: 7px;
  height: 7px;
  border-radius: 10px;
  left: 6px;
  margin-top: -4px;
}

.header .C-variable-value {
  display: inline-block;
  padding: 8px;
  background: yellow;
}

.button.reset, .button.equation {
  width: 48px;
  height: 34px;
}

.button.reset::after {content: '';position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;background: url(../assets/reset.svg);background-position: center;background-size: 16px;background-repeat: no-repeat;}

.formula-column {
  position: absolute;
  top: 7px;
  left: 571px;
}

.variable-column:nth-child(3) {
  left: 472px;
  line-height: 21px;
  top: 4px;
}

.variable-column {
  position: absolute;
  top: 7px;
  line-height: 17px;
}

.variable-column:nth-child(2) {
  left: 187px;
}

.variable-column:nth-child(1) {
  left: 122px;
}

sub {
  font-style: normal;
  font-size: 8px;
}

.right-container .graph-area::before, .right-container .graph-area::after {
  content: "Value ($)";
  position: absolute;
  width: 0px;
  white-space: nowrap;
  top: 44px;
  left: -8px;
  transform: rotate(-90deg);
  color: #797979;
  font-size: 12px;
}

.right-container .graph-area::after {
  
content: "Stock Price ($)";
  
transform: none;
  
top: calc(100% - 6px);
  
right: 93px;
  
left: auto;
}


.graph {
  width: 337px;
  height: 194px;
}

.description {
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  padding-left: 8px;
}

.separator {
  margin-bottom: 40px;
  height: 1px;
  background: #ccc;
  position: relative;
  width: 224px;
}

.graph-equations {
  position: absolute;
  z-index: 2;
  left: 22px;
  padding: 24px;
}

.graph-equations > div {
  white-space: nowrap;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}

.formula div {
  display: inline-block;
}

.value-box.strike-value-box {
  position: absolute;
  z-index: 2;
  padding-top: 6px;
}

.value-box-bottom, .value-box-left {
  transform: translate(50%, 0);
  right: 0px;
  top: 100%;
  position: absolute;
  white-space: nowrap;
  text-align: center;
  background: #00930f;
  padding: 4px 9px;
  color: white;
  line-height: 16px;
}

.value-box > span {
  font-size: 16px;
  font-weight: 500;
}

.value-box .value-box-bottom > span::before {content: '$';}

.value-box.strike-value-box .value-box-bottom {
  background: blue;
}

.value-box.call-value-box::after {content: '';position: absolute;top: -4px;right: -4px;width: 8px;height: 8px;border-radius: 8px;background: green;}

.value-box-left {
  right: 100%;
  transform: translate(0, -50%);
  top: auto;
  padding: 4px 5px;
  margin-right: -4px;
}

.graph-equations div:first-child .formula .C-variable-value {
  position: relative;
  background: yellow;
  padding: 4px;
  margin-top: -4px;
}

.graph-legend > .intrinsic-value-legend::before {
  background: #012dad;
}

#container.call .graph-legend > .black-scholes-legend::before {
  background: #00930f;
}


.graph-header .left-container {top: 227px;left: 69px;}

.switch .option {
  width: 50%;
  display: inline-block;
  text-align: center;
  font-size: 12px;
  background-image: linear-gradient(#FFF, #F6F6F6);
  background: #FFF;
  background: linear-gradient(#FFF, #F6F6F6);
  border: 1px solid #ccc;
  box-sizing: border-box;
  padding: 8px 0px;
  cursor: pointer;
}

.option:not(.selected) {
  background: linear-gradient(#b8bcbd, #cbcbcc);
  border: 1px solid #abafb0;
  pointer-events: none;
  -webkit-user-select: none;
  box-shadow: none;
}

.graph-header > .right-container {
  display: block;
}

.variable-container {
  width: 100%;
  margin-top: -10px;
  text-align: left;
  line-height: 18px;
  z-index: 11;
  position: relative;
}

.variable-section {
  display: inline-block;
  width: calc(100% / 3);
  white-space: nowrap;
  text-align: center;
}

.variable-container > div.variable-header {
  font-weight: 700;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 14px;
  padding-left: 18px;
  padding-right: 0px;
  width: 149px !important;
  box-sizing: border-box;
}

.variable-section > div:last-child {
  font-weight: 700;
  font-size: 11px;
}

.variable-section > div:first-child {
  font-size: 15px;
  font-weight: 700;
}

.variable-section .new-value-variable, .variable-section .intial-value-variable {
  color: #00930f;
}

.intial-value-variable {}

.value-table > div > div {
  vertical-align: top;
  text-align: center;
  font-size: 11px;
  white-space: nowrap;
  height: 29px;
  line-height: 28px;
  border-bottom: 1px solid #dedede;
  box-sizing: border-box;
}

.value-table > div > div:nth-child(2) {white-space: nowrap;height: 42px;line-height: 11px;padding-top: 10px;}

.value-table > div > div:nth-child(1) {background: #eff0f0;border-top: 1px solid #dedede;height: 30px;}

.value-table > div {
  display: inline-block;
  vertical-align: top;
  width: 23%;
}


.title-row {
  font-weight: 700;
  width: 29% !important;
}

.content .value-table {}


.value-table > div > div:first-child {
  font-weight: 700;
}

.value-table > .title-row > div {
}

.switch {
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

.call-show, .put-show {
  display: none;
}

#container.call .call-show, #container.put .put-show {
  display: inline-block;
}

#container.put .value-box.call-value-box > div, #container.put .value-box::after {
  background: #ee3124;
}

#container.put .variable-section .new-value-variable, #container.put .variable-section .intial-value-variable {
  color: #ee3124;
}

.CallC {
  color: green;
}

.value-table .Put {
  color: #ee3124;
}

.graph-top-cover {
  position: absolute;
  height: 110px;
  width: 530px;
  background: white;
  left: 29px;
  z-index: 2;
  top: 9px;
}

.graph-header {
  position: relative;
}

.value {
  font-size: 16px;
}

.graph-legend > .intrinsic-value-legend {
    top: -5px;
}

.description-left, .description-right {
    display: inline-block;
    vertical-align: top;
}

.button.set-initial-values {
  width: 128px;
  height: 28px;
  line-height: 28px;
  font-size: 11px;
  padding-left: 29px;
  box-shadow: none;
}

.description-right > * {
  display: inline-block;
  vertical-align: top;
}

.description-right {
  position: absolute;
  right: 42px;
}

.description-right > div:last-child {
  margin-left: 14px;
}

.CallC, .Put {
  font-weight: 600;
}

[row="3"] .CallC, [row="3"] .Put {
  color: black;
}

.button.set-initial-values::before {content: '';position: absolute;top: 0px;left: 5px;width: 17px;height: 100%;background: url(../assets/arrow-left.svg);background-size: contain;background-position: center;background-repeat: no-repeat;}

.put.button, .call.button {
  height: 34px;
  vertical-align: top;
}

.variable-container > div {
  display: inline-block;
  width: calc(100% - 158px);
}

.slider-header::after {
  content: '';
  position: absolute;
  right: 0px;
  width: 35px;
  height: 37px;
  top: 0px;
  background: red;
  border-bottom: 1px solid #e4e4e4;
  border-left: 1px solid #e4e4e4;
  background-image: linear-gradient(#FFF, #F6F6F6);
}

.slider-sliderout {
  position: relative;
  overflow: hidden;
  height: 37px;
  border-top: 1px solid #e4e4e4;
}
.slider-header::before {
  content: '';
  position: absolute;
  right: 12px;
  width: 5px;
  height: 5px;
  top: 18px;
  z-index:2;
  transform: translate(-50%, -50%) rotate(45deg);
  border-right: 2px solid #888888;
  border-bottom: 2px solid #888888;
}

.slider-sliderout.selected .slider-header::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.slider-handle {
  width: 30px;
  height: 30px;
  border-radius: 18px;
  margin-left: -15px;
  margin-top: -13px;
}

.slider-sliderout.selected {
  height: 87px;
  z-index: 3;
  box-shadow: 0 0 7px rgba(0,0,0,0.5);
}
.slider-sliderout.selected .slider-value:not(.initial) {
  color:white;
  background: #3b444c;
}

.slider-value {
  position: absolute;
  left: calc(100% + -80px);
  margin-left: 18px;
  width: 53px;
  text-align: center;
  font-size: 12px;
  background: transparent;
  color: black;
  box-sizing: border-box;
  text-align: center;
  height: 37px;
  line-height: 37px;
  top: -57px;
  font-weight: 700;
}

.frame:not(.hidden) ~ .cover {
  position: absolute;
  top: 25px;
  left: 0px;
  width: 100vw;
  height: calc(100vh + 100px);
  background: rgba(0,0,0,0.5);
  z-index: 15;
}

.frame {
  position: absolute;
  top: 36px;
  left: 5%;
  width: 90%;
  background: white;
  padding: 35px 12px 13px 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  box-sizing: border-box;
  z-index: 20;
}

.close:not(.button) {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: url(../assets/cross.svg);
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}


.value-table > div:not(:first-child) > div:nth-child(2) {
  line-height: 32px;
}

.button.equation::after {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: url(../assets/results.svg);
  background-position: center;
  background-size: 18px;
  background-repeat: no-repeat;
}

.slider-holder {
	position: relative;
}
.slider:not(.vertical) {
	position: relative;
	background: #abafb0;
	height: 4px;
	width: calc(90% - 50px);
	margin-top: 19px;
	margin-bottom: 17px;
	display: inline-block;
	vertical-align: top;
	margin-left: 29px;
	width: calc(100% - 29px - 27px);
	margin-right: 27px;
}
.slider-left-fill {
  display: none;
	position: absolute;
	top:0px;
	left: 0px;
	width:50%;
	height: 100%;
	background: #a7a79d;
}
.slider-right-fill {
  position: absolute;
  top:0px;
  left: 50%;
  width:50%;
  height: 100%;
  position: relative;
  background: #eff0f0;
}
.slider-handle {
	z-index: 1;
	position: absolute;
	left: 50%;
	top: 0px;
	margin-left: -10px;
	margin-top: -8px;
	width: 20px;
	height: 20px;
	background-color: white;
	cursor: pointer;
	border-radius: 14px;
	border: 1px solid #ccc;
	box-sizing: border-box;
}
.slider-value {
  position: absolute;
  /* pointer-events: none; */
  left: calc(100% + -80px);
  margin-left: 18px;
  width: 53px;
  padding-right: 0px;
  padding-left: 0px;
  text-align: center;
  font-size: 12px;
  background: transparent;
  color: black;
  box-sizing: border-box;
  text-align: center;
  height: 37px;
  line-height: 22px;
  top: -34px;
  font-weight: 700;
}
.slider-max-value, .slider-min-value {
	color: #b8bcbe;
	position: absolute;
	margin-top:4px;
	font-size: 12px;
}
.slider-fill {
	
}
.slider-min-value {
	left: 0px;
}
.slider-max-value {
	right: 0px;
}

.slider-value.initial {
  left: -45px;
  background: transparent;
  color: #41454a;
  font-weight: 400;
  text-align: center;
}

.slider-header {
  line-height: 37px;
  padding-left: 54px;
  position: relative;
}

.button-container > div {
	display:inline-block;
	vertical-align: top;
	padding-bottom: 10px;
	overflow:hidden;
}

.button-container .-option-container {
  width: calc((100% - 96px) / 2);
}

.content {
  margin-top: 0px;
}

.reset.button {
  box-shadow: none;
}

div#info-button {
  right: auto;
  top: 4px;
  left: 8px;
}

#information {
  width: 100vw;
  height: calc(100vh + 50px);
  top: 0px;
  left: 0px;
  border-radius: 0px;
}

#information > .i-popup {
  font-size: 10px;
  padding: 18px 6px 8px 6px;
  width: calc(100% - 12px);
  margin-left: 6px;
  box-sizing: border-box;
  transform: none;
  top: 33px;
}

.slider.T-slider .slider-value.initial {
  padding-right: 2px;
}
}

@media (max-width: 350px) {
  .variable-container > div.variable-header {
    font-size: 11px;
    width: 125px !important;
    padding-right: 0px;
  }

  .variable-container > div {
    width: calc(100% - 138px);
  }

  .graph-area {
    transform: scale(0.8);
    transform-origin: top left;
  }

  .left-container { 
    top: 301px;
  }

  #info-button {
    right: auto;
    left: 8px;
    top: 4px;
  }
}

@media (max-width: 350px)
{
  .graph-header .left-container {position:absolute; top: 190px;left: 69px;}

}
