$sidebar_size: 200px;
$pri_black: #1c1c2a;
$pri_green: #69c0b0;
$pri_green: #42e695;
$pri_white: #fff;
$pri_grey: #666;
$pri_grey_border: #ddd;
$pri_grey_bg: #f2f2f2;

$sec_orange: #ff7676;
$sec_yellow: #fce38a;
$sec_pink: #f02fc2;
$sec_luminous_green: #17ead9;
$sec_light_blue: #6078ea;
$sec_dark_blue: #7117ea;
$sec_light_green: #42e695;
$sec_burgundy: #c53364;

$sec_light_orange: #ffcece;
$sec_light_yellow: #fef5d5;
$sec_light_pink: #fab4e9;
$sec_light_luminous_green: #acf7f1;
$sec_light_light_blue: #c6cef7;
$sec_light_dark_blue: #ccacf7;
$sec_light_light_green: #bbf6d9;
$sec_light_burgundy: #eab6c7;

.areoi-container * {
    box-sizing: border-box;
}
.areoi-container {
    width: 100%;
    min-width: 1000px;
    height: 100%;
    overflow: auto;
    margin: 0 -20px 0 0;
    padding: 46px 0 40px 0;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;

    @media ( min-width: 781px) {
        padding: 32px 0 40px 36px;
    }
    @media ( min-width: 961px) {
        padding: 32px 0 40px 160px;
    }

    &__content {
        width: 100%;
        height: 100%;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding: 0 0 70px $sidebar_size;
        overflow: auto;
    }
    &__body {
        background: #f2f2f2;
        height: 100%;
        overflow: auto;
        position: relative;
    }
}
.areoi-sidebar {
    background: #fff;
    width: $sidebar_size;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-right: 1px solid #ddd;
    padding: 0;
    z-index: 1;

    h1 {
        height: 75px;
        padding: 25px 10px;
        margin: 0;
        border-bottom: 1px dashed #ddd;

        img {
            display: block;
            height: 25px;
            width: auto;
            margin: 0 auto;
        }
    }
    &__content {
        height: 100%;
        overflow: auto;
    }
    ul, li {
        margin: 0;
    }
    &__list {
        
    }
    &__sub-list {
        display: none;
        padding: 0 10px;
    }
    &__link {
        border-bottom: 1px dashed #ddd;

        &:last-of-type {
            border:  none;
        }
        > a {
            color: #1d2327;
            padding: 15px 10px;
            border-left: 3px solid #fff;
            display: block;
            text-decoration: none;
        }

        &.active {
            &.has-children {
                padding: 0 0 20px 0;
            }

            > a {
               border-left: 3px solid #3582c4; 
               font-weight: 600;
               color: #3582c4;
            }
            .areoi-sidebar__sub-list {
                display: block;
            }
        }
    }
    &__sub-link {

        a {
            padding: 10px 20px;
            display: block;
        }
        &.active {
            > a {
               font-weight: 600;
               text-decoration: underline;
            }
            .areoi-sidebar__sub-sub-list {
                display: block !important;
            }
        }
    }
    &__sub-sub-list {
        display: none;
    }
    &__sub-sub-link {

        a {
            padding: 10px 40px;
            display: block;
        }
        &.active {
            > a {
               font-weight: 600;
               text-decoration: underline;
            }
        }
    }

}
.areoi-header {
    background: #fff;
    height: 75px;
    padding: 28px 20px;
    border-bottom: 1px solid #ddd;
    position: relative;

    h2 {
        margin: 0;
    }
}

.areoi-body {
    width: 50%;
    min-width: 650px;
    padding: 20px 20px 0 20px;
    float: left;
}
.areoi-button,
#mc_embed_signup .button {
    height: 48px;
    line-height: 48px;
    display: inline-block;
    padding: 0 20px;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    position: relative;
    top: 0;
    font-weight: 600;
    transition: all .25s ease-in-out;
    text-align: left;
    white-space: pre;
    background: #42e695;
    border:  none;
    color: #1c1c2a !important;

    &:hover {
        opacity: .8;
        top: -5px;
        color: #1c1c2a;
        box-shadow: 0 2.5px 0 rgb(0 0 0 / 10%);
    }
}
.areoi-card {
    background: #fff;
    margin: 0 auto 20px auto;
    border-radius: 3px;
    border: 1px solid #ddd;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.areoi-card-branded {
    background: $pri_black;
    color: #fff;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;

    h1, h2, h3, h4, h5, h6 {
        color: #fff;
    }
    a {
        color: #fff;
        margin: 0 10px 0 0;
    }
    .areoi-card-body {
        position: relative;
    }
}
.areoi-card-body-white {
    background: #fff;
    color: #1d2327;

    h1, h2, h3, h4, h5, h6, a {
        color: #1d2327;
    }
}
@keyframes cloud {
    0% {
        background-position: 0% 0; 
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    99% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0; 
        opacity: 0;
    }
}
.areoi-clouds {
    background-repeat: no-repeat;
    background-position: 0 -0%;
    background-size: contain;
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    animation: cloud 50s linear infinite;
}
@keyframes move-twink-back {
    from {mask-position:0 0;}
    to {mask-position:-1000px 500px;}
}
@keyframes move-clouds-back {
    from {background-position:0 0;}
    to {background-position:1000px 0;}
}

.areoi-stars {
    position: absolute;
    background-size: cover;
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    height:100%;
    display:block;
    z-index:0;
    opacity: 1;
    animation: move-twink-back 50s linear infinite;
}
@keyframes float {
    0% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-10px);
    }
    100% {
        transform: translatey(0px);
    }
}
.areoi-planet {
    position: absolute;
    top: 20px;
    right: 20px;
    animation: float 6s ease-in-out infinite;
}
.areoi-form-button {
    background: #f2f2f2;
    width: 100%;
    height: 70px;
    padding: 20px;
    border-top: 1px solid #ddd;
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0 -20px 0 0;
    padding-left: $sidebar_size + 20px;

    .submit {
        padding: 0;
        margin: 0;
    }
    .spinner {
        display: none;

        &.is-active {
            display: block;
        }
    }
    &__alert {
        background: $sec_burgundy;
        width: 400px;
        color: #fff;
        position: absolute;
        bottom: 7px;
        right: 25px;
        padding: 10px;
        margin: 0;
        border-radius: 3px;
        font-size: 12px;
        opacity: 0;
        transition: all 0.25s ease-in-out;

        &.active {
            opacity: 1;
        }
    }
}
.areoi-card-body {
    padding: 20px;
    display: none;
}
.areoi-card-body p {
    margin: 0 0 20px 0;
}
.areoi-card.active .areoi-card-body {
    display: block;
}
.areoi-reset {
    background: none;
    border:  none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #2271b1;
    text-decoration: underline;
}
.areoi-image-w-border {
    border:  1px solid #ddd;
    border-radius: 3px;
}
.areoi-table-header {
    border-top: 1px dashed #ddd;
    padding: 20px 20px 0 20px;
    margin: 0 -30px 0px -20px;
}
.areoi-image-opaque {
    background: #f2f2f2;
    padding: 10px;
    border:  1px solid #ddd;
    border-radius: 3px;
    display: block;
    margin: 0 0 10px 0;
    text-align: center;
}
.areoi-image-opaque img {
    display: none;
    margin: 0 auto;
}
.areoi-image-opaque .button {
    display: inline-block;
}
.with-image .areoi-image-opaque img {
    display: block;
}
.with-image .areoi-image-opaque .button {
    display: none;
}
.areoi-rmv {
    display: none;
}
.with-image .areoi-rmv {
    display: block;
}
.areoi-description,
.areoi-description code {
    font-size: 12px !important;
}
.areoi-form-table {
    tr {
        th:first-of-type {
            width: 300px;
        }
    }
}
.areoi-field-variable {
    display: none;
}
.areoi-is-variable {
    .areoi-field-visual {
        display: none;
    }
    .areoi-field-variable {
        display: block;
    }
}
.areoi-row-input {
    input:not([type="checkbox"]):not(.wp-picker-container input),
    .select2 {
        max-width:  100%;
        width: 100% !important;
        vertical-align: top !important;
        margin: 0 0 5px 0;
    }
}
.components-base-control__field {
    .select2 {
        max-width:  100%;
        width: 100% !important;
        vertical-align: top !important;
        margin: 0 0 5px 0;
    }
}
.areoi-toggle-field,
.areoi-reset {
    background: none;
    border:  none;
    font-size: 12px;
    text-decoration: underline;
    padding: 5px 0;
    cursor: pointer;
    color: #2271b1;
}


#mc_embed_signup {
    background: none;

    label {
        display: block;
        margin: 0 0 10px 0;
    }
    input:not([type="submit"]) {
        width: 100%;
        padding: 10px 20px;
    }
}
#mc_embed_signup .indicates-required {
    margin-right: 0;
    float: right;
}
#mc_embed_signup .mc-field-group {
    width: 100%;
    margin: 0 0 20px 0;
}
#mc_embed_signup .response,
#mc_embed_signup .mce_inline_error {
    background-color: rgba( $pri_green, 0.6 ) !important;
    padding: 5px 10px;
    margin: 0 0 20px 0;
    border:  1px solid $pri_green !important;
    border-radius: 3px;
    font-weight: normal !important;
}
#mc_embed_signup #mce-error-response,
#mc_embed_signup .mce_inline_error {
    background-color: rgba( $sec_orange, 0.6 ) !important;
    border:  1px solid $sec_orange !important;
    color: #1d2327 !important;
}

.areoi-notice {
    background: #2e085e;
    border: none;
    border-left: 5px solid #ff7676;
    
    padding: 20px;
    border-radius: 0;

    @media only screen and (min-width: 600px) {
        display: flex;
        align-items: center;
    }

    h3 {
        color: #ff7676;
        margin: 0 0 5px 0;
    }
    p {
        color: #fff;
        margin: 0 0 10px 0;

        @media only screen and (min-width: 600px) {
            margin: 0;
        }
    }

    .notice-dismiss {
        &:before {
            color: #ff7676;
        }
    }
    .areoi-notice-col {
        margin-right: 40px;
        flex-grow: 1;
    }
    .areoi-notice-col-content{
        flex-grow: 1;

        .areoi-notice-col-content-inner {
            max-width: 800px;
        }
    }
    .areoi-button {
        background: #ff7676;
    }
    .areoi-notice-cta {
        display: flex;
        align-items: center;
        margin-right: 0px;

        button {
            margin: 0 10px;
        }
        form button {
            background: none;
            border: none;
            color: #fff;
            cursor: pointer;
        }
    }
}