
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; 
    font-family: sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#game-header {
    background: #068aa4;
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#game-header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#level {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
}

#message {
    font-size: 1rem;
    color: #e0e0e0;
}

#park-area {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px); 
    background: url(https://i.pinimg.com/1200x/90/15/9f/90159f00bd4cd9784fd4944b9c14807e.jpg) center/cover no-repeat;
    overflow: hidden;
}

#park {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
#bin-container {
    position: absolute;
    bottom: 10%;  
    right: 2%;
    z-index: 100;
    transition: transform 0.2s ease;
}

#bin {
    width: 110px;
    height: auto;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 20px 10px rgba(0, 0, 0, 0.3));
}

#bin-container.scale {
    transform: scale(1.3);
}

.trash {
    position: absolute;
    width: 50px;
    height: auto;
    cursor: grab;
    user-select: none;
    z-index: 10;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.1s ease;
}

.trash:hover {
    transform: scale(1.05);
}

.trash:active {
    cursor: grabbing;
    transform: scale(0.95);
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7); 
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

#start-btn {
  padding: 14px 36px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  background: #28a745;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

#start-btn:hover {
  background: #218838;
}

/* گوشی */
@media (max-width: 600px) {
    #game-header h1 {
        font-size: 1.6rem;
    }

    #level, #message {
        font-size: 0.9rem;
    }

    #bin {
        width: 70px;
    }

    .trash {
        width: 35px;
    }

    #start-btn {
        padding: 12px 28px;
        font-size: 16px;
    }
}

/* تبلت */
@media (min-width: 601px) and (max-width: 900px) {
    #game-header h1 {
        font-size: 2rem;
    }

    #bin {
        width: 90px;
    }

    .trash {
        width: 45px;
    }
}

/* لپتاب */
@media (min-width: 1200px) {
    #bin {
        width: 140px;
    }

    .trash {
        width: 60px;
    }
}
