﻿body {
    background-color: #ececf3;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr;
    width: 70vw;
    height: 70vh;
    margin-top: 50px;
    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);
    background-color: white;
    border-left: 2px solid Navy;
    border-right: 4px solid Navy;
    border-top: 4px solid Navy;
    border-bottom: 4px solid Navy;
    border-collapse: collapse;
    margin-top: 1px; /* Shifts the entire grid down by 1px */
}
.cell {
    font-weight: 700;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #eae7e7;
    
}

div.cell:nth-child(n+1):nth-child(-n+9) {
    border-top: none;
}
div.cell:nth-child(3n+1) {
    border-left: none;
}
div.cell:nth-child(3n+1) {
    border-left: 2px solid Navy;
}



div.cell:nth-child(3n) {
    border-right: none;
}
div.cell:nth-child(3n) {
    border-right: 2px solid Navy;
}

div.cell:nth-child(9n) {
    border-right: none;
}

div.cell:nth-child(n+28):nth-child(-n+36) {
    border-top: none;
}
div.cell:nth-child(n+19):nth-child(-n+27) {
    border-bottom: none;
}
div.cell:nth-child(n+28):nth-child(-n+36) {
    border-top: 2px solid Navy!important;
}
div.cell:nth-child(n+19):nth-child(-n+27) {
    border-bottom: 2px solid Navy!important;
}

div.cell:nth-child(n+46):nth-child(-n+54 ) {
    border-bottom: none;
}
div.cell:nth-child(n+55):nth-child(-n+63 ) {
    border-top: none;
}
div.cell:nth-child(n+55):nth-child(-n+63 ) {
    border-top: 2px solid Navy!important;
}
div.cell:nth-child(n+46):nth-child(-n+54 ) {
    border-bottom: 2px solid Navy!important;
}

div.cell:nth-child(n+73):nth-child(-n+81 ) {
    border-bottom:none;
}

#peripheral {
    grid-area: 1/2/span 1/span 1;
    width: 70%;
    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;
}

#Control input[type="button"] {
    font-size: 16px !important;
}



input[type="button"]:hover {
    background-color: rgb(136, 146, 250);
}
