@import './unique.css';

.header {
    padding: 19px 0;
}

.header__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__form_mob {
    display: none;
    align-items: center;
    height: 42px;
    border-radius: 8px;
    background: var(--light);
    padding: 0 12px;
    cursor: pointer;
}

.header__text {
    font-size: 16px;
    font-weight: 400;
    color: var(--grey);
    transition: .4s ease all;
    
}

.header__text:hover {
    color: var(--dark);
}

.header__nav {
    display: inline-flex;
    padding: 12px 20px;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: var(--light);
    cursor: pointer;
}

.header__form {
    display: flex;
    align-items: center;
    width: 734px;
    height: 42px;
    background: var(--light);
    padding: 0 12px;
    border-radius: 8px;
}

.header__avatar {
    display: flex;
    align-items: center;
    margin-top: 6px;
}

.header__form>input {
    width: 100%;
}

.header__form>input::placeholder {
    font-size: 16px;
    font-weight: 400;
    color: var(--grey);
}

.header-form__btn {
    color: var(--grey);
    cursor: pointer;
    margin-top: 2px;
    /*position: relative;*/
}

.header-form__btn::before {
    position: absolute;
    left: -12px;
}

@keyframes typing {
    0% { width: 0; }
    40% { width: 100%; }
    60% { width: 100%; }
    100% { width: 0; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.terminal {
    margin-top: 5px;
    font-family: monospace;
    font-size: 16px;
    font-family: "Neue Metana", monospace;
    font-optical-sizing: auto;
    padding: 10px;
    display: inline-block;
    border-radius: 5px;
    color: var(--primary);
}

.text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--sky);
    animation: typing 6s steps(15, end) infinite,
               blink 0.7s infinite;
}

/* MEDIA QUERY */
@media (max-width: 1024px) {
    .header__text {
        font-size: 14px;
    }
}

@media (max-width: 1376px) {
    .header__form {
        width: 420px;
    }
}

@media (max-width: 1024px) {
    .header__form {
        width: 420px;
    }

    .header__text {
        font-size: 14px;
    }

    .header__lerning {
        display: none;
    }
}

@media (max-width: 900px) {
    .header__nav {
        display: none;
    }
}

@media (max-width: 724px) {
    .figma-banner {
        display: none;
    }

    .header__from_desc {
        display: none;
    }

    .header__form_mob {
        display: flex;
        align-items: center;
        width: 100%;
        margin-top: 12px;
    }

    .header__form_mob input {
        width: 100%;
    }

    .header {
        padding-bottom: 0;
    }
}

@media (max-width: 420px) {
    .header__text {
        font-size: 12px;
    }

    .header__form>input::placeholder {
        font-size: 12px;
    }

    .header__logo {
        width: 148px;
    }
}