*{
    margin: 0;
    padding: 0;
}

body{
    background-color: #1a1a1a;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1{
    color: #ffffff;
    font-size: 4rem;
    margin: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff, 0 0 30px #00aaff;
}

.container{
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game{
    height: 60vmin;
    width: 60vmin;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5vmin;
}

.box{
    height: 18vmin;
    width: 18vmin;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0 1rem rgba(0, 170, 255, 0.5);
    font-size: 7vmin;
    color: #ffffff;
    cursor:pointer;
    background-color: #333333;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.box:hover {
    background-color: #444444;
    transform: scale(1.05);
    box-shadow: 0 0 1.5rem rgba(0, 170, 255, 0.8);
}

#reset-btn, #new-btn, #popup-new-btn {
    margin: 2rem;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    border-radius: 0.5rem;
    border: none;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.2s;
}

#reset-btn {
    background-color: #b0423e;
    box-shadow: 0 0 0.7rem #b0423e;
}

#new-btn, #popup-new-btn {
    background-color: #3eb05a;
    box-shadow: 0 0 0.7rem #3eb05a;
}

#reset-btn:hover, #new-btn:hover, #popup-new-btn:hover {
    transform: scale(1.05);
}

#mess{
    color: yellow;
    font-size: 5vmin;
    text-shadow: 0 0 10px yellow;
}

.mess-container{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    gap: 4rem;
    z-index: 1000;
}

.hide{
    display: none;
}

.box.o {
    color: #00aaff;
    text-shadow: 0 0 10px #00aaff;
}

.box.x {
    color: #ff4d4d;
    text-shadow: 0 0 10px #ff4d4d;
}