* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 30px;
}

h2 {
    color: #555;
    margin-bottom: 20px;
}

.tela {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hidden {
    display: none !important;
}

button {
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 12px 20px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:active {
    transform: scale(0.98);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

#tabuleiro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    margin: 20px 0;
}

.celula {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    height: 100px;
    transition: all 0.3s;
}

.celula:hover {
    background-color: #f0f0f0;
}

.celula.x {
    color: #e74c3c;
}

.celula.o {
    color: #3498db;
}

#info-jogador {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

#btn-reiniciar {
    margin-top: 15px;
}

#btn-voltar-jogo, #btn-voltar-registro, #btn-voltar-historico {
    background-color: #7f8c8d;
    margin-top: 10px;
}

#btn-voltar-jogo:hover, #btn-voltar-registro:hover, #btn-voltar-historico:hover {
    background-color: #6c7a7d;
}

#lista-historico {
    max-height: 300px;
    overflow-y: auto;
    margin: 20px 0;
    text-align: left;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.jogador-historico {
    margin-bottom: 20px;
}

.jogador-historico h3 {
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.partida-item {
    margin-bottom: 5px;
    padding: 5px;
    background-color: #f0f0f0;
    border-radius: 3px;
}

/* Modal */
#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

#resultado-titulo {
    margin-bottom: 15px;
    color: #333;
}

#resultado-mensagem {
    margin-bottom: 20px;
    color: #555;
}

#btn-fechar-modal {
    background-color: #3498db;
}

#btn-fechar-modal:hover {
    background-color: #2980b9;
}

/* Banner de instalação */
#install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 15px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 900;
}

#install-banner p {
    margin-bottom: 10px;
}

.install-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#btn-install {
    background-color: #3498db;
}

#btn-install:hover {
    background-color: #2980b9;
}

#btn-dismiss-install {
    background-color: #7f8c8d;
}

#btn-dismiss-install:hover {
    background-color: #6c7a7d;
}

/* Estilos para dispositivos móveis */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    .celula {
        height: 80px;
        font-size: 36px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    button {
        padding: 10px 15px;
        font-size: 14px;
    }
} 