/*Start of code from https://youtu.be/-IAypuhKgJs?si=gXvanWBF9ReJiIk7*/

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
}

/*end of code from https://youtu.be/-IAypuhKgJs?si=gXvanWBF9ReJiIk7*/

@import url('https://fonts.googleapis.com/css2?family=Popins:wght@200;400;500;600;800&family=VT323&display=swap');
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}
header {
    padding: 20px 40px;
    background: #1222;
    align-items: center;
}

/*Start of code from https://mukundkumra.medium.com/create-a-responsive-hamburger-menu-with-html-and-css-a-step-by-step-tutorial-c63e44fcee2e*/

.nav-mobile {
    display: flex;
}

/*End of code from https://mukundkumra.medium.com/create-a-responsive-hamburger-menu-with-html-and-css-a-step-by-step-tutorial-c63e44fcee2e*/


/* Default styles for the nav links (before media query) */

.nav-mobile a {
    color: #000000;
    padding: 16px 24px;
    display: block;
}

/* Code for hamburger menu starts https://mukundkumra.medium.com/create-a-responsive-hamburger-menu-with-html-and-css-a-step-by-step-tutorial-c63e44fcee2e */

.checkbtn {
    font-size: 1.5rem;
    color: black;
    cursor: pointer;
    display: none;
}
#check {
    display: none;
    /* Hide the actual checkbox */
}
#check:checked ~ .nav-mobile {
    display: block;
    /* Show the menu */
}

/* Media query for tablet size and below */

@media only screen and (max-width: 992px) {
    /* Hide the main nav links */
    .nav-mobile {
        display: none;
        /* Hide initially */
        position: absolute;
        top: 4.5rem;
        left: 0;
        background: #222831;
        z-index: 1;
        width: 100%;
        /* Full width */
        /
    }
    /* Show hamburger menu icon */
    .checkbtn {
        display: block;
        font-size: 3rem;
        position: absolute;
        top: 30px;
        right: 40px;
    }
    /* Styles for nav links in the dropdown */
    .nav-mobile a {
        font-size: 2rem;
        padding: 2rem 3rem;
        color: white;
        text-align: right;
        display: block;
        /* Block display - stacks vertically */
    }
}

/*end of code from https://mukundkumra.medium.com/create-a-responsive-hamburger-menu-with-html-and-css-a-step-by-step-tutorial-c63e44fcee2e*/


/*Start of code from https://youtu.be/-IAypuhKgJs?si=gXvanWBF9ReJiIk7*/

header h1 {
    grid-column: span 6;
    /* Puts it on a grid */
}
header nav {
    grid-column: span 6;
    justify-self: end;
}
header nav a {
    color: #333;
    margin-left: 10px;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 5px 10px;
    /*   border-radius: 5px; */
}

/*End of code from https://youtu.be/-IAypuhKgJs?si=gXvanWBF9ReJiIk7*/


/* Hover area for navigation bar */

header nav a:hover {
    color: #fff;
    background-color: #333;
}
