@font-face {
    font-family: 'Khula';
    src: url(../fonts/Khula-Light.ttf);
}

@font-face {
    font-family: 'Ubuntu';
    src: url(../fonts/Ubuntu-Regular.ttf);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to bottom right,#295a64,#248b8b);
}

.btn, .history-btn, .lightMode-btn{
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.calculator {
    display: flex;
    flex-direction: column;
    align-content: stretch;
    justify-content: space-between;
    width: 325px;
    border: 2px solid white;
    height: 485px;
}

.calculator .screen {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 7px;
    background-color: #000000;
    padding: 4px;
    height: 35.5%;
}

.calculator .grid-of-tools {
    display: grid;
    justify-content: space-around;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: repeat(5. auto);
    height: 305px;
    background-color: #131313;
}

.btn {
    display: flex;
    align-content: center;
    justify-content: center;
    border-radius: 100px;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Khula', sans-serif;
    font-size: 30px;
    transition: 0.5s;
}

.btn:hover {
   background-color: #35c9c97e;
   color: #000000;
}

.tool,
.operator, 
.equal{
    color: #30c2c2;
    font-weight: 600;
}

.backspace {
    font-size: 20px;
    font-weight: 300;
}

.num {
    color: white;
    font-weight: 600;
}

.sign {
    color: #3FD3D3;
    font-weight: 400;

}

.clear {
    font-size: 26px;
}


.operation {
    padding-top: 10px;
    align-self: stretch;
    color: white;
    font-family: 'Khula', sans-serif;
    text-overflow: ellipsis;
    word-wrap: break-word;
    display: block;
    line-height: 1em; 
    max-height: 2em;
    font-size: 30px;
    font-weight: 600;
    margin-bottom: -16px;
}

.result {
    margin-top: 2rem;
    padding-top: 8px;
    align-self: stretch;
    text-align: end;
    color: #3FD3D3;
    font-family: 'Khula', sans-serif;
    font-size: 33px;
    height: 30px;
    line-height: 1em;
    max-height: 2em;
    font-weight: 600;
    padding-bottom: 1rem;
    text-overflow: ellipsis;
    word-wrap: break-word;
    display: block;
}

.history {
    border-radius: 5px;
    align-self: center;
    display: none;
    height: 130px;
    width: 320px;
    flex-direction: column-reverse;
    overflow-y: auto;
    background: #2d5b6463;
    
}

.previous-result {
    font-family: 'Khula', sans-serif;
    border-top: 1px solid #2ab8b8;
    color: white;
    font-weight: 600;
    font-size: 17px;
    margin: 0 5px 0 5px;
}

.previous-result + .previous-result {
    border-bottom: 0;
    margin: 0 5px 0 5px;
}

.screen h2 {
    height: 25px;
    display: none;
    color: white;
    align-self: center;
    padding: 0;
    margin: 0;
    font-family: 'Khula', sans-serif;
}
.more-tools{
    align-self: flex-start;
    display: flex;
    gap:8px;
}
.history-btn {
    position: relative;
    display: inline-block;
    background-color: #131313;
    border: none;
    color: #ffffff;
    font-size: 18px;
    border-radius: 50px;
    padding: 0 3px 0 3px;
}

.history-btn:hover {
    background-color: #3fd3d37e;
    color: #000000;
}

.lightMode-btn{
    position: relative;
    display: inline-block;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    border: none;
    padding: 0 2px 0 2px;
}
.lightMode-btn img{
    height: 20px;
    width: auto;
}

.lightMode-btn:hover {
    background-color: #3fd3d37e;
    color: #000000;
}

.history-light{
    background-color: #264d55;
}

.operation-light {
    color:#000000;
}

.screen .light{
    color: #000000;
}

.footer{
    margin-top: 16px;
}

.footer a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Ubuntu' ,sans-serif;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 1px 1px 2px black, 0 0 25px rgb(0, 0, 0), 0 0 5px rgb(0, 0, 0);
}

.footer a:hover {
    color: #b8b8b8;
    text-shadow: none;
}

.footer a img {
    height: 24px;
    width: auto;
}

.keyboard-support {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1.3rem;
    gap: 1rem;
}
.support{
    display: none;
    width: 342px;
    height: auto;
    background-color: #2b545c;
    gap: 2px;
    border: 2px solid #000000;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.support div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 170px;
    background-color: #1dc7e9e3;
    font-family: 'Khula', sans-serif;
    font-weight: 600;
}

.keyboard-support button {
    padding-top: 0;
    padding-bottom: 0;
    font-size: 15px;
    border-radius: 10px;
    border: 2px solid black;
    color: #000000;
    font-family: 'Khula', sans-serif;
    font-weight: 800;
}

.keyboard-support button:hover {
    background-color: rgb(137, 219, 224);
}
