﻿/* start of the css code*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* main wrapper and its layout */
.wrapper {
    width: 50px;
    border-radius: 30px;
    height: 50px;
    background: white;
    box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.281);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 1000;
    position: absolute;
    top: 50%;
    right: 1vw;
}

.MainMenu {
    width: 50px;
    border-radius: 30px;
    height: 50px;
    background: white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 1000;
    position: absolute;
    cursor: pointer;
}

.item {
    cursor: pointer;
}

.linee {
    width: 20px;
    height: 3px;
    background: rgb(201, 198, 198);
    margin-top: 3px;
    border-radius: 5px;
    transition: all 0.2s;
}

.linee1 {
    width: 15px;
    transform: translateX(5px);
}

    .linee1::before {
        content: "";
        display: block;
        transform: translateX(-5px);
        width: 3px;
        height: 3px;
        background: rgb(201, 198, 198);
        transition: width 0.2s ease 0.1s, transform 0.2s;
    }

.linee3::after {
    content: "";
    display: block;
    transform: translateX(17px);
    width: 0px;
    height: 3px;
    background: rgb(201, 198, 198);
    transition: width 0.2s ease 0.1s;
}

.linee3 {
    width: 13px;
}

.line {
    position: absolute;
    width: 10px;
    height: 2px;
    background: rgb(255, 255, 255);
    transition: all 0.2s;
}

.line1 {
    transform: rotate(0deg);
}

.line2 {
    transform: rotate(90deg);
}

.nav-items {
    font-size: 1rem;
    width: 38px;
    height: 38px;
    background: green;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.212);
    transform: scale(0);
    transition: transform 0.1s cubic-bezier(0.23, -0.47, 0.58, -0.63);
}

    .nav-items:hover {
        transform: scale(1.1);
        transition-timing-function: 0.1s;
    }

.items1 {
    top: -100%;
    left: 5%;
}

.items2 {
    top: 10%;
    left: -95%;
    transition-delay: 0.1s;
}

.items3 {
    top: 70%;
    left: -90%;
    transition-delay: 0.2s;
}

.items4 {
    top: 130%;
    left: 5%;
    transition-delay: 0.3s;
}

a:nth-child(1):hover {
    color: tomato;
}

a:nth-child(2):hover {
    color: skyblue;
}

.color {
    background: rgb(246, 54, 54);
}

.show-menu {
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.23, -0.47, 0.58, -0.63);
}

.go {
    transform: translateX(-125px);
}

.move {
    transform: rotate(45deg);
}

.mov {
    transform: rotate(-45deg);
}

.big {
    transform: translate(-50%, -50%) scale(1);
}
/* hover effect */
.MainMenu:hover .linee1 {
    width: 10px;
    transform: translateX(0px);
}

    .MainMenu:hover .linee1::before {
        width: 0px;
        transform: translateX(0px);
    }

.MainMenu:hover .linee3 {
    width: 15px;
}

    .MainMenu:hover .linee3::after {
        content: "";
        display: block;
        transform: translateX(17px);
        width: 3px;
        height: 3px;
        background: rgb(201, 198, 198);
        transition: width 0.2s ease 0.1s;
    }

.nav-items.active {
    background-color: greenyellow
}