input[type=range] {
  height: 36px;
  -webkit-appearance: none;
  margin: 10px 0;
  align-self: center;
  width: 50%;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 11px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 2px 2px 1px #000000;
  background: #37D67A;
  border-radius: 19px;
  border: 0px solid #010101;
}

input[type=range]::-webkit-slider-thumb {
  box-shadow: 0px 0px 1px #000031;
  border: 4px solid #37D67A;
  height: 20px;
  width: 20px;
  border-radius: 15px;
  background: #FFFFFF;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -5.5px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background: #37D67A;
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 11px;
  cursor: pointer;
  animate: 0.2s;
  box-shadow: 2px 2px 1px #000000;
  background: #37D67A;
  border-radius: 19px;
  border: 0px solid #010101;
}

input[type=range]::-moz-range-thumb {
  box-shadow: 0px 0px 1px #000031;
  border: 4px solid #37D67A;
  height: 26px;
  width: 26px;
  border-radius: 15px;
  background: #FFFFFF;
  cursor: pointer;
}

input[type=range]::-ms-track {
  width: 100%;
  height: 11px;
  cursor: pointer;
  animate: 0.2s;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

input[type=range]::-ms-fill-lower {
  background: #37D67A;
  border: 0px solid #010101;
  border-radius: 38px;
  box-shadow: 2px 2px 1px #000000;
}

input[type=range]::-ms-fill-upper {
  background: #37D67A;
  border: 0px solid #010101;
  border-radius: 38px;
  box-shadow: 2px 2px 1px #000000;
}

input[type=range]::-ms-thumb {
  margin-top: 1px;
  box-shadow: 0px 0px 1px #000031;
  border: 4px solid #37D67A;
  height: 26px;
  width: 26px;
  border-radius: 15px;
  background: #FFFFFF;
  cursor: pointer;
}

input[type=range]:focus::-ms-fill-lower {
  background: #37D67A;
}

input[type=range]:focus::-ms-fill-upper {
  background: #37D67A;
}

svg {
  /*position: absolute;*/
  /*top: 0;*/
  /*left: 0;*/
  border: 3px solid #697689;
  border-radius: 7px;
  /*width: 420px;*/
  /*height: 350px;*/
}

.curve, maincurve, xcurve, ycurve, .line {
  fill: none;
  stroke-width: 3px;
  color: #697689;
}

.bluePoint {
  fill: blue;
}
.castelPoint{
  fill: yellow;
  stroke: black;
  stroke-width: 1.5;
}

.curve, .maincurve, .xcurve, .ycurve {
  stroke: red;
  stroke-width: 4px;
}

.forB1Y, .forB4Y, .forB3Y, .forB2Y, .forB1X, .forB2X, .forB3X, .forB4X {
  stroke: inherit;
  stroke-width: 3px;
}
.red{
  stroke: red !important;
}
.timeline{
  stroke: black;
  stroke-width: 2px;
}

.domain {
  display: none;
}

.tecko {
  display: block;
  text-align: center;
}

.resetButton {
  background: #697689;
  border-radius: 4px;
  width: 50px;
  height: 20px;
  color: white;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.5px;
}
.resetButtonCasteljau {
  background: #697689;
  border-radius: 4px;
  /*width: 50px;*/
  /*height: 20px;*/
  color: white;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.5px;
}

input {
  background-color: #D9E3F0;
}

.buttons {
  margin-top: 30px;
  margin-right: 22px;
  background: #D9E3F0;
  border-radius: 10px;
  width: 440px;
  /*height: 190px;*/
}
.buttonsCasteljau {
  margin-top: 30px;
  margin-right: 22px;
  background: #D9E3F0;
  border-radius: 10px;
  /*width: 820px;*/
}

.control {
  fill: #697689;
  r: 7;
  stroke: black;
  stroke-width: 1.5;
}

.t, .controltext {
  font-family: "Yanone Kaffeesatz";
  font-weight: 400;
  font-size: 1em;
}

.nadpis {
  text-align: center;

  font-family: Roboto;
  font-style: normal;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: 0.633333px;

  color: #697689;
}

#mainSvg, #ySvg, #xSvg {
  /*max-width: 420px;*/
  margin-right: 20px;
}

.svgcka {
  width: 940px;
  height: 760px;
  margin-left: 20px;
}

.pixel {
  box-sizing: border-box;
  border-right: 1px solid grey;
  border-bottom: 1px solid grey;
  float: left;
  width: 20px;
  height: 20px;
  margin: 0px;
}

.vybraty {

  background-color: black;
!important;
  cursor: move;
}

#hodnoty {
  width: 440px;
  height: 370px;
  background: #D9E3F0;
  border-radius: 10px;
  padding: 20px;
  background-image: url(images/Group4.png);
  background-size: contain;
  background-repeat: round;

}
#hodnotyCasteljau {
  width: 520px;
  height: 520px;
  background: #D9E3F0;
  border-radius: 10px;
  padding: 20px;
  background-image: url(images/Group4.png);
  background-size: contain;
  background-repeat: round;

}

circle {
  cursor: move;
}

#prvybod, #druhybod, #tretibod, #stvrtybod ,#prvymodry, #druhymodry, #tretimodry,#prvyzlty, #druhyzlty,#hladanybod {
  /*background-color: white;*/
  /*margin-left: 30px;*/
  height: 40px;
  width: 70px;
  padding-top: 15px;
  /*margin-bottom: 20px;*/
}
#prvybod{
  margin-left: 10px;
}
#druhybod{
  margin-left: 67px;
}
#tretibod{
  margin-left: 55px;
}
#stvrtybod{
  margin-left: 61px;
}
#prvymodry{
  margin-left: 80px;
}
#druhymodry{
  margin-left: 64px;
}
#tretimodry{
  margin-left: 67px;
}
#prvyzlty{
  margin-left: 145px;
}
#druhyzlty{
  margin-left: 80px;
}
#hladanybod{
  margin-left: 214px;
  margin-top: 19px;
}
.mb-40{
  display: inline-flex;
  margin-bottom: 70px;
  margin-top: 10px;
}
#sliderAmount{
  align-self: center;
  /*margin-left: 70px;*/
}
#sliderAmountC{
  align-self: center;
  margin-left: 70px;
}


.ovladani{
  width: 80px;
  color: white !important;
  margin:  25px 10px 10px 25px;
}
.panel{
  width: 850px;
  height: 100px;
  background-color: #D8E3F0;
  border-radius: 3px;
  margin: 2px;
}
canvas{
  border: 2px solid #000;
}

.xaxis {
  fill:"none" ;font-size:"10" ;font-family:"sans-serif" ;text-anchor:"middle"
}
text {
  font-size: 12px;
}
.mt-20{
  margin-top: 20px;
}
#P0, #P1, #P2, #P3{
  height: 15px !important;
  margin: 10px 50px !important;
}
#P0Amount, #P1Amount, #P2Amount, #P3Amount{
 align-self: center;
  font-size: 20px;
}
