/* 1) Import the Barlow font (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;700&display=swap');

/* 2) Global resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 3) Base body styling */
body {
    background-color: #0b1113; /* Dark background */
    color: #fff;              /* White text by default */
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    padding: 10px;
}

/* 4) Links (language switch, etc.) */
a {
    color: #ffed00;          /* Accent color for links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 5) Headers & Typography */
h1, h2, h3 {
    font-weight: 700;        /* Bolder weight for headings */
    margin-bottom: 10px;
}

p, label {
    margin-bottom: 8px;
}

/* 6) Language Switcher Container */
.language-switch {
    margin-bottom: 20px;
}

/* 7) Form Elements */
form {
    max-width: 400px;
    margin: 0 auto;          /* center on page (for desktop) */
    display: flex;
    flex-direction: column;
}

/* Common input styles */
input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #ffed00; /* Accent border */
    background-color: #0b1113;
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
}

/* 8) Button styles */
button, input[type="submit"] {
    background-color: #ffed00;
    color: #0b1113;
    font-weight: 700;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    background-color: #e6d000; /* Slightly darker accent on hover */
}

/* 9) Country Grid (Flag Selection) */
.country-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.country-grid label {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    cursor: pointer;
    text-align: center;
}

.country-grid input[type="radio"] {
    display: none; /* Hide radio inputs for a cleaner look */
}

.country-grid label img.flag {
    width: 40px;
    height: auto;
    margin-bottom: 5px;
}

/* Highlight selected country (optional styling) */
.country-grid input[type="radio"]:checked + img.flag,
.country-grid input[type="radio"]:checked + span {
    outline: 2px solid #ffed00;
    outline-offset: 3px;
}

/* 10) Responsiveness */
@media (max-width: 600px) {
    body {
        padding: 10px;
        font-size: 14px; /* Slightly smaller text on mobile */
    }
    .country-grid label {
        width: 60px; /* narrower flags on mobile */
    }
    input[type="text"] {
        font-size: 0.9rem;
    }
    button {
        font-size: 0.9rem;
        padding: 8px;
    }
}
