:root {
    --regular: 400;
    --medium: 500;
    --semi-bold: 600;
    --bold: 700;
    --light: 300;
}

html, body {
    margin: 0;
    background-color: #F2F2F2;
    height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

.ec-logo {
    width: 50px;
    cursor: pointer;
}

.menu-icon {
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.nav-icon {
    width: 25px;
    height: 25px;
}

.nav-icon path{
    fill: white;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    margin-top: 0.5rem;
    background-color: #F2F2F2;
    padding-left: 2rem;
    padding-right: 2rem;
    height: 60px;
}

.header-profile-tab {
    display: none;
}

.close-side-nav-button {
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 2rem;
}

nav {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 70%;
    max-width: 300px;
    z-index: 1;
    background-color: #32C3B7;
    font-family: "Roboto";
    padding-left: 2rem;
    padding-right: 2rem;
    display: none;
}

.nav-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: white;
    cursor: pointer;
}

.nav-item p {
    margin: 0.2rem 0;
}

.nav-item a {
    text-decoration: none;
    color: inherit;
}

.nav-item.first {
    margin-top: 10rem;
}

.nav-item.profile {
    margin-top: 3.5rem;
}

.nav-item.login-button-container {
    margin-top: 3rem;
}

.horizontal-line {
    border-top: 3px solid rgba(255, 255, 255, 0.5);
    width: 100%;
    position: absolute;
    left: 0;
}

header .login-button {
    padding: 0.5rem 1rem;
    background-color: #32C3B7;
    border: 1px solid #32C3B7;
    border-radius: 10px;
    color: white;
    text-decoration: none;
}

header .login-button.horizontal-nav {
    display: none;
}

.toast {
    position: fixed;
    right: 0;
    border: 1px solid #2BACA1;
    padding: 10px;
    margin-right: 1rem;
    color: #2BACA1;
    background-color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 10;

    transform: translateX(110%);
    transition-property: transform;
    transition-duration: 0.8s;
}

.toast svg {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    cursor: pointer;
}

.toast svg path {
    fill: #2BACA1;
}

.toast.active {
    transform: translateX(0);
}

@media (min-width: 1000px) {
    header .login-button {
        margin-top: 0;
    }

    .progress-bar, .form-bar {
        border-radius: 10px;
    }

    main {
        margin: 0 10%;
        margin-top: 2rem;
    }

    .menu-icon, .horizontal-line, .close-side-nav-button {
        display: none;
    }

    header {
        padding: 0 10%;
        margin-top: 0;
        background-color: white;
        height: 80px;
    }

    .nav-icon {
        width: 17px;
        height: 17px;
    }

    .nav-icon path {
        fill: #5B5B5B;
    }

    nav {
        position: revert;
        max-width: revert;
        width: auto;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;

        padding: 0;
        margin: 0 auto;
        background-color: white;
    }

    .nav-item.first, .nav-item.profile {
        margin-top: 0;
    }

    .nav-item:last-child, .nav-item.profile {
        display: None;
    }

    .nav-item {
        flex-direction: column;
        color: #5B5B5B;
        font-size: 14px;
        margin-left: 1rem;
        margin-right: 1rem;
        margin-bottom: auto;
    }

    .nav-item p {
        margin-bottom: 0;
    }

    .header-profile-tab {
        display: flex;
        flex-direction: row;
        position: relative;
    }

    .header-profile-tab .profile-image {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
    }

    .header-profile-tab .basic-profile-details {
        display: flex;
        flex-direction: column;
        margin-left: 0.5rem;
        cursor: pointer;
    }

    .header-profile-tab .basic-profile-details p {
        margin: 0;
    }

    .header-profile-tab .basic-profile-details p:first-child {
        font-family: "Cabin";
        font-size: 16px;
    }

    .header-profile-tab .basic-profile-details p:last-child {
        color: rgba(0, 0, 0, 0.6);
        font-family: "Roboto";
        font-size: 12px;
    }

    .header-profile-tab .basic-profile-details .icon {
        margin-left: 1rem;
        width: 12px;
        height: 12px;
        cursor: pointer;
    }

    .header-profile-tab .drop-down {
        position: absolute;
        z-index: 2;
        background-color: white;
        top: 3rem;
        right: 0;
        width: 170px;
        text-align: right;
        padding: 0 10px;
        display: none;
        border-radius: 10px;
        font-family: "Cabin";
        font-size: 16px;
        font-weight: var(--medium);
    }

    .header-profile-tab .drop-down p:first-child {
        padding-bottom: 1rem;
        border-bottom: 2px solid #E8E8E8;
    }

    .header-profile-tab .drop-down.active {
        display: block;
    }

    .header-profile-tab .drop-down a {
        text-decoration: none;
        color: black;
        width: 100%;
        display: block;
    }

    header .login-button.horizontal-nav {
        display: revert;
    }
}