*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    background-color: #f0f0f0;
    font-family: "VT323", monospace;
    font-weight: 400;
    font-style: normal;
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
}

#header{
    display: flex;
    width: auto;
    min-width: 560px;
    height: 10vh;
    min-height: 200px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 1px solid black;
}

h1{
    flex: 1;
    width: 100%;
    border: 1px solid black;
    margin: 20px;
    padding: 10px;
    font-size: 72px;
    text-align: center;
}

#theme-selector{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#theme-selector button{
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.15s ease;
}

#original:hover{
    background-color: #616161;
}

#original:active{
    background-color: #424242;
}

#panda:hover{
    background-color: #FF99AA;
}

#panda:active{
    background-color: #FF7B89;
}

#original{
    background-color: #808080;
    color: white;
}

#panda{
    background-color: #FFB6C1;
    color: #FFFFFF;
}


#calculator-body{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px;
    padding: 20px;
    border-radius: 15px;
    width: auto;
    height: 75vh;
    aspect-ratio: 1 / 1.5;
    min-width: 560px;
    min-height: 740px;
    gap: 10px;



}

.themeOriginal-bg{
    background-color: #4d4d4d;
}

#iowindow{
    display: flex;
    flex: 0.25;
    width: 100%;
    align-items: center;
    justify-content: center;

}

#input{
    flex: 1 1 0;
    height: 70%;
    max-width: 100%;
    border: none;
    outline: none;



    border-radius: 10px;
    padding: 10px;

    text-align: right;
    white-space: nowrap;

    font-family: "VT323", monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 96px;

}

.themeOriginal-input{
    background-color: #d1e6a8;
}

#buttonsbody{
    display: flex;
    flex: 0.75;
    flex-direction: column;
    width: 100%;
    height: 80%;
    gap: 35px;
}

#row1,#row2,#row3,#row4,#row5{
    display: flex;
    justify-content: space-between;
    flex: 1;
    gap: 35px;
}

.button{
    flex: 1;
    cursor: pointer;


    font-size: 72px;
    border: none;
    outline: none;
    transition: background-color 0.15s ease;
    font-family: "VT323", monospace;
    font-weight: 400;
    font-style: normal;
}

.themeOriginal-button{
    background-color: #808080;
    color: white;
    border: 2px solid #808080;
}

.divide,.multiply,.minus,.add{
    background-color: #65c8cf;
    border: 2px solid #65c8cf;

}

.themeOriginal-operator{
    background-color: #65c8cf;
    border: 2px solid #65c8cf;
    color: white;
}

.submit,.backspace,.clear{
    background-color: #ea5c5f;
    border: 2px solid #ea5c5f;

}

.themeOriginal-special{
    background-color: #ea5c5f;
    border: 2px solid #ea5c5f;
    color: white;
}


.button:active{
    background-color: darkcyan;
}

.active{
    border: 2px solid white;
}

.disabled{
    background-color: #271f1f;
    cursor: not-allowed;
}

/* Panda Theme */
#calculator-body.themePanda-bg {
  background-color: purple;
}

.themePanda-input {
  background-color: #fff0f5; 
  color: #4d4d4d;
}

.themePanda-button {
  background-color: #ffb6c1;
  color: #4d4d4d;
  border: 2px solid #ffb6c1;
  border-radius: 25px;
}

.themePanda-operator {
  background-color: #ff85a2;
  border: 2px solid #ffc1cc;
  color: #4d4d4d;
}

.themePanda-special {
  background-color: #c12348; 
  border: 2px solid #ff8ba7;
  color: white;
}

.themePanda-button.disabled,
.themePanda-operator.disabled,
.themePanda-special.disabled {
  background-color: grey !important;
  border: 2px solid darkgrey !important;
  color: black !important;
  cursor: not-allowed;
}

.themePanda-bg .themePanda-button:hover:not(.disabled) {
  background-color: #ff99aa;
}
.themePanda-bg .themePanda-operator:hover:not(.disabled) {
  background-color: #ffadb9;
}
.themePanda-bg .themePanda-special:hover:not(.disabled) {
  background-color: #ff6f91;
}

.themePanda-bg .themePanda-button:active:not(.disabled) {
  background-color: #ff7b89;
}
.themePanda-bg .themePanda-operator:active:not(.disabled) {
  background-color: #ff94a4;
}
.themePanda-bg .themePanda-special:active:not(.disabled) {
  background-color: #e75480;
}

.themePanda-bg .themePanda-operator.active {
  border: 2px solid white;
  background-color: hotpink; 
  color: white;
} 
