body {
    font-family: Arial, sans-serif;
    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;
    background: linear-gradient(45deg, #663573, #225668, #6643a7);
    background-size: 300% 300%;
    animation: gradientAnimation 20s infinite;
}
h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: #e3ecf6;
  }
  h3 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: #dfebee;
  }
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.quiz-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 400px;
    font-size: 1.2rem;
    padding: 10px 20px;
    margin-bottom: 3%;
}
.hidden {
    display: none;
}
#score {
    text-align: left;
    flex: 1;
}

#timer {
    text-align: right;
    flex: 1;
}
#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%;
}
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:  #27a25a;
    color: white;
}
#end-btn {
    background: #d16762;
    color: white;
}
/* Dropdown-Menü */
.dropdown {
    position: relative;
    display: inline-block;
    margin-top: 0.5%;
}

.dropdown-btn {
    background-color: rgba(183, 135, 93, 0.1);
    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: #207e9a;
    transform: scale(1.05);
}
.dropdown-btn:active {
    background-color: #207e9a;
    transform: scale(1.05);
}
#startBtn {
    padding: 10px 10px;
    font-size: 15px;
    background-color: rgba(183, 135, 93, 0.1);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 5%;
}
#startBtn:hover {
    background-color: #27a25a; 
    transform: scale(1.05);
}
#startBtn:active {
    background-color: #1ba10f; 
    transform: scale(1);
}
.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;
}


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);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background: linear-gradient(to right, #663573, #225668 );
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 200px;
    margin: 15% auto;
    width: 30%;
    
}
.modal-content p,h2 {
    color: white
}
.modal button {
    margin: 10px;
    padding: 10px;
    border: none;
    cursor: pointer;
}
.modal button:hover {
    transform: scale(1.1);
}
#shareWhatsapp {
    background: #25D366;
    color: white;
}
#shareTwitter {
    background: #1DA1F2;
    color: white;
}
#copyLink {
    background: #555;
    color: white;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}
#closeModalButton {
    margin-top: 10px;
    background-color: #ebebeb;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

#closeModalButton:hover {
    background-color: #bbb;
}
/* 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%;
    }
}
