html {
    font-size: 14px;
    background-color: #f7f2e6;
    position: relative;
    color: #594f3e;
}

::selection {
    background-color: #00514b;
    color: white; /* Set the text color to white to ensure readability */
}

h1, h2, h3, h4, h5 {
    color: #594f3e;
}
p, a{
    color: #111111;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


body {
    font-family: "Baloo 2", sans-serif;
    min-height: calc(100vh - 15px);
    background-color: #f7f2e6;
    background-image: radial-gradient(#e3d9c5 2px, transparent 2px), radial-gradient(#e3d9c5 2px, #f7f2e6 2px);
    background-size: 80px 80px;
    background-position: 0px 0px,20px 40px;
}
.logoFade {
    opacity: 0;
    transition: 0.4s ease;
    transform: scale(0.92) !important;
}
    .logoFade:hover {
        opacity: 1;
        transform: scale(1) !important;
    }


.navbar {
    margin: 15px auto;
    width: fit-content;
    padding: 8px;
    border-radius: 50px;
    border: none !important;
    background-color: #f7f2e6 !important;
    box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.2) !important;
}

.navbar-nav {
    position: relative;
    flex-direction: row;
}

.navbar-nav .animation {
    position: absolute;
    height: 100%;
    z-index: 0;
    transition: 0.4s ease;
    border-radius: 50px;
    width: 100px;
    left: 0px;
}

.nav-item {
    border-radius: 50px;
    padding: 8px 10px !important;
    width: 100px;
    z-index: 1;
    transition: 0.4s ease;
    text-align: center;
    text-decoration: none;
    color: #594f3e;
}
.nav-item:hover {
    color: white !important;
}

.navbar-center {
    display: inline-flex !important;
}

.activeNav{
    position: absolute;
    background-color: #444444;
    width: 20px;
    height: 4px;
    border-radius: 10px;
    left: 40px;
    bottom: 0px;
    z-index:0;
}

.nav-item:nth-child(1):hover ~ .animation {
    width: 100px;
    left: 0;
    background-color: #19958f;
}

.navbar-nav .start-about, .nav-item:nth-child(2):hover ~ .animation {
    left: 100px;
    background-color: #19958f;
}

.navbar-nav .start-blog, .nav-item:nth-child(3):hover ~ .animation {
    left: 200px;
    background-color: #19958f;
}

.navbar-nav .start-portefolio, .nav-item:nth-child(4):hover ~ .animation {
    left: 300px;
    background-color: #19958f;
}

.navbar-nav .start-contact, .nav-item:nth-child(5):hover ~ .animation {
    left: 400px;
    background-color: #19958f;
}



@media (max-width: 800px) {

    .nav-item {
        width: 90px;
        font-size: 16px;
    }

        .nav-item:nth-child(1):hover ~ .animation {
            width: 90px;
        }

        .navbar-nav .start-about, .nav-item:nth-child(2):hover ~ .animation {
            left: 90px;
        }

        .navbar-nav .start-blog, .nav-item:nth-child(3):hover ~ .animation {
            left: 180px;
        }

        .navbar-nav .start-portefolio, .nav-item:nth-child(4):hover ~ .animation {
            left: 270px;
        }

        .navbar-nav .start-contact, .nav-item:nth-child(5):hover ~ .animation {
            left: 360px;
        }

    /*
    .navbar-nav {
        width: fit-content;
        margin: auto;
        display: block;
    }

    .navbar {
        width: fit-content;
        margin: 15px auto;
        display: inline-flex;
    }
    .nav-item{
        display: block;
    }
        */
}

