html, body {
    margin: 0;
    padding: 0;
    background-color: #173b29;
    text-align: center;
    height: 100%;
}

header span {
    flex-grow: 1;
    font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1pt;
    line-height: 3rem;
    color:white
}

main {
    align-items: center;
    position: relative;
    width: 420px;
    text-align: center;
    user-select: none;
    margin: auto;
}



main #board {
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
    padding: 1rem;

    height: 420px;
}

#innerBoard {
    box-sizing: border-box;
    padding: 1px;
    position: relative;
    display: grid;
    flex-grow: 1;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    aspect-ratio: 1/1;
    background-color: antiquewhite;
}

.box {
    box-sizing: border-box;
    padding: 1px;
    position: relative;
    display: grid;
    flex-grow: 1;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    aspect-ratio: 1/1;
    background-color: antiquewhite;
}

.cell {
    background-color: #173b29;
    font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1pt;
    color:#FFE5B4;
}

.given {
    color: white;
}

.subActive {
    background-color: #225f40;
}

.active {
    background-color: rgb(15, 113, 15);
}

.wrongCell {
    color: red;
}

.wrongCell.given {
    color: lightcoral;
}

.cell.notes {
    box-sizing: border-box;
    padding: 1px;
    position: relative;
    display: grid;
    flex-grow: 1;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    aspect-ratio: 1/1;
}

.noteCell {
    font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
    font-size: 30%;
    font-weight: 200;
    text-align: center;
    color:#FFE5B4;
}

main #controls {
    flex-grow: 1;
    flex-direction: column;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;

    height: 110px;
}

#writeModeSwitch {
    display: flex;
    align-items: center;
    position: relative;
    gap: 5px;
    height: 30px;
    width: 300px;
}

.switchButton {
    width: 50%;
    color:white;
    background-color: #225f40;
    font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 1pt;
    border-radius: 0.4rem;
}

.switchButton.activeButton {
    color:#225f40;
    background-color: antiquewhite;
    font-weight: 500;
}

#controlNumbers {
    box-sizing: border-box;
    padding: 3px;
    position: relative;
    display: grid;
    flex-grow: 1;
    border-radius: 0.4rem;
    gap: 5px;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    aspect-ratio: 9/2;
    background-color: #173b29;
}

.controlNumber {
    color:white;
    background-color: #225f40;
    text-align: center;
    font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1pt;
    border-radius: 0.4rem;
}

.controlNumber i {
    font-size: 2rem;
    font-weight: 100;
}

#solvedBox {
    position: absolute;
    top: 0px;
    height: 100%;
    width: 100%;
    align-items: center;
}

#solvedBoxCover {
    position: absolute;
    top: 0px;
    height: 100%;
    width: 100%;
    background-color: #173b29;
    opacity: 0.7;
}

#innerSolvedBox {
    flex-grow: 1;
    flex-direction: column;
    display: flex;
    align-items: center;
    position: relative;
    margin: auto;
    margin-top: 10rem;
    height: 220px;
    width: 420px;
}

#innerSolvedBox span {
    flex-grow: 1;
    font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1pt;
    line-height: 3rem;
    color:white;
}

@media (max-width: 420px) {
    main {
        width: 100%;
    }

    .cell {
        font-size: 8vw;
    }

    .controlNumber {
        font-size: 8vw;
    }

    main #controls {
        height: 27vw;
    }

    #innerSolvedBox {
        width: 95%;
    }
}
