@font-face { font-family: AbrilFatface-Regular;
             src: url(fonts/AbrilFatface-Regular.ttf);
			 }

*{
	margin:0;
	padding:0;	
	box-sizing:border-box;
	
}

#video-buttons{

    display:flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	width:100%;
	
	button{
		width: 49.5%;
		height: 6rem;
		display: flex;
		flex-direction: row;
		justify-content: start;
		background-color: rgba(0, 0, 0, 0.8);
	    color: #ffffff;
		border: 2px solid black;
		border-radius: 0.25rem;
		padding:0.25rem;	

		img{
			height: 100%;
		}

		div{
			width:80%;
			display: flex;
			flex-direction: column;
			gap: 0.3rem;

			p{
				text-align: left;
				padding: 0.25rem;
				font-size:0.8rem;
				overflow: hidden;
			}
		}
	}

	
}

#desktopMap a{
	position:absolute;
	width:10rem;
	height:4rem;
	background-color:red;
	
}

header img{
	width: 60rem;
	border-radius:0;
}

#landingPage main{
  width:100vw;
  min-height:100vh;
 
  h1{
	color:white;
	text-align:center;
	top:1rem;
	padding:0.5rem;
	margin:0 auto;
	background-color: black;
	font-size:1.9rem;
	width:60rem;
  }

  #landing-page-content a:not(footer a){
	color:white;
	width:20rem;

	display:block;
    text-decoration: none;
	border-radius: 0.3rem;


	&img{
		width:100%;
	}
  }

}

#landing-page-headline{
		color: white;
		background-color: #282D6F;
		width:100%;
		font-style: italic;
        padding:0.5rem;
}

#landing-page-content{	
	display:flex;	
	flex-direction: row;
    align-content: start;	
	justify-content: space-between;
	flex-wrap: wrap;
	min-height:100vh;
	color:white;
	font-size: 1.2rem;
	width: 60rem;
	padding: 0rem 2rem 0 2rem;
	gap:2rem;
    margin:0 auto;

	h2{
        color: white;
		background-color: #282D6F;
		width:100%;
		font-style: italic;
		border-radius: 0.5rem;
	}



	div{
		width:100%;
		color:black;
        display: flex;
		flex-direction:column;
		gap:1rem;
		line-height: 2rem;

		h2{
			font-size: 1.4rem;
		}
	}

	figure{
		border-radius: 0.5rem;
		width: 27rem;
        background-color: white;

		img{
			width:100%;
			border-radius: none;
			overflow: hidden;
		}

		

		
	}
	figcaption{
		padding:0.2rem;
	}

	a, i{
		color:black;
		text-decoration: none;
	}

	summary{
		font-weight: bold;
	}

	details{
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}


}

a:hover{
	font-weight: bold;
}

p{
  line-height:1.2rem;
}

ul:not(section ul){
	list-style:none;
}

li:not(section li){
	display: flex;
    flex-direction: row;
	justify-content:end;
}

section li{

  margin: 0.5rem 0 0.5rem 2rem;
}


body{		
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	background-color:white;
}

img, video, fieldset, iframe{
	border-radius:0.25rem;
	border:none;
}

iframe.quiz-game{
	width:100%;
    padding:.5rem 2rem .5rem 2rem;
	border:none;
	overflow-y: auto;
}

header{
	width: 60rem;
	margin:0 auto;
	display:flex;
	flex-direction: column;
	align-items: center;	
}

header nav{	
	width:100%;
	background-color: #252527;
	padding-right:2rem;
	border-top: 0.1rem solid gainsboro;
	border-bottom: 0.1rem solid gainsboro;
}

header nav a{	
	text-decoration:none;
	color: white;
	font-size:1.6rem;
	padding:0 1rem 0 1rem;
	margin-left: 1rem;
	float: right;
}

main{
	width:60rem;
	display: flex;
	flex-direction: column;
    gap:2.5rem;
	margin:0 auto;
	background-color: gainsboro;
}


main article>h2{
	width:100%;
	font-size:1.2rem;
	margin-bottom: 1rem;
}

h2{
	font-size:1.3rem;
	margin:1rem 0 1rem 0;
}

h3{
	font-size:1rem;
	margin-bottom:0.5rem;
}
article:not(#impressum,#article){
	padding:1rem;
	display:flex;
	flex-wrap:wrap;
	justify-content: space-between;
    align-items:flex-start;
}

#article{
	padding:1rem;
	gap:3rem;
}
 
#subjects{
	display:flex;
	flex-direction: column;
	gap:4rem;
}

textarea{
	margin-bottom: 1rem;
	
}

#articleSite section {
	margin-bottom: 4rem;
}

.content a{
	line-height:1.6rem;
}


#articleSite .pad1 {
	padding: 1rem;
}

#articleSite .pad-left-1 {
	padding-left: 1rem;
}
#articleSite img:not(a img){
	 margin-bottom: 1rem;
	 width:50%;
 }
 
#articleSite section p{
	width:100%;	
}

#articleSite section>div {
	margin-top:1rem;
}

#articleSite section figure{
	width:80%;	
	padding:1rem;
}

#articleSite section figure img, iframe{
	width:100%;	
}
article section p, article section fieldset {
	width:28rem;
	flex-grow:1;
	margin-bottom:1rem;
}


legend{
	padding:0.5rem;
}

fieldset{
	border:0.2rem solid black;
	padding:0.5rem;
	font-size:1rem;
}

fieldset button{
	font-size:1rem;
	padding:0.2rem;
}

.tag{
	background-color:transparent;
	color:navy;
}

article section button{
   border:none;
   margin-right:1rem;
}

article a{
	display:block;
	text-decoration:none;
	font-weight:bold;	
}

.youTube, .articleTheory{
	display:block;
	text-decoration:none;
	font-size:1.2rem;	
}

.fix{
	position:fixed;
	width: 60rem;
	top:0;
	padding:.5rem;
	z-index:10000;
}

article section video, article section img:not(a img), article section iframe{
	width:28rem;
	flex-grow:1;
}

footer{
	
	width:60rem;
	margin: 0 auto;
	display:flex;
	justify-content:center;
	align-items: center;
	gap:1rem;
	background-color:#dbdbdb;
	padding:0.5rem;
	color:gray;
	flex-wrap: wrap;
	
}

footer:not(#landingPage footer){
	padding-top:5rem;
}

#footerTutorialSite, #footerArticleSite{	
	background-color:#dbdbdb;
}

#footerArticleSite{
	flex-direction:column;
}

#footerArticleSite h3{
	color:#3f3f3f;
	text-align:center;
}

#supportFooter{
	display:flex;
	flex-direction:row;
	gap:1rem;
	flex-wrap: wrap;
	justify-content:center;
	margin-bottom:2rem;
}

footer a{
	text-decoration:none;
	color:black;
}

#landingPage footer{
	display: flex;
	flex-direction: column;

 }

#landingPage footer>div{
   color: black;
   display: flex;
   flex-wrap: wrap;
   justify-content: space-evenly;
   width:100%;
}

#landingPage footer details{
	display: flex;
	flex-direction: column;
	gap:0.3rem;
 }

#impressum{
	width:100vw;
	height:100vh;
	padding:1rem;
	background-color:white;
	margin:0;
}
#impressum p{
	margin:1rem;
	color:black;
}

#burgerButton{
height: 1.3rem;
width: 3rem;
display: none;
font-size: 1.8rem;
color: white;
padding:.4rem;
}

.property{
	color: purple;
	font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.ads{
  font-family: 'Courier New', Courier, monospace;
  border-top:0.2rem solid black;
  border-bottom:0.2rem solid black;
  padding:1rem;
  overflow-x: auto;
  span{
	font-size:0.7rem;
  }
}

.ads button{
	border:none;
	background-color: grey;
	border-radius:1rem;
	width:1.2rem;
    height: 1.2rem;
}

.ads div:nth-child(1){
	display: flex;
	
}

.smallImage{
	max-width:25%;
}

.blog{
	background-color: #9C5340;
	
	color:white;
	padding:0.5rem;
	i{
	   margin-right: 1rem;
	}
	
}

.about{
	
	background-color: #2085BC;
	color:white;
	
	padding:0.5rem;
	i{
	   margin-right: 1rem;
	}
}

.quiz{
	
	background-color: YellowGreen;
	color:white;
	
	padding:0.5rem;
	i{
	   margin-right: 1rem;
	}
}

.video-tutorial
{
   background-color: #282D6F;
   color:white;
   padding:0.5rem;
   span{
	  margin-right: 1rem;
   }
}

main article:first-of-type{
	margin-top:-2.5rem;
}

.distinguishable article{
  border-top: 0.15rem solid black;
}

#articleSite table{
	width: 100%;
	text-align: left;
    border-spacing: 0;
	background-color: rgb(239, 239, 239);
	tr:nth-child(odd){
		background-color: rgb(176, 176, 176);
	}

	
}

#cookieBanner{
	width: 100%;
	box-sizing: border-box;
	position: fixed;
	bottom:0;
	font-size:1.1rem;
	text-align: center;
	background:#313131;
	color:white;
	padding:1rem;
    z-index: 1000;
	button{
		background-color: orange;
		padding:0.3rem;
		border:none;
		margin:1rem;
		font-size:1.3rem;
	}

	a{
		color:aliceblue;
	}
}

#cookies button{
	background-color: orange;
	border: none;
}

.about+article{
	gap:1rem;
}

@media only screen and (max-width: 100vw) {
	
 #burgerButton{
   display:block;
  }

  .fix::before{
	content:'spiel-programmieren.de';
	font-style: italic;
	margin-left:0.4rem;
	color:white;
  }

  header nav{
	  padding-right:0rem;
  }
  
  header nav a {
	 width:100%;
	 font-size:1.3rem;	
  }

  li:not(section li){
	display: flex;
    flex-direction: column;
	justify-content:end;
}

  header nav ul {
	 max-height:0;
	 padding:.5rem 1rem 0 3rem;
	 overflow:hidden;
  }
  
  header nav{
	  padding:0 0 1rem 0;
  }
  
  nav:hover ul{
  max-height: 18rem;
  transition: max-height 0.3s;
  }
  
  
}

@media only screen and (max-width: 1024px) {
	
section, .fix, header, header img, article section video, article section img:not(a img),  article section p, article section fieldset,#articleSite img:not(a img), article section iframe, footer {
	width:100%;	
}

article section video, article section img, article section iframe{
	margin:.5rem 0 .5rem 0;
}
main:not(#landingPage main){
	width:100%;
}

#articleSite section figure{
	width:100%;	
	padding:1rem;
  }
  
  header:not(#landingPage header){
	  background-position-x: 90%;
  }

  .smallImage{
	max-width:100%;
}

#landing-page-content{	

	width: 100%;
	justify-content: center;
	padding: 0rem 1rem 0 1rem;
}

#landingPage main{
	
	h1{
		font-size:1.1rem;
	  width:100%;
	}

	p{
		font-size: 1rem;
	}
	figcaption{
		font-size: 1rem;
	}
}

.youTube{
	width: 100%;

}



.small{
	max-height: 3rem;
}

iframe.quiz-game{
	width:100%;
    padding:.5rem 5rem .5rem 5rem;
	border:none;
	overflow-y: auto;
}
}

.mobile{display:none;}

.desktop{display:block;}

@media only screen and (max-width: 700px) {
  #landing-page-content figure{
    width: 100%;
  }
	#video-buttons{
       button{
		  width: 100%;
	   }
	}
	.mobile{display:block;}
	.desktop{display:none;}

	iframe.quiz-game{
		padding:.5rem;

	}

	#landingPage footer div{
		flex-direction: column;
		justify-content: start;
		padding-left: 1rem;
		gap:0.5rem;
	}
}



.text-link{
	line-height:inherit;
	display:inline;
    font-weight: normal;
	text-decoration: underline;
}

.ads a{
	display:inline;
}

.theme-quiz-link{
	text-decoration: none;
	margin-left: 1rem;
	color: black;
	font-size: 1.2rem;
}



.slide-landingPage{ 
	animation: slide-anim .5s ease-in 1 ; 
	animation-fill-mode: forwards;
 }
 
 @keyframes slide-anim{
	 0%{ margin-top:100vh; }
	 100%{ margin-top:0rem;  }
 }

 .affiliate{
	font-size:0.7rem;
	color: rgb(57, 57, 57);
 }
 
fieldset{
	background-color: white;
    border:none;
	legend{
		background-color: #282D6F;
		color:white;
		font-weight:bold;
		border-radius:0.25rem;
		
	}
}

#landing-page-content div h2{
	padding: 0.2rem;
}

#landing-page-content figure:hover{
	transition: transform 0.15s ease-in-out;
	transform: scale(1.05);
}

.info-section{
	display: block;
	fieldset{
		width:100%;
	}
	
}

@view-transition {
	navigation: auto;
}

@keyframes move-out {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes move-in {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0%);
  }
}

/* Apply the custom animation to the old and new page states */
::view-transition-old(root) {
  animation: 0.4s ease-in both move-out;
}

::view-transition-new(root) {
  animation: 0.4s ease-in both move-in;
}

.cover-sign{
	padding:0.3rem;
    font-size:1.3rem;
}


.answer-section:not([contenteditable]){
    display: none;
}

.yt-playlist-link{
	position:relative;
	z-index:10000;
	width: 100%;
	font-size: 1.5rem;
	margin-top:-2.7rem;
	color:white;
	text-decoration: underline;
	text-align: center;
}
