

*, *::before, *::after {
    box-sizing: border-box;
    font-family: Helvetica, sans-serif;
}

[id] {
    scroll-margin-top: 90px; /* Höhe deines Headers */
}

h1 {
    font-family: Helvetica, sans-serif;
    color: black;
    font-weight: bold;
}
h2,h3,h4,h5{
    font-family: Helvetica, sans-serif;
    color: black;
}
label{
    color: black;
    font-family: Helvetica, sans-serif;
}
/*header*/
header.header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo img {
    height: auto;
    width: 80px;
    object-fit: contain;
    display: block;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.menu-toggle.open {
    gap: 3px; /* Größeres Gap im Kreuz-Zustand */
}

.menu-toggle div {
    width: 45px;
    height: 6px;
    background-color: #333;
}
.menu-toggle.open div:nth-child(1) {
    transform: rotate(45deg) translate(8px, 5px);
}
.menu-toggle.open div:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

nav {
    position: fixed;
    top: 70px;
    right: -100%;
    height: calc(100vh - 80px);
    width: 100%;
    max-width: 800px;
    background-color: white;
    display: flex;
    flex-direction: column;
    padding-top: 5rem;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

nav.show {
    right: 0; /* sichtbar */
}

nav a {
    padding: 1.5rem;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav a:hover {
    background-color: #f0f0f0;
}
.navFlag{
    width: 60px;
    height: 30px;
    margin-left: 8px;
    vertical-align: middle;
}

html, body {
    text-align: center;
    align-items: center;
    background-color: #ffffff;
    margin:0;
    padding: 0;
    min-height: 100%;
}

#game{
    height: calc(var(--vh, 1vh) * 100 - 80px);
    text-align: center;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    z-index: 0;
    /*position: relative;*/
}
@media (max-width: 800px) {
    #game {
    }
}




#square {
    width: min(70vw, 50vh);
    aspect-ratio: 1/1;
    background-color: gray;
    border: 1px solid black;
    border-radius: 1%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    margin: 1rem;
}

.pulse{
    animation: pulseEffect 2s infinite ease-in-out;
}

@keyframes pulseEffect {

    0%, 100% {
        box-shadow: 0 0 20px 10px rgba(239, 122, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(179, 23, 21, 0.6);
    }
}

@media (max-width: 800px) {
    #square {
        width: min(70vw, 30vh);
        margin: 0.5rem;

    }
}

#sentence {
    margin: 1rem;
    font-size: 2rem;
    font-weight: bold;
    min-height: 2.5rem;
    max-width: 90%;
}

.autoPlay{
    padding: 0.5rem;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;

}

@media (max-width: 800px) {
    .autoPlay {
        width: 90%;

    }
}


/* Container für die Buttons nebeneinander */
.button-row {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;

}

/* Play Button */
#toggleButton {
    padding: 1em 2em;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    border-radius: 0.2em;
    background: darkslategray;
    border: none;
    min-width: 100%;
    box-sizing: border-box;
    height: auto;
}

#speed-button, #mute-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: darkslategray;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}


#speed-button:hover, #toggleButton:hover, #mute-button:hover{
    background-color: #555;
}
@media (max-width: 800px) {
    .button-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    #toggleButton {
        width: 100%;
        min-width: 100%;
        font-size: 1.2rem;
        padding: 1em;
        box-sizing: border-box;
    }

    .secondary-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    #mute-button,
    #speed-button {
        width: 4rem;
        height: 4rem;
        font-size: 1.2rem;
    }
}

#impressumDatenschutz, #about{
    background-color: rgba(255, 255, 255, 0.8);
    text-align: center;
    align-items: center;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;

}
#about h1{
    font-size: 2rem;
    font-weight: bold;
}


.projekttext p {
    margin-bottom: 1rem;
    line-height: 1.5;
    width: 70vw;
    font-size: 1.1rem;
}


.creditBox{
    padding: 0.5rem;
    width: 70vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.creditBox p{
    margin:0;
    line-height: 1.5;
    font-size: 1.1rem;
    text-align: left;
}

@media (max-width: 800px) {
    .projekttext p {
        margin-bottom: 1rem;
        line-height: 1.5;
        width: 90vw;
        font-size: 1.1rem;
    }
    .creditBox{
        padding: 0.5rem;
        width: 90vw;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

}

.trennlinie {
    border: none;
    border-top: 1px solid black;
    width: 100%;
    margin: 0; /* oder nach Wunsch z.B. margin: 1rem 0; */
}

#impressumDatenschutz h2{
    font-size: 2rem;
    font-weight: bold;
}

#impressumDatenschutz p{
    width: 70vw;
    font-size:1.1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
ul {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    padding-left: 0;
    list-style: none;
}

p a {
    color: black;
    text-decoration: underline;
    transition: color 0.3s ease;
}

p a:hover {
    color: #001f3f;
}

@media (max-width: 800px) {
    #impressumDatenschutz p{
        width: 90vw;
        font-size:1.1rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
}





#legalText {

    margin: 2rem auto;
    padding: 2rem;
    font-family: Helvetica, sans-serif;
    line-height: 1.6;
    text-align: left;
}

#legalText h2 {
    margin-top: 1.5rem;
    font-size: 1.3rem;
    color: black;
}

#legalText a {
    color: darkslategray;
    text-decoration: none;
}

#legalText a:hover {
    text-decoration: underline;
}



