/* Style for the entire body */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
    padding: 20px;
    box-sizing: border-box;
}

/* Container for the quiz content */
.container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

/* Styles for headings */
h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Styles for options section */
.options {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* General button styles */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 48%;
}

/* Button hover effect */
button:hover {
    background-color: #0056b3;
}

/* Specific styles for quiz mode buttons */
#capitalToCountry,
#countryToCapital {
    background-color: #d1c4e9;
    color: white;
}

/* Styles for active button */
button.active {
    background-color: #7e57c2 !important;
    color: white;
}

/* Styles for submit button */
#submit {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Submit button hover effect */
#submit:hover {
    background-color: #0056b3;
}

/* Styles for flashcard section */
.flashcard {
    margin-bottom: 20px;
}

/* Styles for question text */
#question {
    font-size: 20px;
}

/* Styles for answer input field */
#answer {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Styles for result text */
#result {
    font-size: 20px;
    color: #000;
    margin-bottom: 20px;
}

/* Styles for toggle options section */
.toggle-options {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 20px;
}

/* Styles for labels */
label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #333;
}

/* Styles for history section */
#history {
    margin-top: 20px;
    padding: 0;
}

/* Styles for individual history items */
.history-item {
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

/* Styles for next button */
#next {
    display: block;
    margin: 20px auto 20px auto;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

/* Next button hover effect */
#next:hover {
    background-color: #0056b3;
}

/* Styles for fact text */
.facts {
    color: #000;
}

/* Styles for flag image container */
#flagImage {
    margin-top: 20px;
}

/* Styles for fact images container */
#factImages {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

/* Styles for individual fact images */
.fact-image {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

/* Styles for popup */
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Styles for popup content */
.popup-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
}

/* Styles for close button in popup */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Close button hover effect */
.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Styles for clear history button */
.clear-history {
    background-color: #FF6347;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

/* Clear history button hover effect */
.clear-history:hover {
    background-color: #FF4500;
}
