/* Global Styles 
@ author: Vignesh Govindharaj
@mail: writeamailtovignesh@gmail.com
@phone: 9715306688
*/
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(to right,hsl(0, 0%, 100%),#f8f9fa);
    border-radius: 15px;
}

header {
    background: linear-gradient(to right,hsl(0, 5%, 84%),#ffffff);
    padding: 5px 0;
    display: flex;
    width: 100%;
    border-radius: 3px;
    margin-bottom: 0px;
    transition: transform 0.2s ease;
    
}
header:hover {
 transition: transform 0.2s ease;
 transform: scale(1.01);
 background: linear-gradient(to right,#ffffff,hsl(0, 5%, 84%));
 border-radius: 15px;
 display: flex;
 width: 99.5%;
 margin-left:5px;
 margin-top: 0px;
 margin-bottom: 10px;
 border: white;
 box-shadow: 8px 8px 8px rgba(7, 0, 0, 0.884);
  

}
header img {
    max-width: 210px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-bottom: 0px;
    margin-right: 35px;
    margin-left: 35px;
    margin-top:8px;
}

header img:hover {
    transform: scale(1.2);
}

header img:active {
    transform: scale(0.9);
}

header h1 {
    font-size: 22px;
    font-family: Arial, sans-serif;
    display: flex;
    min-width: 200px;
    align-items: center;
    transition: transform 0.2s ease;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 10px;
    font-weight: bold;
    /* Gradient text color */
    background: linear-gradient(to right, #062199, #0629c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

header h1:hover {
    transform: scale(1.05);
}

header h1:active {
    transform: scale(0.95);
    color:rgba(37, 21, 177, 0.8);
}

header h2 {
    font-size: 16px;
    font-family: Arial, sans-serif;
    display: flex;
    min-width: 200px;
    transition: transform 0.5s ease;
    cursor: pointer;
    margin-bottom: 5px;
    margin-left: 35px;
    color: #062199;
}

header h2:hover {
    transform: scale(1.05);
}


.form-group {
    display: flex;
    margin-left: 50px;
    cursor: pointer;
    transition: transform 0.2s ease;  
    margin-top: 0px;
}


.form-group label:hover {
    transform: scale(1.05);
}




select {
    padding: 12px 36px 12px 14px;
    border-radius: 8px;
    border: 1.5px solid #062199;
    cursor: pointer;    
    font-family: Arial, sans-serif;
    transition: 
        transform 0.2s ease,
        border-color 0.2s,
        box-shadow 0.2s;
    font-weight: bold;
    color: rgb(22, 21, 107);
    font-size: 14px;
    margin-left: 35px;
    margin-top: 0px;
    background: linear-gradient(90deg, #f8f9fa 60%, #e3eafc 100%);
    box-shadow: 0 2px 8px rgba(6, 33, 153, 0.07);
    appearance: none;
    position: relative;
}

/* Custom arrow for select */
select::-ms-expand {
    display: none;
}
select::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-top-color: #062199;
    pointer-events: none;
}

select:hover, select:focus {
    font-size: 16px;
    border-color: #0629c5;
    box-shadow: 0 4px 12px rgba(6, 41, 197, 0.13);
    background: linear-gradient(90deg, #e3eafc 60%, #f8f9fa 100%);
}

select:active {
    color: rgb(107, 4, 4);
    border-color: #6b0b0b;
    background: #f3f3f3;
}




.location-button-control:hover {
    transform: scale(1.25);
    font-size: 18px;
    font-family: Arial, sans-serif;
    
}

.overlay-control {   
    color: #062199;
    cursor: pointer;
    transition: transform 0.2s ease; 
     
}

.overlay-control:active {
    transform: scale(0.95);
}

label {
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid #062199;
    font-size: 14px;
    font-family: Arial, sans-serif;
    margin: 5px;
    
    color: linear-gradient(to right, #062199, #062199);
    cursor: pointer;
    transition: transform 0.2s ease;  
    background-color: white;
    padding: 3px;
}

label:hover {
    transform: scale(1.05);
    box-shadow: 8px 6px 4px rgba(7, 0, 0, 0.644);
    font-size: 20px;
    font-family: Arial, sans-serif;
}

label:active {
    transform: scale(0.95);
    color:rgb(107, 4, 4);
}


#map {
    width: 99.5%;
    height: calc(100vh - 100px); /* Adjust height to fill the remaining space */
    padding: 0px 0px;
    border-radius: 10px;
    margin:4px;
    margin-top: 5px;
    left:2px;
    cursor: pointer;
    transition: transform 0.15s ease;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.4); 
}

#map:hover{
    margin-top: -15px;
    transition: transform 0.3s ease;
    height: calc(100vh - 70px); /* Adjust height to fill the remaining space */    
    left:2px;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.8);
    
}

.overlay-control {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: none;
    cursor: pointer;
    transition: transform 0.2s ease;  
}

.legend {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    line-height: 1.5;
    color: #333;
}

.legend:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.legend:active {
    transform: scale(0.95);
}

.legend h4 {
    margin: 0 0 5px;
}

.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
    position: relative;
}

/* Style for the playback controls container */
.playback-controls {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 18px;
    font-family: Arial, sans-serif;
}

/* Style for the control buttons */
.playback-controls img {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0 5px;
    transition: transform 0.2s ease;
}

.playback-controls img:hover {
    transform: scale(1.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    padding: 10px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0);
    width: 18px;
    height: 18px;
    margin: 0 5px;
}

.playback-controls img:active {
    transform: scale(1.2);
}

/* Style for the date slider */
.playback-controls #date-slider {
    flex-grow: 1;
    margin-left: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.playback-controls #date-slider:hover {
    transform: scale(1.1);
}

.playback-controls #date-slider:active {
    transform: scale(0.9);
}

/* Style for the date display */
.playback-controls #date-display {
    margin-left: 10px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.issue-date-display {
    color: #062199;
    cursor: pointer;
    transition: transform 0.2s ease; 
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid #062199;
    font-size: 14px;
    font-family: Arial, sans-serif;
    margin: 10px;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.8);
    color: linear-gradient(to right, #062199, #062199);
    cursor: pointer;
    transition: transform 0.2s ease;  
    background-color: white;
    padding: 3px;
}

.issue-date-display:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-family: Arial, sans-serif;
}

/* Custom styling for the buttons */
#first-button, #prev-button, #play-button, #pause-button, #next-button, #last-button {
    border-radius: 5px;
    padding: 5px;
}

#first-button:active, #prev-button:active, #play-button:active, #pause-button:active, #next-button:active, #last-button:active {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(0.7);
}

/* Responsive Styles */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .form-group {
        flex-direction: column;
        gap: 10px;
    }

    header img {
        margin-bottom: 10px;
    }
}
