* {
    outline: none !important;
}

body {
    font-family: 'DIN Next Rounded', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff; /* White background */
}

.container {
    padding-top: 0;
}

.nav-wrapper {
    padding: 0 20px;
    display: flex;
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Align items to the left and right */
}

.card-panel {
    padding: 20px;
    border-radius: 12px; /* Rounded corners */
    background-color: #ffffff; /* White background */
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1e88e5; /* Blue color */
}

label {
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
    color: #333;
}

select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    padding: 10px 20px;
    border: none;
    background-color: #1e88e5; /* Blue color */
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px 0;
    width: 100%;
    transition: background-color 0.3s ease;
    font-family: 'DIN Next Rounded';
    font-weight: 700;
}

button:hover {
    background-color: #1565c0; /* Darker shade for hover */
}

#quiz-container {
    display: none;
    overflow: hidden; /* Prevent scrolling */
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    position: relative;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#answer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    visibility: hidden; /* Hide answers until image is loaded */
}

#answer-buttons button {
    background-color: #f0f0f0; /* Slightly whiter background */
    color: #333;
    transition: background-color 0.3s ease;
    white-space: pre-wrap; /* Allow line breaks */
    width: 100%; /* Full width by default */
}

#answer-buttons button:hover {
    background-color: #e5e5e5; /* Darker shade for hover */
}

/* Responsive image */
#question-image {
    width: 100%;
    max-width: 200px; /* Smaller max width */
    margin: 0 auto; /* Center the image */
    transition: border 0.5s ease-in-out;
}

@media (min-width: 768px) {
    #question-image {
        max-width: 300px; /* Larger max width for bigger screens */
    }
}

@media (min-width: 1024px) {
    #question-image {
        max-width: 200px; /* Smaller max width for very large screens */
    }
}

@media (min-width: 768px) {
    #answer-buttons button {
        width: calc(48% - 10px); /* Slightly smaller than 50% */
    }
}

@media (min-width: 1024px) {
    #answer-buttons button {
        width: calc(48% - 10px); /* Slightly smaller than 50% */
    }
}

@media (min-width: 1024px) {
    #answer-buttons {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    #answer-buttons button {
        flex: 1 1 calc(48% - 10px); /* Two buttons per row */
        margin: 10px;
    }
}

/* Description container styles */
.description-container {
    display: none;
    background-color: #ffffff; /* White background */
    color: #000; /* Black text */
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center; /* Center the description container */
}

.description-container h5 {
    margin: 0;
    font-size: 18px;
    color: #000; /* Black text */
}

.description-container div {
    margin-top: 10px;
    font-size: 16px;
    color: #000; /* Black text */
}

/* User answer styles */
#user-answer {
    margin-top: 10px;
    font-size: 16px;
}

#user-answer.correct {
    color: green;
    font-weight: bold;
}

#user-answer.incorrect {
    color: red;
    font-weight: bold;
}

/* Summary screen styles */
#summary-screen {
    display: none;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background-color: #ffffff; /* White background */
}

#summary-screen h5 {
    font-size: 24px;
    color: #1e88e5; /* Blue color */
    margin-bottom: 20px;
}

#summary-screen p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

#summary-screen .btn {
    background-color: #1e88e5; /* Blue color */
    color: white;
    font-family: 'DIN Next Rounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#summary-screen .btn:hover {
    background-color: #1565c0; /* Darker blue for hover */
}

/* Topic buttons */
.topic-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center icon and text */
    margin: 20px;
    cursor: pointer;
    background-color: #e3f2fd; /* Light blue background */
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    font-family: 'DIN Next Rounded', sans-serif; /* Duolingo-like font */
    font-weight: 700;
}

.topic-button:hover {
    background-color: #bbdefb; /* Darker shade for hover */
}

.topic-button i {
    font-size: 48px;
    color: #1e88e5; /* Blue color */
    font-family: 'Material Icons'; /* Use Material Icons font */
}

.topic-button span {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Arrange topic buttons in rows for larger screens */
@media (min-width: 768px) {
    #topic-selection {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .topic-button {
        flex: 1 1 calc(50% - 10px); /* Two buttons per row */
        margin: 10px;
    }

    .topic-button i {
        font-size: 64px; /* Larger icon */
    }

    .topic-button span {
        font-size: 18px; /* Larger text */
    }
}

@media (min-width: 1024px) {
    .topic-button {
        flex: 1 1 calc(33.33% - 10px); /* Three buttons per row */
        height: 200px; /* Make buttons square */
    }

    .topic-button:last-child {
        flex: 1 1 100%; /* Stretch the last button if the number of buttons is odd */
        height: auto; /* Reset height for the last button */
    }

    .topic-button i {
        font-size: 72px; /* Even larger icon */
    }

    .topic-button span {
        font-size: 20px; /* Even larger text */
    }
}

/* Modal styles */
.modal.modal-fullscreen {
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.modal-content img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.modal-footer {
    display: none;
}

/* Back button styles */
#back-button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
    padding: 10px;
    background-color: transparent; /* No background */
    border: none;
    cursor: pointer;
    font-size: 24px; /* Larger font size for the icon */
    color: white; /* White icon color */
    transition: color 0.3s ease;
}

#back-button:hover {
    color: #bbdefb; /* Lighter shade on hover */
}

/* Back to home button for larger screens */
#back-to-home {
    display: none;
}

@media (min-width: 1024px) {
    #back-to-home {
        display: block;
        margin-left: 20px;
        color: white;
        font-size: 16px;
        cursor: pointer;
    }
}

/* Screen transition styles */
.screen {
    display: none;
    position: relative;
}

.screen.active {
    display: block;
}

/* Loading snackbar styles */
#loading-snackbar {
    visibility: hidden;
    width: 100%;
    background-color: #4caf50; /* Zöld háttér */
    color: #fff;
    text-align: center;
    padding: 8px;
    position: absolute; /* Fontos, hogy a navigáció mögé kerüljön */
    z-index: -1; /* Hátrébb helyezzük */
    top: 0;
    left: 0;
    font-size: 17px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease-in-out, z-index 0s 0.5s; /* Animáció */
    transform: translateY(-100%); /* Alaphelyzetben elrejtve */
}

#loading-snackbar.show {
    visibility: visible;
    z-index: 1000; /* Láthatóvá tesszük */
    transform: translateY(0); /* Lecsapódik */
    transition: transform 0.5s ease-in-out, z-index 0s; /* Azonnal vált z-index */
}

#loading-snackbar.hide {
    visibility: hidden; /* Elrejtve */
    z-index: -1; /* Hátrébb helyezzük */
    transform: translateY(-100%); /* Felfelé csúszik */
    transition: transform 0.5s ease-in-out, visibility 0s 0.5s, z-index 0s 0.5s; /* Simán csúszik és késleltetve állítja a láthatóságot */
}

.loading-content {
    display: flex;
    align-items: center;
}

.loading-icon {
    margin-right: 10px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Skeleton loading animation */
.skeleton {
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: pulse 1.5s infinite;
}

.skeleton-topic {
    height: 50px;
    width: 100%;
}

.skeleton-image {
    height: 200px;
    width: 100%;
}

.skeleton-question {
    height: 20px;
    width: 100%;
    margin: 20px 0;
}

.skeleton-answer {
    height: 40px;
    width: 100%;
}

@keyframes pulse {
    0% {
        background-color: #e0e0e0;
    }
    50% {
        background-color: #f0f0f0;
    }
    100% {
        background-color: #e0e0e0;
    }
}

/* Quiz header and progress bar styles */
.quiz-header {
    display: grid;
    grid-template-columns: auto 1fr; /* Close button and progress bar */
    align-items: center;
}

#close-quiz {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    margin-right: 10px; /* Add some space between the button and the progress bar */
}

.progress {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.determinate {
    background-color: #4caf50 !important;
    height: 100%;
    transition: width 0.3s ease;
}

/* Tovább button styles */
#next-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4caf50 !important; /* Green background */
    color: white !important;
    font-family: 'DIN Next Rounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    max-width: 150px;
}

#next-button:hover {
    background-color: #388e3c !important; /* Darker green for hover */
    transition: all 0.3s ease;
}

#next-button i {
    margin-left: 10px;
}

@media (max-width: 767px) {
    #next-button {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 90%;
    }
}

@media (min-width: 768px) {
    #next-button {
        position: fixed;
        right: 20px;
        bottom: 20px;
    }
}

@media (min-width: 768px) {
    #next-button {
        position: absolute;
        right: 20px;
        bottom: 20px;
    }
}

.version-number {
    text-align: center;
    font-family: 'DIN Next Rounded', sans-serif;
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}

/* Custom button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background-color: #1e88e5;
    color: white;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    font-family: 'DIN Next Rounded', sans-serif;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #1565c0;
}

.btn-flat {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

.btn-floating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e57373;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-floating:hover {
    background-color: #d32f2f;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e57373;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-close:hover {
    background-color: #d32f2f;
}

.responsive-img {
    max-width: 100%;
    height: auto;
}

/* Skeleton loading animation */
.skeleton {
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: pulse 1.5s infinite;
}

.skeleton-topic {
    height: 50px;
    width: 100%;
}

.skeleton-image {
    height: 200px;
    width: 100%;
}

.skeleton-question {
    height: 20px;
    width: 100%;
    margin: 20px 0;
}

.skeleton-answer {
    height: 40px;
    width: 100%;
}

@keyframes pulse {
    0% {
        background-color: #e0e0e0;
    }
    50% {
        background-color: #f0f0f0;
    }
    100% {
        background-color: #e0e0e0;
    }
}

/* ...existing code... */

#question-text {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

#question-image {
    display: block;
    margin: 0 auto 20px auto; /* Center the image and add bottom margin */
    transition: border 0.5s ease-in-out;
    border: 5px solid transparent; /* Transparent border by default */
    transition: border 0.3s ease-in-out;
}

@media (min-width: 1024px) {
    #quiz-container {
        /*max-width: 800px;*/
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #answer-buttons {
        justify-content: center;
    }
}

/* ...existing code... */

#question-image.correct {
    border-color: green;
}

#question-image.incorrect {
    border-color: red;
}

#feedback {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    opacity: 0;
    min-height: 24px; /* Ensure the space is always reserved */
    line-height: 24px; /* Center the text vertically */
    transition: opacity 0.3s ease-in-out;
    visibility: hidden; /* Hide the text */
}

#feedback.show {
    opacity: 1;
    visibility: visible; /* Show the text */
}

#feedback.correct {
    color: green;
}

#feedback.incorrect {
    color: red;
}

/* ...existing code... */

.nav-extended {
    background-color: #ffffff; /* White background */
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 4px solid #cccccc; /* Thick gray border */
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand-logo {
    font-size: 20px;
    color: #1e88e5; /* Blue color */
    font-family: 'DIN Next Rounded', sans-serif;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-button {
    font-size: 24px;
    color: #1e88e5; /* Blue color */
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 20px;
}

.back-button:hover {
    color: #1565c0; /* Darker shade on hover */
}

/* ...existing code... */

/* ...existing code... */

#summary-container {
    display: none;
    text-align: center;
    background-color: #1e88e5; /* Blue background */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    color: white;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    overflow: hidden; /* Prevent scrolling */
}

#summary-container.show {
    opacity: 1;
    transform: translateY(0);
}

#summary-container .card-panel {
    background: none;
    box-shadow: none;
}

.trophy-icon {
    font-size: 100px;
    color: white;
    animation: shake 0.5s ease-in-out 3; /* Shake for 1.5 seconds (3 iterations) */
    margin-bottom: -20px; /* Move the icon closer to the text */
    position: relative;
    transform: rotate(0deg); /* Initial tilt left */
    transition: transform 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: rotate(-10deg); /* Tilt left */
    }
    50% {
        transform: rotate(10deg); /* Tilt right */
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.result-title {
    font-size: 30px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

#question-count-container .result-title {
    color: #1e88e5; /* Blue color */
    text-align: center;

}

.result-score {
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
}

.btn-back {
    background-color: #ffffff; /* White background */
    color: #1e88e5; /* Blue text */
    font-family: 'DIN Next Rounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-back:hover {
    background-color: #e0e0e0; /* Light gray for hover */
}

#summary-container .btn {
    background-color: #1e88e5; /* Blue color */
    color: white;
    font-family: 'DIN Next Rounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#summary-container .btn:hover {
    background-color: #1565c0; /* Darker blue for hover */
}

#summary-container .fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: -1; /* Behind the content */
    overflow: hidden; /* Prevent overflow */
}

.firework {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: explode 2s ease-out forwards; /* Slow down the explosion animation */
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(50);
        opacity: 0;
    }
}

/* App-bar styles */
.app-bar {
    background-color: #1e88e5; /* Blue color */
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 20px;
    font-family: 'DIN Next Rounded', sans-serif;
    font-weight: 700;
}

.version-number {
    text-align: center;
    font-family: 'DIN Next Rounded', sans-serif;
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}

/* ...existing code... */

/* ...existing code... */

#install-prompt {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background-color: #ffffff; /* White background */
}

#install-prompt h5 {
    font-size: 24px;
    color: #1e88e5; /* Blue color */
    margin-bottom: 20px;
}

#install-prompt .btn {
    background-color: #1e88e5; /* Blue color */
    color: white;
    font-family: 'DIN Next Rounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#install-prompt .btn:hover {
    background-color: #1565c0; /* Darker blue for hover */
}

/* ...existing code... */

/* ...existing code... */

/* Small button styles */
.btn-small {
    display: inline-block;
    padding: 5px 10px;
    border: none;
    border-radius: 12px;
    background-color: #1e88e5;
    color: white;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    font-family: 'DIN Next Rounded', sans-serif;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn-small:hover {
    background-color: #1565c0;
}

/* App-bar button styles */
.app-bar-button {
    background-color: #1e88e5;
    color: white !important;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'DIN Next Rounded', sans-serif;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.app-bar-button:hover {
    background-color: #1565c0;
}

/* ...existing code... */

/* ...existing code... */

#report-container {
    display: none;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background-color: #ffffff; /* White background */
}

#report-container h5 {
    font-size: 24px;
    color: #1e88e5; /* Blue color */
    margin-bottom: 20px;
}

#report-container .input-field {
    margin-bottom: 20px;
}

#report-description {
    width: 100%;
    height: 150px; /* Increase height */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'DIN Next Rounded', sans-serif;
    font-weight: 400;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

#report-description:focus {
    border-color: #1e88e5; /* Blue color for focus */
    outline: none;
}

#report-container .btn {
    background-color: #1e88e5; /* Blue color */
    color: white;
    font-family: 'DIN Next Rounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#report-container .btn:hover {
    background-color: #1565c0; /* Darker blue for hover */
}

/* ...existing code... */

/* ...existing code... */
#question-count-form{
    text-align: center;
}
.duolingo-input {
    width: 200px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    font-family: 'DIN Next Rounded', sans-serif;
    font-weight: 700;
    text-align: center;
}

/* ...existing code... */

button {
    padding: 12px 24px;
    border: none;
    background-color: #1e88e5;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px 0;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'DIN Next Rounded';
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
button:hover {
    background-color: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}