*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "MyFont", sans-serif;
    scroll-behavior: smooth;
    box-sizing:border-box
}

@font-face{
    font-family: "MyFont";
    src: url("Pixeled.ttf") format("truetype");
}

.tic-tac-toe{
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #5E122A, #9B3636);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    color: white;
}

.tic-tac-toe-title{
    margin-bottom: 10px;
    font-size: 50px;
}

.tic-tac-toe{
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, rgb(47, 45, 107), #2F5187);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
}

.game-container2{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#status2{
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

#board2{
    display: grid;
    grid-template-columns: repeat(3, 200px);
    grid-template-rows: repeat(3, 200px);
    gap: 8px;
    margin: 0 auto 20px;
}

.cell2{
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.cell2:hover{
    transform: scale(1.03);
    background: #f0f0f0;
}

.cell2.x{
    color: #e53935;
}

.cell2.o{
    color: #1e88e5;
}

#resetBtn2{
    padding: 12px 24px;
    font-size: 2rem;
    border: none;
    border-radius: 8px;
    background: white;
    color: #4a148c;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#resetBtn2:hover{
    background: #ececec;
}

.backArrow{
    font-size: 190px;
    color: #fff;
    position: fixed;
    top: -275;
    left: 100;
    transition: ease-in-out .5s;
}

.backArrow:hover{
    background-image: url(sculk\ minecraft\ wallpaper.jpg);
    background-size: cover;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

@media (max-width: 1440px){
    .backArrow{
        font-size: 90px;
        top: -125;
        left: 10;
    }

    #board2{
        grid-template-columns: repeat(3, 100px);
        grid-template-rows: repeat(3, 100px);
    }

    .cell2{
        width: 100px;
        height: 100px;
    }

    #resetBtn2{
        font-size: 1rem;
    }

    .tic-tac-toe-title{
        font-size: 20px;
    }

    #status2{
        font-size: 15px;
    }
}

@media (max-width: 768px){
    .tic-tac-toe-title{
        font-size: 17px;
    }

    #board2{
        grid-template-columns: repeat(3, 100px);
        grid-template-rows: repeat(3, 100px);
    }

    .cell2{
        width: 100px;
        height: 100px;
    }
}