.topnav {
  overflow: hidden;
  background-color: #333;
    margin: auto;
}

.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #04AA6D;
  color: white;
}
.container {
    width: 80%;
    margin: auto;
}

main {
    align-content: center;
    margin: auto;
    width:80%;
}

p {
    text-decoration: none;
}

#instruction {font-size: 1rem; color: crimson; font-weight: 400; text-transform:uppercase;text-align: center;}

.flex-container {
  display: flex;
  flex-wrap: wrap;
    padding-left: 15%;  
}

#newId {
    width: auto;
    
}

.flex-container > div {
  background-color: #f1f1f1;
  width: 6rem;
  margin: 1rem;
  text-align: center;
  line-height: 4rem;
  font-size: 2rem;
    box-sizing: border-box;
    
    padding: 1rem;
}

.numbers >div {
    background-color: aqua;
    font-weight: 700;
    
}

.flex-container2 {
  display: flex;
  flex-wrap: nowrap;
    padding-left: 5%;
}

.flex-container2 > div {
  width: 30%;
  text-align: center;
  line-height: 3rem;
  font-size: 2rem;
    box-sizing: border-box;}
    
.grid-container {
    display: grid; 
    margin-left:1rem;
    margin-right:1rem;
    grid-template-columns: 1fr 3fr 1fr 3fr;
    grid-template-rows: 6rem 6rem 6rem;
    grid-gap: 1rem;
    padding: 1rem;
}

.grid-container > div {
  background-color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 1rem;
    font-weight: 700;
  font-size: 2rem;
    
}
.grid-container > div:nth-child(1n) {
  border: solid 1px black;
  padding: 1.5rem;
}


.grid-container > div:nth-child(2n) {
  background-color: white;
  border: solid 1px black;
  align-items: center;
  justify-items: center;
  padding-bottom:1rem;
}
    

.title {
    text-transform: uppercase;
    text-align: center;
}


.button1 {
    margin-left: 2rem;
    top:4rem;
    float: left;
    background-color: #4CAF50; 
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
}

.button1:hover {
    background-color: #008CBA;}


.boxes {
    /*content: "";*/
    display: table;
    clear: both;
    /*align-items: center;*/
    margin:auto;
}

.boxes > div {
    float: left;
    height: 2rem;
    width: 2rem;
    padding: 1rem 2rem 0rem;
    margin: .5rem;
    font-size: 1.5rem;
    border: solid black 1px;
    text-align: center;
}
.boxlarge {
    /*content: "";*/
    display: table;
    clear: both;
    /*align-items: center;*/
    margin:auto;
}

.boxlarge > div {
    float: left;
    height: 2rem;
    width: 3rem;
    padding: 1.5rem 2rem 0.5rem;
    margin: .75rem;
    font-size: 2rem;
    border: solid black 1px;
    text-align: center;
}

.dec {
    background-color: aqua;
    font-weight: 700;
    
}

.binary >div {
    background-color:floralwhite;
}

#decimal {
    background-color: green;
    color: white;
    font-weight: 700;
}