:root {
    --primary-color: #0984e3;
    --primary-dark: #0056b3;
    --bg-color: #f0f4f8;
    --text-color: #2d3436;
    --text-light: #636e72;
    --card-bg: #ffffff;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: transparent;
    width: 100%;
    max-width: 600px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

header p {
    color: var(--text-light);
    font-size: 16px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

#country-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 50px;
    background: transparent;
}

#search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

#search-btn:hover {
    background-color: var(--primary-dark);
}

.hidden {
    display: none !important;
}

.error-message {
    text-align: center;
    color: #d63031;
    background-color: #ffcccc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.result-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.flag-container {
    width: 100%;
    height: 250px;
    background-color: #dfe6e9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.flag-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.info-container {
    padding: 30px;
}

#country-name {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.info-list {
    list-style: none;
    margin-bottom: 25px;
}

.info-list li {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.label {
    font-weight: bold;
    color: var(--text-light);
    width: 100px;
    display: inline-block;
}

.value {
    font-weight: 600;
    color: var(--text-color);
}

.description-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.description-box .label {
    display: block;
    margin-bottom: 10px;
}

.desc-text {
    line-height: 1.6;
    color: #4a4a4a;
    font-size: 16px;
    word-break: keep-all;
}