html body {
    margin: 0;
}

body {
    scrollbar-color: var(--dark-green) var(--menu-color);
    scrollbar-width: thin;
}

/* Snap scroll */

section {
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.container {
    height: 100vh;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-y: scroll;
}

section {
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
}

/* Menu absolute */

nav {
    position: absolute;
    height: min-content;
    background-color: var(--menu-color);
    width: 100vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

nav ul {
    width: max-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.green {
    color: var(--light-green);
}

nav ul li {
    padding-right: 3vw;
    font-family: saira;
    list-style: none;
    margin: 0%;
}

img {
    width: 3vw;
}

/* Animate menu link when hover */
/* Code from : https://tobiasahlin.com/blog/css-trick-animating-link-underlines/ */

nav ul a {
    position: relative;
    color: var(--text-color-brown);
    text-decoration: none;
  }
  
 nav ul a:hover {
    color: var(--text-color-brown);
  }
  
nav ul a::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--light-green);
    transform: scaleX(0);
    transform-origin: top left;
    transition: transform 0.3s ease;
  }
  
nav ul a:hover::before {
    transform: scaleX(1);
  }

nav ul li a {
    color: var(--text-color-brown);
    text-decoration: none;
}

/* place the contact */
.contact-container {
    position: fixed;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    bottom: 1em;
    left: 1em;
}

.contact-container img:hover {
    filter: invert(55%) sepia(25%) saturate(626%) hue-rotate(66deg) brightness(94%) contrast(90%);
}

nav button {
    transition: ease-in-out 0.25s;
    border-radius: 50%;
    margin-bottom: 2.5px;
    border: solid 1px var(--text-color-brown);
    background-color: var(--button-color);
}

nav button:hover {
    cursor: pointer;
    transition: ease-in-out 0.25s;
    border: solid 5px var(--bg-color);
}

.contact-container svg path{
    fill: var(--text-color-brown);
}

.contact-container svg:hover path{
    fill: var(--light-green);
}

.contact-container svg path {
    transform: scale(1);
    transform-origin: 50% 50%;
}

@media screen and (max-width: 600px) {
    nav  ul li{
        font-size: 15px;
    }

    nav img,.contact-container svg, .contact-container img , nav>a{
        width: 25px;
        height: 25px;
    }

    nav button {
        width: 20px;
        height: 20px;
    }
}

@media screen and (min-width: 601px) {
    nav ul li {
        font-size: 20px;
    }
    nav img,.contact-container svg, .contact-container img, nav>a{
        width: 40px;
        height: 40px;
    }

    nav button {
        width: 35px;
        height: 35px;
    }
}