﻿
body {
    background-color: #ececf3;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr;
    width: 80%;
    height: 80%;
    margin-top: 10px;
    margin-left: 20%;
    grid-gap: 4%;
}


#divMain {
    grid-area: 1/1/span 1/span 1;
    display: grid;
    grid-template-rows: repeat(9,1fr);
    grid-template-columns: repeat(9,1fr);
    border: 2px solid Navy;
    border-top: 3px solid Navy;
    background-color: white;
}



div.cell:nth-child(n+1):nth-child(-n+9) {
    border-top: none;
}

div.cell:nth-child(n+28):nth-child(-n+36) {
    border-top: none;
}

div.cell:nth-child(n+54):nth-child(-n+63) {
    border-top: none;
}

div.cell:nth-child(3n) {
    border-right: 2px solid Navy;
}

div.cell:nth-child(3n+1) {
    border-left: 2px solid Navy;
}

div.cell:nth-child(n+19):nth-child(-n+27) {
    border-bottom: 3px solid Navy;
}

div.cell:nth-child(n+46):nth-child(-n+54 ) {
    border-bottom: 3px solid Navy;
}

div.cell:nth-child(n+73):nth-child(-n+81 ) {
    border-bottom: 2px solid Navy;
}

#peripheral {
    grid-area: 1/2/span 1/span 1;
    width: 90%;
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr;
    grid-gap: 1%;
}

#Control {
    grid-area: 1/1/span 1/span 1;
    background-color: white;
    border: 1px solid navy;
    border-radius: 2%;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 3%;
    padding: 3%;
}

#Digits {
    grid-area: 2/1/span 1/span 1;
    background-color: white;
    border: 1px solid navy;
    border-radius: 2%;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 3%;
    padding: 3%;
}

input[type="button"] {
    border-radius: 14% !important;
    background-color: rgb(191, 211, 215);
    color: navy;
    font-weight: 700;
    font-size: 22px;
    border: none;
}

#start {
    grid-area: 1/1/span 1/span 3;
    border-radius: 4% !important;
}
#solve {
    grid-area: 2/2/span 1/span 1;
    border-radius: 14% !important;
    margin-left: 2px;
}
#erase {
    grid-area: 2/2/span 1/span 1;
    border-radius: 14% !important;
}
#costum {
    grid-area: 2/3/span 1/span 1;
    border-radius: 14% !important;
}
#reset {
    grid-area: 3/1/span 1/span 1;
    border-radius: 14% !important;
    margin-left: 2px;
}

#help {
    grid-area: 3/2/span 1/span 1;
    border-radius: 14% !important;
}
#Control input[type="button"] {
    font-size: 16px !important;
}

.cell {
    font-weight: 700;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #eae7e7;
}

input[type="button"]:hover {
    background-color: rgb(136, 146, 250);
}
