
@keyframes titleAnimation {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    50% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-once {
    animation: titleAnimation 3s ease-in-out forwards;
    animation-iteration-count: 1;
}

body {
    margin: 0;
    padding: 0;
}


#Title {
    text-align: center;
    font-size: 48px;
    margin-top: 10px;
    font-family: 'Cutive Mono', sans-serif;
    animation: titleAnimation 3s ease-in-out forwards;
}

#mapTitle {
    text-align: left;
    font-size: 24px;
    margin-left: 190px;
    font-family: 'Cutive Mono', sans-serif;
    animation: titleAnimation 3s ease-in-out forwards;
}

#mapSubtitle {
    text-align: justify;
    font-size: 18px;
    margin-left: 190px;
    width: 80%;
    letter-spacing: -1.5px;
    font-family: 'Cutive Mono', sans-serif;
    animation: titleAnimation 3s ease-in-out forwards;
}

/* Limiting map size */
#map, 
#map2 {
    width: 80%; 
    height: 600px;
    margin: 20px auto; 
}

/* Tab layout */
.tab {
    width: 80%;
    margin: 20px auto; 
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    position: relative;
    top: 15px;
    z-index: 999;
    animation: titleAnimation 3s ease-in-out forwards;
}

.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
    font-family: 'Cutive Mono', sans-serif;
}

.tab button:hover {
    background-color: #ddd;
    border-bottom: 2px solid #d93b18;
}

.tab button.active {
    background-color: #ccc;
    border-bottom: 2px solid #d93b18;
}

.dropdown-container {
    position: absolute;
    /* left: 300px;  */
    top: 50%; 
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.dropdown {
    padding: 10px;
    border-radius: 0px;
    /* border: 1px solid #ccc; */
    background-color: #f1f1f1;
    font-size: 12px;
    font-family: 'Cutive Mono', sans-serif;
    font-weight: bold;
    border: none;
    outline: none;
}

/* Adjust left position for larger screens */
@media screen and (min-width: 1801px) {
    .dropdown-container {
        left: 59%; 
    }
    .dropdown {
        font-size: 15px;
    }
}
@media screen and (min-width: 1730px) and (max-width: 1800px) {
    .dropdown-container {
        left:62%;
    }
}
@media screen and (min-width: 1325px) and (max-width: 1729px) {
    .dropdown-container {
        left: 50%; 
    }
}
@media screen and (min-width: 1011px) and (max-width: 1324px) {
    .dropdown-container {
        left: 45%; 
    }
}
@media screen and (max-width: 1010px) {
    .dropdown-container {
        left: 35%; 
    }
}

/* CSS for zero value toggle container */
.zero-value-toggle {
    display: flex;
    align-items: center;
    position: relative;
    transform: translateX(46%);
    top: 35px;
}

.zero-value-toggle label {
    margin-right: 8px; 
    font-family: 'Noto Serif Gurmukhi', sans-serif;
}


/* Slider styling */
#yearSlider{
    left: 10%;
    transform: translateY(-50%);
    width: 80%;
    margin-bottom: 50px;    
}

#magnitudeSlider {
    position: absolute;
    left: 60px;
    top: 380px; 
    height: 600px; 
}


/* Legend Styling */
.legend {
    border: 2px solid #ddd;
    font-family: 'Noto Serif Gurmukhi', sans-serif;
    font-weight: bold;
    font-size: 10px;
    color: #0c0c0c;
    text-align: left;
    width: 70px;
    height: 125px;
    background: #fff;
    opacity: 0.8;
    padding: 7px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    opacity: 1;
    border: 1px solid #ccc;
    border-radius: 50%;
}

/* Initially hide the elements */
#mapMeasure,
#mapRegion,
#zeroValueToggle,
#yearSlider,
#magnitudeSlider,
label[for="zeroValueToggle"] {
    display: none;
}

#scatterPlot{
    animation: titleAnimation 3s ease-in-out forwards;
}

.axis path {
    display: none;
    }

.EQcontainer {
    display: flex;
}

#histogramPlot {
    width: 50%;
}

#eqInfo {
    width: 50%;
    padding: 0px;
}

#eqInfo h2,
#eqInfo p {
    margin-top: 0;
    font-family: 'Cutive Mono', sans-serif;
}

#colorLegend {
    position: absolute;
    left: 220px;
    transform: translateY(50%);
    display: flex;
    flex-direction: column;
    font-size: 10px;
    font-family: 'Noto Serif Gurmukhi', sans-serif;
}

.color-legend div {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.legend-circle-custom {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    border: 1px solid #333;
}