*{
    box-sizing: border-box;
    font-family: sans-serif;
    margin: 0; padding: 0;
}

img, video {
    height: auto;
    width: 100%;
}

html {
    background-image: url(/assets/img/background.png);
    background-size: cover;
    margin: 0px;
    width: 100%;
}

body {
 width: 100%;
}

p, a, h1, h2, h3, h4, h5, h6, .bold, .kursiv {
    text-decoration: none;
    color: #242234;
    font-size: 20px;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
}

h5 {
	text-align: center;

}

a {
    font-size: 20px;
}

p {
    text-align: justify;
    justify-self: center;

}

li {
	color: white;
}

h1 {
    font-family: 'Pixelify Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 42px;

    text-align: center;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
}

h2 {
    font-size: 32px;
    font-family: 'Pixelify Sans';
    font-style: normal;
    font-weight: 400;

    text-align: center;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
}

h3 {
    font-size: 25px;
    font-family: 'Pixelify Sans';
    font-style: normal;
    font-weight: 300;
    color: white;
}

.bold {
    font-weight: bold;
}

.kursiv {
    font-style: italic;
}


header {
    background-color: #ba2730;
    text-align: center;
    padding: 20px 0;
    margin-bottom: 50px;
    position: fixed;
    z-index: 9;
    width: 100%;
    border-bottom: solid 3px #fae75d;
}

header ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

header ul li {
    list-style-type: none;
}

header a {
    font-weight: bold;
    color: white;
}

/* Default state of burger menu button */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.burger-menu img {
    width: 30px;
    height: 30px;
}

main {
    width: 60em;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.abstand {
    height: 20px;
    width: 100%;
    padding: 40px 0;
}

section {
    display: grid;
    margin: 50px 0;
    row-gap: 20px;
}

.trenner {
    width: 150px;
    margin: 20px auto;
}

#logo {
    width: 500px;
    height: auto;
    align-self: center;
    margin-top: 150px;
    margin-bottom: 100px;
}

#start {
    grid-template-columns: 60% 40%;
    grid-template-rows: auto auto auto;
    gap: 20px;
}

#start h2 {
    text-align: center;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
}

#start .text-content {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 4;
}

#start #Niki1 {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 4;
    justify-self: center;
    max-width: 150px;
    align-self: center;
}

#start #bild2 {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 4;
    grid-row-end: 5;
}

#penandpaper {
    grid-template-columns: 40% 60%;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
}

#penandpaper h2 {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
}

#penandpaper .text-content {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
}

#penandpaper #Niki2 {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;

    justify-self: center;
    max-width: 150px;
    align-self: center;
}

#penandpaper #video {
    justify-self: center;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 3;
    grid-row-end: 4;

}

.bold-span {
    font-weight: bold;
}

#dicerumble {
    grid-template-columns: 60% 40%;
    grid-template-rows: auto auto auto;
    gap: 20px;
}

#dicerumble .text-content {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 4;
}

#dicerumble #Niki3 {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 3;
    grid-row-end: 4;

    justify-self: center;
    align-self: center;
}

.flip-card {
    background-color: transparent;
    width: 300px;
    height: 450px;

}
  
/* This container is needed to position the front and back side */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 98%;
    text-align: center;
    display: flex;
    align-items: center;
    align-content: center;
   
    transition: transform 0.8s;
    transform-style: preserve-3d;

    background-color: #ba2730;
    color: white;
  
}
  
/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
    
}


/* Position the front and back side */
.flip-card-front, .flip-card-back {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}


.flip-card-front h3 {
    align-self: center;
}

/* Style the back side */
.flip-card-back {
    background-color: transparent;
    color: white;
    transform: rotateY(180deg);
}

.flip-card-back a {
    background-color: transparent;
    overflow: collapse;
}

#download {
    width: 100px;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto 1fr 1fr 1fr;
    gap: 20px;
}

#download h2 {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 2;
}

#download .regelwerk {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;
    justify-self: center;
}

#download .regelwerk-kurz{
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    justify-self: center;
}

#download .charakterbogen {
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 2;
    grid-row-end: 3;
    justify-self: center;
}

#download .faq{
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 3;
    grid-row-end: 4;
    justify-self: center;
}

#download .zusatz{
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 3;
    grid-row-end: 4;
    justify-self: center;
}

#download .spielleitung{
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 3;
    grid-row-end: 4;
    justify-self: center;
}

#download .kids-regeln{
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 4;
    grid-row-end: 5;
    justify-self: center;
}

#download .kids-bogen{
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 4;
    grid-row-end: 5;
    justify-self: center;
}

#download .abenteuer{
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 4;
    grid-row-end: 5;
    justify-self: center;
}

.single {
    text-align: center;
    max-width: 450px;
    grid-column-start: 1;
    grid-column-end: 3;
}

#community a {
    grid-column-start: 1;
    grid-column-end: 3;
    max-width: 400px;
    margin: auto;
}

#kontakt {
    grid-template-columns: 60% 40%;
    grid-template-rows: auto auto;
    gap: 20px;
}

.autor_text {
    grid-column-start: 1;
    grid-column-end: 2;
}

#autor {
    grid-column-start: 2;
    grid-column-end: 3;
}

#spenden {
 margin: 0 auto;
 width: 250px;
 margin-bottom: 50px;
}

footer {
    background-color: #ba2730;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    width: 100%;
    border-top: solid 3px #fae75d;
}

footer ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

footer ul li {
    list-style-type: none;
}

footer a {
    color: white;
}


@media (max-width: 600px) {


    .burger-menu {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 100;
    }       


    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #ba2730;
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 3px solid #fae75d;
        z-index: 99;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    header {
        position: fixed;
        height: 5em;
    }

    main {
        max-width: 350px;
        margin: auto auto;
        display: flex;
        flex-direction: column;
    }
    
    p {
        font-size: 1,5em;
    }

    h2 {
        font-size: 2em;
    }
    
    section {
        display: grid;
        margin: 50px 0;
    }
    
    #logo {
        width: 200px;
        height: auto;
        align-self: center;
        margin-top: 150px;
        margin-bottom: 50px;
    }
    
    #start {
        grid-template-columns: 1fr;  /* Changed to single column */
        grid-template-rows: auto auto auto auto;
        gap: 20px;
    }
    
    #start h2 {
        text-align: center;
        grid-column-start: 1;
        grid-column-end: 2;  /* Updated to match single column */
        grid-row-start: 2;
        grid-row-end: 3;
    }
    
    #start #Niki1 {
        grid-column-start: 1;
        grid-column-end: 2;  /* Updated to match single column */
        grid-row-start: 3;   /* Positioned below headings */
        grid-row-end: 4;
        justify-self: center;
        max-width: 150px;
        align-self: center;
    }
    
    #start .text-content {
        grid-column-start: 1;
        grid-column-end: 2;  /* Updated to match single column */
        grid-row-start: 4;   /* Positioned below #Niki1 */
        grid-row-end: 5;
    }
    
    #start #bild2 {
        grid-column-start: 1;
        grid-column-end: 2;  /* Updated to match single column */
        grid-row-start: 5;
        grid-row-end: 6;
    }
        
    #penandpaper {
        grid-template-columns: 1fr;  /* Changed to single column */
        grid-template-rows: auto auto auto auto;  /* Added an extra row for video */
        gap: 20px;
    }
    
    #penandpaper h2 {
        grid-column-start: 1;
        grid-column-end: 2;  /* Updated to match single column */
        grid-row-start: 1;
        grid-row-end: 2;
    }
    
    #penandpaper #Niki2 {
        grid-column-start: 1;
        grid-column-end: 2;  /* Updated to match single column */
        grid-row-start: 2;   /* Positioned below headings */
        grid-row-end: 3;
        justify-self: center;
        max-width: 150px;
        align-self: center;
    }
    
    #penandpaper .text-content {
        grid-column-start: 1;
        grid-column-end: 2;  /* Updated to match single column */
        grid-row-start: 3;   /* Positioned below #Niki2 */
        grid-row-end: 4;
    }
    
    #penandpaper #video {
        grid-column-start: 1;
        grid-column-end: 2;  /* Updated to match single column */
        grid-row-start: 4;   /* Positioned at the bottom */
        grid-row-end: 5;
        max-width: 200px;
        justify-self: center;  /* Added to center the video */
    }
    
    .bold-span {
        font-weight: bold;
    }
    
    #dicerumble {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 20px;
    }
    
    #dicerumble h2 {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 1;
        grid-row-end: 2;
    }
    
    #dicerumble #Niki3 {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 2;   /* Moved up to be below heading */
        grid-row-end: 3;
        justify-self: center;
        align-self: center;
    }
    
    #dicerumble .text-content {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 3;   /* Moved down to be below Niki3 */
        grid-row-end: 4;
    }

    #dicerumble_bild {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 4;   /* Kept at the bottom */
        grid-row-end: 5;
    }
    
    .flip-card {
        background-color: transparent;
        width: 300px;
        height: 450px;
    
    }
      
    /* This container is needed to position the front and back side */
    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 98%;
        text-align: center;
        display: flex;
        align-items: center;
        align-content: center;
       
        transition: transform 0.8s;
        transform-style: preserve-3d;
    
        background-color: #ba2730;
        color: white;
      
    }
      
    /* Do an horizontal flip when you move the mouse over the flip box container */
    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
        
    }
    
    
    /* Position the front and back side */
    .flip-card-front, .flip-card-back {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden; /* Safari */
        backface-visibility: hidden;
    }
    
    
    .flip-card-front h3 {
        align-self: center;
    }
    
    /* Style the back side */
    .flip-card-back {
        background-color: transparent;
        color: white;
        transform: rotateY(180deg);
    }
    
    .flip-card-back a {
        background-color: transparent;
        overflow: collapse;
    }
    
    #download {
        grid-template-columns: auto;
        grid-template-rows: auto 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        gap: 20px;
        width: 100%;
    }
    
    #download h2 {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 1;
        grid-row-end: 2;
    }
    
    #download .regelwerk {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 2;
        grid-row-end: 3;
        justify-self: center;
    }
    
    #download .regelwerk-kurz{
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 3;
        grid-row-end: 4;
        justify-self: center;
    }
    
    #download .charakterbogen {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 4;
        grid-row-end: 5;
        justify-self: center;
    }
    
    #download .faq{
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 5;
        grid-row-end: 6;
        justify-self: center;
    }
    
    #download .zusatz{
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 6;
        grid-row-end: 7;
        justify-self: center;
    }
    
    #download .spielleitung{
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 7;
        grid-row-end: 8;
        justify-self: center;
    }
    
    #download .kids-regeln{
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 8;
        grid-row-end: 9;
        justify-self: center;
    }
    
    #download .kids-bogen{
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 9;
        grid-row-end: 10;
        justify-self: center;
    }
    
    #download .abenteuer{
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 10;
        grid-row-end: 11;
        justify-self: center;
    }

    #kontakt {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
    }
    
    .autor_text {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 2;
    }
    
    #autor {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 3;
    }
}





















/* pixelify-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Pixelify Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../assets/fonts/pixelify-sans-v1-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* pixelify-sans-500 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Pixelify Sans';
    font-style: normal;
    font-weight: 500;
    src: url('../assets/fonts/pixelify-sans-v1-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* pixelify-sans-600 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Pixelify Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../assets/fonts/pixelify-sans-v1-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* pixelify-sans-700 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Pixelify Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../assets/fonts/pixelify-sans-v1-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }

  