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

:root {
    --primaryColor: rgb(224, 126, 52);
    --secondaryColor: rgb(85, 206, 125);
    --lightColor: rgb(20, 20, 20);
    --darkColor: rgb(1, 1, 1);
    --veryLighrColor: rgba(0, 0, 61, 0.628);
    --defaultColor: white;
    --fontFamily: Kanit;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.imageSection {
    cursor: pointer;

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

body {
    background-color: var(--lightColor);
    user-select: none;
    max-width: 1550px;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
}

header {
    color: var(--defaultColor);
    width: 100%;
    font-family: var(--fontFamily);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 70px;

    .logo {
        font-size: 40px;
    }

    .imageSection {
        width: 50px;
        aspect-ratio: 1/1;
    }
}

main {
    width: 100%;
    font-family: var(--fontFamily);
    display: grid;
    margin: auto;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /*important*/
    gap: 30px;
    padding: 0px 50px 50px 50px;
    /* border: 1px solid red; */
}

.container{
    /* border: 1px solid red; */
    aspect-ratio: 3/2;
    background-color: var(--darkColor);
    border-radius: 20px;
    color: var(--defaultColor);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
    
    .imageSection{
        /* border: 1px solid red; */
        padding: 0px 20px 0px 20px;
        width: 100%;
        height: 100%;
        transition: transform 0.2s linear;
    }

    &:hover{
        .imageSection{
            transform: scale(1.1);
        }
    }
}

@media(max-width: 1025px) and (min-width: 550px) {
    header {
        padding: 15px 45px;
        margin-bottom: 100px;
    
        .logo {
            font-size: 20px;
        }
    
        .imageSection {
            width: 25px;
        }
    }

    .calculator {
        width: 50%;
    }

    #menu{
        width: 100%;

        #menuContainer{
            width: 50%;

            .header{
                .menuHeading{
                    font-size: 25px;
                }
            }
        }
    }
}

@media (max-width: 550px) {
    header {
        padding: 10px 20px;
    
        .logo {
            font-size: 20px;
        }
    
        .imageSection {
            width: 25px;
        }
    }

    .calculator {
        width: 100%;
        margin-top: 50px;
        padding: 20px;
    }

    #keys {
        gap: 10px;
    }

    #menu{
        #menuContainer{
            width: 100%;

            .header{
                .menuHeading{
                    font-size: 25px;
                }
            }
        }
    }
}