body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #663573, #225668 );
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: #e3ecf6;
  }
  h3 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: #dfebee;
  }
  #otherPageBtn {
    top: 8%;
    left: 50%;
    padding: 11px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background-color: rgba(183, 135, 93, 0.01);
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    margin-top: 2%;
  }
  #otherPageBtn:hover {
    background-color: #d79a48;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  }
  
  #otherPageBtn:active {
    background-color: #d79a48;
    transform: scale(1);
  }
.quiz-container {
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    margin-top: 2%;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding: 0 50px;
}

input[type="text"] {
    width: 100%;
    max-width: 350px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #dddddd;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.question-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.question {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-size: 1rem;
    transition: 0.3s;
}

.result-box {
    margin-top: 10px;
    background: white;
    color: black;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    display: none;
}

#restart-btn, #end-btn {
    margin-top: 10px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#restart-btn:hover, #end-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#restart-btn {
    background: #4caf50;
    color: white;
}

#end-btn {
    background: #f44336;
    color: white;
}

/* Dropdown-Menü */
.dropdown {
    position: relative;
    display: inline-block;
    margin-top: 0.5%;
}

.dropdown-btn {
    background: linear-gradient(to right, #225668, #20687e );
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.dropdown-btn:hover {
    background-color: #cdabd5;
    transform: scale(1.05);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 10px;
    color: black;
    border-radius: 5px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content p {
    margin: 5px 0;
}

/* Gesperrte (deaktivierte) Felder */
.quiz-container[disabled] {
    opacity: 0.5;
}

#answerInput[disabled], #restart-btn[disabled], #end-btn[disabled] {
    background-color: #ddd;
    cursor: not-allowed;
}

#startBtn {
    padding: 10px 10px;
    font-size: 15px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 5%;
}

#startBtn:hover {
    background-color: #45a049; 
    transform: scale(1.05);
}

#startBtn:active {
    background-color: #388e3c; 
    transform: scale(1);
}
button {
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
/* Responsive Styles */
@media (max-width: 1024px) {
    .quiz-container {
        padding: 12px;
        width: 90%;
    }

    .quiz-info {
        padding: 0 30px;
    }

    input[type="text"] {
        width: 80%;
    }

    .question-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .question-list p {
        font-size: 1rem;
    }
    #otherPageBtn {
        font-size: 0.85rem;
        margin-bottom: 1%;
    }
}
@media screen and (max-width: 768px) {
    .quiz-container {
        padding: 12px;
        width: 90%;
    }

    .quiz-info {
        padding: 0 30px;
    }

    input[type="text"] {
        width: 80%;
    }

    .question-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .question-list p {
        font-size: 1rem;
    }
    #otherPageBtn {
        font-size: 0.85rem;
        margin-bottom: 1%;
    }
    
}

@media screen and (max-width: 480px) {
    body {
        padding: 5px;
    }

    .quiz-container {
        width: 95%;
        padding: 10px;
        width: 90%;
    }

    .quiz-info {
        flex-direction: column;
        align-items: center;
        font-size: 1rem;
        padding: 0 10px;
    }

    input[type="text"] {
        width: 90%;
        font-size: 0.9rem;
    }

    .question-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .question-list p {
        font-size: 0.8rem;
    }
    #otherPageBtn {
        font-size: 0.8rem;
        margin-bottom: 1%;
    }
}
