* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

main {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

#map-container {
    flex: 1;
    min-width: 600px;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#map {
    width: 100%;
    height: 100%;
}

#country-info {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#ports-list {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#ports-list h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

#ports-details {
    line-height: 1.8;
}

.ports-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.ports-section h4 {
    margin-bottom: 0.5rem;
    color: #34495e;
}

.ports-section ul {
    list-style-type: none;
    padding-left: 1rem;
}

#country-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

#country-details {
    line-height: 1.8;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    #map-container {
        min-width: 100%;
        height: 400px;
    }

    #country-info {
        min-width: 100%;
    }
}