﻿.btn {
    font-size: 12px;
    color: @color-gray;
    line-height: 1em;
    text-transform: uppercase;
    border: 1px solid @color-gray;
    padding: 8px 18px;
    background: transparent;
    display: inline-block;
    transition: .3s color, .3s background, .3s background-color;

    &[type] {
        cursor: pointer;
    }

    &.is-courses {
        font-weight: 600;
        font-size: 14px;
        padding: 10px 18px;
    }

    &.btn-black {
        color: @color-black;
        border-color: @color-black;

        &.btn-active,
        &:hover {
            background: @color-black;
            border-color: @color-black;
        }
    }

    &.btn-white {
        color: @color-white;
        border-color: @color-white;

        &.btn-active,
        &:hover {
            background: @color-white;
            border-color: @color-white;
            color: @color-dblue;
        }
    }

    &.btn-bold {
        font-weight: 700;
        border-width: 2px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    &.btn-active,
    &:hover {
        background: @color-dblue;
        border-color: @color-dblue;
        color: @color-white;
    }

    &[hidden] {
        display: none;
    }

    & + & {
        margin-left: 6px;
    }
}

.alternate-btn {
    font-size: 14px;
    font-weight: 700;
    line-height: 1em;
    text-transform: uppercase;
    color: @color-white;
    outline: 1px solid $color;
    padding: 13px 19px;
    background: transparent;
    display: table;
    transition: .3s outline-offset;
    border:0;
    cursor:pointer;

    &.alternate-color{
        color:@color-black;
        background:@color-white;
        outline-color: $background;
    }

    &:hover {
        outline-offset: 5px;
    }
}

.alternate-btn--big {
    padding: 23px 36px;
}

.btn-mobile {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    height:22px;
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    margin: auto;

    @media screen {
        @media (min-width:960px) {
            display:none;
        }
    }
}

.hamburguer {
    position: relative;
    display: block;
    width: 33px;
    height: 22px;

    span {
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;
        background: @color-white;
        border-radius: 3px;
        z-index: 1;
        transition: transform .5s, background .5s, opacity .5s ease;
        transform-origin: 0 0;
    }

    &.active span {
        &:first-child {
            opacity: 0;
            transform: rotate(-45deg) translate(-10px,18px);
        }

        &:nth-child(2) {
            transform: rotate(-45deg) translate(-4px, 12px);
        }

        &:nth-child(3) {
            transform: rotate(45deg) translate(-8px, -21px);
        }
    }
}