body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

h1 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

#flag-container {
    width: 400px;
    height: 250px;
    border: 2px dashed #bdc3c7;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 10px;
    box-sizing: border-box;
    position: relative;
}

#flag-container img,
#flag-container svg {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    object-fit: contain;
}

#flag-container p {
    color: #7f8c8d;
    text-align: center;
}

.flag-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    color: white !important;
    padding: 5px;
    font-size: 0.8rem;
    margin: 10px;
    border-radius: 4px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#flag-container:hover .flag-caption {
    opacity: 1;
}

.input-area {
    display: flex;
    gap: 10px;
}

#country-input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    width: 300px;
}

#generate-btn {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#generate-btn:hover {
    background-color: #2980b9;
}

