* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #FFFFFF; 
    min-height: 100vh;
} */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

/* Header Styles */
header {
    text-align: center;
     background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
    color: white !important;
    padding: 20px;
    border-radius: 15px !important;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}




header h1 {
    font-size: 45px !important;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.2rem;
    color: #FFFFFF;
    opacity: 0.9;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.generator-section {
    background: #F8F9FA !important; /* light-gray */
    padding: 40px !important;
    border-radius: 15px !important;
    text-align: center;
		justify-items:center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #4b85e6 !important; /* light-gold */
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E3A8A; /* primary-blue */
    margin-bottom: 15px;
}

#continent-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px !important;
    font-size: 1rem;
    border: 2px solid #4b85e6 !important; /* primary-gold */
    border-radius: 10px !important;
    background-color: #FFFFFF !important;
    color: #374151 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

#continent-select:focus {
    outline: none !important;
    border-color: #1E3A8A !important;
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.3);
}

.generate-btn {
     background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 15px 40px !important;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.generate-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.5);
}

.generate-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.4rem;
}

.result-section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.result-section.hidden {
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    overflow: hidden;
}

.country-card {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    padding: 40px !important;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid #4b85e6; /* primary-gold */
    position: relative;
    overflow: hidden;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
}

.country-flag {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 0.8s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

#country-name {
    font-size: 2.2rem;
    color: #1E3A8A;
    margin-bottom: 30px;
    font-weight: 700;
}

.country-info {
    display: grid;
    gap: 20px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 !important;
    border-bottom: 2px solid #e8eaec !important;
    transition: all 0.3s ease;
}

.info-item:hover {
    background-color: rgba(218, 165, 32, 0.1);
    border-radius: 10px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #1E3A8A;
    font-size: 1.1rem;
}

.info-item span:last-child {
    color: #374151;
    font-weight: 500;
    text-align: right;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    color: #6B7280;
    border-top: 2px solid #F8F9FA;
}

.generate-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.generate-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .container { padding: 0px !important; }
    header { padding: 30px 20px; margin-bottom: 30px; }
    header h1 { font-size: 35px !important; }
    header p { font-size: 1rem; }
    .generator-section { padding: 30px 20px; }
    #continent-select { max-width: 100%; }
    .generate-btn { width: 100%; justify-content: center; }
    .country-card { padding: 30px 20px; }
    #country-name { font-size: 1.8rem; }
    .country-flag { font-size: 4rem; }
    .info-item { flex-direction: column; align-items: flex-start; gap: 5px; }
    .info-item span:last-child { text-align: left; font-size: 0.95rem; }
}

@media (max-width: 480px) {
    header h1 { font-size: 1.8rem; }
    .generator-section { padding: 25px 15px; }
    .country-card { padding: 25px 15px; }
    .country-flag { font-size: 3.5rem; }
    #country-name { font-size: 1.6rem; }
}

*:focus { outline: 2px solid #1E3A8A; outline-offset: 2px; }
.country-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
