@font-face {
    font-family: "hello";
    src: url(assets/idealy/Idealy.ttf) format('truetype');
}

@font-face {
    font-family: "bye";
    src: url(assets/breathe_fire/Breathe\ Fire.otf) format('truetype');
}

#myvideo {
    position: fixed;
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center;
    z-index: -999;
}

* {
    margin: 0;
    padding: 0;
    font-family: "hello", sans-serif;
    box-sizing: border-box;
    font-weight: normal;
    user-select: none;
    letter-spacing: 2px;
}

.container {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: #0000006e;
}
body{
    width: 100vw;
    height: 100dvh;
}

.vs {
    display: flex;
    color: white;
    flex-direction: column;
}

h2 {
    margin-top: 30px;
}

p {
    padding-top: 40px;
    font-size: 5rem;
    color: rgba(240, 233, 233, 0.836);
}

h1 {
    color: #e6e6e6da;
    font-size: 4rem;
    font-family: "bye", sans-serif;
    text-align: center;
    font-weight: bolder;
    padding: 5px 0;
    position: fixed;
    width: 100%;
    /* text-shadow: 1px 3px 10px white; */
    /* box-shadow: 4px 1px 25px white; */
}

#display-game {
    z-index: 99;
    width: 70%;
    margin: 0 auto;
    overflow: hidden;
    background: linear-gradient(90deg, #2165b3c7, #b43434c0);
    display: flex;
    padding: 20px 10px;
    justify-content: space-between;
    box-shadow: 1px 1px 13px 3px #00000063;
    border-radius: 10px;
    transition: all 1.5s ease-in-out;
}

.player-side {
    display: flex;
    width: 60%;
    height: 100%;
}

#player,
#computer {
    border-radius: 50%;
    width: 250px;
    height: 250px;
    overflow: hidden;
    box-shadow: 2px 2px 9px 1px black;
    display: flex;
    align-items: center;
    justify-content: center;
}

#player {
    margin: 0px 0 0 100px;
    background: #2557c288;
}

#computer {
    background: #b11a1a86;
    margin: 0px 100px 0 0px;
}

#player img,
#computer img {
    width: 99%;
    height: 99%;
    border-radius: 50%;
    filter: drop-shadow(1px 2px 5px #ffffff);
}

#controls {
    width: 55%;
    margin: 0 auto;
    background-color: rgba(187, 186, 186, 0.527);
    padding: 20px;
    border-radius: 20px;
    align-items: center;
    display: flex;
    justify-content: space-evenly;
}

.btn {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 1px 1px 8px 2px black;
    animation: shake 2s infinite ease-in-out;
}

.btn img {
    transition: all 0.3s ease-in-out;
    width: 100px;
    height: 100px;
}

.btn img:hover {
    transform: scale(1.1);
}

.btn:first-child {
    animation-delay: 0.5s;
}

.btn:last-child {
    animation-delay: 0.2s;
}

@keyframes shake {

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

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

#result-content {
    width: 50%;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.651);
    justify-content: space-evenly;
    align-items: center;
    display: flex;
    overflow: hidden;
}

#player-res,
#main-result,
#computer-res {
    text-align: center;
    font-size: 1.8rem;
    color: rgba(231, 223, 223, 0.945);
    font-weight: bold;
    padding: 15px 20px;
    transition: all 0.4s ease-in-out;
}

.wining-animation {
    transform: scale(1.2);
}

#d-img,
#dr-img,
#v-img {
    margin: 0 auto;
    width: 400px;
    height: 300px;
    display: none;
    animation: scale-img 2.5s forwards;
}

@keyframes scale-img {
    0% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }

    100% {
        opacity: 0.8;
        transform: scale(0);
    }
}

@media screen and (max-width:467px) {
    h1 {
        font-size: 1.7rem;
        padding: 20px 0;
        background: rgba(0, 0, 0, 0.452);
    }
    #display-game {
        width: 93%;
        height: 170px;
        padding: 0 5px;
        margin: 0 5px;
        align-items: center;
        transition: none;
    }

    .vs>p {
        font-size: 2rem;
        text-align: center;
    }

    #life {
        width: 65px;
        text-align: center;
        font-size: .5rem;
    }

    #player,
    #computer {
        padding: 10px;
        margin: 10px 5px;
        width: 140px;
        height: 140px;
        align-items: center;
    }

    #player img,
    #computer img {
        width: 100%;
        height: 100%;
    }

    #result-content {
        width: 83%;
        border-radius: 0px 0px 10px 10px;
    }

    #result-content>div {
        font-size: .6rem;
        padding: 15px 6px;
    }

    #controls {
        width: 250px;
        padding: 5px 10px;
        flex-wrap: wrap;
        border-radius: 0 0 20px 20px;
        justify-content: space-evenly;
    }

    .btn {
        margin: 5px 10px;
        width: 70px;
        height: 70px;
    }

    .btn img {
        text-align: center;
        width: 100%;
        height: 100%;
    }

    #v-img,
    #d-img,
    #dr-img {
        width: 60%;
        height: 200px;
    }
}
