@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
/* 
body{
    padding:6rem;
    font-size:2rem;
    font-family: 'Roboto', sans-serif;;
} */

/* now this makes the reset where every element will have 0 padding and 0 margin 
 */
/* border-box= element size= content+ padding+ border */
*{
    margin:0;
    padding:0;
    box-sizing:border-box; 
}

/* body elements = block level elements= fullsize elements
 */

body{
    margin:0.5rem;
    font-family:"Roboto", sans-serif;
    text-align:center;
}
/* 
nav{
    border:2px solid #333;
    border-radius:2rem;
    margin: 0 auto 1rem;
    max-width:600px;
} */

/* 2 rem = 16px*2= 32 px 
computed tab = slider all nav properties computed

*/

/* margin Top= 0, LF=centers bottom=16px

margin comes after border
*/


/* we made the text align to center which made the bullet pointers to remain outside

why are bullet pointers outside of nav element ?

even if the nav element is actually border-box why is the pointer of the list element outside of the nav element border ?

padding of the list element is actually turned zero 
*/

/* okay the list element's markers by default are outside the list element by default  */


nav{
    border:2px solid #333;
    border-radius:2rem;
    margin: 0 auto 1rem;
    max-width:600px;
    font-size:3rem;
    line-height:7rem;
}

/* font-size = list elements = 3*16= 48px
line height of list elements = 7*16=112px */

/* h2 element should have same border radius as the nav element
 */

h2{
    padding:1rem;
    background:gold;
    border-radius: 2rem 2rem 0 0;
    /* same it has top border , left border , right border, buttom border */

}

/* change default list style position  */

/*  */
ul{
    list-style-position:outside;
}

/* 
those markers are usually inside the ul element 
but somehow they went outside the ul element 

that means list-style-type became outside 

*/


li{
    border-top:1px solid black
}


li a:visited{
    color:gray;
}

li a{
    text-decoration:none;
    color:blue;
}


/* it worked 1 time only because all the links were already visited  */
/* visted means if you click 1 link and all the other link has the same address then the colors of all the links will change  */

/* now lets change the pseudo classes state */


/* we need to target the hover state and focus state differently specify each individually */

li a:hover,
li a:focus{
    background-color:black;
    color:white;
    cursor:pointer
}


/* hover styling alone wont take care of focus state styling because tabs wont be considered as hover */

/* anchor tag = inline element 
 */

 li a{
    display:block;
 }


li:last-child a{
    border-radius:0 0 2rem 2rem;
}

/*
border-bottom-left-radius 32px
border-bottom-right-radius 32px

*/

/* we selected the last element / last list element */

/* FAILED INCOMPLETE THOUGHT */
/* its necessary to go in the order of selecting the last list element and then select the hover states of the particular elements inside it 
list element's anchor's hover state 
list element's */

::marker{
    color:white;
}