@font-face{
	font-family: "customeFont";
	src: url('BYekan+.ttf');
}

/* style for link */
a{
    width:100%;
}
* button{
    display:flex;
    align-items: center;
}

body{
    padding:0px;
    margin:0px;
    font-family: 'customeFont', 'calibri';
    font-size:1rem;
}

header{
    
    background-color: rgb(0,90,153);
    height:fit-content;
    width:100%;
    display:flex;
    justify-content: space-around;
    position: -webkit-sticky;
    position: sticky;
    top:0;
    z-index:3;
    padding:15px 10px;
    box-sizing: border-box;
    
}
div.logo, div.search, nav{
    height: 100px;
    box-sizing: border-box;
    padding: 10px;
    
}
header div.logo{
    width:30%;
    display:flex;
    align-items: center;
    
    
}
header div.logo img{
    display: absolute;
    bottom:5px;
    width:180px;
    
}
header div.search{
    width:30%;
    display: flex;
    
    flex-wrap: nowrap;
}
header form{
    display:flex;
    height:40px;
}
header input[type=text]{
    border:1px solid #ccc;
    padding:10px;
    width:200px;
}
header select{
    width:70px;
    border:1px solid #ccc;
    padding:8px;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
}
 div.search button{
    border:none;
    padding:10px;
    border-top-right-radius:10px ;
    border-bottom-right-radius:10px ;
    margin-left:-5px;
    display:inline-block;
    background-color: #fff;
    
}

header nav{
    width:30%;
    direction: rtl;
    display:flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    
}

nav img.icons{
    width:40px;
    z-index:1;
}
header div.menu{
    position: absolute;
    top:0;
    left:0;
    display:flex;
    justify-content: space-around;
    width:100px;
    padding:5px 3px;
}
header div.menu img{
    width:35px;
}
header nav .notif{
    background-color: orangered;
    padding:2px 5px; 
    border-radius: 10px;
    border:none;
    font-size:14px;
    margin-right:-10px;
    
    display:inline-block;
    z-index:5;
       
}
section{
    padding:10px;
    display:flex;
    flex-wrap: wrap;
    
    
}

section.content{
    min-width: 100px;

}
form{
    width:100%;

}

section div.card{
    display:inline-block;
    width:24%;
    box-shadow: 2px 2px 10px #444;
    height:fit-content;
    padding:5px;
    margin-bottom:15px;
    margin-left:5px;
    box-sizing: border-box;
    border-radius: 10px;
}
 table{
    width:100%;
}
table caption{
    background-color: #333;
    color:#fff;
    padding:10px;
}
table tr td {
    text-align:center;
    box-sizing: border-box;
    padding:3px;
    position: relative;
}

 tr:nth-child(odd){
    background-color: #f2f2f2;
}
div.card table tr td.date-location{
    display:flex;
    justify-content: space-around;
    font-size: 0.8rem;
    
}
div.card table tr td.like-comment{
    display: flex;
    justify-content: space-around;
}
div.card table td.like-comment button{
    padding:4px 10px;
    display:flex;
    flex-wrap: nowrap;
    border-radius:5px;
    font-size:12px ;
    border:none;
    background-color: rgb(102,204,0);
    
}
div.card table tr td.like-comment button img{
    width:20px;
    height:20px;
    
}
div.card div.image{
    width:100%;
    height:150px;
    overflow:hidden;
    
    

}
section div.card img{
    border-radius:3px;
    width:150px;
    display:block;
    margin-left: auto;
    margin-right:auto;
}


.dropdown{
    position:absolute;
    z-index: 1;
    padding:5px;
    border-radius: 3px;
    box-sizing: border-box;
    display:inline-block;
    left:0;
    box-sizing: border-box;
}
.dropdown .dropdown-btn{
    width:20px;
    float:left;
    height: 20px;
    margin-top:-5px;

}
.dropdownMenu{
    display:flex;
    width:fit-content;
    background-color: #f2f2f2;
    box-shadow: 2px 2px 3px #444;
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
    padding:3px 5px;
    text-align: center;
    
    
}
.dropdownMenu a{
    color: black;
    text-decoration: none;
    display: flex;
    padding:5px 16px;    
    align-items: center;
    width:auto;
    

}

.dropdownMenu a:hover {
    background-color: #fff;
}

div.dropdown .dropdownMenu{
    display:none;
}

header .dropdownMenu{
    width: 200px;
}

header .dropdownMenu a {
    width:100%;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    width: 400px;
    z-index: 2;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1;
}
.popup input {
    width: 100%;
    margin: 10px 0;
    padding: 8px;
}
.popup button {
    width: 100%;
    padding: 10px;
    background: blue;
    color: white;
    border: none;
    cursor: pointer;
}
footer{
    height:100px;
    background-color: rgb(6, 63, 112);
    color:#fff;
    padding:20px 10px;
    position: relative;
    bottom:0px;
}

.btn{
    padding:5px 10px;
    background-color: rgb(102,204,0);
    border:none;
    border-radius:3px;
    margin-left:auto;
    margin-right:auto;
  }
.btn a{
    text-decoration: none;
    color:black;
}
/* all classess */

#show-comment-date{
    font-size:12px;
}
#del{
    background-color:salmon;
    border:none;
    padding:3px 7px;
    border-radius:3px;
}
#edit{
    background-color:lightgreen;
    border:none;
    padding:3px 10px;
    border-radius:3px;
    margin-left:10px;

}
#default-image{
    filter: grayscale(95%);
    
}
#icons{
    width:25px;
    margin-top: 5px;
}
#search-icon{
    display: none;
    
}

#search-input{ 
    display: none;
    border-bottom: 1px solid gray;
}

input:focus{
    outline:1px solid gray;    
}



/* Base alert styles */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    margin-top: 1rem;
    position: relative;
    font-family: Arial, sans-serif;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;

}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Close button styles */
.alert .close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    color: inherit;
    position: absolute;
    top: 10px;
    right: 10px;
    line-height: 1;
}

/* Icon styles */
.alert .icon {
    margin-right: 0.5rem;
    font-size: 1.5rem;
    line-height: 0;
}

/* Hover effects */
.alert .close-btn:hover {
    color: #000;
    transform: scale(1.2);
}

.center{
    width:100%;
    text-align:center;
}
.item{
    width:100%;
    display:flex;
    justify-content: center;

}
div.item .btn{
    padding:7px 15px;
    background-color:#333;
    color:#fff;
    border:none;
    border-radius:5px;
    font-size:14px;
}
div.item .btn:hover{
    background-color: darkcyan;
    cursor: pointer;
}

 
@media screen and (max-width:600px){
    body{
        margin:0;
        padding:0;
        font-size:0.8rem;
        
    }
    header{
        flex-wrap: wrap;
        height:fit-content;
    }
    section div.card div.price{
        width:60%;
        font-size:0.7rem;
    }
    header div.menu{
        display:flex;
        top:0;
        right:0;
        
    }
    header div.menu img{
        width:10px;
    }
    header div.logo{
        justify-content: flex-end;
        padding:3px;
    }
    header div.logo img{
        width:120px;
        margin-top:0px;
        margin-bottom:10px;
        
    }
    header nav{
        padding:0;
        
    }
    header nav img.icons{
        width:30px;
    }
    header div.search{
        display: none;
        
    }
    header div.logo, header nav{
        width:100%;
        overflow: hidden;
        height: fit-content;

    }
    
    section div.card{
        width:45%;
        overflow: hidden;
    }

    section div.image{
        
    }

    section div.card img{
        width:100px;
    }

    .dropdown .dropdown-btn{
        width:15px;
    }

    #search-input{
        display: flex;
        justify-content: center;
        padding:10px 5px;
    }
    #search-input input[type=text]{
     border:1px solid gray;
     border-right:none;
     border-left:none;
     padding:5px;
     width:90%;
     
    }

    #search-icon{
        display: inline-block;
        margin-left:40px;
        margin-top: 5px;
        width:28px;
        height:28px;
        
    }

}


