@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-container {
    font-family: 'Poppins', sans-serif;
}

.player-name {
    text-align: center;
    border: 2px solid black;
    margin: 10px;
    position: absolute;
    width: fit-content;
    padding: 10px;
    border-radius: 10px;
    background-color: white;
    opacity: 0.5;
}

/* ************************************************* Modal******************************************** */
.modal-container {
    position: absolute;
    width: 100%;
    height: 150%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
    overflow: hidden;

}

.modal-box {
    position: absolute;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    margin: 20%;
    padding: 20px;
    border-radius: 20px;
    gap: 20px;
    max-width: 80%;
    width: 50%;
    display: none;

}

.modal-box .close-btn {
    align-self: flex-end;
    display: inline;
    cursor: pointer;
    font-size: 40px;
    transform: rotate(45deg);
}

.modal-box .modal-title {
    display: inline;
}

.modal-box .rules {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.modal-box .submit-btn {
    border-radius: 10px;
    padding: 10px;
    background-color: white;

}

.modal-box .submit-btn:hover {
    background-color: green;
    color: white;
    border: 1px solid green;
}





/* ************************************************* Background Video ******************************************** */

#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
}

#lightsOnVideo,
#lightsOffVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    display: none;
}

/* ************************************************* Pokeball ******************************************** */
.pokeball-Container {
    position: relative;
}

img {
    right: 18%;
    bottom: 22%;
    animation: mymove 6s alternate-reverse infinite;
}

#pokeball-closed {
    position: absolute;
    width: 7rem;
}

#pichu,
#pikachu,
#raichu,
#pokemonDead
 {
    position: absolute;
    width: 8rem;
    display: none;
    animation: bounce-1 4s infinite;
}

#pokemonDead {
width: 50%;
left: 25%;
top: 25%;
z-index: 10;
border-radius: 20px;
}

@keyframes mymove {
    from {
        right: 20px;
    }

    to {
        right: 800px;
    }
}

@keyframes bounce-1 {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-100px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ******************************************* Controls Section ****************************************** */

.inputAndButtpnSection {
    width: 550px;
    height: 200px;
    right: 10px;
    top: 10px;
    background-color: whitesmoke;
    position: absolute;
    border-radius: 10px;
    opacity: 0.8;
    display: flex;

}

.controls {
    flex: 0 0 25%;
    max-width: 40%;

}

.btn {
    margin: 5px;
    min-width: 90%;
    max-width: 100%;
    max-height: 100%;

}

.btn.btn-outline-success {
    font-size: 15px;
}


.progress-bar-section {
    flex: 0 0 75%;
    max-width: 68%;
    min-height: 100%;
    margin: 30px;

}

.progress {
    margin-bottom: 20px;
}


/* ******************************************* footer *************************************** */


#footer {
    width: 100%;
    position: fixed;
    bottom: 0;
}

.footer-text {
    margin: 0 auto;
    text-align: center;
}

/* *********************************** Responsive Section ************************************** */
/* Mobile Small */
@media only screen and (max-width: 320px) {

    .progress-bar-section {
        flex: 0 0 60%;
        max-width: 60%;
        margin: 20px 20px 0 0;
    }

    .controls {
        flex: 0 0 40%;
        max-width: 40%;

    }

    .inputAndButtpnSection {
        width: 95%;
        display: flex;
        margin-top: 50px;

    }

    .btn.btn-outline-success:last-child {
        font-size: 12px;
        height: 36.5px;
    }

    #pokeball-closed {
        position: absolute;
        bottom: 0;
    }

    .player-name {
        text-align: center;
        border: 2px solid black;
        margin: 10px 10px 0;
        position: absolute;
        width: 90%;
        border-radius: 10px;
        background-color: white;
        opacity: 0.5;

    }


    #pichu,
    #pikachu,
    #raichu {
        animation: bounce-1 4s infinite;
    }

    @keyframes bounce-1 {
        0% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-100px);
        }

        100% {
            transform: translateY(0);
        }
    }

}

/* Mobile Medium */
@media only screen and (max-width: 375px) {
    .progress-bar-section {
        flex: 0 0 60%;
        max-width: 60%;
        margin: 20px 20px 0 0;
    }

    .controls {
        flex: 0 0 40%;
        max-width: 40%;

    }

    .inputAndButtpnSection {
        width: 95%;
        display: flex;
        margin-top: 50px;

    }

    .btn.btn-outline-success:last-child {
        font-size: 12px;
        height: 36.5px;
    }

    #pokeball-closed {
        position: absolute;
        bottom: 0;
    }

    .player-name {
        text-align: center;
        border: 2px solid black;
        margin: 10px 10px 0;
        position: absolute;
        width: 90%;
        border-radius: 10px;
        background-color: white;
        opacity: 0.5;

    }

    #pichu,
    #pikachu,
    #raichu {
        animation: bounce-1 4s infinite;
    }

    @keyframes bounce-1 {
        0% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-100px);
        }

        100% {
            transform: translateY(0);
        }
    }
}

/* Mobile Large */
@media only screen and (max-width: 425px) {
    .progress-bar-section {
        flex: 0 0 60%;
        max-width: 60%;
        margin: 20px 20px 0 0;
    }

    .controls {
        flex: 0 0 40%;
        max-width: 40%;

    }

    .inputAndButtpnSection {
        width: 95%;
        display: flex;
        margin: auto;
        position: relative;

    }

    .btn.btn-outline-success:last-child {
        font-size: 12px;
        height: 36.5px;
    }

    #pokeball-closed {
        position: absolute;
        bottom: 0;
    }

    .player {
        display: flex;
        justify-content: center;
    }

    .player-name {
        text-align: center;
        border: 2px solid black;
        margin: auto;
        position: relative;
        width: fit-content;
        border-radius: 10px;
        background-color: white;
        opacity: 0.5;

    }

    #pichu,
    #pikachu,
    #raichu {
        animation: bounce-1 4s infinite;
    }

    @keyframes bounce-1 {
        0% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-100px);
        }

        100% {
            transform: translateY(0);
        }
    }
}

@media only screen and (max-width: 768px) {

    .progress-bar-section {
        flex: 0 0 60%;
        max-width: 60%;
        margin: 20px 20px 0 0;
    }

    .controls {
        flex: 0 0 40%;
        max-width: 40%;

    }

    .inputAndButtpnSection {
        width: 95%;
        display: flex;
        margin: 20px;
        position: relative;

    }

    .btn.btn-outline-success:last-child {
        font-size: 12px;
        height: 36.5px;
    }

    #pokeball-closed {
        position: absolute;
        bottom: 0;
    }

    .player {
        display: flex;
        justify-content: center;
    }

    .player-name {
        text-align: center;
        border: 2px solid black;
        margin: auto;
        position: relative;
        width: fit-content;
        border-radius: 10px;
        background-color: white;
        opacity: 0.5;

    }

    img {
        animation: mymove 3s alternate-reverse infinite;
    }

    @keyframes mymove {
        from {
            right: 20px;
        }

        to {
            right: 200px;
        }
    }
    #pichu,
    #pikachu,
    #raichu {
        animation: bounce-1 4s infinite;
    }

    @keyframes bounce-1 {
        0% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-100px);
        }

        100% {
            transform: translateY(0);
        }
    }
}