/* style.css */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    background-color: #333;
    width: 100%;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
}

.back-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fcce00;
    font-weight: bold;
}

.back-button i {
    margin-right: 5px;
}

.back-button svg {
    width: 2em;
    height: 2em;
    vertical-align: middle;
}


main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

h1 {
    color: #fcce00;
    text-align: center;
}

hr {
    width: 100%;
    border: none;
    border-top: 3px solid #fcce00;
    margin: 20px 0;
}

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

.game button {
    width: 100px;
    height: 100px;
    font-size: 3rem;
    border: 3px solid #fcce00;
    border-radius: 5px;
    background-color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.game button:hover {
    background-color: #fcce00;
}

.currentPlayer {
    font-size: 1.5rem;
    color: #fcce00;
    margin-top: 20px;
}

/* Estilos para telas pequenas (até 768px de largura) */
@media (max-width: 768px) {
    .game {
        grid-template-columns: repeat(3, 80px);
        /* Diminui o tamanho dos quadrados */
        grid-template-rows: repeat(3, 80px);
        gap: 5px;
        /* Diminui o espaçamento entre os quadrados */
    }

    .game button {
        font-size: 2rem;
        /* Diminui o tamanho da fonte */
    }
}

/* Estilos para telas muito pequenas (até 480px de largura) */
@media (max-width: 480px) {
    .game {
        grid-template-columns: repeat(3, 60px);
        /* Diminui ainda mais o tamanho dos quadrados */
        grid-template-rows: repeat(3, 60px);
    }

    .game button {
        font-size: 1.5rem;
        /* Diminui ainda mais o tamanho da fonte */
    }
}


a {
    text-decoration: none;
    color: #fcce00; /* Altere a cor conforme necessário */
    position: relative;
    overflow: hidden;
    padding: 20px;
}

a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #fcce00; /* Cor do sublinhado amarelo */
    bottom: 0;
    left: 0;
    transition: width 0.3s ease; /* Adiciona uma transição suave à largura */
}

a:hover::before {
    width: 100%;
}

