/*Main CSS*/

:root{
    /* --bgc: #05223d; */
    --bgc: #093b43;
    /* --hbgc: #28405e; */
    --hbgc: #6a8083;
}
::-webkit-scrollbar{
    width: 7px;
}
::-webkit-scrollbar-thumb{
    background: grey;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover{
    background: rgb(189, 188, 188);
}
html{
    scroll-behavior: smooth;
    font-size: 1.2rem;
}

*{
    color: whitesmoke;
    font-family:'Courier New', Courier, monospace;
    font-weight: 500;
}

body{
    
    background-color: var(--bgc);
    margin-left: 2vw;
    margin-right: 2vw;
    margin-top: 0;
}


nav{
    display: flex;
    justify-content:space-between;
    border-bottom: 1px solid grey;
    align-items: center;
    padding-left: 4vw;
    padding-right: 4vw;
    position: sticky;
    top: 0;
    z-index: 9;
    background-color: var(--bgc);
}
nav > ul{
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    align-items: center;
    width: 60vw;
}
nav a{
    text-decoration: none;
    padding: 5px;
}
nav img{
    height: 8vh;
}

nav li>a:hover{
    background-color: var(--hbgc);
}
#menubtn{
    padding: 5px;
}
#menubtn:hover{
    background-color: var(--hbgc);
    cursor: pointer;
}

.menudrop{
    background-color: var(--hbgc);
    border: 1px solid gray;
    width: 25vw;
    position: fixed;
    right: -70vw;
    visibility: hidden;
    z-index: 10;

    transition: all 0.5s ease-in-out;
}
.menudrop ul{
    list-style: none;
    background-color: var(--hbgc);
    padding-left: 25px;
}
.menudrop a{
    display: inline-block;
    width: 90%;
    text-decoration: none;
    background-color: var(--hbgc);
    padding: 1.5vh 0 1.5vh 1.5vw;
}
.menudrop li{
    background-color: var(--hbgc);
}
.menudrop a:hover{
    background-color: var(--bgc);
}

.row{
    margin-top: 2vh;
    margin-bottom: 8vh;
    display: flex;
    justify-content: space-between;
    border: 1px solid grey;
}

.col1{
    width: 40vw;
    height: 85vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s ease-in-out;

}
.col1:hover{
    background-color: grey;
    opacity: 0.6;
}
.col2{
    width: 50vw;
    height: 85vh;
    align-content: center;
    padding-left: 1vw;
    padding-right: 1vw;
    background-color: var(--bgc);
}

.teamrow{
    width: 100%;
    height: 35vh;
    margin-top: 2vh;
    margin-bottom: 8vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid grey;
}
.membercard{
    width: 8rem;
    height: 8rem;
    border: 5px solid grey;
    border-radius: 5.7rem;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: end;
}

.membercard > div{
    width: 100%;
    text-align: center;
    background-color: grey;
    opacity: 0.9;
    padding-top: 0.2rem;
    padding-bottom: 0.8rem;
    border-radius: 0 0 15rem 15rem;
    font-size: 1rem;

    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
.membercard:hover > div{
    opacity: 0.8;
    cursor: pointer;
}

.movearrow{
    width: 2rem;
    height: 100%;
    background-color: gray;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.3;
    transition: opacity 0.2s ease-in-out;
}
.movearrow div{
    background-color: grey;
}
.movearrow:hover{
    opacity: 0.8;
    cursor: pointer;
}


.footer{
    height: 30vh;
    display: grid;
    grid-template-areas: "contact-us contact-us"
                        "call visit"
                        "mail visit"
                        "tm tm";
    gap: 0 2vw;
    border: 1px solid grey;
    justify-items: center;
    align-items: center;
    /* padding-top: 2vh; */
    padding-bottom: 1vh;
}
.contact-us{
    grid-area: contact-us;
    text-align: center;
}
.call{
    grid-area: call;
}
.mail{
    grid-area: mail;
}
.visit{
    grid-area: visit;
}
.tm{
    grid-area: tm;
    text-align: center;
}

.footer a{
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 5px;
}

.footer a:hover, .footer a:hover span{
    background-color: var(--hbgc);
}

.exact-contact{
    display: inline;
}
.contact-text{
    display: none;
}



@keyframes slidein-animation{
    from{
        right: -100vw;
    }to{
        right: 2vw;
    }
}
@keyframes slideout-animation{
    from{
        right: 2vw;
    }to{
        right: -100vw;
    }
}


@media screen and (max-width: 576px){
    html{
        font-size: 1rem;
    }
    nav > ul {
        display: none;
    }
    .menudrop{
        width: 220px;
    }

    .row, .teamrow{
        margin-bottom: 2vh;
    }
    .col1{
        width: 100vw;
        height: 60vh;
    }
    .col2{
        width: 70vw;
        height: 60vh;
        padding-left: 2vw;
        padding-right: 2vw;
        display: none;
        position: absolute;
        right: -100vw;
        z-index: 5;
        border: 1px solid grey;

    }
    .slidein{
        right: 2vw;
        animation: slidein-animation 0.5s ease-in-out;
    }
    .slideout{
        
        animation: slideout-animation 0.5s ease-in-out;
        right: -100vw;
    }

    /* .footer{
        height: 30vh;
        padding-top: 1vw;
        padding-bottom: 2vh;
    } */
    .exact-contact{
        display: none;
    }
    .contact-text{
        display: inline;
    }
}

@media screen and (min-width: 576px) and (max-width: 768px){
    html{
        font-size: 1rem;
    }
    nav > ul {
        display: none;
    }
    .menudrop{
        width: 220px;
    }
}
@media screen and (min-width: 768px) and (max-width: 1100px){
    html{
        font-size: 1rem;
    }
    #menubtn{
        display: none;
    }
    .menudrop{
        display: none;
    }
}
@media screen and (min-width: 1100px){
    #menubtn{
        display: none;
    }
    .menudrop{
        display: none;
    }
}


/*Different pages CSS*/
.heading{
    text-align: center;
}

/*Sensor.html css*/
.sensor-card, .headers{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 2vw;
    margin-right: 2vw;
    border: 1px solid grey;

    padding-right: 2vw;
}
.sensor-card{
    margin-bottom: 2vh;
}
.headers{
    justify-content: space-around;
}
.sensor-image{
    width: 30vh;
}

/*map.html CSS*/
#map{
    margin-bottom: 5vh;
}

/*data.html CSS*/
#ulist div:hover{
    cursor: pointer;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
}
.downloadlinks{
    height: 43vh;
}

/*sensor CSS here*/
/* body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f3f4f6;
} */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px;
}

.product-card {
    position: relative;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* box-shadow: 0 4px 20px #6a808343; */
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    /* overflow-y: auto; */

}

.product-card:hover {
    transform: translateY(-5px);
}

.image-container {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #e5e7eb;
}

.product-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-name {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    font-weight: bold;
    color: #333;
    text-align: center;
    transition: bottom 0.3s ease;
    z-index: 2;
}

.product-card:hover .product-name {
    bottom: 87%;
}

.product-details {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    /* background: #6a8083d4; */
    color: #fff;
    padding: 12px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
    overflow-y: auto;

}

.product-card:hover .product-details {
    top:13%;
    opacity: 1;
}


.product-details::-webkit-scrollbar {
    width: 4px;
}
.product-details::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    /* border-radius: 4px; */
}



/*map CSS here*/
/* Targeting all Leaflet custom controls */
.leaflet-control-custom {
    margin: 1vh;
}

/* Customizing dropdowns inside the controls */
.leaflet-control-custom select {
    background-color: #1e1e2f6f;
    border: 1px solid grey;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
}

/* Customizing the legend image container */
.legend-control {
    padding: 6px;
    border-radius: 6px;
    max-width: 70px;
}
.leaflet-bottom.leaflet-left{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
