/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Notifications to send to users */
.notification {
    position: fixed;
    bottom: 20px; /* Distance from bottom of viewport */
    left: 50%;
    transform: translateX(-50%); /* Only translate horizontally */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #orange;
    border-radius: 8px;
    color: #666;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

.close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

/* Header for flag image - top 20% */
.header {
    width: 100%;
    height: 20vh;
    background-color: #e0e0e0; /* Placeholder color */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation styles */
.nav-container {
    background-color: #000;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    list-style: none;
    position: relative;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #3366cc; /* Dark blue text */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #222;
}

/* Dropdown styling */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #000;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-item {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #3366cc;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-link:hover {
    background-color: #222;
}

/* Sub-dropdown styling */
.subdropdown-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #000;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Content sections */
.content-section {
    padding: 50px 10%;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.section-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.section-image {
    flex: 1;
    min-width: 300px;
    height: 300px;
    position: relative;
    background-color: #ddd; /* Placeholder */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.image-caption {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
    padding: 0 10px;
    line-height: 1.3;
}

/* Custom image adjustments */
#crop-maypole {
    height: 100%;
}

#anglo-queen {
    width: 100%;
    height: 100%;
    object-position: top;
    object-fit: cover;
}

#heimdallr {
    height: 100%;
}

/* Alternate section layout */
.content-section:nth-child(even) {
    flex-direction: row-reverse;
    background-color: #f0f0f0;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 10%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: #3366cc;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
}

.footer-column a:hover {
    color: #fff;
}

.copyright {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }
    
    .subdropdown-menu {
        position: static;
        width: 100%;
        padding-left: 20px;
    }
    
    .content-section, .content-section:nth-child(even) {
        flex-direction: column;
    }
    
    .section-text, .section-image {
        width: 100%;
    }
}