body {
    display: grid;
    height: auto;
    align-content: center;
    background-color: black;
}

h1 {
    text-align: center;
    color: white;
    font-family: 'Michroma', sans-serif;
}

h1:hover {
    color: #2980b9;
}

.display-score {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    height: 20px;
    width: 420px;
    border: none;
    background-color: #1E96FF;
    text-align: center;
    margin: auto;
    padding: 40px;
    font-size: 30px;
    font-family: 'Michroma', sans-serif;
    border-radius: 4px;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

.grid-container {
    display: grid;
    background-color: black;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid: gap 10px;
    height: 500px;
    width: 500px;
    margin: auto;
    padding: 20px;

}

.grid-item {
    background-color: #fff;
    border: 1px solid #000;
    text-align: center;
    font-size: 80px;
    font-weight: bold;
    color: black;
    margin: 10px;
    padding: 10px;
    font-family: 'Michroma', sans-serif;
    border-radius: 4px;
    cursor: pointer;
}

.grid-item:hover {
    background-color: #2980b9;
}

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

.start-btn {
    padding: 10px 20px;
    font-size: 20px;
    color: white;
    background-color: #1E96FF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 500px;
    font-family: 'Michroma', sans-serif;
    text-transform: uppercase;
}

.start-btn:hover {
    background-color: #2980b9;
}

.start-btn:active {
    background-color: #2980b9;
}

footer {
    font-family: 'Michroma', sans-serif;
    color: white;
    text-align: center;
}

#indicate:hover ~ #flash #start-btn {
    background-color: red;
}

.hoverX:hover::after {
    content: "x";
    color: #2980b9;
    opacity: 0.4;
}

.hoverO:hover::after {
    content: "o";
    color: #3fbfbf;
    opacity: 0.4;
}

@media screen and (max-width: 400px) {
    body {
        display: grid;
        height: auto;
        align-content: center;
        background-color: black;
    }
    
    h1 {
        text-align: center;
        color: white;
        font-family: 'Michroma', sans-serif;
        font-size: 1.5em;
        margin: 1.1em;
    }
    
    h1:hover {
        color: #2980b9;
    }
    
    .display-score {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        height: 20px;
        width: 370px;
        border: none;
        background-color: #1E96FF;
        text-align: center;
        margin: auto;
        padding: 20px;
        font-size: 20px;
        font-family: 'Michroma', sans-serif;
        border-radius: 4px;
    }
    
    .grid-container {
        display: grid;
        background-color: black;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        grid: gap 10px;
        height: 400px;
        width: 400px;
        margin: auto;
        padding: 20px;
    
    }
    
    .grid-item {
        background-color: #fff;
        border: 1px solid #000;
        text-align: center;
        font-size: 50px;
        font-weight: bold;
        color: black;
        margin: 10px;
        padding: 10px;
        font-family: 'Michroma', sans-serif;
        border-radius: 4px;
        cursor: pointer;
    }
    
    .grid-item:hover {
        background-color: #2980b9;
    }
    
    .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        
    }
    
    .start-btn {
        padding: 10px 20px;
        font-size: 20px;
        color: white;
        background-color: #1E96FF;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        width: 400px;
        font-family: 'Michroma', sans-serif;
        text-transform: uppercase;
    }
    
    .start-btn:hover {
        background-color: #2980b9;
    }
    
    .start-btn:active {
        background-color: #2980b9;
    }
    
    footer {
        font-family: 'Michroma', sans-serif;
        color: white;
        text-align: center;
    }
    
    #indicate:hover ~ #flash #start-btn {
        background-color: red;
    }
    
    .hoverX:hover::after {
        content: "x";
        color: #2980b9;
        opacity: 0.4;
    }
    
    .hoverO:hover::after {
        content: "o";
        color: #3fbfbf;
        opacity: 0.4;
    }
}