
html {
	-webkit-text-size-adjust: none;
	touch-action: pan-y;

}

body {
  background: rgb(240,240,250);
/*  perspective: 600px;*/
  overflow-x: hidden;
  touch-action: pan-y;
	
	 width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.youtubeVideo {
    position: relative;
    width: 80vw;
    height: 0;
    padding-top: 45.2%; 
    overflow: hidden;
}

.youtubeVideo > * {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 10px;
}

figure {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin-left: 6px;
  margin-right: 6px;
  padding-bottom: 10px;


 
}

figure img {
  border-radius: 10px;
  touch-action: pan-y;

}

#figureCounter {
  position: fixed;
  top: 20px;
  width: 5rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
  margin-left: calc(100% - 5rem - 20px);
  padding: 5px;
  border-radius: 10px;
  font-size: 1.5rem;
  z-index: 9999; 
  font-family: 'Roboto', sans-serif;
}

#imageDiv{
  margin-top: -1.5rem;
  display: none; 
}

#intro, #outro{
	top: 0;
	width: 95%;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 10px;
	border-width: 0px;
	height: 60vh;
	max-width: 1000px;
	color: white;
}

.element-overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2); 
  border-radius: 10px;
  border-width: 0px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); 	

}

@media (min-aspect-ratio: 9/10) {
  figure img {
    width: auto;
    height: calc(90% - 70px);
    max-width: 95vw;
    max-height: none;
    object-fit: cover;
	  
	
  }
}

@media (max-aspect-ratio: 9/10) {
  figure img {
    width: calc(100% - 20px);
    height: auto;
    max-width: none;
    max-height: 80svh;
	margin-top: -30px;
	box-shadow: 0 0 2em -1em rgba(0,0,0,0.4);
	object-fit: cover;  
  }
	
	.youtubeVideo {
    width: 90vw;
	height: 50svh; 
    padding-top: 0; 
    overflow: hidden;
    border-radius: 10px;

}
	
	
 #figureCounter {
  width: 4rem;
  font-size: 1rem;
  font-weight: 300;
  margin-top: 90vh;
  position: fixed;
  margin-left: auto;
  margin-right: auto;
  left: 50%;
  transform: translateX(-50%);
}
	
 #intro{
	margin-top: -10%;
}

	
}


.cardGrid {
  font-family: 'Roboto', sans-serif;
  --bg-filter-opacity: 0.0;
  font-size: 1.5rem;
  overflow: hidden;
  height: inherit;
  margin-left: auto;
  margin-right: auto;
  touch-action: pan-y;
  text-align: center;
	
  display: flex;
  justify-content: center; 
  align-items: center;    

}

#texts{
	display: block;
	margin-bottom: 30px;
	padding-left: 20px;
	padding-right: 20px;
}

#instruction{
	display: block;
	position: fixed;
	bottom: 20px;
}

h1 {
  font-family: 'Roboto', sans-serif;
  color: #343a40 75%;
  margin: 20px;
  max-width: 500px;
  font-weight: 700;
  font-size: 2em;
  line-height: 1em;
  margin-left: auto;
  margin-right:auto;
}
#intro p {
	
  color: #343a40 75%;
  font-size: 0.8em;
  font-family: 'Maven Pro', sans-serif;
  margin-top: 0.5em;
  line-height: 1.2em;
  margin: 20px;
  margin-bottom: 40px;
  max-width: 500px;
	margin-left: auto;
  margin-right:auto;

}



#footText{
  color: #343a40 75%;
  font-size: 1em;
  font-family: 'Maven Pro', sans-serif;
  line-height: 1.2em;
  width: 100%;
  text-align: center;
}


#outro p{
	padding-left: 10px;
	padding-right: 10px;
	width: 80%;
	max-width: 500px;
	align-self: center;
	margin-left: auto;
	margin-right: auto;
/*	background-color: aqua;*/
	position: relative;
	top:50%;
	transform: translateY(-50%);
	
}

#outro .element-overlay {
	background-color: rgba(20, 20, 20, 0.05); 
/*	color: black;*/
	

}

:root {
--bs-font-sans-serif: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
--bs-font-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}

 #loading-container {
	  position: fixed;
	  top: 0;
	  left: 0;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  flex-direction: column;
	  height: 100vh; 
	  width: 100%;
	  z-index: 99999;
	  background: rgb(240,240,250);
}


    #loading-spinner {
      border: 8px solid rgb(240,240,250);
      border-top: 8px solid rgb(20,20,20);
      border-radius: 50%;
      width: 50px;
      height: 50px;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    #loading-text {
      margin-top: 20px;
	  font-family: 'Roboto', sans-serif;
	  color: rgb(20,20,20);
	  margin: 20px;
	  max-width: 500px;
/*	  margin-left: 40px;*/
	  font-weight: 700;
	  font-size: 1.2em;
	  line-height: 1.2em;
    }

   #loading-percentage {
	  font-family: 'Roboto', sans-serif;
	  color: rgb(20,20,20);
	  max-width: 500px;
	  margin-left: 40px;
	  font-weight: 700;
	  font-size: 1em;
	  line-height: 1em;
    }

