/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styling */
body {
    background-color: #f4f4f4;
    text-align: center;
    padding: 10px;
    -webkit-user-select: none; /* Safari and older iOS */
    -moz-user-select: none;    /* Firefox (older versions) */
    -ms-user-select: none;     /* IE/Edge */
    -webkit-touch-callout: none; /* Disables callout (copy/save image) on iOS Safari */
    user-select: none;         /* Standard syntax for modern browsers */
}

img {
    -webkit-user-drag: none;  /* Safari, Chrome, and other WebKit browsers */
    -khtml-user-drag: none;   /* Konqueror browser */
    -moz-user-drag: none;     /* Older Firefox versions */
    -o-user-drag: none;       /* Opera */
    user-drag: none;          /* Standard syntax (not well supported) */
    -webkit-touch-callout: none;
    -webkit-user-select: none; /* Disables text selection on images */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  

/* Game Box */
#box, .gf-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
}

/* Country Name */
#gf-country-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* Points Styling */
.points {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 15px;
}

/* Flag Display */
#flag {
    width: 80%;
    max-width: 250px;
    border-radius: 10px;
    border: 2px solid #ddd;
    margin-bottom: 15px;
}

/* Flag Options - 2 Flags Per Row */
.flag-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.flag-options img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.flag-options img:hover {
    transform: scale(1.05);
    border-color: #007BFF;
}

/* Buttons */
.submit-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    transition: background 0.3s;
}

.submit-button:hover {
    background-color: #0056b3;
}

/* Mobile First: Default Layout */

/* Medium Screens */
@media (min-width: 600px) {
    .flag-options img {
        max-width: 140px;
    }
}

/* Larger Screens */
@media (min-width: 900px) {
    #box, .gf-box {
        max-width: 600px;
    }

    .flag-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .submit-button {
        font-size: 18px;
        padding: 14px 24px;
    }
}



/* Quiz Options */
.quiz-options {
    list-style-type: none;
    margin-bottom: 20px;
}

.option {
    background-color: #e0e7ff;
    color: #333333;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.option:hover {
    background-color: #c7d2fe;
    transform: translateY(-2px);
}

.option.selected {
    background-color: #818cf8;
    color: #ffffff;
    border-color: #4f46e5;
}

.option.correct {
    background-color: #4ade80; /* Green */
    color: #ffffff;
}

.option.incorrect {
    background-color: #f87171; /* Red */
    color: #ffffff;
}

/* Submit Button */
.submit-button {
    background-color: #4f46e5;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #4338ca;
}

/* Result Display */
.result {
    margin-top: 20px;
    font-size: 1.2em;
    color: #10b981; /* Green for correct */
}

.result.incorrect {
    color: #ef4444; /* Red for incorrect */
}



/* Title Styling */
.quiz-question {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Mobile First */
@media (max-width: 600px) {
    .quiz-question {
        font-size: 24px;
        letter-spacing: 1px;
    }
}

/* Larger Screens */
@media (min-width: 900px) {
    .quiz-question {
        font-size: 18px;
    }
}
