@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

*{
    margin: 0;
    padding: 0;
    font-family: "Nunito", sans-serif;
}

html{
    height: 100%;
}

body{
    min-height: 100%;
    background-color: #0f172a;
    display: grid;
    grid-template-rows: 100px 1fr;
}

h2{
    color: #f1f5f9;
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grid{
    height: 60%;
    aspect-ratio: 1/1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.grid div{
    cursor: pointer;
    border: 2px solid #475569;
    display: flex;
    justify-content: center;
    align-items: center;
    color:#f1f5f9;
    font-size: 4rem;
}

#cell-1,#cell-2,#cell-3{
    border-top: 0;
}

#cell-1,#cell-4,#cell-7{
    border-left:0;
}

#cell-3,#cell-6,#cell-9{
    border-right: 0;
}

#cell-7,#cell-8,#cell-9{
    border-bottom: 0;
}

form{
    margin-bottom: 80px;
    display: flex;
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

form div{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

form label{
    color: #10b981;
    font-size: 1.25rem;
}

form input{
    border: none;
    outline: none;
    border-radius: 10px;
    width: 200px;
    padding: 5px;
}

.overlay{
    position: fixed;
    top:0;
    bottom:0;
    left:0;
    right:0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.overlay h2{
    color: #10b981;
}

.container button{
    margin-top: 50px;
    margin-bottom: 50px;
}

.overlay button, .container button{
    cursor: pointer;
    display: block;
    height: 40px;
    width: 100px;
    color:white;
    font-weight: bold;
    background-color: #1e40af;
    border: none;
    border-radius: 5px;
}

.overlay button:hover, .container button:hover{
    background-color: #1e3a8a;
}