@font-face {
font-family: "coveredbyyourgrace-regular-webfont";
src: url(coveredbyyourgrace-regular-webfont.woff) format("woff"),
     url(coveredbyyourgrace-regular-webfont.woff2) format("woff2");
     font-weight: normal;
     font-style: normal;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    margin-top: 100px;
    margin-bottom: 100px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "coveredbyyourgrace-regular-webfont", sans-serif;
    background-color:rgb(74, 117, 155) ;
    color: coral;
    
}

h1 {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    font-size: 4rem;
}

button{
    margin-top: 20px;
    width: 15rem;
    height: 6rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 10px;
    background-color:  rgb(13, 5, 88);
    color: coral;
    font-family: "coveredbyyourgrace-regular-webfont", sans-serif;
}

#player-form {
     display: none;
}


#player-form.active {
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    align-items: center;
    width: 15rem;
    flex-wrap: wrap;
}


input[type="text"] {
    display: flex;
    padding: 1rem;
    align-items: center;
    width: 100%;
    justify-content: center;
    background-color:  rgb(13, 5, 88);
    color: coral;
    border-radius: 10px;
    font-family: "coveredbyyourgrace-regular-webfont", sans-serif;
}

input::placeholder {
    font-weight: bold;
    font-size: 1.2rem;
    color: rgba(10, 109, 238, 0.37);
}

input:focus {
    color:  rgb(13, 5, 88);
    background-color: coral;
    box-shadow: 0 0 4px 3px coral;
}

label {
    padding-top: 10px;
    padding-bottom: 10px;
    color: rgba(13, 5, 88, 0.575);
    font-weight: bold;
    font-size: 1.5rem;
} 


input[type="submit"] {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    align-items: center;
    width: 8rem;
    height: 3rem;
    margin-top: 10px;
    border-radius: 10px;
    background-color:  rgba(13, 5, 88);
    font-family: "coveredbyyourgrace-regular-webfont", sans-serif;
    font-size: 1.5rem;
    color: coral;

}

input[type="submit"]:hover {
    cursor: pointer;
}

#board {
    display: none;
}

#board.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    aspect-ratio: 1/1;
    gap:0.5px;
    margin: 0 auto;

}


#results {
    margin-bottom: 25px;
    font-weight: bold;
    font-size: 1.8rem;
    padding: 10px;
}
    


.cell {
    width: 6rem;
     height: 6rem;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(13, 5, 88);
    font-size: 2.4rem;
    cursor: pointer;
    box-shadow: 0 0 4px 3px coral;
    color: coral;
    font-weight: bold;
    transition: all 0.9s ease;
}




#message {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    font-size: 2rem;
}

#new-game-button {
    display: none;
}

#new-game-button.active {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 15rem;
    height: 6rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 10px;
    background-color:  rgb(13, 5, 88);
    color: coral;
    font-family: "coveredbyyourgrace-regular-webfont", sans-serif;

}

