@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0px;
    padding: 0px;
    font-family: "montserrat";
}

body{
    background-image: url("electrical.jpg");
    background-size: cover;
}

#navbg{
    height: 125px;
    background-color: rgb(0, 174, 255);
    box-shadow: 0px 3px 3px rgba(0,0,0,1);
}

#logo{
    height: 110px;
    width: 110px;
    margin-top: 5px;
    margin-left: 5px;
    filter: drop-shadow(2px 2px 2px black);
}

#cssanchor{
    margin-top: 38px;
    margin-right: 4px;
    border-radius:25px;
    display: inline;
    float: right;
    text-transform: uppercase;
    border: 1px solid ; 
    padding: 10px 5px 10px 5px;
    text-decoration: none;
    color: white;
    position: relative; 
    font-weight: 600;
    letter-spacing: 1px;
    overflow: hidden;
    filter: drop-shadow(1px 3px 0.5px rgba(0, 0, 0, 0));
}

#andiv{
    display: inline;
}

#cssanchor::before{
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 0%;
    background: white;
    overflow: hidden;
    z-index: -1;
    transition: 0.6s;
    bottom: 0;
}

#cssanchor:hover{
    transition: 0.6s; 
    background-color: rgb(14, 175, 250);
    color: rgb(14, 175, 250);
    z-index: 1;
    filter: drop-shadow(1px 3px 0.5px rgba(0, 0, 0, 1));
    transform: translateY(-12px);
}  

#cssanchor:hover::before{
    margin: 0px;
    height: 180%;
}

#cssanchor:active{
    color: black;
    transition: 0s;
    filter: drop-shadow(1px 3px 0.5px rgba(0, 0, 0, 1));
}

#cssanchor:active::before{
    background-color: rgb(62, 249, 255);
    transition: 0s;
}

.imgcontainer{
    position: relative;
}

.imgcontainer .imgwrapper{
    width: 60vw;
    height: 75vh;
    box-shadow: 7px 7px 10px rgba(255,255,255,1);
    margin: 5rem auto;
    overflow: hidden;
}

.imgcontainer .imgwrapperholder{
    display: grid;
    grid-template-columns: repeat(4, 100%);
    height: 100%;
    width: 100%;
    animation: slider 30s ease-in-out infinite alternate;
}

.imgcontainer #slider-img-1{
    background-image: url("elec1.jpg");
    background-position: center;
    background-size: cover;
    border-right: 1px solid black;
}

.imgcontainer #slider-img-2{
    background-image: url("elec2.jpg");
    background-position: center;
    background-size: cover;
    border-left: 1px solid black;
}

.imgcontainer #slider-img-3{
    background-image: url("elec3.jpg");
    background-position: center;
    background-size: cover;
    border-left: 1px solid black;
}

.imgcontainer #slider-img-4{
    background-image: url("elec4.jpg");
    background-position: center;
    background-size: cover;
    border-left: 1px solid black;
}

.imgcontainer .button-holder .button{
    background-color: white;
    width: 15px;
    height: 15px;
    border-radius: 15px;
    display: inline-block;
    margin: .3rem;
}

.imgcontainer .button-holder{
    position: absolute;
    left: 45%;
    bottom: 0%;
}

.imgcontainer .button:hover{
    background-color: yellow;
}

.imgcontainer .button:active{
    background-color: lime;
}

@keyframes slider{
    0%{transform: translateX(0%);}
    15%{transform: translateX(-100%);}
    30%{transform: translateX(-100%);}
    45%{transform: translateX(-200%);}
    60%{transform: translateX(-200%);}
    75%{transform: translateX(-300%);}
    90%{transform: translateX(-300%);}
    100%{transform: translateX(0%);}
}

.foot{
    height: 70px;
    width: 100%;
    background-color: rgb(0, 89, 255);
    align-content: center;
    box-shadow: 0px -3px 3px rgba(0,0,0,1);
}

.cssanchor{
    margin-top: 38px;
    margin-right: 3px;
    border-radius:25px;
    display: inline;
    float: right;
    text-transform: uppercase;
    border: 1px solid ; 
    padding: 10px 5px 10px 5px;
    text-decoration: none;
    color: white;
    position: relative; 
    font-weight: 600;
    letter-spacing: 1px;
    overflow: hidden;
    filter: drop-shadow(1px 3px 0.5px rgba(0, 0, 0, 0));
    right: 500px;
    bottom: 10px;
}

.cssanchor::before{
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 0%;
    background: white;
    overflow: hidden;
    z-index: -1;
    transition: 0.6s;
    bottom: 0;
}

.cssanchor:hover{
    transition: 0.6s; 
    background-color: rgb(14, 175, 250);
    color: rgb(0, 89, 255);
    z-index: 1;
    filter: drop-shadow(1px 3px 0.5px rgba(0, 0, 0, 1));
    transform: translateY(-12px);
}  

.cssanchor:hover::before{
    margin: 0px;
    height: 180%;
}

.cssanchor:active{
    color: black;
    transition: 0s;
    filter: drop-shadow(1px 3px 0.5px rgba(0, 0, 0, 1));
}

.cssanchor:active::before{
    background-color: rgb(62, 249, 255);
    transition: 0s;
}

.textborder{
    width: 800px;
    height: 150px;
    background-image: url("wood.png");
    border-radius: 25px;
    color: rgb(255, 0, 0);
    text-align: center;
    font-family: "montserrat";
    margin-left: 275px;
    top: -40px;
    bottom: 80px;
    position: relative;
    box-shadow: 5px 5px 5px rgba(255,255,255,0.6);
}

.text{
    filter: drop-shadow(1px 1px 0.5px rgba(0,0,0,1));
    font-size: 25px;
    font-weight: 600;
}
