* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat';
    transition: all ease 0.3s;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

.main {
    background-color: #d0fff9;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-top: 2em;
    padding-bottom: 2em;
    gap: 2em;
}

.nav {
    background-color: #003c37;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5em;
    padding: 1em 3em;
    border-radius: 15px;
}

.nav button {
    color: white;
    font-size: 25px;
}

.nav button:hover {
    color: yellow;
}

.form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 100vw;
}

#name-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    background-color: #a0fff7;
    /* border-radius: 15px; */
    padding: 5em 5em;
    gap: 3em;
    border: solid #003c37 2px;
    box-shadow: 10px 10px 0 0 #003c37;
}

#name-form input {
    font-size: 20px;
    outline: none;
    padding: 5px 10px;
    background: none;
    border: 0;
    border-bottom: solid 2px black;
}

#name-form input::placeholder {
  color: #00655d;
}

#name-form button {
    background-color: #003c37;
    color: white;
    padding: 0.5em 2em;
    border-bottom: solid 1px #a0fff7;
    border-right: solid 1px #a0fff7;
    font-size: 20px;
    box-shadow: 5px 5px 0 0 rgb(0, 0, 0);   
}

#name-form button:hover {
    color: yellow;
}

.game-div {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3em;
    flex: 1;
    max-width: 100vw;
}

.board-div {
    display: grid;
    grid-template-rows: repeat(3, 120px);
    grid-template-columns: repeat(3, 120px);
    gap: 10px;
}

.cell {
    border-radius: 20px;
    font-size: 60px;
    font-weight: 700;
    background-color: aquamarine;
    text-shadow: 2px 2px 5px rgba(0, 208, 255, 0.6);
    font-family: "Fredoka", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.game-div button {
    background-color: #003c37;
    color: white;
    padding: 0.5em 2em;
    border-bottom: solid 1px #a0fff7;
    border-right: solid 1px #a0fff7;
    font-size: 20px;
    box-shadow: 5px 5px 0 0 rgb(0, 0, 0);   
}

.game-div button:hover {
    color: yellow;
}


@media (max-width: 540px) {
    .nav {
        padding: 1em 2em;
    }

    .nav button {
        font-size: 18px;
    }

    #name-form {
        padding: 3em 3em;
    }

    #name-form input {
        font-size: 18px;
    }

    #name-form button {
        padding: 0.25em 1.5em;
        font-size: 18px;
    }

    .board-div {
        grid-template-rows: repeat(3, 100px);
        grid-template-columns: repeat(3, 100px);
    }
}

@media (max-width: 380px) {
    .main {
        gap: 0;
    }

    .nav {
        padding: 1em 2em;
        gap: 3em;
    }

    .nav button {
        font-size: 16px;
    }

    #name-form {
        padding: 1em 1em;
    }

    #name-form input {
        font-size: 16px;
    }

    #name-form button {
        padding: 0.25em 1.5em;
        font-size: 16px;
    }
    
    .board-div {
        grid-template-rows: repeat(3, 80px);
        grid-template-columns: repeat(3, 80px);
    }
    
    .game-div button {
        padding: 0.5em 2em;
        font-size: 18px;
    }
}