@import url('https://fonts.googleapis.com/css2?family=Saira:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap');
*{
    box-sizing: border-box;
    /* making margin and padding 0 fixed many bugs, its important */
    margin: 0px; 
    padding: 0px;
}
html{
    font-family: 'Saira', sans-serif;

    /* for laptops only not phones */
    
    /* background-image: url('neon_bg.jpg');  */
    background-image: url('planet.jpg'); 

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
   
    height: 100vh; 
}

a{
    text-decoration: none;
    color: cyan; 
}

.content div p{
    margin: 10px 0px;
}

.containAll {
    display: grid;
    grid-gap: 6px;
    grid-template-columns: auto auto auto 25%;

    /* if make changes in grid-template-rows, then you may need to make changes in @media rule as well in case mobile view is breaking. i have set navbar width as 40px and inherited grid-template-rows but the mobile view is still fine instead breaking because navbar gridbox of 40px should have mess up layout. I have no idea why this is happening*/
    grid-template-rows: 60px 40px auto 30px ; 
    
    min-height: 100vh;
    grid-template-areas: 
    'myHeader myHeader myHeader myHeader'
    'myNavbar myNavbar myNavbar myNavbar'
    'myContent myContent myContent mySidebar '
    'myFooter  myFooter myFooter myFooter';
}

header{
    
    /* background: linear-gradient(90deg, #FC466B 0%, #3F5EFB 100%); */
    background: linear-gradient(to right, #7f00ff, #e100ff);

    color: white;
    /* color: rgba(0,0,0,0); */
    text-align: center;
    text-transform: uppercase;
    grid-area: myHeader;
    font-size: 2.5em;
    font-weight: bolder;
}
header a {
    color: inherit;
}

.navbar {
    grid-area: myNavbar;

}
.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    /* background: linear-gradient(90deg, #FC466B 0%, #3F5EFB 100%); */
    background: linear-gradient(to right, #7f00ff, #e100ff);

    border-radius: 40px;
    justify-content: space-evenly;
    
}
.navbar a {
    color: #1c1c1c;
    display: inline-block;
    padding: 4px 8px;
    
    /* border: 1px solid white;  */
    /* border on all four sides */
    
    border-bottom: 1px solid white;
    border-radius: 10px 10px 0px 0px;
    margin: 1px 6px;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    font-size: small;
    /* position: relative; */
    width: 150px;
    
}

.navbar a:hover {
    
    /* background-image: linear-gradient(315deg, #4d5dfb 0%, #08c8f6 74%); */
    background: rgba(0,0,0,0.4);
    color: white;
    font-weight: bolder;
}

.content {
    grid-area: myContent;
    /* border: 3px double black; */
    /* border-radius: 6px; */
    color: #FCE2DB;
    justify-self: center;    
}

hr{
    color: cyan;
}

aside{
    grid-area: mySidebar;

    /* width: 25vw; if use this then set @media rule for mobile devices , make width: 95vw or something */
    
    /* border: 3px double black; */
    border-radius: 6px;
    padding: 10px;
    /* margin: 5px 5px;  */
}

.heading_aside{
    text-transform:uppercase;
    color: white;
    margin-top: 5px;
    text-align: center;

}

aside a{
    display: block;
    color: white;
    margin: 8px 0px;
    padding: 4px 1px;
    text-decoration: none;
    border: 1px solid whitesmoke;
    /* background-color: #6e72fc; */
    /* background-image: linear-gradient(315deg, #6e72fc 0%, #ad1deb 74%); */

    background-color: rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);    
    border-radius: 5px 5px 3px;
    text-align: center;
}

aside a:hover{
    background-image: linear-gradient(315deg, #4d5dfb 0%, #08c8f6 74%); /* BEST for hover*/
    /* color: #1c1c1c; */
    color: black;
    font-weight: bolder;
    border-color: black;
    /* border: 2px solid black; */

}

/* calculator start*/

.calculator{
    border: 3px solid #08c8f6;
    border-radius: 12px;
    background-color: rgba(0,0,0,0);
    backdrop-filter: blur(30px); /* the less the value the less blur there is */

    width: 310px;   /*important*/
}

#visibleBox{
    position: relative;
    text-align: center;
    border: 3px solid #08c8f6;

    /* background-color: #4285f4; */
    background-color: rgba(1,0,0,0.5);
    color: white;
    
    display: block;
    width: 93%;
    margin: 12px auto 10px;
    height: 35px;
    font-size: 18px;
    border-radius: 5px;
    font-family: 'Source Code Pro', monospace;
}

/* Simple calculator buttons start */

.myCalcbuttons{ 
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* margin: 6px 5px ; */
    grid-row-gap: 10px;
    grid-column-gap: 10px;
    padding: 10px;
    
}

.myCalcbuttons button{
    height: 46px;
    font-size: 26px;
    border-radius: 10px; 
    /* font-family: 'Source Code Pro', monospace; */
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: bold;

    /* width: 50px; */   
}
.myCalcbuttons button:hover{
    border-color: dodgerblue;
}

/* Simple calculator buttons end */

/* Scientific calculator buttons start */

.mySciCalcbuttons{ 
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* margin: 6px 5px ; */
    grid-row-gap: 6px;
    grid-column-gap: 6px;
    padding: 6px;
    
}

.mySciCalcbuttons button{
    height: 45px;
    font-size: 20px;
    border-radius: 10px; 
    /* font-family: 'Source Code Pro', monospace; */
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: bold;

    /* font-weight: 600; */
    /* width: 50px; */   
}
.mySciCalcbuttons button:hover{
    border-color: dodgerblue;
}

#radioButtons{
    display: flex;
    justify-content: center;
    /* margin: 4px 0px; */
}

label{
    /* border: 1px solid white; */
    border: 3px solid #08c8f6;
    color: white;
    font-weight: bold;
    border-radius: 18px;
    background: rgba(1,0,0,0.5);
    backdrop-filter: blur(30px);
    margin: 6px 5px 0px;
    padding: 2px 6px;

}

label:hover{
    background: linear-gradient(to right, #7f00ff, #e100ff);
    /* background-image: linear-gradient(315deg, #4d5dfb 0%, #08c8f6 74%); */

    /* border: 2px solid black; */
    border-color: black;
    color: black;
}


/* Scientific calculator buttons end */


/* button specific styling */
.number{
    background-color: #045de9;
    background-image: linear-gradient(315deg, #045de9 0%, #09c6f9 74%);
    border-color: #1c1c1c;

}
.symbol{
    /* background-color: #9921e8; */
    /* background-image: linear-gradient(315deg, #9921e8 0%, #5f72be 74%); */
    /* background: linear-gradient(to right, #da22ff, #9733ee); */
    /* background: linear-gradient(to left, #834d9b, #d04ed6); */
    /* background: linear-gradient(135deg, #cb60b3 0%,#ad1283 100%,#de47ac 100%,#ad1283 101%); */
    /* background: mediumpurple; */
    background: linear-gradient(to top left, darkorchid, magenta);
    border-color:#1c1c1c;
    /* font-weight: bold;     */

}
.clearSymbol{

    /* background: linear-gradient(to bottom right, #ED310B, #D62C51); */
    /* background: #BC020C; */
    background: linear-gradient(to top left, #BC020C, #EF6E72);
    border-color: #1c1c1c;
    /* border: 1px solid #1c1c1c; */
    /* font-weight: bold; */
}

.equalitySymbol{
    background-color: #f9484a;
    background-image: linear-gradient(315deg, #f9484a 0%, #fbd72b 74%);
    border-color:#1c1c1c;
}

/* calculator end */

footer {
    background: black;
    color: white;
    text-align: center;
    grid-area: myFooter;
    opacity: 0.7;
}

/* these links are for contact.html */
.contactLinks a{
    color: black;
    border: 1px solid wheat;
    border-radius: 6px;
    height: 30px;
    width: 200px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    color: white;

    /* background-color: #6e72fc; */
    /* background-image: linear-gradient(315deg, #6e72fc 0%, #ad1deb 74%); best for non hover */
    background: linear-gradient(to right, #7f00ff, #e100ff);
    /* background: linear-gradient(90deg, #FC466B 0%, #3F5EFB 100%); */

    position: relative;
    left: 10px;

}
.contactLinks a:hover{
    background-image: linear-gradient(315deg, #4d5dfb 0%, #08c8f6 74%); /* BEST */
    color: black;
    font-weight: bolder;
    /* border: 2px solid black; */
    border-color: black;
}
#current_page{
    color: white;
}

/* @media (max-width: 600px) and (orientation:portrait){} */
/* @media (max-width: 600px) and (orientation:landscape){ */



@media screen and (max-width: 600px){
    html{
        height: initial; /* important */
        background-image: none; /*used to unset image from html to set image in body for mobile devices only*/
    }
    body {
        background-image: url('planet.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    .navbar ul {
        flex-direction: column;
        border-radius: 6px;
    }
    .containAll {
        grid-template-columns: auto;
        
        /* this property = ( grid-template-rows: inherit ) is important  */
        grid-template-rows: inherit; 

        grid-template-areas: 
        'myHeader'
        'myNavbar'
        'myContent'
        'mySidebar'
        'myFooter';
    }
    .navbar a{
        width: 90vw;
    }
    .navbar{
        justify-self: center;
        
    }

}
/* 
@keyframes calcSlide {
    0% {  left:0px; top:0px;   }
    100% {  left:auto; top:auto;    }
  } */
