* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: poppins;
    background-color: #8f7474;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-block:20px;
}

.main-container{
    display: grid;
    width: 400px;
    height: 700px;
    background-color:bisque;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;

}

.calc-screen{
    width: 100%;
}

.calc-name{
    width: fit-content;
    height: fit-content;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 30px;
    margin-top: 10px;
    padding: 5px;
    background-color: #8f7474;
    color: white;
}
.calc-screen input {
    width: 100%;
    height: 100%;
    font-size: 20px;
    text-align: right;
    padding-right: 10px;
    border: none;
    outline: none;
    background-color: whitesmoke;
    border-radius: 5px;
}

.calc-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-inline: 3px;
    background-color:#8f7474;
    padding: 20px;
 
}

.nums{
    width: 100%;
    height: 50px;
    font-size: 20px;
    border: none;
    outline: none;
    background-color:burlywood;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}



.equal, .point, .multiply, .minus, .add, .ac-button, .c-button, .slash{
    width: 100%;
    height: 50px;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: white;
    color: black;
    border-radius: 5px;
    cursor: pointer;
}

.add{ 
    height: 100%;
   grid-row: span 2;
}

.equal{
   grid-column: span 2;
}

@media screen and (max-width: 768px){
    .calc-screen{
        width: 100%;
        
    }
    .calc-name{
        width: fit-content;
    }
    .calc-container{
        width: 100%;
    }
    .main-container{
        width: 300px;
        height: 500px;
    }
}