* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* border: 1px solid hotpink; */
}

section {
    width: 100%;
    height: 100%;
    background-color: rgb(39, 41, 68);
    font-family: sans-serif;
    background-image: url(/images/bbpbgcopy.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.score {
    color: rgb(244, 241, 241);
    height: 20vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6rem;
    gap: 450px;
}

.score h2 {
    font-size: 40px;
    font-weight: bolder;
    margin-top: 3rem;
}

.score p {
    text-align: center;
    padding: 10px;
    font-size: 40px;
    font-weight: bolder;
}

.intro {
    margin-left: 1rem ;
    margin-right: 3rem;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transition: opacity 0.5s ease;
}

.img-container {
    width: 500px;
    height: 350px;
    margin-top: -1.5rem;
    padding:0;
    
}

.img-container img {
    width:100%;
    margin-top: 0;
    margin-bottom: 0;
}

.intro img{
    display: flex;
    width: 500px;
    height: 350px;
    color: rgb(224, 224, 224);
    font-size:20px;
    border-radius: 3px;
    
}

.intro p {
    width: 320px;
    height: 100px;
    color: rgb(244, 241, 241);
    background: rgb(100, 101, 101);
    font-size:15px;
    text-align: center;
    border-radius: 3px;
    padding-top: 5px;
    margin-top: -1rem;
}

.intro button {
    width: 320px;
    height: 50px;
    border: none;
    color: rgb(244, 241, 241);
    font-size:20px;
    font-weight: bold;
    background: goldenrod;
    border-radius: 3px;
    align-items: center;
    margin-top: -7.5rem;
}

.match {
    position: absolute;
    top: 30%;
    left:50%;
    width: 350px;
    height: 350px;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease 0.5s;
}

.winner {
    width: 420px;
    background: goldenrod;
    border-radius: 3px;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
    padding-left: 2.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
    margin-left: -3.9rem;
    color: rgb(244, 241, 241);
    font-size: 30px;
}

.winner h2{
    color: rgb(244, 241, 241);
    font-size: 30px;
    margin-left: -20px;
}

/* winner.textContent{
    text-align: center;
} */

.options {
    display: flex;
    width: 420px;
    justify-content: center;
    align-items: center;
    margin-left: -3.9rem;
}

.options button {
    width: 250px;
    height: 50px;
    border: none;
    border-radius: 3px;
    color: rgb(244, 241, 241);
    background: goldenrod;
    font-size:25px;
    font-weight: bold;
}

.hands {
    /* position: relative; */
    display: grid;
    grid-template-columns: 400px 300px;
    gap: 0;
    padding: 0;
    margin: auto;
    
}

#player-hand{
    margin-left: -8rem;
    
}

#computer-hand{
    margin-left: -13rem;
}

.options {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 0;
}

.gameover-screen {
    display: none;
    height: 100%;
    margin-left: 3rem ;
    margin-right: 3rem;
    /* background: rgb(152, 152, 152); */
    /* justify-content: space-around; */
    /* align-items: center; */
    text-align: center;
    /* border-radius: 5px; */
}

.gameover-screen h2 {
    color: rgb(244, 241, 241);
    font-size: 40px;
    margin-top: 1rem;
    margin-bottom: .5rem;
}

.panalo {
    color: rgb(244, 241, 241);
    font-size: 60px;
    font-weight: bold;
}

.gameover-screen button {
    width: 300px;
    height: 50px;
    border: none;
    color: rgb(244, 241, 241);
    font-size:20px;
    font-weight: bold;
    background: goldenrod;
    border-radius: 3px;
    margin-top: 4rem;
    margin-bottom: 8rem;
    justify-content: center;
    align-items: center;
}

.stop {
    display: flex;
    align-items: left;
    justify-content: space-around;
    padding-top: 4rem;
    padding-bottom: 0;
    margin-bottom: 0;
    margin-left: -4rem;
    margin-top: -1rem;
    gap: 20px;
}

.reset {
    margin-top: 1rem;
}

.ulit {
    margin-top: 2rem;
    width: 200px;
    height: 40px;
    border: none;
    color: rgb(244, 241, 241);
    font-size:20px;
    background: rgb(28, 28, 28);
    border-radius: 3px;
}

.quit {
    margin-top: 1rem;
    text-align: center;
}

.ayoko-na {
    margin-top: 2rem;
    width: 200px;
    height: 40px;
    border: none;
    color: rgb(244, 241, 241);
    font-size:20px;
    background: rgb(28, 28, 28);
    border-radius: 3px;
}

div.fadeOut {
    opacity: 0;
    pointer-events: none;
}

div.fadeIn {
    opacity: 1;
    pointer-events: all;
}

@keyframes shakePlayer {
    0% {
        transform: translateY(0px)
    }
    15% {
        transform: translateY(-50px)
    }
    35% {
        transform: translateY(0px)
    }
    55% {
        transform: translateY(-50px)
    }
    65% {
        transform: translateY(0px)
    }
    100% {
        transform: translateY(-50px)
    }
}

@keyframes shakeComputer {
    0% {
        transform: translateY(0px)
    }
    15% {
        transform: translateY(-50px)
    }
    35% {
        transform: translateY(0px)
    }
    55% {
        transform: translateY(-50px)
    }
    65% {
        transform: translateY(0px)
    }
    100% {
        transform: translateY(-50px)
    }
}

@media screen and (max-width: 420px) {

    body {
        width: 100%;
        height: 100%;
        background-repeat: no-repeat;
        background-color: rgb(39, 41, 68);
        font-family: sans-serif;
        background-image: url(/images/bbpbgcopy.png);
        background-size: 200% 200%;
    }
    section {
        width: 100%;
    }
    
    .score {
        color: rgb(244, 241, 241);
        height: 15vh;
        display: flex;
        align-items: center;
        margin-left: 2rem;
        margin-right: auto;
        padding-top: 3rem;
        gap: 1rem;
    } 

    .score h2 {
        font-size: 20px;
        font-weight: bolder;
        margin-top: 18rem;
    }
    
    .score p {
        text-align: center;
        padding: 5px;
        font-size: 20px;
        font-weight: bolder;
    }

    .player-score {
        margin-left: 0;
    }

    .computer-score{
        margin-left: 0;
    }

    .intro {
        margin-left: auto;
        margin-right: auto;
        margin-top: 2.5rem;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        transition: opacity 0.5s ease;
    }
    
    .img-container {
        width: 300px;
        height: 300px;
        margin-top: 6rem;
        padding:0;
        
    }
    
    .img-container img {
        width:100%;
        height: 90%;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .intro p {
        width: 100%;
        height: 120px;
        color: rgb(244, 241, 241);
        background: rgb(100, 101, 101);
        font-size:15px;
        text-align: center;
        border-radius: 3px;
        padding: 15px;
        margin-top: -1.5rem;
        margin-bottom: 10px;
    }
    
    .intro button {
        width: 100%;
        height: 50px;
        border: none;
        color: rgb(244, 241, 241);
        font-size:20px;
        font-weight: bold;
        background: goldenrod;
        border-radius: 3px;
        align-items: center;
        margin-top: -7.5rem;
    }

    .match {
        position: absolute;
        top: 30%;
        left:50%;
        width: 350px;
        height: 250px;
    }

    .winner {
        width: 500px;
        padding: auto;
        text-align: left;
        font-size: 15px;
        margin-left: -3rem;
        margin-right: 0;
        margin-top: .5rem;
        padding-left: 12rem;
    }

    .winner h2 {
        font-size: 15px;
        margin-left: -13rem;
        text-align: center;
    }

    .hands {
        margin-left: 3rem;
        margin-top: 7.5rem;
        margin-bottom: 3.5rem;
        margin-right: 0;
        align-items: center;
    }

    #player-hand {
        width: 150px;
        height: 150px;
        margin-left: 0;
    }

    #computer-hand {
        width: 150px;
        height: 150px;
        margin-left: -18rem;
        margin-right: 0;
    }

    .options button {
        width: 150px;
        font-size: 15px;
        padding: 10px;
        margin-left: 3.5rem;
    }

    .options {
        display: grid;
        gap: 10px;
        justify-content: space-evenly;
        align-items: center;
    }

    .gameover-screen {
        margin-top: 8rem;
        margin-left: 3.5rem;
        align-items: center;
        font-size: 20px;
    }

    .gameover-screen p {
        align-items: center;
        font-size: 30px;
    }

    .gameover-screen button {
        width: 100%;
        height: 50px;
        border: none;
        color: rgb(244, 241, 241);
        font-size:20px;
        font-weight: bold;
        background: goldenrod;
        border-radius: 3px;
        align-items: center;
        margin-top: 3.5rem;
    }

    .stop {
        display: flex;
        justify-content: left;
        margin-top: -8.5rem;
        margin-left: 5.5rem;
        gap: .5rem;
    }

    .reset {
        margin-left: 0;
        margin-top: 0;
    }

    .quit {
        margin-left: 0;
        margin-top: 0;
    }

    .ulit {
        width: 90px;
        /* height: 25px; */
        font-size: 13px;
    }

    .ayoko-na {
        width: 90px;
        /* height: 25px; */
        font-size: 13px;
        /* margin-top: -6rem; */
    }
}

