*,
*::after,
*::before{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
html,
body{
    height: 100%;
}
body{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: pink;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}
.container{
    width: 1000px;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 30px;
    background-color: rgb(246, 225, 229);
    border-radius: 10px;
    box-shadow: 1px 2px 50px gray;
}
button:hover{
    cursor: pointer;
}
button:active{
    background-color: rgb(255, 157, 121);
}
.players{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
}

h1{
    margin-top: 100px;
    font-size: 40px;
    letter-spacing: 2px;
    font-weight: 200;
    margin-bottom: 20px;
    color: rgb(57, 25, 3);
}
.players .commonBall{
    font-size: 100px;
    margin-bottom: 110px;
    color: orangered;
}
.players button{
    width: 200px;
    height: 120px;
    background-color: rgb(253, 82, 19);
    border: none;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    text-transform: uppercase;
    color: white;
}
#tempBall1,
#tempBall2{
    font-size: 35px;
}
.selectedPlayer{
    background-color: #ffeaea;
    box-shadow: 0px 0px 30px gray;
    font-weight: 600;
    border-radius: 10px;
}
.container div{
    width: 100%;
}
.control{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    opacity: 0.9;
    width: 150px;

}
.control button,
#newgame{
    width: 200px;
    height: 50px;
    border-radius: 50px;
    border: none;
    text-transform: uppercase;
    font-size: 18px;
    opacity: 0.9;
    box-shadow: 10px 10px 20px rgb(142, 141, 141);
}
.control img{
    width: 100px;
    position: absolute;
    margin-top: 170px;
}
#newgame{
    margin-top: 40px;
    margin-bottom: 300px;
}
#rolldice{
    margin-bottom: 20px;
}
.link-to-info{
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    color: red;
    padding-bottom: 50px;
}
.finish{
    margin-top: 0px;
    margin-bottom: 0px;
}

.winner{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: pink;
    margin-top: 100px;
    width: 500px;
    height: 480px;
    border-radius: 10px;
    padding: 30px 20px;
    z-index: 1;
    box-shadow: 1px 1px 30px black;
    
    p{
        font-size: 40px;
        font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
        font-weight: 500;
    }
    h6{
        margin-top: 40px;
        display: flex;
        align-items: center;
        gap: 30px;
        span{
            font-size: 30px;

        }
    }
    #newgame{
        padding: 10px 0px;
        margin-top: 100px;
    }
}
.overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.5); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    backdrop-filter: blur(5px);
}

.hidden{
    display: none;
}
a:hover{
    text-decoration: underline;
}