body{
display: block;
position: relative;
--bs-body-bg: #121230;
background:var(--bs-body-bg);
font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
nav{
background: dodgerblue;
height: 60px;
display: flex;
justify-content: space-between;
position: sticky;
top: 15px;
z-index: 2;
}
nav .logo{
position: absolute;
left: 65px;
padding: 15px;
font-size: 20px;
}
nav .logo::first-letter{
font-size: 25px;
}
nav span:nth-child(2):after{
content: "";
position: absolute;
height: 30px;
left: 160px;
top: 0px;
width: 2px;
transform: rotate(90deg);
background: beige;
color: aliceblue;
}
nav span:nth-child(2)::before{
content: "";
position: absolute;
left: 175px;
top: 14px;
background: white;
height: 18px;
width: 2px;
}
nav span:nth-child(3)::after{
content: "";
position: absolute;
top: 28px;
left:80px;
background: white;
transform: rotate(90deg);
height: 30px;
width: 2px;
}
nav span:nth-child(3)::before{
content: "";
position: absolute;
left: 65px;
top: 24px;
background: white;
height: 20px;
width: 2px
}
nav span:nth-child(4)::before{
content: "";
position: absolute;
left: 58px;
top: 30px;
background: rgb(204, 207, 10);
height: 18px;
width: 2px;
color: aliceblue;
}
nav span:nth-child(4)::after{
content: "";
position: absolute;
top: 33px;
left:73px;
background: #cccf0a;
transform: rotate(90deg);
height: 30px;
width: 2px;
}
nav ul{
margin-top: 5px;
margin-right: 20px;
list-style: none;
float:left;
}
nav ul li{
padding: 15px;
display: inline-block;
margin: 0 5px;
}
nav ul li a{
text-decoration: none;
font-weight: 900;
color: aliceblue;
padding: 7px 13px;
border-radius: 5px;
}
a.active,a:hover{
color: #134374;
transition: 0.6s all ease-in-out;
background-color: aliceblue;
}
.checkbtn{
font-size: 40px;
margin-top: 8px;
color: azure;
margin-right: 20px;
cursor: pointer;
display: none;
}
#check{
display: none;
}
@media (max-width: 952px){
ul li a{
display: none;
}
nav .logo{
left: 70px;
font-size: 18px;
}
nav .logo::first-letter{
font-size: 20px;
}
}
@media only screen and (max-width:858px){
.checkbtn{
display: block;
}
ul{
position: fixed;
width: 100%;
height: 100vh;
background: #134374;
top: 55px;
left: -100%;
z-index: 999;
padding-inline-start: 0px;
transition: all 0.5s;
text-align: center;
}
nav ul li{
display: block;
}
nav ul li a{
font-size: 25px;
display: block;
color: aliceblue;
}
a:hover,a.active{
background: none;
color: #000;
}
#check:checked ~ ul{
left: 0;
}
}