*{
    margin: 0;
    padding: 0;

}
:root{
    --light: #fff;
    --dark: #1b1b1b;
    --link-dark: #1e90ff;
    --link-light: #cee3f2;
}

.dark-mode {
    --background-color: var(--dark);
    --text-color: var(--light);
    --link-color: var(--link-light);
}

.light-mode {
    --background-color: var(--light);
    --text-color: var(--dark);
    --link-color: var(--link-dark);
}

html{
    font-size: 20px;
    font-family: Arial, sans-serif;
}
body, .theme-change {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 35px;
}

::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey; 
  }
   
  ::-webkit-scrollbar-thumb {
    background: var(--link-color, #1e90ff); 
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--text-color, #1b1b1b); 
    filter: invert();
  }
a {
    text-decoration: none;
    background: linear-gradient(rgb(0, 105, 255), rgb(0, 105, 255)) center bottom / 100% 1px no-repeat;
    border-bottom: none;
    backdrop-filter: blur(2px);

    color: var(--link-color, #1e90ff);
    transition: background 300ms ease-in-out, color 300ms ease-in-out;
}
a:hover {
    backdrop-filter: blur(5px);
    background: linear-gradient(rgb(20, 51, 214), rgb(20, 51, 214)) center bottom / 100% 100% no-repeat;
    color: var(--link-light);
}
.site-name{
    background: none;
}
.site-name:hover {
    background: none;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0 0 30px 0;
    box-shadow: 0 1px 1px var(--text-color, #1b1b1b);
    top: 0;
position: sticky;
background-color: var(--background-color, #fff);
z-index: 3;
}
nav{
    display: flex;
    justify-content: space-around;
}
nav ul{
    display: flex;
gap: 20px;
list-style: none;
flex-wrap: wrap;
    align-content: center;
}
.sidebar a {
    background: linear-gradient(rgb(0, 105, 255), rgb(0, 105, 255)) center top / 100% 5px no-repeat;
}
.sidebar a:hover {
    backdrop-filter: blur(5px);
    background: linear-gradient(rgb(20, 51, 214), rgb(20, 51, 214)) center top / 100% 100% no-repeat;
    color: var(--link-light);
}
.sidebar li{

    margin-bottom: 20px;
}
.sidebar li a {
    font-size: 17px;
    padding: 10px;
    border-radius: 15px;
}

.btn{
    margin: 20px;
    background-color: #1e90ff;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 1px 10px var(--text-color, #1b1b1b);
    transition: ease-in-out 0.1s;
    text-align: center;
}
.btn:hover{
    transform: scale(0.95); 
}
.btn a{
color: (var(--text-color, #fff) );
background: none;
}

#light-btn{
    display: none;
  filter: invert();
}

h2, h4 ,.ayat{
    padding: 10px;
    box-shadow: 0 5px 0 var(--link-color, #1e90ff);
    border-radius: 10px;
    display: inline-block;
    margin: 30px 0;
    text-align: center;
}
.ayat{
    margin: 20px 0 20px 0;
    padding: 0;
}
.center{
    text-align: center;
}
h3{
    margin: 30px 0;
    opacity: 0.6;
    font-size: 25px;
}
h4{
    font-size: 22px;
}
/* Sidebar toggle buttons */
#open-sidebar,
#close-sidebar {
    background-color: rgba(0, 106, 255, 0.7);
    border: none;
    padding: 10px 15px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#close-sidebar {
    font-size: 30px;
    display: none;
}
.content{
    margin: 0 15%;
}
.images{
    max-width: 500px;
    margin: 20px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 1px 1px 15px var(--text-color, #1b1b1b);
}

table{
    border-collapse: collapse;
    width: 100%;
}
th,td {
    border: 1px solid var(--text-color, #1b1b1b);
    padding: 10px;
    text-align: center;
}
.arabic{
    text-align: right;
    font-size: 20px;
}
.content li{
    margin: 0 30px;
}
#footer{
    flex-grow: 1;
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 15px;
    margin: 40px 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.footer {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
    color: var(--text-color);
}
.f-title{
font-size: 28px;
font-weight: bold;
margin-bottom: 20px;
color: var(--link-color, #1e90ff);
}
.f-des{
    color: var(--text-color);
}
.f-links ul li{
    list-style: none;
    margin: 10px;
}
.copyright{
    text-align: center;
    color: var(--text-color);
    opacity: 0.6;
}

/* For mobile devices (up to 480px) */
@media (max-width: 480px) {
    header{
        justify-content:space-evenly;
    }
    .content{
        margin: 0 7%;
    }
    #open-sidebar{
        display: block;
    }
    #open-sidebar,
    #close-sidebar {
        position: absolute;
        right: 20px;
        top: 10px;
    }

    #open-sidebar {
        z-index: 2;
        position: fixed;
    }

    #close-sidebar {
        z-index: 3;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100%;
        transition: left 0.3s ease;
        z-index: 1;
        width: 300px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .sidebar.active {
        left: 0;
    }
    nav ul{
        display: flex;  
        flex-direction: column;
        margin-top: 80px;
    }
    nav ul li{
        text-align: center;
        
    }
    .images{
        max-width: 300px;
    }
    .footer{
        grid-template-columns: 1fr;
    }
}