body {
    background-color: #323232;
    font-family: 'Open Sans', sans-serif;
}

h1 {
    text-align: center; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.player__indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.player__indicator svg {
    width: 70px;
    height: 70px;
    filter: grayscale(100%);
    transition: filter 0.3s ease; 
}

.active__playerindicator svg {
    filter: grayscale(0%); 
}

#content {
    display: flex;
    justify-content: center;
    align-items: center;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td {
    width: 100px;
    height: 100px;
    text-align: center;
    vertical-align: middle;
    font-size: 24px; 
    color: white; 
    border: 5px solid white;
    border-left: none;
    border-top: none;
    cursor: pointer;
}

td:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

tr:first-child td {
    border-top: none;
}

tr td:first-child {
    border-left: none;
}

tr:last-child td {
    border-bottom: none;
}

tr td:last-child {
    border-right: none;
}

.winning__line {
    position: absolute;
    background-color: white;
    height: 5px;
    transform-origin: left center;
    pointer-events: none;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
}

.restartgame__button {
    background-color: #FF5733; 
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
}

.restartgame__button:hover {
    background-color: #C13D27; 
    transform: scale(1.1); 
}

.restartgame__button:active {
    transform: scale(1.05); 
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3); 
}

.restartgame__button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 87, 51, 0.5);
}

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #4b4b4b;;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color:  #FF5733;
    -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}

::-webkit-scrollbar-thumb:hover {
    background: #C13D27;
}

.game__overtable {
    filter: grayscale(50%);
    transition: filter 0.3s ease; 
}

@media(max-width: 400px) {
    td {
        height: 80px;
        width: 80px;
    }

    .restartgame__button {
        font-size: 16px;
    }
}

