:not(:defined) > * {
  display: none;
}

body {
	 
      height: 100%;
      max-width: auto;
	  max-height: auto;
      margin: 5px;
    -webkit-font-smoothing: antialiased;
	background: #363535;
}

  /*Tausta respo 1.*/
model-viewer {
	
	 display: block;
  flex-direction: column-reverse;
  width: 100vw;
  height: 100vw;
  max-width: 97%;
  max-height: 700px;
  background-color: #abe9cd;
  margin: 1.5%;
 
  border-style:inset;
  border-width: 2px; /*kehys*/
  border-color: white;
  border-radius: 20px;
	
    background: white;
    background-size: 600% 600%;

    -webkit-animation: AnimationName 53s ease infinite;
    -moz-animation: AnimationName 53s ease infinite;
    animation: AnimationName 53s ease infinite;
}

@-webkit-keyframes AnimationName {
    0%{background-position:49% 0%}
    50%{background-position:52% 100%}
    100%{background-position:49% 0%}
}
@-moz-keyframes AnimationName {
    0%{background-position:49% 0%}
    50%{background-position:52% 100%}
    100%{background-position:49% 0%}
}
@keyframes AnimationName {
    0%{background-position:49% 0%}
    50%{background-position:52% 100%}
    100%{background-position:49% 0%}
}
/*end 1.*/


.container {
 
  widht: 100%;
  height: 100%;
  align-items: center;

  justify-content: center;
  align-content: stretch;
    background: linear-gradient(to bottom, white, #e9b416);
    color: white;
	border: solid;
	border-width: 1px;
	border-radius: 20px;
	}	
.teksti1B {
  	text-align: center;
	margin: 10px;
	border-radius:20px;
	font-weight: bold;
	color: #F9E095;
	text-shadow: 1px 1px #1C1C1C;
	padding: 5px 5px;
    font-size:20px;
	background-color:seagreen;
	width: 300px;
}	
.teksti1 {
	font-family: "Montserrat";
  	text-align: center;
	margin: 20px;
	border-radius:5px;
	color: white;
	text-shadow: 1px 1px #1C1C1C;
	padding-top: 5px;
	padding-bottom: 5px;
    font-size:20px;
	background-color:#443E3B;
}
.teksti2 {
	font-family: "Montserrat";
  	text-align: center;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
	border-radius:20px;
	color: black;
    font-size: 1.1rem;
	background-color:transparent;
}
.box {

}

.tekstiA {
	font-family: "Montserrat";
	text-align: center;
	font-size: 16px;
    color: #D8A31D;
    }
.tekstiB {
	font-family: "Montserrat";
	font-size: 1.8rem;
	text-align: center;
    color: #010000;
    }

.teksti3 {text-align: center;
font-size: 16px
}
hr.rivi1 {
	margin:20px;
  border: 2px solid green;
  border-radius: 5px;
}
.center {
  margin: auto;
  width: 100%;
	height: 100%;

 
}
.center2 {
  margin: auto;
  width: 90%;

}
.centerk {
  margin: auto;
text-align: center
}


#myImg:hover {opacity: 0.9;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

.img3 {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.img4 {
  margin-left: 100px;
 }
.img5 {
	text-align: center !important;
	margin: 20px;
	border-radius:5px;
	font-weight: bold;
	color: #F9E095;
	text-shadow: 1px 1px #1C1C1C;
	padding: 5px 5px;
    font-size:20px;
	background-color: #969696;
	
  border-style:inset;
  border-width: 1px; /*kehys*/
  border-color: black;
  border-radius: 12px;
}
	.cho {
			
  float: center;
  display: block;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 17px;	
  background-color: #443E3B;;
  margin: 20px;
  
  
}

.progress-bar {
  display: block;
  width: 33%;
  height: 10%;
  max-height: 2%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-radius:25px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(0, 0, 0, 0.5);
}

.progress-bar.hide {
  visibility: hidden;
  transition: visibility 0.3s;
}

.update-bar {
  background-color: rgba(255, 255, 255, 0.9);
  width: 0%;
  height: 100%;
  border-radius: 25px;
  float: left;
  transition: width 0.3s;
}

#ar-button {
  background-image: url(ar_icon.png);
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 12px 50%;
  background-color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  bottom: 16px;
  padding: 0px 16px 0px 40px;
  font-family: Roboto Regular, Helvetica Neue, sans-serif;
  font-size: 14px;
  color:#4285f4;
  height: 36px;
  line-height: 36px;
  border-radius: 18px;
  border: 1px solid #DADCE0;
}

#ar-button:active {
  background-color: #E8EAED;
}

#ar-button:focus {
  outline: none;
}

#ar-button:focus-visible {
  outline: 1px solid #4285f4;
}

@keyframes circle {
  from { transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes elongate {
  from { transform: translateX(100px); }
  to   { transform: translateX(-100px); }
}

model-viewer > #ar-prompt {
  position: absolute;
  left: 50%;
  bottom: 60px;
  animation: elongate 2s infinite ease-in-out alternate;
  display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
  display: block;
}

model-viewer > #ar-prompt > img {
  animation: circle 4s linear infinite;
}