@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Roboto:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f0f4f8;
    color: #333;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0vh;
}

.container {
    max-width: 3600px;
    width: 100%;
    padding: 25px 30px;
    text-align: center;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0px;
}

h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2rem;
    color: #3498db;
    margin: 0;
    padding: 10px 0;
    text-align: center;
}

.instructions {
    font-size: 0.9rem;
    color: #777;
    margin-top: 10px;
    margin-bottom: 15px;
}

.settings {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #555;
}

.settings label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.settings select {
    width: 100%;
    padding: 8px;
    font-size: 0.7rem;
    border-radius: 80px;
    border: 2px solid #3498db;
    background-color: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
}

.settings select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.settings select option[value="elite"] {
    font-weight: bold;
    color: #e74c3c;
}

.btn {
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#start {
    background-color: #2ecc71;
}

#start:hover, #reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.scoreboard {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    background-color: #ffffff;
    padding: 0px;
    border-radius: 80px;
}

.score-item {
    text-align: center;
    flex: 1;
}

.player-icon {
    font-size: 1.0rem;
    font-weight: bold;
    color: #3498db;
}

.score {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 5px;
    color: #2c3e50;
}

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

.cell {
    width: 85px;
    height: 85px;
    background-color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Fredoka One', cursive;
    color: #2c3e50;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cell:hover {
    background-color: #d5dbdb;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.status {
    margin-bottom: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #2c3e50;
}

#reset {
    background-color: #e74c3c;
    width: 100%;
}

.footer {
    text-align: center;
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 5px;
}

.countdown {
    font-size: 0.9rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
#twitterShare {
    background-color: #1DA1F2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

#twitterShare:hover {
    background-color: #0c85d0;
}
.winning-cell {
    animation: pulse 0.5s infinite;
    background-color: #2ecc71;
    color: white;
}
.winner-message {
    margin-top: 20px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
  }
@media (max-width: 400px) {
    .container {
        padding: 15px;
    }
    
    .cell {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
}