* {
  box-sizing: border-box;
} 

@font-face {
  font-family: Source Code Pro;
  src: url("SourceCodePro-Regular.ttf");
  font-display: block;
}

.tekst {
  position: absolute;
  opacity: 0;
  z-index: 0;
}

h1 {
  font-size: 7vw;  
  text-align:left;
  font-family: Source Code Pro;
  margin-top:6%;
  margin-left:5%;
  width: 40%;
  position: absolute;
  z-index:0;
      }
      
h2 {
  font-size: 0.72vw; 
  text-align:right;
  font-family: Source Code Pro;  
  margin-top: 10%;
  right: 4%;
  position: relative;
  z-index:0;
  width: 40%;
  border-style:solid;
  border-color:lightgray;
  color: grey;
      }  

h3 {
  font-size: 0.7vw;
  text-align: center;
  font-family: Source Code Pro;  
  letter-spacing: 0.7vh;
  margin-top: 30%;
  right: 4%;
  position: relative;
  z-index:0;
  width: 15%;
  border-style:solid;
  border-width: 0.1vw;
  border-color:rgb(0, 0, 0);
  color: rgb(0, 0, 0);
  background-color: rgb(243, 243, 243);
      }  

.bslider {
  width: 94%;
  height: 94%;
overflow: visible;
position: absolute;
margin: auto;
z-index: 1;
left: 3%;
}

.bbslider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
  z-index: 1;
  opacity: 0;
}

#sliderImg {
 width: inherit;
 height: inherit;
 object-fit: contain;
 position: absolute;
 z-index: 1;
}

.bcss {
 left: 2%;
 bottom: 2%;
 right: 2%;
 width: 100%;
 height:100%;
 min-width: 100%;
 min-height: 100%;
overflow: visible;
display: none;
position: absolute;
opacity: 1;
z-index: 2;
}

#CssImg {
  width: inherit;
  height: inherit;
  object-fit: contain;
  position: absolute;
  z-index: 2;
 }

.bjava {
  top: 120%;
  width: 96vw;
  height:96vh;
  min-width: 96vw;
  min-height: 96vh;
 overflow: visible;
 margin: auto;
 position: absolute;
 display: none;
 opacity: 1;
 z-index: 3;
 }

 #javaImg {
  width: inherit;
  height: inherit;
  object-fit: contain;
  position: absolute;
  z-index: 3;
 }

.bhtml {
  width: 100%;
  height:100%;
  min-width: 100%;
  min-height: 100%;
 overflow: hidden;
 display: none;
 position: absolute;
 opacity: 1;
 z-index: 1;
 }

 #htmlImg {
  width: inherit;
  height: inherit;
  object-fit: contain;
  position: absolute;
  z-index: 1;
  opacity: 1;
 }

.browser {
  width: 0vw;
  height:0vh;
  min-width: 0vw;
  min-height: 0vh;
 overflow: hidden;
 margin: auto;
 display: none;
 position: absolute;
 opacity: 1;
 z-index: 1;
 }

 #browserImg {
  width: inherit;
  height: inherit;
  object-fit: contain;
  position: absolute;
  z-index: 1;
 }

.slider {
  z-index: 7;
  left: 30%;
  display: block;
  -webkit-appearance: none;
  appearance: none;
  width: 40vw;
  height: 2vh;
  opacity: 1;
  border: 1px solid gray;
  -webkit-transition: .2s;
  transition: opacity .2s;
  background-color: rgb(230, 230, 230);
  position: absolute;
  transform: rotatez(-90deg);
  
}

.slider:hover {
  opacity: 0.5;
}

.slider::-webkit-slider-thumb {
  z-index: 7;
  --webkit-appearance: none;
  appearance: none;
  height: 2vh;
  width: 1vw;
  background-color: gray;
  cursor: pointer;
  transform: rotatez(-90deg);

}

.slider::-moz-range-thumb {
  z-index: 7;
  --webkit-appearance: none;
  height: 2vh;
  width: 1vw;
  background-color: gray;
  cursor: pointer;
  transform: rotatez(-90deg);
}


.sliderh {
  z-index: 7;
  display: block;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid gray;
  width: 60vw;
  height: 2vh;
  opacity: 1;
  -webkit-transition: .2s;
  transition: opacity .2s;
  margin: 0;
  position: absolute;
  background-color: rgb(230, 230, 230)
}

.sliderh:hover {
  opacity: 0.5;
}

.sliderh::-webkit-slider-thumb {
  z-index: 7;
  --webkit-appearance: none;
  appearance: none;
  height: 2vh;
  width: 1vw;
  background-color: gray;
  cursor: pointer;

  
}

.sliderh::-moz-range-thumb {
  z-index: 7;
  --webkit-appearance: none;
  height: 2vh;
  width: 1vw;
  background-color: gray;
  cursor: pointer;
}

.skaalakaust {
  top: 24%;
  left: 50%;
  width: 13vw;
  height: 25vh;
  min-width: 13vw;
  min-height: 25vh;
  position: relative;
  overflow: auto;
  display: block;
  z-index: 6; 
}

#skaala {
  width: inherit;
  height: 20vh;
  margin-top: 2vh;
  position: inherit;
  object-fit:contain;
}

.koodkaust {
  top: 41%;
  left: 7.5%;
  width: 12vw;
  height: 18vh;
  min-width: 11vw;
  min-height: 5vh;
  position: absolute;
  overflow: auto;
  display: none;
  z-index: 8;
  opacity: 0;
}

#CssKood {
  margin: none;
  width: inherit;
  position: inherit;
}

#javaKoodKaust{
  top: 76%;
  left: 7.5%;
  width: 12vw;
  height: 18vh;
  min-width: 11vw;
  min-height: 5vh;
  position: absolute;
  overflow: auto;
  display: none;
  z-index: 8;
  opacity: 0;
}

#htmlKoodKaust {
  top: 9%;
  left: 7.5%;
  width: 12vw;
  height: 18vh;
  min-width: 11vw;
  min-height: 5vh;
  position: absolute;
  overflow: auto;
  display: none;
  z-index: 8;
  opacity: 0;
}

#atalk {
  top: 40%;
  left: 75%;
  width: 30vw;
  height: 35vh;
  position: absolute;
  overflow: auto;
  display: none;
  z-index: 8;
}


#s1 {
  display: block;
  top: 50%;
}

#s2 {
  position: relative;
  display: none;
  margin: auto;
  left: 2%;
  top: 5%;
}

#s3 {
  display: none;
  position: relative;
  margin: auto;
  top: 24vh;
}

#s4 {
  position: relative;
  display: none;
  width: 10vw;
  height: 2vh;
}

#s5 {
  display : none;
  top: 20%;
  left: 20%;
}

#s6 {
  display : none;
  top: 20%;
  left: 40%;
}

#s7 {
  top: 30%;
  left: 50%;
  display: none;
}

#s9 {
  width: 40vh;
  display: none;
  float: right;
  top: 73%;
  left: 100%;
}

#s10 {
  left: 32%;
  position: relative;
  display: none;
  top: 48vh;
}

#s11 {
  width: 40vh;
  display: none;
  top: 73%;
  left: 99%;
}

#s12 {
  top:5%;
  position: relative;
  display: none;
  width: 10vw;
  height: 2vh;
}

#s13 {
  left: 7%;
  top: 5%;
  position: relative;
  display: none;
  float: right;
  width: 10vw;
  height: 2vh;
}


#s14 {
  top:7%;
  position: relative;
  display: none;
  width: 10vw;
  height: 2vh;
}


#s15 {
  left:0%;
  top: 85%;
  width: 40vw;
  display: none;
}

#s16 {
  left: 7%;
  top: 9%;
  position: relative;
  display: none;
  float: right;
  width: 10vw;
  height: 2vh;
}

#s17 {
  top:9%;
  position: relative;
  display: none;
  width: 10vw;
  height: 2vh;
}

#s18 {
  left:40%;
  top: 55%;
  opacity: 0;
  width: 25vw;
  display: none;
}

#s19 {
  top: 11%;
  left: 40%;
  position: relative;
  display: none;
  width: 10vw;
  height: 2vh;
  opacity: 0;
}

#s20 {
  top:11%;
  position: relative;
  display: none;
  width: 10vw;
  height: 2vh;
}

#s21 {
  opacity: 0;
  display: none;
  top: 26%;
  left: 40%;
  width: 30vw;
}

#s22 {
  top: 14%;
  left: 45%;
  position: relative;
  display: none;
  width: 10vw;
  height: 2vh;
  opacity: 1;
}

#s23 {
  position: absolute;
  display: none;
  left : 0%;
 
}

#s24 {
  z-index: 8;
  display: none;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid gray;
  width: 10vw;
  height: 2vh;
  opacity: 1;
  -webkit-transition: .2s;
  transition: opacity .2s;
  margin: 0;
  position: absolute;
  background-color: rgb(230, 230, 230)
}

#s25 {
  display: none;
  top: 26%;
  left: 130%;
  width: 20vw;
}
#s26 {
  display: none;
  top: 26%;
  left: 132%;
  width: 20vw;
}

#s24:hover {
  opacity: 0.5;
}

#s24::-webkit-slider-thumb {
  z-index: 7;
  --webkit-appearance: none;
  appearance: none;
  height: 2vh;
  width: 1vw;
  background-color: gray;
  cursor: pointer;
}

#s24::-moz-range-thumb {
  z-index: 7;
  --webkit-appearance: none;
  height: 2vh;
  width: 1vw;
  background-color: gray;
  cursor: pointer;
}

.phone {
  height: 15%;
  width: 40%;
  top: 30%;
  left: 30%;
  border: 3px solid gray;
  background-color: lightgrey;
  border-radius: 10px;
  animation: rotate 1.5s ease-in-out infinite alternate;
  display: none;
  position: absolute;
  object-position: center;
  z-index: 10;
}

.message {
  width: 98%;
  text-align: center;
  color: rgb(0, 0, 0);
  font-size: 3em;
  top: 60%;
  position: absolute;
  z-index: 10;
  display: none;
  font-family: Source Code Pro;
}

@keyframes rotate {
  0% {
		transform: rotate(-90deg)
	}
	50% {
		transform: rotate(0deg)
	}
	100% {
		transform: rotate(0deg)
	}
}

@media only screen and (min-height: 1024px) and (orientation: portrait) {
  .phone, .message {
    display: block;
  }

  .bslider {
    display: none;
  }
}

@media screen and (max-height:1024px) and (max-width:1366px){ 
  #s1 {
    display: inline-block;
    top: 34%;
  }
}

@media screen and (max-height:900px) and (max-width:1440px){ 

  #s1 {
    display: inline-block;
    top: 45%;
  }
}

@media screen and (max-height:800px) and (max-width:1280px){ 
  #s1 {
    display: inline-block;
    top: 45%;
  }
}

@media screen and (max-height:800px) and (max-width:1024px){ 
  #s1 {
    display: inline-block;
    top: 52%;
  }
}

@media screen and (max-height:450px) and (max-width:900px){ 
  #s1 {
    display: inline-block;
    top: 48%;
  }
}

@media screen and (max-height:375px) and (max-width:812px){ 
  #s1 {
    display: inline-block;
    top: 56%;
  }
}

@media screen and (max-height:450px) and (max-width:800px){ 
  #s1 {
    display: inline-block;
    top: 48%;
  }
}