*{
    padding: 0;
    margin: 0;
}
body{
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-color: #667eea;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.screen{
    /* background-color: aqua; */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.nav{
    /* background-color: #764ba2; */ 
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 0px 10px 0px 10px;
    /* margin-top: 15px; */
}
.nav button{
    background-color: #ffeaa7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: none;
    margin-right: 20px;
    width: 100px;
    height: 35px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    color: #2d3436;
}

.game{
    /* background-color: red; */
    text-align: center;
    margin: 10px 0;
    color: #ffeaa7;
}
.game h1{
    font-weight: bolder;
    font-size: 40px;
}
.game p{
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.board{
    /* background-color: blue; */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    /* gap: 10px; */
    width: fit-content;
    margin: auto;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.board div{
    background-color: rgba(240, 234, 235, 0.707);
    box-shadow: 0 0px 10px rgba(0,0,0,0.2);
    border-radius: 8px;
    margin: 5px;
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #545454;
    font-weight: bolder;
    font-size: 25px;
    cursor: pointer;
    transition: 0.2s;
}
.board div:hover{
    background-color: rgba(240, 234, 235, 0.396);
}
.action button{
    border: none;
    background-color: #5470ee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    height: 35px;
    width: 100px;
    border-radius: 8px;
    margin: 10px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.footer{
    /* background-color: yellow; */
    text-align: center;
    color: white;
}

.dark-mode {
    background: linear-gradient(135deg, #000000, #434343);
    color: white;
}

.dark-mode .box {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: pop 0.3s ease-in-out;
}

@keyframes pop {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content input {
    display: block;
    margin: 10px auto;
    padding: 10px;
    width: 200px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.modal-content button {
    padding: 10px 20px;
    background: #5470ee;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* leaderboard */
.leaderBoard{
    /* background-color: #2d3436; */
    align-self: center;
}
.leaderBoardBox{
    background-color: rgba(240, 234, 235, 0.707);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(19, 49, 181, 0.477);
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: fit-content;
}
.player1, .player2, .draw{
    text-align: center;
    color: #2d3436;
    font-size: 16px;
    font-weight: 600;
}