@font-face {
    font-family: 'CalcFont'; /*a name to be used later*/
    src: url('../fonts/LEDCalculator.ttf'); /*URL to font*/
}

/* .calculatorbase {
    border: 3px solid black;
    padding: 5px;
}

.calcheader {
    display: flex;
    justify-content:first baseline;
    flex-wrap: wrap;
    text-align: center;
}

.calcheader h2 {
    width: 200px;
}

.calcheader fieldset {
    width: 300px;
}



.calculator {
    margin: auto;
    padding: 10px;
    width: 80%;
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 5px 5px black;
    background-color: white;
}

.calculator > h2 {
    width: 100%;
    text-align: center;
    border-bottom: 3px solid black;
}

.calculator > hr {
    width: 100%;
    color: black;
}

.calc-ex-result {
    text-align: left;
    border: 1px solid black;
    border-radius: 10px;
    margin: 2px;
    padding: 2px;
    background-color: white;
}

#reg-disp-ex-calc-choices {
    display: flex;
}


.calc-ex-select {
    display: flex;
    flex-direction: column;
    flex: 50%;
    border: 1px solid black;
    background-color: white;
    margin: 5px;
    border-radius: 10px;
    padding: 4px;
    align-content: center;
    align-items: center;
} */


fieldset {
    background-color: rgb(180, 180, 180);
    
}


fieldset legend:first-of-type {
    text-align: center;
}



/* Color Calculator */
.calc-body {
    background-color: rgb(200,200,200);
    margin: 5% 10%;
    padding: 10px;
    width: 100%;
    height: auto;
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 10px 10px black;
}

.calc-display {
    /* margin: 5px; */

    margin: 10px 5px 0;
    padding: 5px;
    display: flex;
    /* width: 90%; */
    height: 50px;
    border: 1px solid black;
    border-radius: 10px 10px 0 0;
    background-color: rgb(136, 197, 149);
    /* text-align: right; */
    align-items: center;
    justify-content: right;
    font-size: 2em;
    font-family: 'CalcFont';
    
}

.calc-buttons {
    display: flex;
}

/* .color-calc-button {
    flex: 30%;
    margin: 5px;
} */
.button-calc-boxes {
    display: flex;
    border: 1px solid black;
    padding: 10px;
    background-color: rgb(180, 180, 180);
}

.color-calc-boxes {
    display: flex;
    border: 1px solid black;
    padding: 10px;
    background-color: rgb(180, 180, 180);
}

.calc-buttons div:first-child {
    border-radius: 0 0 0 10px;
    margin: 10px 5px 10px 0;
}

.calc-buttons div:last-child {
    border-radius: 0 0 10px 0;
    margin: 10px 0 10px 5px;
}

.button-calc-box {
    flex: 20%;
    border: 1px solid black;
    margin: 5px;
    padding: 5px;
    text-align: center;
    background-color: rgb(200, 200, 200);
    display: flex;
    flex-direction: column;
}

.color-calc-box {
    flex: 30%;
    flex-wrap: wrap;
    border: 1px solid black;
    margin: 5px;
    padding: 5px;
    text-align: center;
    background-color: rgb(200, 200, 200);
    display: flex;
    flex-direction: column;
}

.color-calc-boxes div:first-child {
    background-color: rgb(177, 135, 135);
}

.color-calc-boxes div:nth-child(2) {
    background-color: rgb(133, 169, 133);
}

.color-calc-boxes div:last-child {
    background-color: rgb(139, 139, 178);
}

/* #color-calc-btn-enter {
    width: 100%;
    margin: 10px 0;
    background-color: black;
    color: white;
} */

.calc-btn-enter {
    /* display: flex; */
    flex: 50%;
    /* margin: 10px 5px; */
    background-color: white;
    color: black;
    border: 1px solid black;
    /* border-radius: 0 0 10px 10px; */
    text-align: center;
    height: 50px;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    font-weight: 500;
    font-family: Arial, Helvetica, sans-serif

}

.calc-btn-enter:hover {
    background-color: black;
    color: white;
}

/* .color-calc-box {

} */

.op-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;

}

.clear-btn {
    padding: 10px;
    border: 1px solid black;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size: 2em;
    background-color: white;
    color: black;
    height: 40px;
    width: 50%;
    text-align: center;


}

.clear-btn:hover {
    background-color: black;
    color: white;
}







/* bitwise calculator */

.bitwise-display {
    height: 200px;
    /* position: absolute;
    bottom: 0;
    right: 0; */
    /* position: relative; */
    padding: 5px;
    display: flex;
    /* border: 1px solid red; */

}

.bitwise-display-enter {
    height: 40px;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0 0 10px 10px;

}

.bitwise-display div:last-child {
    text-align: right;
}

.display-values {
    /* position: absolute;
    bottom: 0;
    right: 0; 
    padding: 5px; */
    align-self: flex-end;
    /* border: 1px solid red; */
    width: 100%;

}

.display-position-group {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-content: left;
    align-items: left;
    /* border: 1px solid red; */
}

/* .display-positions {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 5px;
} */


.calc-controls {
    /* border: 1px solid red; */
    display: flex;
    flex-direction: row;
  
}

.calc-control-group {
    /* flex: 20%; */
    /* border: 1px solid red; */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.calc-button-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.calc-button {
    flex: 30%;
    /* width: 100%; */
    height: 50px;
    border: 1px solid black;
    background-color: rgb(150, 150, 150);
    color: black;
    padding: 5px;
    text-align: center;
    font-size: 2em;
    margin: 5px;
    border-radius: 5px;

}

.calc-radio {
    display: flex;
    flex-direction: column;
    flex: 30%;
    /* width: 100%; */
    height: 50px;
    border: 1px solid black;
    background-color: rgb(150, 150, 150);
    color: black;
    padding: 5px;
    text-align: center;
    font-size: 1em;
    margin: 5px;
    border-radius: 5px;

}

.calc-button:hover {
    background-color: black;
    color: white;

}

input[type='radio'] { 
    transform: scale(2); 
}







@media (max-width: 800px) {
    .calc-body {
        width: auto;
    }
}

@media (max-width: 850px) {
    .button-calc-boxes {
        flex-direction: column;
    }
}

@media (max-width: 650px) {
    .calc-display {
        font-size: 1.2em;
        
    }
    .calc-controls {
        flex-direction: column;
      
    }
}

@media (max-width: 550px) {
    .color-calc-boxes {
        flex-direction: column;
    }

   
}