.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
}
.span-4 {
grid-column: span 4 / auto;
}
@media screen and (max-width: 675px) {
.grid {
display: grid;
grid-template-columns: repeat(1, 1fr);
grid-gap: 10px;
}
.span-4 {
grid-column: auto;
}
}
.nav {
font-family: "Tajawal", sans-serif;
}
.nav-links {
display: flex;
list-style: none;
width: 100%;
margin: auto;
padding: 10px;
justify-content: center;
align-items: center;
}
.nav-links ul a {
text-decoration: none;
}
.nav ul li {
border: 1px solid #e0e0e0;
border-radius: 15px;
padding: 5px;
width: 150px;
text-align: center;
font-size: 105%;
font-weight: bold;
margin: 5px;
}
.nav ul li:hover {
background: #e0e0e0;
}
li.content-title {
transition-duration: 0.5s;
}
li.content-title:hover {
width: 250px;
background: #007bff;
color: white;
}
li.content-title a {
color: #000;
}
li.content-title.blue-b {
background: #007bff;
}
.content-title.blue-b a {
color: white;
}
li.content-title.red-b {
background: #da4453;
}
.content-title.red-b a {
color: white;
}
li.content-title.green-b {
background: #189771;
}
.content-title.green-b a {
color: white;
}
.nav p {
font-family: "Tajawal", sans-serif;
font-size: 35px;
font-weight: bold;
text-align: center;
line-height: 5px;
}
@media screen and (max-width: 675px) {
.nav-links {
flex-direction: column;
}
}