@font-face {
  font-family: 'MyFont';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
}
*{
  font-family: 'MyFont', sans-serif;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #100f0f;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #ba5207;
  border-radius: 10px;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100px;
    padding: 0 20px;
    background-color: #111;
}
.header-items ul{
    display: flex;
    gap: 35px;
}
.header-items a{
    all: unset;
}
.header-items ul li{
    list-style-type: none;
}
.header-items p{
    padding-bottom:10px ;
    font-size: 21px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    position: relative;
  display: inline-block;
  cursor: pointer;
  background-image: linear-gradient(#ba5207, #ba5207);
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: right bottom;
  transition: background-size 0.4s ease-out;
}
.header-items p:hover{
    background-size: 100% 3px;
}
.header-logo img{
    width: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.header-logo img:hover{
    transform: scale(0.8);
}
.header-menu img{
    width: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.header-menu img:hover{
    transform: scale(0.8);
}
/* sidebar */
.sidebar a{
    all: unset;
    cursor: pointer;
}
open-btn {
            font-size: 20px;
            cursor: pointer;
            background-color: #111;
            color: white;
            padding: 10px 15px;
            border: none;
            position: fixed;
            top: 10px;
            right: 20px;
            z-index: 1000;
        }

        .sidebar {
            height: 100%;
            width: 0; 
            position: fixed;
            z-index: 1001;
            top: 0;
            left: 0; 
            background-color: #111;
            overflow-x: hidden;
            transition: 0.5s; 
            padding-top: 60px; 
            box-sizing: border-box;
        }

        .sidebar a {
            padding: 8px 8px 8px 32px;
            text-decoration: none;
            font-size: 25px;
            color: #818181;
            display: block;
            transition: 0.3s;
        }

        .sidebar a:hover {
            color: #f1f1f1;
        }

        .sidebar .close-btn {
            position: absolute;
            top: 10px;
            right: 5px; 
            font-size: 36px;
            margin-left: 50px; 
            cursor: pointer;
            color: white;
            border: none;
            background: none;
            padding: 0;
            line-height: 1; 
            transition: transform 0.3s ease;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .sidebar .close-btn:hover {
            color: #ccc;
            transform: scale(0.8);
        }
        .sidebar a{
            line-height: 2;
            color: #ba5207;
        }
        .sidebar a:hover{
            background-color: #ba5207;
            color: white;
        }

        .content {
            padding: 16px;
            margin-left: 250px; 
            transition: margin-left 0.5s;
        }


        .sidebar.open {
            width: 250px; 
        }

        .sidebar.open ~ .content {
            margin-left: 250px;
        }
        

        @media screen and (max-height: 450px) {
            .sidebar {padding-top: 15px;}
            .sidebar a {font-size: 18px;}
            .sidebar .close-btn {
                font-size: 28px;
                right: 15px;
            }
        }
        @media (max-width: 768px){
            .header-items p{
                display: none;
            }
        }
        
        .overlay {
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.7); 
            z-index: 1000; 
            display: none; 
        }
        .overlay.visible {
            display: block; 
        }