*{
    margin: 0;
    box-sizing: border-box;
}

.grid-container{
    display: grid;
    grid-template-columns: 1fr 2fr 4fr 2fr 1fr;
    grid-template-rows: 40px 350px 30px auto auto;
    height: 100%;
    border: 3px rgb(0, 0, 0);
}
/*-------NavBar Start------*/
header{
    grid-area: 1 / 1 / 2 / 6;
    width: 100%;
    background-color: #023788; /* Make the menu become transparent */
    padding: 8px;
    position: fixed; 
    z-index: 1; 
}

.navbar-logo {
    float: left;
  }  

  .navbar-logo a{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #000000;
    font-size: 18px;
    text-decoration: none;
    letter-spacing: 2xp;
  }

.nav{
    float: right;
    list-style: none;
}

.nav > a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #000000;
    font-size: 18px;
    text-decoration: none;
    margin: 0 10px;
  }

.navbar-logo:hover,.nav a:hover{
    background-color: #d2dbe9;
    border-radius: 5px;
}

/*-------NavBar End------*/

/*-------Image Banner Start------*/
.slider{
    grid-area: 2 / 1 / 3 / 6;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: .8;
    animation: slide 12s ease-in running alternate-reverse infinite forwards;

}

@keyframes slide{
    0%{
        background-image: url(/Online-Voting-System/res/img/img1.jpg);
    }
    16.67%{
        background-image: url(/Online-Voting-System/res/img/img1.jpg);
    }
    16.68%{
        background-image: url(/Online-Voting-System/res/img/img2.jpg);
    }
    32.84%{
        background-image: url(/Online-Voting-System/res/img/img2.jpg);
    }
    32.85%{
        background-image: url(/Online-Voting-System/res/img/img3.jpg);
    }
    49.51%{
        background-image: url(/Online-Voting-System/res/img/img3.jpg);
    }
    49.52%{
        background-image: url(/Online-Voting-System/res/img/img4.jpg);
    }
    66.18%{
        background-image: url(/Online-Voting-System/res/img/img4.jpg);
    }
    66.19%{
        background-image: url(/Online-Voting-System/res/img/img5.jpg);
    }
    82.85%{
        background-image: url(/Online-Voting-System/res/img/img5.jpg);
    }
    82.86%{
        background-image: url(/Online-Voting-System/res/img/img6.jpg);
    }
    100%{
        background-image: url(/Online-Voting-System/res/img/img6.jpg);
    }
    
}
/*-------Image Banner End------*/

/*-------------NEWS START------------*/
.news{
    grid-area: 3/1/4/6;
    margin-left: 40px 40px;
    position: relative;
}

.news-head{
    position: absolute;
    background-color:  #023788;
    color: aliceblue;
    padding: 5px;
    letter-spacing: 2px;
    z-index: 2;
    font: 15px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.news-head::before,
.news-head::after{
    content: '';
    position: absolute;
    border: 25px solid;
    z-index: -1;
}

.news-head::before{
    border-color: #023788 transparent transparent transparent;
    right: -25px;
    top: 0;
}

.news-head::after{
    border-color: transparent transparent #023788 transparent;
    right: -25px;
    bottom: 0;
}

.news-content{
    height: 30px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    color: #d2dbe9;
    background: #880202;
    left: 20px;
}

.news-content p{
    overflow: hidden;
    font-size: medium;
    transform: translateX(100%);
    animation: mymove 9s infinite linear;
}

@keyframes mymove {
    0% {
      transform: translateX(100%) ;
    }
    100% {
        transform: translateX(-100%);
    }
  }
  
/*-------------NEWS END------------*/

.main{
    grid-area: 4/2/5/5;
    border: 6px solid #023788;
    height: 300px;
}

.item-1{
    grid-area: 2/4/2/5;
}

.item-2{
    grid-area: 3/4/4/5;
}

.item-3{
    grid-area: 5/4/5/5;
}

.footer{
    grid-area: 5/1/6/6;
    height: fit-content;
    width: fit-content;
}

.footer iframe{
    width: 100%;
}

.footer p{
    z-index: 1;
    color: #000000;
    background-color: #880202;
}
