/* Main styles for Once in the UA */

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

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #f8f8f8;
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1001 !important;
    border-bottom: 1px solid #ddd;
}

header h1 {
    color: #333;
    margin: 0;
}

/* Main content with text description, on the left of the page */
.main-content {
    display: flex;
    flex: 1;
}

.description {
    width: 35%;
    padding: 1rem;
    background-color: bisque;
    overflow-y: auto;
}

.description p {
    text-align: left;
    line-height: 1.6;
}

/* Map container, on the right of the page */
.map-container {
    width: 65%;
    background-color: burlywood;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.map-container svg {
    transform: scale(0.73);
    border-radius: 350px;
}

.map-container h4 {
    color: #333;
    margin: 0;
}

#map {
    height: calc(100vh - 200px);
    width: 100%;
    margin: 0;
}

/* Footer styles */
footer {
    background-color: #f8f8f8;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #ddd;
}

footer a {
    display: inline-block;
    padding: 0.3em 0.3em;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    margin: 0.3rem 0;
}

footer h3 {
    color: #344;
    margin: 1rem 0 0.5rem;
}

footer ul {
    list-style-type: none;
    padding-left: 0;
}

footer li {
    text-align: left;
    display: inline-block;
    margin: 0 1rem;
}


/* Leaflet map related styles */
.leaflet-marker-icon svg {
    transition: transform 0.2s;
}
.leaflet-control-container {
    z-index: 1000 !important;
}

/* Animation */
#animate-invasion {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin: 1rem 0;
    transition: background-color 0.3s;
}

#animate-invasion:hover {
    background-color: #45a049;
}

#animate-invasion:active {
    background-color: #3e8e41;
}

#reset-invasion {
    padding: 0.5rem 1rem;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.5rem;
    transition: background-color 0.3s;
}

#reset-invasion:hover {
    background-color: #d32f2f;
}

#reset-invasion:active {
    background-color: #b71c1c;
}