* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: lightgray;                   
}

body {                                    /*Parent of header, main and footer*/
    font-size: 0.9rem;                    /*1 rem is default size*/
    display: flex;                        /*Turns all subcontent into flexible containers*/
    flex-direction: column;  
    min-height: 100vh;                    /*Make the minimum height of the body at least as big as the viewport*/
}  
  
button {  
    cursor: pointer;                      /*All the buttons on this page*/
}

.google-header {
    font-family: 'Poppins', sans-serif;   /*Overrides the font*/
}

header {
    display: flex;
    justify-content: space-between;       /*Pushes content to both extremes*/ /*Justification is about how they are layed out accross the axis*/
    align-items: center;                  /*How they are aligned in the vertical orientation*/
    padding: 1rem;                      
    gap: 1rem;                            /*Leaves gap of 14 px between first and second div when they get squished together*/
    background: #131416;  
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.text-link,
footer a {
    color: inherit;                         /*Inherits default color of entire document*/
    text-decoration: none;                  /*Removes underlines*/
}

.text-link:hover,
footer a:hover {
    text-decoration: underline;
}

.nav-container-second .text-link {          /*This was done at the end for mobile responsiveness*/
    display: none;                          /*Note, we did big screen first, but later took mobile first approach by setting this to none and adjusting below with media queries*/
}

.icon-link {
    font-size: 1.1rem;
    color: inherit;
    /*background: pink;                     /*Initially pink just to get size right*/
    width: 30px;                            /*To make colour bigger*/
    aspect-ratio: 1 / 1;                    /*Makes it so the height is the same, perfect square*/
    overflow: hidden;                       /*If any content inside this element spills out of its box, don’t show it.*/
    border-radius: 100%;     
    display: grid;                          /*Use to center single items within a container*/ 
    place-items: center;                    /*Use to center single items within a container*/     
}

.icon-link:hover {
    background: rgb(230, 227, 227);
}

.img-button {
    border: none;
    background: transparent;
}

.img-button img {
    width: 30px;                            /*This in itself should make all 4 sides the same*/
    aspect-ratio: 1 / 1;                    /*but if not, this makes the pic a perfect square, horizontal and vertical*/  
    border-radius: 100%; 
    overflow: hidden;                       /*If any content inside this element spills out of its box, don’t show it.*/                                   
}

main {
    flex: 1;
    display: flex;                          /*We do this*/
    flex-direction: column;                 /*And then this*/
    justify-content: center;                /*So we can do this*/
    align-items: center;                    /*And this */
    gap: 2rem;                              /*Spaces things out a little*/
    padding: 4rem 1rem;                     /*Just so everything isn't too squished together*/
    background: #131416;  
}
/*   Take note!!!               (Flex) Row              (Flex) Column
/*   justify-content	        Horizontal alignment	Vertical alignment
/*   align-items	            Vertical alignment	    Horizontal alignment */

.title-text {
    font-size: 5rem;
}

.input-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;                            /*Occupy as much horizontal space possible*/
    max-width: 500px;                       /*Only do this after setting input flex to 1*/
    border: 1px solid rgb(230, 227, 227); /*Only do this after removing input borders*/
    padding: 1rem;
    border-radius: 1rem;
}

.input-bar:hover,
.input-bar:focus-within {                   /*Leaves effect after clicking on input*/
    box-shadow: 0 0 4px 1px rgb(231, 231, 231);
}

.input-bar input {
    flex: 1;                                /*We're telling this item to be as greedy as possible with the space, This centers everything*/  
    background: #131416;   
    border: none;                           /*We remove because we want to put border around entire input bar*/
    outline: none;
    width: 100%;                            /*Stops items from being pushed out when making screen size small*/                                         
}                                           /*by only using the space thats available (100%), so it can't be greedy*/                           

.input-bar div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.input-icon {
    background: transparent;                 /*We're modifying the icon in the button so it looks better*/
    border: none; 
}

.input-icon:hover {
    opacity: 0.6;
}

.button-grid {
    display: flex;                            /*To make it a flexible box container*/
    align-items: center;
    gap: 1rem;
} 

.button-grid button {
    padding: 0.5rem 1rem;
    border: 1px solid transparent;            /*Make this exist first as transparent*/
    border-radius: 0.25rem;   
    background: #0f172a;                 
}

.button-grid button:hover {
    border: 1px solid rgb(23, 190, 219);    /*And then change it here as well. If you leave first step, buttons will be weird*/
}

.language-text {
    font-size: 0.7rem;
}

.language-link {
    color: rgb(23, 190, 219);
    text-decoration: none;
}

.language-link:hover {
    text-decoration: underline;
    cursor: pointer;
}

footer {
    background: #1c1d20;   
    font-size: 0.7rem;
}

footer > div {                                /*Arrow means target only divs that are direct descendants of parent*/
    padding: 1rem;
}

.footer-grid {                                /*This was changed from row to column at the end for mobile responsiveness*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/*-----------------------------------------------------------------------------------------------------------------------------------------*/

@media (min-width: 640px) {                   /*Activates when size is bigger than 640px*/
    .footer-grid {
        display: flex;
        align-items: center;
        flex-direction: row;                  /*This must be changed from column back to row orientation*/
        justify-content: space-between;
    }

    footer {
        font-size: 0.8rem;
    }

    .nav-container-second .text-link {
        display: block;                
    }
}