@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');

:root {
    --border: 3px solid #0e7490;
    --background: #1c1917;
    --white-color: #f0f9ff;
    --light-color: #0e7490;
    --font-family: "Indie Flower", "Times New Roman", sans-serif;
}

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

body {
    background-color: var(--background);
    font-family: var(--font-family);
    min-height: 100vh;
    width: 100vw;

    display: flex;
    flex-direction: column;
}

/* HEADER */

header {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: scroll;

    padding-top: 10px;
}

h1 {
    color: var(--light-color);
    font-size: 5rem;
}

/* MAIN */

main {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;

    padding-bottom: 50px;
}

.turn {
    color:var(--white-color);
    font-size: 2rem;
    padding-bottom: 20px;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);

    height: 450px;
    width: 450px;
}

.cell {
    text-align: center;
    font-size: 6.3rem;

    cursor: pointer;
    color: var(--white-color);
}

.cell:hover {
    background-color: #2c2724;
}

.cell:not(:nth-child(3n)) {
    border-right: var(--border);
}

.cell:not(:nth-last-child(-n + 3)) {
    border-bottom: var(--border);
}

.inputs {
    padding-top: 40px;
    padding-bottom: 20px;
    display: flex;
    gap: 10px;
}

input {
    border: 1px solid var(--white-color);
    border-radius: 5px;
    background-color: rgb(28, 25, 23,0.6);
    box-shadow: 1px 1px 2px 1px var(--light-color);
    padding: 8px;
    color: var(--light-color);
    font-family: var(--font-family);
    font-size: 1.2rem;
}

input::placeholder {
    color: var(--light-color);
    font-size: 1.2rem;
}

input:focus {
    appearance: none;
    outline: none;
    background-color: rgb(28, 25, 23,1);
}

.buttons {
   display: flex;
   justify-content: space-around;
   gap: 10px;
   width: 410px;
   height: 50px;
}

#startBtn,
#resetBtn {
    color: var(--white-color);
    border: 2px solid var(--white-color);
    font-family: var(--font-family);
    background-color: var(--light-color);
    font-size: 2rem;
    border-radius: 8px;
    flex-grow: 1;
    width: 100%;
    height: 100%;
}


#startBtn:hover,
#resetBtn:hover {
    cursor: pointer;
}

/* FOOTER */

footer {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: auto;
}

footer p {
    color: var(--white-color);
    font-size: 1.2rem;
}

@media only screen and (max-width: 600px) {   
    
    h1 {
        font-size: 4rem;
    }

    main {
        padding-bottom: 0px;
    }

    .turn {
        font-size: 1.5rem;
    }

    .board {
        width: 280px;
        height: 280px;
    }

    .cell {
        font-size: 3.3rem;
    }

    .inputs {
        padding-top: 30px;
        padding-bottom: 15px;
        width: 300px;
    }
    
    input {
        width: 100%;
    }

    .buttons {
        width: 300px;
        height: 50px;
     }

  }