@font-face {
    font-family: 'tac';
    src: url(../font/TicTacToe.ttf);
}

.tic-tac-toe-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*background-color: #f0f0f0;*/
    background-color: #fff;
    padding: 0.5rem 1rem 2rem 1rem;
    /*min-height: 100vh;*/
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.tic-tac-toe-container h1 {
    /*font-size: 3rem;*/
    font-weight: 900;
    color: #333;
    text-align: center;
    /*margin-bottom: 1.5rem;*/
    margin-bottom: .5rem;
    margin-top: .5rem;
}

.board-container {
    display: none;
    width: 100%;
    max-width: 500px;
    max-height: 80%;
    /*height: 500px;*/
    height: auto;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

/* Player choices section */
.load-up {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1.2rem;
}

.player-choices {
    display: flex;
    flex-direction: row; /* Change this to row */
    align-items: center;
    gap: 3rem; /* Adjust spacing if needed */
}

.player {
    border: 2px solid #333;
    border-radius: 12px;
    /*padding: 2rem;*/
    padding: 1rem;
    background-color: #fff;
    width: 45%; /* Adjust width to fit side by side */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.player h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.marker, .color {
    margin-bottom: 1rem;
}

.name {
    margin-bottom: 0.5rem;
}

.marker p {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.color p {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tic-tac-toe-container .featured-card-heading {
    width: 100%;
    /*padding: 6px 0px;*/
}

.player-selection {
    display: flex;
    justify-content: space-evenly;
}

.player-chooser {
    font-size: 1.5rem;
    cursor: pointer;
    /*background-color: transparent;*/
    /*background-color: #01356b;*/
    /*border: none;*/
    transition: background-color 0.3s ease;
    /*color: aliceblue;*/
    padding: 5px;
    border: 2px solid color(a98-rgb 0.13 0.22 0.41 / 0.34);
    color: #01356b;
    background-color: #fff;
}

.player-chooser:hover {
    color: #01356b;
    background-color: #fff;
    /*background-color: #e0e0e0;*/
}

.player-chooser:focus {
    outline: none;
}

/* Color picker */
input[type="color"] {
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.start {
    padding: 12px 24px;
    border: 2px solid #01356b;
    background-color: #01356b;
    color: aliceblue;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start:hover {
    color: #01356b;
    background-color: aliceblue;
}

.human, .ai {
    display: inline-block;
    margin: 0px 10px;
}

legend {
    font-size: 1rem;
}

input[type="text"] {
    margin-bottom: 5px;
}

.human label, .ai label {
    display: block;
    font-weight: 600;
    margin-bottom: 0px;
    color: #555;
}

/* Result and Reset Button */
.result {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0.5rem;
    transition: all 0.3s ease-in-out;
}

.reset-container {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.reset {
    padding: 12px 24px;
    border: 2px solid #01356b;
    background-color: #01356b;
    color: aliceblue;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reset:hover {
    color: #01356b;
    background-color: aliceblue;
}

/* Game Board */
.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin-top: 2rem;
    font-size: 3rem;
    margin: auto;
}

.board div {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 3px solid #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 130px;
}

.board div:hover {
    background-color: #f1f1f1;
}

/*#square6, #square7, #square8 {
    border-bottom: none;
}

#square2, #square5, #square8 {
    border-right: none;
}*/

/* Footer */
footer {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background-color: #333;
    color: #fff;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .player-choices {
        flex-direction: column; /* Stack player choices vertically on mobile */
        gap: 2rem; /* Adjust gap */
        align-items: center;
    }

    .player {
        width: 90%; /* Make player sections take up more space on mobile */
    }

    .start {
        width: 100%;
    }
    
    .tic-tac-toe-container {
        padding: 1rem; /* Adjust padding for smaller screens */
    }
    
    .tic-tac-toe-container .featured-card-heading {
        margin-top: 0px;
    }
}

