@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@600&display=swap');

body {
    font-family: "Dosis", sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: var(--background-color);  
}


header {
    background-color: var(--background-color);
    padding: 5%;
    padding-bottom: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

.progress-bar-wrapper {
    width: 100%;
    margin: 1em auto;
}

.progress-bar {
    background-color: var(--line-color);
    border-radius: 25px;
    overflow: hidden;
    width: 100%;
    height: 1.3em;
}

.progress {
    background: linear-gradient(to right, #7948ff, #512aff);
    height: 100%;
    width: 0%;
    transition: width 1s ease-in-out;
    border-radius: 20px;
}

.category-difficulty {
    display: flex;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.category {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
}

.category-icon {
    width: 1.8em;
    margin-right: 10px;
}

.category-text {
    font-size: 1.4em;
    color: #e48d45;
    text-decoration: none;
}

.difficulty {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
}

.difficulty-block {
    width: 0.4em;
    height: 1.8em;
    background-color: #5EFC8D;
    border-radius: 5px;
    margin-left: 5px;
}

.difficulty-block {
    width: 0.4em;
    height: 1.2em;
    margin-left: 5px;
    border-radius: 5px;
    background-color: #C3C3C3; /* Standardfarbe */
}

.difficulty-block.leicht {
    background-color: #5EFC8D;
}

.difficulty-block.mittel {
    background-color: #E5E55E;
}

.difficulty-block.schwer {
    background-color: #E58A5E;
}

.difficulty-block.extrem {
    background-color: #E55E5E;
}

.header-content {
    display: flex;
    align-items: center;
}

.home-button{
    height: var(--icon-size);
    width: var(--icon-size);
    margin-right: 1em;
    filter: invert(0%);
}

.home-button img{
    height: var(--icon-size);
    width: var(--icon-size);
    margin-right: 1em;
    filter: invert(0%);
}

.svg-icon {
    filter: invert(0%);
}

main {
    justify-content: center;
    align-items: center;
    height: calc(100vh - 100px); /* Anpassung der Höhe, um den gesamten Bildschirm abzudecken */
    box-sizing: border-box;
}

.question-wrapper {
    text-align: center;
}

.question {
    padding: 1em;
    font-size: var(--font-size-question);
    color: white;
    background-color: var(--background-color);
    border-radius: 20px;
    width: calc(90% - 2em);
    margin-left: 5%;
    outline: 2px solid var(--line-color);
}


.answers {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    margin-top: 20px;
    align-items: center;
}

.answer {
    background-color: var(--background-color);
    color: white;
    border: none;
    padding: 0.4em;
    border-radius: 20px;
    cursor: pointer;
    font-size: var(--font-size-awnsers);
    width: 90%;
    outline: 2px solid var(--line-color);
    font-family: "Dosis", sans-serif;
}


.answer-typed {
    padding-left: 5%;
    padding-right: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-input {
    margin-right: 3%;
    border-radius: 25px;
    background-color: var(--background-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    width: 90%;
    outline: 2px solid var(--line-color);
    font-family: "Dosis", sans-serif;
}

.fact {
    color: white;
    font-size: 1.1em;
    font-weight: normal;
    text-align: left;
}

.fact-box {
    background-color: #38424b;
    border-radius: 20px;
    padding: 0.1rem 1rem;
    width: calc(90% - 2rem);
    margin: 0 auto;
    color: white; 
    font-weight: normal; 
    text-align: left;
    margin-bottom: 1.2rem;
}

.answer-box {
    background-color: #38424b;
    border-radius: 20px;
    padding: 10px;
    width: 90%;
    margin: 0 auto;
    color: white;
    font-weight: bold;
    text-align: left;
    margin-top: 1em;
}

.next-button {
    background-color: var(--button-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: var(--font-size-question);
    width: 90%; /* Breite auf 90% der Seite eingestellt */
    font-family: "Dosis", sans-serif;
}

.note-input {
    width: 90%;
    padding: 0.5em;
    border-radius: 10px;
    border: 1px solid var(--line-color);
    background-color: #38424b;
    color: white;
    font-size: 1em;
    outline: none;
    display: none;
}

.wrong-answer {
    color: #F4154D;
    outline-color: #F4154D;
    transition: 0.2s ease-in-out;
}

.correct-answer {
    color: #5EFC8D;
    outline-color: #5EFC8D;
    transition: 0.2s ease-in-out;
}



.results {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 3em;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s forwards;
    text-align: center; /* Zentriert den Inhalt horizontal */
}

.results.correct {
    background-color: var(--background-color);
    border-top: 2px solid var(--line-color);
    transform: translateY(0px);
    display: block;
}

.results.wrong {
    background-color: var(--background-color);
    border-top: 2px solid var(--line-color);
    transform: translateY(0px);
    display: block;
}


.correct-button {
    background-color: #e48d45;
    color: white;
}

.wrong-button {
    background-color: var(--button-color);
    color: white;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}


.icon-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.left-icons {
    display: flex;
    gap: 1rem;
    padding-left: 1.5rem;
}

.right-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 1.5rem;
}

.action-icon {
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.action-icon:hover {
    transform: scale(1.05);
}







.report-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.2rem;
    color: white;
}

.report-button {
    background-color: #f1730c;
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-family: "Dosis", sans-serif;
    box-shadow: 0px 6px 0px 0px rgb(146, 65, 7);
    width: 95%;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.15s;
}

.report-button:active {
    box-shadow: none;
    transform: translateY(6px);
}

.global-close {
    cursor: pointer;
    height: 2.2rem;
    width: 2.2rem;
    transition: scale 0.15s cubic-bezier(0.42, 0, 0.23, 2.12);
    display: flex;
    justify-content: center;
    align-items: center;
}

.global-close img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: scale 0.15s ease-in-out;
}

.global-close:hover img {
    scale: 1.1;
}

.global-close:active img {
    scale: 0.95;
}

.global-modal-header span {
    color: white;
}

.global-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.global-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}


.global-modal {
    z-index: 1000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    transform-origin: center center; /* 💥 wichtig: Ursprung ist die Mitte */
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: 3px solid #38424b;
}

.global-modal.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.danke-popup {
    position: fixed;
    left: 50%;
    top: 45%;
    transform: translateX(-50%) translateY(0);
    background-color: #38424b;
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: 1.5rem;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2000;
}

.danke-popup.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
