@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

@keyframes enter {
    0% {
        bottom: -5vh;
    }
    100% {
        bottom: 4vh;
    }
}

@keyframes exit {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(100px);
    }
}

.fishgame-wrapper.enter {
    animation: enter 0.7s ease forwards;
    position: fixed;
}

.fishgame-wrapper.exit {
    animation: exit 0.7s ease forwards;
    position: fixed;
    left: 50%;
    bottom: 0;
}


.fishgame-wrapper {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    bottom: -10px;
    left: 50%;
    transform: translate(-50%, -20px);
}

.fishgame {
    bottom: 0px;
    width: 700px;
    height: 50px;
    background-color: #19202B;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 0 5px;
}

.key-q, .key-e {
    width: 50px;
    height: 50px;
    background-color: #DFB2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    z-index: 9999;
    transition: background-color 0.2s, transform 0.2s;
}

.key-pressed {
    background-color: #987bad;
    transform: scale(0.95); 
}

.fish {
    width: 45px;
    height: 45px;
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: fishAnimation 1s ease-in-out infinite;
}

.fish img {
    width: 100%;
    height: 100%; 
    object-fit: contain;
}

@keyframes fishAnimation {
    0% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(10deg); }
    100% { transform: translateX(-50%) rotate(0deg); }
}

.key-e {
    order: 1;
}

.moving-box {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 40px;
    background-color: #DFB2FF;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(223, 178, 255, 0.6);
    transition: all 0.1s ease;
}

.game-progressbox {
    position: absolute;
    bottom: -25px; 
    width: 823px;
    height: 10px;
    background-color: #19202B;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    margin: 0 5px;
}

.progress {
    height: 100%;
    background-color: #DFB2FF;
    box-shadow: 0 0 10px 2px #DFB2FF;
    width: 105%;
    transition: width 0.3s ease;
    box-sizing: border-box;
}


.bg {
    position: absolute;
    display: flex;
    bottom: -5px;
    width: 823px;
    height: 60px;
    background-color: #19202B;
}