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

body {
    user-select: none;
}

#backToIndex{
    position: relative;
    top: 2%;
    left: 2%;
}

#gitLogo {
    position: absolute;
    z-index: 100;
    padding: 0px;
    top: 4%;
    left: 2%;
    width: 220px;
    object-fit: contain;
    user-select: none;
    cursor: pointer;
}

#header{
    z-index: 5;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-top: 5%;
    width: 60%;
    font-size: 9rem;
    margin-top: 15%;
}

#p1{
    z-index: 5;
    position: relative;
    color: #2F27CE;
    font-family: Inter;
    /* font-size: 200px; */
    font-style: italic;
    font-weight: 700;
    line-height: normal;
}
#p2{
    z-index: 5;
    position: relative;
    color: #000;
    font-family: Inter;
    /* font-size: 200px; */
    font-style: italic;
    font-weight: 700;
    line-height: normal;
}

#indexButton{
    z-index: 5;
    position: relative;
    margin-left: 6%;
    margin-top: 1%;
    border-radius: 25px;
    background: #433BFF;
    width: 20%;
    padding: 0.5%;

    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: 2rem;
    font-style: Inter;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
}

#chooseAdvancedOrBasic{
    position: relative;
    z-index: 5;
    width: 100%;
    /* background-color: #000; */
    margin-top: 4%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 15%;
}

#Basic{
    padding: 1%;
    background-color: #433BFF;
    width: 30%;
    border-radius: 20px;

    margin-left: auto;
    margin-right: auto;

    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: 2rem;
    font-style: Inter;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;

}

#Advanced{
    padding: 1%;
    background-color: #433BFF;
    width: 30%;
    border-radius: 20px;

    margin-top: 2%;
    margin-left: auto;
    margin-right: auto;

    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: 2rem;
    font-style: Inter;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
}

#timerBox{
    position: absolute;
    z-index: 5;
    top: 0%;
    left: 85%;
    color: #ffffff;
    font-family: inter;
    font-size: 4rem;
    font-weight: bolder;
}

#title{
    color: #050315;
    z-index: 5;
    position: relative;
    font-size: 5rem;
    font-weight: bolder;
    margin-bottom: 2%;
    text-align: center;
    margin-top: 15%;
}

#endTime{
    color: #1d1a75;
    z-index: 5;
    position: relative;
    font-size: 3rem;
    font-weight: bolder;
    text-align: center;
}

#rightQuestions{
    color: #1d1a75;
    z-index: 5;
    position: relative;
    font-size: 3rem;
    font-weight: bolder;
    text-align: center;
}

#buttonBackToQuiz{
    z-index: 5;
    padding: 1%;
    background-color: #433BFF;
    width: 25%;
    border-radius: 20px;

    margin-left: 75%;
    margin-top: 20%;

    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: 2rem;
    font-style: Inter;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
}


#quizBox{
    display: none;
    position: relative;
    z-index: 5;
    font-family: inter;
}

#wrapper{
    position: relative;
    z-index: 5;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

#questionCount{
    color: #050315;
    z-index: 5;
    position: relative;
    font-size: 3rem;
    font-weight: bolder;
    margin-bottom: 7%;
    margin-top: 2%;
}
#question{
    margin-left: 10%;
    font-size: 3rem;
    color: #241d9b;
    font-weight: bold;
}

#choosingAnswere{
    margin-top: 3%;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    font-size: 2rem;
}#answereOption0:hover, #answereOption1:hover, #answereOption2:hover, #answereOption3:hover{
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(68, 59, 255, 0.3);
    transition: all 0.3s ease;
}

#answereOption0:hover #A, #answereOption1:hover #B, #answereOption2:hover #C, #answereOption3:hover #D {
    background: linear-gradient(135deg, #433BFF 0%, #2F27CE 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(68, 59, 255, 0.4);
}

#answereOption0, #answereOption1, #answereOption2, #answereOption3{
        /* color: #FFF */
    border-radius: 25px;
    color: #050315;
    background: #433BFF;
    padding: 0%;
    display: flex;
    margin-top: 3%;
     
}
#answereOption0 p, #answereOption1 p, #answereOption2 p, #answereOption3 p{
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 5%;
    color: #FFF;
}

#A, #B, #C, #D{
    margin-top: auto;
    margin-bottom: auto;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #DEDCFF 0%, #B8B5FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #433BFF;
    box-shadow: 0 4px 15px rgba(68, 59, 255, 0.2);
    border: 2px solid rgba(68, 59, 255, 0.3);
    transition: all 0.3s ease;
    min-width: 50px;
    flex-shrink: 0;
}



#loaderTXT{
    color: #050315;
    z-index: 5;
    width: 100%;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    font-weight: bolder;
    text-align: center;
    margin: 0;
}

.loader {
    display: none;
    z-index: 5;
    width: 50%;
    height: 22px;
    border-radius: 20px;
    color: black;
    border: 2px solid;
    position: fixed;
    top: 43%;
    left: 50%;
    transform: translateX(-50%);
  }
  .loader::before {
    content: "";
    position: absolute;
    margin: 2px;
    inset: 0 100% 0 0;
    border-radius: inherit;
    background: #433BFF;
    animation: l6 5s infinite;
  }
  @keyframes l6 {
      100% {inset:0}
  }

#circle1 {
    z-index: 0;
    position: absolute;
    top: 80%;
    left: 45%;

    width: 33.9vw;
    height: 58.5vh;
    flex-shrink: 0;

    border-radius: 33.9vw;
    background: #282566;
    filter: blur(6.5vw);
}

#circle2 {
    z-index: 0;
    position: absolute;
    top: 55%;
    left: 60%;

    width: 49.5vw;
    height: 84vh;
    flex-shrink: 0;

    border-radius: 49.5vw;
    background: #443DFF;
    filter: blur(6.5vw);
}

#circle3 {
    z-index: 0;
    position: absolute;
    top: 10%;
    left: 80%;

    width: 26.7vw;
    height: 45vh;
    flex-shrink: 0;

    border-radius: 26.7vw;
    background: #5B56B2;
    filter: blur(6.5vw);
}

#circle4 {
    z-index: 0;
    position: absolute;
    top: 20%;
    left: 80%;

    width: 26.7vw;
    height: 45vh;
    flex-shrink: 0; 

    border-radius: 26.7vw;
    background: #7F7CB0;
    filter: blur(6.5vw);
}

#circle5 {
    z-index: 0;
    position: fixed;

    bottom: -20%;
    left: -15%;

    width: 33.9vw;
    height: 58.5vh;
    flex-shrink: 0;

    border-radius: 33.9vw;
    background: #282566;
    filter: blur(6.5vw);
}
#circle6 {
    z-index: 0;
    position: fixed;

    bottom: -20%;
    left: 80%;

    width: 26.7vw;
    height: 45vh;
    flex-shrink: 0;

    border-radius: 26.7vw;
    background: #5B56B2;
    filter: blur(6.5vw);
}



#cirtlesPART2{
    display: none;
}



#circle7 {
    z-index: 0;
    position: fixed;

    top: -45%;
    left: 65%;

    width: 49.5vw;
    height: 84vh;
    flex-shrink: 0;

    border-radius: 49.5vw;
    background: #443DFF;
    filter: blur(6.5vw);
}
#circle8 {
    z-index: 0;
    position: fixed;

    top: 70%;
    left: -10%;

    width: 33.9vw;
    height: 58.5vh;
    flex-shrink: 0;

    border-radius: 33.9vw;
    background: #282566;
    filter: blur(6.5vw);
}
#circle9 {
    z-index: 0;
    position: fixed;

    top: 80%;
    left: 80%;

    width: 26.7vw;
    height: 45vh;
    flex-shrink: 0;

    border-radius: 26.7vw;
    background: #5B56B2;
    filter: blur(6.5vw);
}




/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet und kleinere Laptops (1024px und kleiner) */
@media screen and (max-width: 1024px) {
    #header {
        font-size: 7rem;
        width: 70%;
        padding-top: 8%;
    }
      #gitLogo {
        width: 178px;
        top: 3%;
    }
    
    #timerBox {
        left: 85%;
        font-size: 3.5rem;
    }
    
    #Basic, #Advanced {
        width: 40%;
        font-size: 1.8rem;
    }
    
    #question {
        margin-left: 8%;
        font-size: 2.5rem;
    }
    
    #choosingAnswere {
        width: 70%;
        font-size: 1.8rem;
    }
    
    #buttonBackToQuiz {
        width: 30%;
        margin-left: 70%;
    }
}

/* Tablets Portrait (768px und kleiner) */
@media screen and (max-width: 768px) {
    #header {
        font-size: 5rem;
        width: 85%;
        padding-top: 10%;
    }
      #gitLogo {
        width: 178px;
        top: 2%;
    }
    
    #timerBox {
        left: 75%;
        font-size: 3rem;
        top: 2%;
    }
    
    #Basic, #Advanced {
        width: 50%;
        font-size: 1.6rem;
        padding: 1.5%;
    }
    
    #title {
        font-size: 4rem;
        margin-top: 10%;
    }
    
    #endTime, #rightQuestions {
        font-size: 2.5rem;
    }
    
    #questionCount {
        font-size: 2.5rem;
        margin-bottom: 5%;
    }
    
    #question {
        margin-left: 5%;
        font-size: 2.2rem;
    }
    
    #choosingAnswere {
        width: 80%;
        font-size: 1.6rem;
    }
      #A, #B, #C, #D {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        min-width: 40px;
    }
    
    #buttonBackToQuiz {
        width: 35%;
        margin-left: 65%;
        font-size: 1.8rem;
    }
    
    #loaderTXT {
        font-size: 2.5rem;
        margin-top: 10%;
    }
    
    #wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
        padding-top: 0;
        margin-top: 0;
    }
    
    #questionCount {
        margin-top: 0;
        margin-bottom: 5%;
    }
}

/* Mobile Landscape (480px und kleiner) */
@media screen and (max-width: 480px) {
    #header {
        font-size: 3.5rem;
        width: 95%;
        padding-top: 15%;
    }
      #gitLogo {
        width: 170px;
        top: 1%;
        left: 1%;
    }
    
    #timerBox {
        left: 70%;
        font-size: 2.5rem;
        top: 1%;
    }
    
    #Basic, #Advanced {
        width: 80%;
        font-size: 1.4rem;
        padding: 2%;
        margin-top: 3%;
    }
    
    #chooseAdvancedOrBasic {
        margin-top: 8%;
        margin-bottom: 10%;
    }
    
    #title {
        font-size: 3rem;
        margin-top: 8%;
    }
    
    #endTime, #rightQuestions {
        font-size: 2rem;
    }
    
    #questionCount {
        font-size: 2rem;
        margin-bottom: 4%;
    }
    
    #question {
        margin-bottom: 6%;
        margin-left: 3%;
        font-size: 1.8rem;
    }
    
    #choosingAnswere {
        width: 95%;
        font-size: 1.4rem;
    }
    
    #answereOption0, #answereOption1, #answereOption2, #answereOption3 {
        margin-top: 4%;
    }
    
    #answereOption0 p, #answereOption1 p, #answereOption2 p, #answereOption3 p {
        margin-left: 3%;
    }
      #A, #B, #C, #D {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        min-width: 35px;
    }
    
    #buttonBackToQuiz {
        width: 50%;
        margin-left: 50%;
        font-size: 1.6rem;
        margin-top: 15%;
    }
    
    #loaderTXT {
        font-size: 2rem;
        margin-top: 8%;
    }
    
    .loader {
        width: 80%;
    }
    
    #wrapper {
        min-height: calc(100vh - 60px); /* Account for timer */
        padding: 2% 0;
    }
    
    #questionCount {
        margin-bottom: 4%;
    }
    
    #question {
        margin-bottom: 6%;
    }
    
    #choosingAnswere {
        margin-top: 2%;
    }
}

/* Mobile Portrait (360px und kleiner) */
@media screen and (max-width: 360px) {
    #header {
        font-size: 2.8rem;
        padding-top: 20%;
    }
      #gitLogo {
        width: 170px;
    }
    
    #timerBox {
        left: 70%;
        font-size: 2rem;
    }
    
    #Basic, #Advanced {
        width: 90%;
        font-size: 1.2rem;
    }
    
    #title {
        font-size: 2.5rem;
    }
    
    #endTime, #rightQuestions {
        font-size: 1.8rem;
    }
    
    #questionCount {
        font-size: 1.8rem;
    }
    
    #question {
        font-size: 1.6rem;
        margin-left: 2%;
    }
    
    #choosingAnswere {
        font-size: 1.2rem;
    }
    
    #A, #B, #C, #D {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        min-width: 30px;
    }
    
    #buttonBackToQuiz {
        width: 60%;
        margin-left: 40%;
        font-size: 1.4rem;
    }
    
    #loaderTXT {
        font-size: 1.8rem;
    }
    
    #wrapper {
        min-height: calc(100vh - 50px);
        padding: 1% 0;
    }
}

/* Landscape Orientierung für Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #header {
        font-size: 2.5rem;
        padding-top: 5%;
    }
      #gitLogo {
        width: 170px;
        top: 1%;
    }
    
    #timerBox {
        font-size: 1.8rem;
        top: 1%;
        left: 85%;
    }
    
    #Basic, #Advanced {
        padding: 1%;
        margin-top: 1%;
    }
    
    #chooseAdvancedOrBasic {
        margin-top: 2%;
        margin-bottom: 5%;
    }
    
    #title {
        font-size: 2rem;
        margin-top: 3%;
    }
    
    #questionCount {
        font-size: 1.5rem;
        margin-bottom: 2%;
        margin-top: 1%;
    }
    
    #question {
        font-size: 1.4rem;
    }
    
    #choosingAnswere {
        margin-top: 1%;
        font-size: 1.2rem;
    }
    
    #answereOption0, #answereOption1, #answereOption2, #answereOption3 {
        margin-top: 2%;
    }
    
    #buttonBackToQuiz {
        margin-top: 5%;
    }
    
    #loaderTXT {
        font-size: 1.5rem;
        margin-top: 3%;
    }
    
    #wrapper {
        min-height: calc(100vh - 40px);
        justify-content: center;
        padding: 1% 0;
    }
}

/* Sehr breite Bildschirme (1440px und größer) */
@media screen and (min-width: 1440px) {
    #header {
        font-size: 10rem;
    }
    
    #gitLogo {
        width: 250px;
    }
    
    #timerBox {
        font-size: 5rem;
    }
    
    #Basic, #Advanced {
        font-size: 2.5rem;
    }
    
    #title {
        font-size: 6rem;
    }
    
    #question {
        font-size: 3.5rem;
    }
    
    #choosingAnswere {
        font-size: 2.5rem;
    }
}

/* Accessibility: Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .loader::before {
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Touch-Target Verbesserungen für Mobile */
@media (pointer: coarse) {
    #Basic, #Advanced, #buttonBackToQuiz, 
    #answereOption0, #answereOption1, #answereOption2, #answereOption3,
    #gitLogo {
        min-height: 44px; /* Apple's empfohlene Touch-Target Größe */
        cursor: pointer;
    }
    
    #answereOption0, #answereOption1, #answereOption2, #answereOption3 {
        padding: 1.5%;
        margin-top: 4%;
    }
}

/* Hover-Effekte nur auf Geräten mit Mouse */
@media (hover: hover) {
    #Basic:hover, #Advanced:hover {
        background-color: #3630e6;
        transform: scale(1.02);
        transition: all 0.2s ease;
    }
    
    #buttonBackToQuiz:hover {
        background-color: #3630e6;
        transform: scale(1.02);
        transition: all 0.2s ease;
    }
    
    #gitLogo:hover {
        transform: scale(1.05);
        transition: transform 0.2s ease;
    }
}

/* Spezielle Animationen für die Antwort-Auswahl */
#answereOption0, #answereOption1, #answereOption2, #answereOption3 {
    position: relative;
    overflow: hidden;
}

#answereOption0::before, #answereOption1::before, #answereOption2::before, #answereOption3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

#answereOption0:hover::before, #answereOption1:hover::before, #answereOption2:hover::before, #answereOption3:hover::before {
    left: 100%;
}

/* Korrekte/Falsche Antwort Styles */
.correct-answer {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    border: 2px solid #4CAF50 !important;
}

.correct-answer #A, .correct-answer #B, .correct-answer #C, .correct-answer #D {
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e8 100%) !important;
    color: #4CAF50 !important;
    border-color: #4CAF50 !important;
}

.wrong-answer {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%) !important;
    border: 2px solid #f44336 !important;
}

.wrong-answer #A, .wrong-answer #B, .wrong-answer #C, .wrong-answer #D {
    background: linear-gradient(135deg, #ffffff 0%, #ffebee 100%) !important;
    color: #f44336 !important;
    border-color: #f44336 !important;
}

/* Zentrierung für Loading und Results Screen */
#loaderTXT, .loader {
    /* position: relative; */
    z-index: 10;
}

/* Wrapper für Loading Screen zentrieren */
.loading-screen-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

/* Loading Screen Elemente zentrieren */
.loading-screen-wrapper #loaderTXT {
    margin: 0;
    margin-bottom: 2rem;
}

.loading-screen-wrapper .loader {
    margin: 0 auto;
}

/* Results Screen zentrieren */
.results-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    text-align: center;
}

/* Results Screen Elemente anpassen */
.results-screen #title {
    margin-top: 0;
}

.results-screen #buttonBackToQuiz {
    margin-left: 0;
    margin-top: 2rem;
}

