/* *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,body{
    height:100%;
    width:100%;
    background-color:#0b5563 ;
    text-align: center;
    
}
#TTT{
    color: aliceblue;
    font-size: 50px;
}
#container{
    height: 70vh;
      display: flex;
    align-items: center;
    justify-content: center;
}
#game{
    height: 60vmin;
    width: 60vmin;
    display: flex;
    flex-wrap: wrap;
    gap:16px;
    display: flex;
    align-items: center;
    justify-content: center;
  
}
.box{
    height: 18vmin;
    width:18vmin;
    font-size:50px;
    border-radius: 10px;
     box-shadow: 0 0 2rem rgb(135, 131, 135);
     background-color: rgb(205, 198, 188);
     color: black;
}

#reset-btn{
    padding: 20px;
    border-radius: 10px;
    font-size: 30px;
    background-color: black;
    color: #fff;
    box-shadow:  0 0 2rem rgb(171, 89, 235);
}
#msg{
    font-size: 60px;
    color: #f0f4f5;
}

#new-btn{
    padding: 20px;
    border-radius: 10px;
    font-size: 30px;
    background-color: black;
    color: #fff;
}

#msg-container{
    height: 30vmin;
}
.hide{
    display: none;
} */


/* ......2222 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    background-color: #0b5563;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

/* Title */
#TTT {
    color: aliceblue;
    font-size: 50px;
    margin-top: 20px;
}

/* Game Container */
#container {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Game Board */
#game {
    height: 60vmin;
    width: 60vmin;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

/* Each Box */
.box {
    height: 18vmin;
    width: 18vmin;
    font-size: 50px;
    border-radius: 10px;
    box-shadow: 0 0 2rem rgb(135, 131, 135);
    background-color: rgb(205, 198, 188);
    color: black;
    cursor: pointer;
}

/* Buttons */
#reset-btn, #new-btn {
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 25px;
    background-color: black;
    color: #fff;
    box-shadow: 0 0 2rem rgb(171, 89, 235);
    border: none;
    cursor: pointer;
    margin: 10px;
}

/* Message */
#msg {
    font-size: 60px;
    color: #f0f4f5;
}

#msg-container {
    height: 30vmin;
}

.hide {
    display: none;
}

/* 🌐 Responsive Design */

/* Tablets (Portrait & Landscape) */
@media (max-width: 1024px) {
    #TTT {
        font-size: 40px;
    }

    #game {
        height: 70vmin;
        width: 70vmin;
        gap: 12px;
    }

    .box {
        height: 20vmin;
        width: 20vmin;
        font-size: 40px;
    }

    #msg {
        font-size: 45px;
    }

    #reset-btn, #new-btn {
        font-size: 22px;
        padding: 12px 20px;
    }
}

/* Mobile Devices */
@media (max-width: 600px) {
    #TTT {
        font-size: 32px;
        margin-top: 10px;
    }

    #game {
        height: 80vmin;
        width: 80vmin;
        gap: 10px;
    }

    .box {
        height: 24vmin;
        width: 24vmin;
        font-size: 32px;
    }

    #msg {
        font-size: 35px;
    }

    #reset-btn, #new-btn {
        font-size: 20px;
        padding: 10px 18px;
    }
}

/* Very Small Phones */
@media (max-width: 400px) {
    #TTT {
        font-size: 28px;
    }

    #game {
        height: 85vmin;
        width: 85vmin;
        gap: 8px;
    }

    .box {
        height: 26vmin;
        width: 26vmin;
        font-size: 28px;
    }

    #msg {
        font-size: 28px;
    }

    #reset-btn, #new-btn {
        font-size: 18px;
        padding: 8px 15px;
    }
}
