 @keyframes fadeIn {
      from {opacity: 0; transform: scale(0.8);}
      to {opacity: 1; transform: scale(1);}
    }
@keyframes fadeOut {
      from {opacity: 1; transform: scale(1);}
      to {opacity: 0; transform: scale(0.8);}
    }

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-image: url('pictures/Cat and Sunflower Harmony.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    direction: rtl;
    overflow: hidden;
}
.container{
    width: 195px;
}

#main{
    width: 65px;
    float: right;
    margin-right: 20px;
    margin-top: 15px;
}

#project{
    width: 65px;
    float: right;
    margin-right: 38px;
    margin-top: 15px;
}

#blog{
    width: 65px;
    float: right;
    margin-right: 38px;
    margin-top: 15px;
}

.icon {
    padding: 10px;
    cursor: pointer;
    user-select: none;
}

.icon img{
    width: 60px;
}


.window {
    position: absolute;
    width: 600px;
    height: 400px;
    top: 100px;
    left: 100px;
    background: #fff;
    box-shadow: 4px 4px 16px #353636;
    z-index: 1;
    animation: fadeIn 0.3s ease forwards;
    transform-origin: top left;
    user-select: none;
}

.window.closing {
    animation: fadeOut 0.3s ease forwards;
}

.title-bar {
    height: 40px;
    background: #FFEBCF;
    border: 1px solid #FBFBFA;
    color: #434343;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.title-bar .buttons {
    display: flex;
    gap: 4px;
}

.btn {
    color: #434343;
    cursor: pointer;
    width: 17px;
    padding-left: 8px;
    text-align: center;
    user-select: none;
}

.btn img{
    width: 15px;
}

.content {
    padding: 10px;
    background: white;
    max-height: 400px;
      overflow-y: auto;
}


.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #FFEBCF;
    border: 1px solid #FBFBFA;
    box-shadow: 1px 0 5px #353636;
    display: flex;
    align-items: center;
    padding: 0 5px;
    gap: 5px;
    font-size: 14px;
    user-select: none;
}

.start-btn{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: auto;
    cursor: pointer;
    margin: 0 auto;
    gap: 5px;
}

.start-btn img {
  width: 30px;
  height: 30px;
}

.search-box{
    direction: ltr;
    padding: 5px 10px;
    height: 20px;
    border: 0.5px solid #FBFBFA;
    border-radius: 49px;
    outline: none;
    font-size: 15px;
    width: 180px;
    transition: all 0.3s;
    background-image: url('pictures/taskicon/ذره بین.png');
    background-repeat: no-repeat;
    background-size: 15px;
    background-color: #D2D7DA;
    background-position: 10px center;
    padding-left: 35px;
    transition: all 0.3s ease;
}

@media (max-width: 600px) {
  .search-box {
      width: 100px;
  }
}

.search-box:focus{
    transform: scale(1.02);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.search-container {
    position: relative;
    display: inline-block;
}

.search-results {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 250px;
    max-height: 300px;
    overflow-y: auto;
    background: #FBFBFA;
    border: 1px solid #D2D7DA;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: top center;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #D2D7DA;
}

.search-result-item h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.search-result-item p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.no-results {
    color: #ff5252;
    padding: 10px;
    text-align: center;
}

.task {
    padding: 5px 10px;
    height: 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    }

.hidden {
    display: none !important;
}

    ul.projects-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    ul.projects-list li {
      padding: 5px;
      border-bottom: 1px solid #ccc;
      cursor: pointer;
    }
    ul.projects-list li:hover {
      background: #ddd;
    }

    a.github-link {
      color: blue;
      text-decoration: underline;
    }