* {
    margin: 0;
    padding: 0;
    font-family: "Lexend Deca", sans-serif;
}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('qq.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* background-image: linear-gradient(to right, #DECBA4, #3e5151b7); */
}
h1 {
    text-align: center;
    margin-top: 50px;
    padding: 10px;
    color: #ffffff;
    font-size: 37px;
}
.instruction {
    color: white;
    font-size: 19px;
    margin-bottom: 15px;
    width: 65%;
    text-align: center;
    align-self: center;
}
.game-rules {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.box {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    align-items: center;
    align-self: center;
    justify-content: center;
}
.menu-main {
    display: flex;
    justify-content: end;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .menu-main:after {
    content: "";
    display: table;
    clear: both;
  }
  .right-item {
    float: right;
  }
  
  .menu-main a {
    text-decoration: none;
    display: block;
    line-height: 60px;
    padding: 0 30px;
    font-size: 16px;
    letter-spacing: 1px;
    font-family: "Lexend Deca", sans-serif;
    font-weight: 300;
    color: black;
    transition: 0.2s linear;
  }
  .menu-main a:hover {
    font-size: 17px;
    border-bottom: 3px solid rgb(66, 66, 66);
  }
  .top-menu {
    position: fixed;
    z-index: 9999;
    width: 100%;
    background-color: white;
    top: 0;
    right: 0;
  }
.game {
    border-radius: 15px;
    width: 950px;
    height: 550px;
    background-color: #F3FDE8;
    position: relative;
    border: 1px solid #a8bbc9;
}
.loose-line {
    width: 100%;
    height: 15px;
    background-color: #a8bbc9d3;
    bottom: 0;
    position: absolute;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
.basket {
    background-image: url('box.png');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100px;
    height: 80px;
    position: absolute;
    bottom: 15px;
    left: calc(50% - 25px);
}
.item {
    background-repeat: no-repeat;
    background-size: cover;
    width: 99px;
    height: 110px;
    position: absolute;
}
.itemKetchup {
    background-repeat: no-repeat;
    background-size: cover;
    width: 60px;
    height: 110px;
    position: absolute;
}
.itemToothpaste {
    width: 90px;
    background-repeat: no-repeat;
    background-size: cover;
    height: 150px;
    position: absolute;
}
.itemToy {
    width: 70px;
    background-repeat: no-repeat;
    background-size: cover;
    height: 101px;
    position: absolute;
}
.itemSoda {
    width: 50px;
    background-repeat: no-repeat;
    background-size: cover;
    height: 91px;
    position: absolute;
}
.itemFish {
    width: 110px;
    background-repeat: no-repeat;
    background-size: cover;
    height: 121px;
    position: absolute;
}
.itemOne {
    background-image: url('bottle.png');
}
.itemTwo {
    background-image: url('milk.png');
}
.itemFour {
    background-image: url('soda.png');
}
.itemFive {
    background-image: url('shampoo.png');
}
.itemSix {
    background-image: url('detergent.png');
    width: 70px;
    height: 108px;
}
.itemSeven {
    background-image: url('peanut.png');
    width: 70px;
    height: 84px;
}
.itemEight {
    background-image: url('mouthwash.png');
    width: 110px;
}
.itemNine {
    background-image: url('toys.png');
}
.itemTen {
    background-image: url('flamingo.png');
    width: 110px;
    height: 90px;
}
.itemEleven {
    background-image: url('coffeecup.png');
}
.itemTwelve {
    background-image: url('coolerbottle.png');
}
.itemThirteen {
    background-image: url('curtains.png');
}
.itemFourteen {
    background-image: url('cutlery.png');
}
.itemFifteen {
    background-image: url('fishtray.png');
}
.itemSixteen {
    background-image: url('meattray.png');
}
.itemSeventeen {
    background-image: url('babybottle.png');
}
.itemEighteen {
    background-image: url('trainingbottle.png');
}
.itemNineteen {
    background-image: url('toothpaste.png');
}

.score {
    display: flex;
    justify-content: space-between;
}
.caught, .wrong {
    font-size: 20px;
    padding: 20px;
    font-weight: 300;
}


@media all and (max-width: 500px) {
    .instruction {
        width: 100%;
        font-size: 17px;
    }
    .menu-main {
        justify-content: flex-start;
    }
    .menu-main a {
        line-height: 50px;
        padding: 0 10px;
        font-size: 15px;
        letter-spacing: 1px;
    }
    h1 {
        width: 85%;
        font-size: 22px;
    }
    .game {
        max-width: 100%;
    }
    .caught, .wrong {
        font-size: 16px;
        padding: 10px;
    }
    .game {
        width: 100%;
        height: 450px;
        margin-left: 10px;
    }
    .basket {
        width: 70px;
        height: 50px;
        bottom: 10px;
    }
    .box {
        display: flex;
        justify-content: center;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .loose-line {
        height: 10px;
    }
    #btnbox {
        display: flex;
        justify-content: center;
        align-self: center;
        /* width: 150px; */
    }
    #btnLeft, #btnRight {
        height: 80px;
        width: 80px;
        padding: 10px;
        border: black 2px solid;
        margin: 40px;
        margin-top: 25px;
        touch-action: manipulation;
        border-radius: 10px;
    }
    #btnLeft {
        background-image: url('arrowmobile.png');
        background-repeat: no-repeat;
        background-size: cover;
        transform: scaleX(-1);
    }
    #btnRight {
        background-image: url('arrowmobile.png');
        background-repeat: no-repeat;
        background-size: cover;
    }
    .item {
        height: 63px;
        width: 67px;
    }
    .itemKetchup {
        width: 40px;
        height: 74px;
    }
    .itemToothpaste {
        width: 60px;
        height: 100px;
    }
    .itemToy {
        width: 47px;
        height: 67px;
    }
    .itemSoda {
        width: 34px;
        height: 61px;
    }
    .itemFish {
        width: 74px;
        height: 81px;
    }
}

