body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: black;
  
    text-align: center;
    background-image: url('logoblack.png');
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1.0;
}
a {
            display: block;
            margin: 0px;
            padding: 5px;
            font-size: 1.25em;
            color: LightGrey;
            text-decoration: none;
            border-radius: 5px;
        }
h1 {
    color: LightGrey;
    font-family: 'Impact', 'Arial Black', Arial, sans-serif;
    font-size: 3.0em;
    background-color: black;
}
h2 {
    color: LightGrey;
    font-family: 'Impact', 'Arial Black', Arial, sans-serif;
    font-size: 1.25em;
    display: inline-block; 
    background-color: Grey;
    border-radius: 5px;
    padding: 0px;
}
#impressum {
    position: fixed;
    bottom: 20px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%); /* Centers it horizontally */
    color: LightGrey;
    font-family: 'Impact', 'Arial Black', Arial, sans-serif;
    font-size: 1.25em;
    display: inline-block; 
    background-color: Grey;
    border-radius: 5px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
}
.score {
    font-size: 5.0em;
    font-family: 'Impact', 'Arial Black', Arial, sans-serif;
    margin: 20px 0;
    color: black;
    background-color: gold;
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}
        .answers-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            max-width: 1100px;
            margin: 0 auto;
        }
        #studentAnswers:disabled {
    background-color: rgba(200, 200, 200, 0.9); /* Adjust transparency of the background */
    color: rgba(0, 0, 0, 1); /* Adjust text color transparency */
 
}
        .answer {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 180px;
            height: 70px;
            margin: 10px;
            padding: 10px;
            font-size: 1.75em;
            color: black;
            background-color: gold;
            border-radius: 5px;
            cursor: pointer;
            user-select: none;
            transition: background-color 0.3s;
        }
        .hidden {
            background-color: LightGrey;
            color: #666;
            cursor: pointer;
        }
#studentAnswers {
    width: 100%;
    height: 200px;
    font-size: 1.2em;
    margin-top: 20px;
    padding: 10px; 
    box-sizing: border-box;
}
        .button {
            border: none;
            background: none;
            cursor: pointer;
            margin-top: 20px;
        }
        .button2 {
            padding: 10px 20px;
            font-size: 1em;
            background-color: black;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
                .button3 {
            padding: 10px 20px;
            font-size: 2em;
            background-color: gold;
            color: black;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        .flex-container {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }
        .text-area-container {
            width: 30%;
        }
        .button-panel {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-left: 20px;
        }
#timer {
    font-size: 3em;
    font-family: 'Impact', 'Arial Black', Arial, sans-serif;
    color: LightGrey;
    margin: 20px 0;
    height: 60px;
    line-height: 60px;
    min-width: 60px;
}
        .modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
}.modal-content {
    background-color: LightGrey;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
     max-height: 90vh;
    overflow-y: auto;
}
.modal-content h2 {
    margin-top: 0;
    color: #ff4b0d;
}
.modal-content p {
    font-size: 1em;
    color: #555;
}
.close-modal-button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #D4AC0D;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}
.final-score-modal-content {
    background-image: url('logoscore.png');
    background-size: contain;
    background-position: center; 
    background-color: black;
    background-repeat: no-repeat;
    width: 90%; 
    max-width: 700px; 
    max-height: 90vh;
    padding: 20px; 
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.final-score-modal-content h2, .final-score-modal-content p {
    position: relative; 
    z-index: 1;
    color: LightGrey; 
}
.score-box {
    background-color: gold; 
    color: black; 
    font-family: 'Impact', 'Arial Black', Arial, sans-serif;
    font-size: 3.5em;
    padding: 20px; 
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); 
    margin: 20px 0; 
}
.tryagainbutton {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #D4AC0D;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 200px;
}
#finalTopicTitle {
    font-size: 2.5em;
    font-family: 'Impact', 'Arial Black', Arial, sans-serif;
    color: LightGrey !important; 
    font-weight: bold;
    margin-bottom: 10px;
    background-color: black !important; 
    padding: 10px; 
    text-align: center;
    display: block !important; 
    z-index: 1001; 
}
#finalScoresText {
    font-size: 3.5em;
    color: black;
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
        padding: 10px;
        background-size: 95%;
    }
 #impressum {
        bottom: 10px; /* Reduce bottom position */
        font-size: 1em; /* Smaller font size */
        padding: 3px;  /* Less padding */
    }

    .score {
        font-size: 3.5em;
        padding: 10px;
    }

    .answers-container {
   display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 100%;
 
    }

    .answer {
        width: 40%;
        font-size: 1.2em;
        height: auto;
        margin: 5px 0;
    }

    .button-panel {
        flex-direction: row;
        flex-wrap: wrap;
    }

    #studentAnswers {
     width: 100px;
        height: 100px;
        font-size: 1em;
    }

    .modal-content {
        width: 95%;
    }
}


