body {
    background-color: #191A1A;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white;
}


#map {
    position: absolute; 
    background: linear-gradient(to bottom, #191A1A 56%, #343332 44%);
    top: 0; 
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}




/* SCROLLBAR */

::-webkit-scrollbar {
    width: 10px;
}
  
::-webkit-scrollbar-track {
background: #464646;
}

::-webkit-scrollbar-thumb {
background: #a3a3a3;
}

::-webkit-scrollbar-thumb:hover {
background: #202020;
}




/* SIDEBAR */

.sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 350px;
    height: 100%;
    background-color: rgba(19, 19, 19, 0.7);
    color: white;
    overflow-x: hidden;
    transition: 0.5s;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 2;
}


.sidebar.active {
    right: 0;
}


#sidebar-content h2, p {
    margin: 20px 0;
}


.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
    color: rgb(255, 255, 255);
}



.country-header {
    text-align: center;
}

.country-header-container {
    background-color: #363636af;
    display: inline-block;
    width: 115%;
    margin-left: -20px;
    margin-right: -20px;
}



/* YEAR PICKER */

#year-picker-container {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    background-color: #818181;
    height: 50px;
    box-sizing: border-box;
    z-index: 2;
    padding: 0;
}

#year-display {
    margin: 0;
    color: white;
    text-shadow: 3px 3px 0px #000000;
    font-weight: 100;
    background-color: #00000000;
    border: 0;
    width: 95px; /* Adjusted width for more space */
    text-align: center;
    font-size: 30px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    outline: none;
    padding: 0; /* Remove default padding */
}

.arrow-button {
    border: 0;
    color: white;
    padding: 10px;
    cursor: pointer;
    background-color: #4e4d4c;
    font-size: 30px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    width: 40px;
    height: 100%; /* Make sure buttons match the height of the container */
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-button:hover {
    color: gray;
    text-shadow: 0 0 10px #C49BBB;
}

.arrow-button:active {
    color: rgb(71, 71, 71);
}
/* line drawing */
.animated-curve {
    pointer-events: none !important;
}





/* Zoom Control */
.leaflet-control-zoom {
    background-color: #818181 !important;
    border-radius: 5px !important;
    padding: 5px !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    background-color: #4e4d4c !important;
    color: white !important;
    border-radius: 3px !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    text-align: center !important;
    cursor: pointer !important;
}   





/* loader: https://uiverse.io/Shoh2008/ugly-elephant-80 */
#loader {
    width: 45px;
    height: 40px;
    position: absolute;
    right: 50%;
    top: 50%;
    background: linear-gradient(#0000 calc(1*100%/6),#fff 0 calc(3*100%/6),#0000 0),
              linear-gradient(#0000 calc(2*100%/6),#fff 0 calc(4*100%/6),#0000 0),
              linear-gradient(#0000 calc(3*100%/6),#fff 0 calc(5*100%/6),#0000 0);
    background-size: 10px 400%;
    background-repeat: no-repeat;
    animation: matrix 1s infinite linear;
    z-index: 50;
  }
  
@keyframes matrix {
0% {
    background-position: 0% 100%, 50% 100%, 100% 100%
}

100% {
    background-position: 0% 0%, 50% 0%, 100% 0%
}
}

#stopper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background-color: #4e4d4c3b; /* Semi-transparent overlay */
}



#name {
    z-index: 10;
    color: rgba(255, 255, 255, 0.3);
    position: fixed;
    bottom: 5px;
    font-size: 15px;
    text-align: center;
    width: 100%;
    overflow: hidden;
}