body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(45deg, #f3ec78, #af4261);
  
}


.toss-result {
    font-size: 1.2em;
    color: white;
    margin: 10px 0;
}



.mode-select {
    margin-bottom: 15px;
}

#player2ScoreContainer {
    display: none;
}

#computerScoreContainer {
    display: none;
}


.container {
    text-align: center;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    padding: 20px;
    border-radius: 15px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.settings-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}.settings-modal input[type="text"] {
    display: block;
    margin-bottom: 10px;
    padding: 5px;
    width: 100%;
}


.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
}


.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
}

#settingsButton {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
}

#settingsButton:hover {
    background-color: #45a049;
}

#saveSettings {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

#saveSettings:hover {
    background-color: #45a049;
}


h1 {
    margin-bottom: 20px;
    color: white;
}

.score-board {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    color: white;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 10px;
    margin-bottom: 20px;
}

.cell {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border: 2px solid #333;
    font-size: 2em;
    cursor: pointer;
}


.cell:hover {
    background-color: #f0f0f0;
}

#resetButton {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
}

.result-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    z-index: 2;
}
.difficulty {
    margin-bottom: 20px;
    color: white;
}

.difficulty select {
    padding: 5px;
    font-size: 1em;
}


.result-message {
    font-size: 2em;
    margin-bottom: 20px;
}

#newGameButton {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    margin-bottom: 20px;
}

.share-options {
    text-align: center;
}

.share-options a {
    display: block;
    margin: 10px 0;
    color: white;
    text-decoration: none;
    font-size: 1em;
    background-color: #007BFF;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.share-options a:hover {
    background-color: #0056b3;
}



@media (max-width: 600px) {
    .game-board {
        grid-template-columns: repeat(3, 60px);
    }

    .cell {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }
}