:root {
    --neon-blue: hsl(181, 63%, 55%);
    --neon-green: #2cff05;
    --nav-bg: #542ACE;
}

/****************** Navigation bar ********************/


header {
    width: 100%;
    height: fit-content;
    margin: 0;
    padding-left: 0px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: var(--nav-bg);
}



nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    height: 3rem;
}

/* Logo */


.logo {

    /* check how large the img.logo box actually is*/
    background: none;
    color: red;

    /* Set the right size of the svg, already check for the right size when creating the svg */

    /* Set the logo */
    padding-left: 20px;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    height: 4.5rem;
}


.logo:hover {
    transition: 1s;
    color: var(--neon-blue);
    /*transform: rotate(360deg);*/
}

/* Navigation links */
.navbar-links {
    list-style: none;
    display: flex;
    padding-left: 30px;
}

.navbar-links a {
    padding: 40px;
    
    text-decoration: none;
    color: var(--neon-blue);

    font-weight: 700;
    font-size: 22px;
}

/* Call to action button */
.navbar-button {
    transition: .3s;
    padding: 12px;
    padding-left: 30px;
    padding-right: 30px; 
    /* border: 2px solid #00b3b6; */

    border: solid;
    border-style: none;
    border-radius: 40px;

    background-color: #249fa1;
    color: white;

    font-weight: 700;
    font-size: 22px;

    cursor: pointer;
    position: relative;
    z-index: 0;

    font-style: none;
}



/* Navbar links hover effects */
.navbar-links a:hover {
  color: red;
}



.navbar-links a:active { color: var(--neon-green); }

.nav-link1:active { transform: scale(0.96); }
.nav-link2:active { transform: scale(0.96); }
.nav-link3:active { transform: scale(0.96); }


/* Call to action hover */
.navbar-button:hover {
    background-color:red;
    transform: scale(1.1);
    
    /* box-shadow: 1px 2px var(--color); */
    transition: .3s;
      
}

.navbar-button:active {
    background-color: var(--neon-green);
    transform: scale(.96)
}



/* Mobile */
/* Hide hamburger menu by default */
.menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
  }
  
  
@media only screen and (max-width: 880px) {
    .menu-button {
        display: block;
        cursor: pointer;
    }

    .navbar-button {
        display: none;
    }

    .menu-button {
        position: fixed;
        right: 1.4rem;
        top: 1.2rem;
    }

    .menu {
        position: relative;
        display: inline-block;
    }

    /* Navbar links hover effects */
    .navbar-links li:hover {
        color: red;
    }


    /* Navigation links */
    .navbar-links {
        list-style: none;
    }

    .navbar-links a {
        text-decoration: none;
        color: var(--neon-blue);

        font-weight: 700;
        font-size: 20px;
        padding: 5px 20px; /* good */
        display: block; /* imprtant */

        width: 100%;
        box-sizing: border-box;   
    }

    /*.navbar-links:hover a:hover {
        transform: scale(1.1);
    }*/
    
    .navbar-links a:active { color: var(--neon-green); }


    .navbar-links:hover {
        transform: none !important; 
    }

    .navbar-links {
        /*display: none;*/
        position: fixed;
        top: 3rem;
        right: 1.4rem;
        
        background: hsla(220, 16%, 22%, 0.4); /* Nord dark blue with transparency */
        backdrop-filter: blur(10px);

        padding: 5px;
        max-width: 160px;
        width: 80%;
        
        border-radius: 8px;


        margin: 0 auto;
        text-align: left;

        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);


        z-index: 1;
        opacity: 0; /* Hide by default */
        visibility: hidden; /* Hide by default */
        transition: opacity 0.3s ease-in-out, visibility 0s 0.3s;
        display: grid;
    }

    .menu:focus-within .navbar-links {
        /*display: block;*/
        opacity: 1;
        visibility: visible;
        transition: opacity 0.2s ease-in-out, visibility 0s 0s;
    }

    .menu-button:hover {
        color: red;
    }


    .navbar-links li {
        list-style: none;
        padding: 0;
        margin: 0;
    }

}
