*{
    margin: 0;
    padding: 0;
    font-family: 'Hanken Grotesk', sans-serif;
}

body{
    background-color: hsl(222, 26%, 31%);
    color: white;
}

.frame{
    width: 40%;
    height: 550px;
    margin: auto;
    margin-top: 70px;
}

.nb{
    display: flex;
    width: 100%;
}

.nb div{
    width: 80px;
    justify-content: space-between;
    font-size: 15px;
}
.head{
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.right{
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    & h2{
        font-size: 15px;
    }
}

.theme{
    background-color: hsl(223, 31%, 20%);
    width: 80px;
    height: 20px;
    border-radius: 4em;
    display: flex;
    justify-content: space-around;
    
}

.button{
    margin-top: 2px;
    width: 15px;
    height: 15px;
    border: 0;
    opacity: 0;
    border-radius: 50%;
    background-color: hsl(6, 63%, 50%);
    cursor: pointer;
}

#one {
    opacity: 1;
  }
#one:active{
    background-color: antiquewhite;
}

#result{
    width: 95%;
    height: 100px;
    background-color: hsl(224, 36%, 15%);
    border-radius: 0.5rem;
    color: white;
    border: none;
    font-size: 60px;
    font-weight: 900;
    /* direction: rtl; */
    text-indent: -30px;
    letter-spacing: 5px;
    text-align: end;
    padding-right: 30px;
}

#result:focus{
    outline: none;
}

#affichage{
    border: none;
    width: 95%;
    height: 40px;
    /* display: flex;
    justify-content: end;
    align-items: center; */
    background-color: hsl(224, 36%, 15%, 0.5);
    border-radius: 3em;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    text-indent: -40px;
    text-align: end;
    padding-right: 20px;


}

.numbers{
    background-color: hsl(223, 31%, 20%);
    border-radius: 0.5rem;
    display: grid;
    height: 310px;
    grid-template-columns:repeat(4,21%);
    grid-template-rows:repeat(5,50px);
    gap: 5%;
    /* justify-items: center;
    align-items: center; */
    padding: 20px;  
}

.numbers button{
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    background-color: hsl(33, 8%, 73%);
    border: 0;
    border-bottom: 3px solid hsl(29, 15%, 59%);
    font-size: 32px;
    font-weight: 900;
    color: hsl(221, 14%, 31%);

    &:hover{
        background-color: hsl(30, 25%, 89%);
    }
}

.reset{
    grid-column: 1/3;
}

#spc_keys1{
    color: white;
    background-color: hsl(225, 21%, 49%);
    border-bottom: 3px solid hsl(225, 29%, 33%);
    
    &:hover{
        background-color: hsl(224, 28%, 35%);
    }
}
#spc_keys2{
    color: white;
    background-color: hsl(225, 21%, 49%);
    border-bottom: 3px solid hsl(225, 29%, 33%);
    
    &:hover{
        background-color: hsl(224, 28%, 35%);
    }
}

.equal{
    grid-column: 3/5;
}

.equal  button{
    color: white;
    background-color: hsl(6, 63%, 50%);
    border-bottom: 3px solid hsl(6, 79%, 32%);

    &:hover{
        background-color: hsl(6, 70%, 34%);
    }
}

.neg-number {
    unicode-bidi: bidi-override;
    direction: rtl;
  }
  
#minus{
    background: none;
    position: relative;
    top: 70px;
    left: 20px;
    border: 0;
}

.creator pre{
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: center;
}

#islemDj{
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: hsl(6, 63%, 50%);
}



@media screen and (min-width: 0px) and (max-width: 199px) {
    .frame{
        width: 90%;
    }
    #spc_keys1{
        font-size: 10px;
        font-weight: 900;
    }
    #spc_keys2{
        font-size: 10px;
        font-weight: 900;
    }
}
@media screen and (min-width: 200px) and (max-width: 600px) {
    .frame{
        width: 85%;
    }

    #result{
        width: 91%;
    }

    #spc_keys1{
        font-size: 25px;
        font-weight: 900;
    }
    #spc_keys2{
        font-size: 25px;
        font-weight: 900;
    }
  }

@media screen and (min-width: 601px) and (max-width: 700px) {
    .frame{
        width: 70%;
    }
  }
@media screen and (min-width: 701px) and (max-width: 900px) {
    .frame{
        width: 60%;
    }
  }
@media screen and (min-width: 901px) and (max-width: 1000px) {
    .frame{
        width: 50%;
    }
  }


