
body {
    font-family: 'Cairo', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #333;
    width: 100%;
    height: 100%;
}

#menu {
    background: #212529;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* تقسيم menu2 */
#menu2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #343a40;
    padding: 10px;
}

.menu-left {
    flex: 1;
    text-align: left;
}

.menu-center {
    flex: 1;
    text-align: center;
    font-weight: bold;
}

.menu-right {
    flex: 1;
    text-align: right;
    cursor: pointer;
    font-size: 30px;
    color: #ccc;
}

#menu3 {
    background: #495057;
    padding: 10px;
    display: none; /* مخفي في البداية */
}



#menu button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

#menu button:hover {
    background: #0b5ed7;
}

#score, #timer, #level {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
    color: #0d6dfd;
}


.moving-div {
    position: absolute;
    width: 55px;
    height: 55px;
}

.moving-div img {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}


#game-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    max-width: 1000px;
    margin: auto;
    height: calc(100vh - 60px);
    padding: 10px;
}


#right {
    flex: 1;
    background: #222;
    color: white;
    padding: 15px;
    border-radius: 10px;
    min-width: 200px;

    display: flex;
    flex-direction: column;
    gap: 15px;
}


.stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#score, #timer, #level {
    font-size: 18px;
    font-weight: bold;
    color: #0d6efd;
}


.baskets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.basket {
    border: 2px dashed #6c757d;
    min-height: 60px;
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 10px;
    background: #fdfdfd;
}

.basket img {
    margin: 3px;
    width: 32px;
    height: 32px;
    object-fit: contain;
}


#left {
    flex: 3;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 15px;
    background: transparent; 
  }
  
  
  #left::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../assets/bg_mgo.png");
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.3; 
    z-index: 0; 
  }
  
  
  #left > * {
    position: relative;
    z-index: 1;
  }
  


@media (max-width: 768px) {
    #game-container {
        flex-direction: column;   
        height: auto;
    }

    

    #left {
        order: 2;
        flex: none;
        min-height: 400px; 
    }

    #score, #timer, #level {
        font-size: 14px;
    }

    .basket img {
        width: 24px;
        height: 24px;
    }
    #right {
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: flex-start;
      }
      
     
      #c {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: #222;
        color: white;
        padding: 10px;
        border-radius: 8px;
      }
      
      
      #cc {
        flex: 2;
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
      }
      
      .basket {
        border: 2px dashed #6c757d;
        min-height: 60px;
        padding: 6px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-radius: 10px;
        background: #fdfdfd;
      }
}
