/* Task C.1: Text Styles */
body {
    font-family: Arial, sans-serif;
}

nav a:hover {
    background-color: #f0f0f0;
}

/* Task C.2: Float Property */
img {
    float: left;
    margin-right: 20px;
}

/* Task C.3: Positioning */
section {
    position: relative;
    top: 20px;
    left: 20px;
    width: 70%;
}

/* Task C.4: Selectors */
h2 {
    font-size: 24px;
}

.city-info {
    font-style: italic;
}

#capital-info {
    font-weight: bold;
}

.custom-image {
    max-width: 100%; /* Adjust the value as needed */
}

/* Absolute positioning for image captions */
.image-caption {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 14px;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease-in-out;
}

/* Show caption on image hover */
td:hover .image-caption {
    opacity: 1;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

#errorText {
    color: red;
    animation: blink 1s;
}

