/* General */
* {
    box-sizing: border-box;
}

#main {
    margin-bottom: 30px;
}

#layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}
code {
    font-size: 92.5%;
    color: #333;
    padding: 0 3px;
}

.content-contain {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Side menu styles */
#side-menu {
    flex: 1;
    background-color: #000;
    position: relative;
}

#side-menu.side-menu-animation-in {
    flex: 0.50;
}

#side-menu .menu-item {
    min-width: 88px;
}

.side-menu-animation-in {
    animation-duration: 0.5s;
    animation-name: slideIn;
}

@keyframes slideIn {
    from {
        flex: 1;
    }

    to {
        flex: 0.50;
    }
}

.side-menu-animation-out {
    animation-duration: 0.5s;
    animation-name: slideOut;
}

@keyframes slideOut {
    from {
        flex: 0.50;
    }

    to {
        flex: 1;
    }
}

.side-menu-animation-out .icons {
    display: none;
}

.side-menu-animation-in .icons {
    display: block;
}

.menu-heading {
    font-size: 110%;
    color: #fff;
    margin: 0;
    display: block;
    padding: .5em 1em;
    text-decoration: none;
}

.menu-list {
    padding: 0;
}

.pure-menu-link:hover {
    background-color: #333;
}

.icon-angle-double-left,
.icon-angle-double-right {
    color: #fff;
    position: absolute;
    bottom: 0;
    right: -4px;
    font-size: 38px;
}

.icons {
    color: #fff;
    font-size: 38px;
    display: none;
}

.content-container {
    display: flex;
    flex-direction: column;
    flex: 10;
    margin: 0 0 15px;
}

/**
 * Header
 */
header {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 8px 0 4px;
}

/* Login */
.login-container {
    text-align: right;
}
.login-message {
    height: 34px;
    line-height: 34px;
}
/* Logout isn't inside a form so we can't use the purecss
   fieldset styles */
.mimic-fieldset {
    padding: .35em 0 .75em;
}

/* Search */
#search-container {
    margin: 0 0 30px 0;
}
#search-container button {
    margin: .25em 0;
}
.search-container__wrapper {
    align-items: flex-end;
}
.search-results {
    width: 100%;
}

.pagination-container {
    margin-top: 30px;
}

/*  Aligns pure-button elements to the right side
    of the parent container */
.pull-right {
    text-align: right;
}

/* Unlicensed states */
.unlicensed-states,
.required-fields-container,
.product-types {
    display: inline-block;
    margin-bottom: 15px;
}
.unlicensed-states-container {
    width: 45.60%;
    display: block;
}
.unlicensed-states-warning {
    margin-bottom: 10px;
}

.flashed-message-container {
    margin-top: 20px;
}

.partner-submit-container,
.create-contract-submit-container,
.view-edit-submit-container {
    width: 45.60%
}

#create-contract legend,
#view-edit-partner legend  {
    width: 46%;
}

#add-contract-link {
    margin: 30px 0;
}

/* Forms */
/* This allows us to use the disabled html attribute
   without affecting the styling of the element */
.pure-form.disabled-form-elements input:disabled,
.pure-form.disabled-form-elements select:disabled {
    color: black;
}

.cancel-unlicensed-states-container {
    padding: .75em 0 0;
}

#required-field-message {
    margin-top: 15px;
}

/* Buttons */
.button-success {
    background: rgb(28, 184, 65);
    color: #fff;
}

.button-warning {
    color: #fff;
    background: rgb(223, 117, 20);
}

.button-error {
    color: #fff;
    background: rgb(202, 60, 60);
}

.button-secondary {
    color: #fff;
    background: rgb(66, 184, 221);
}

.required-field {
    color: red;
}

/* Messaging categories */
.messages {
    margin: 20px 0;
}

.alert{
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert--success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert--warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert--error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert--info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

#contract-terms-label {
    margin-top: 50px;
}

.terms-container {
    margin: 20px 0 30px 0;
    max-width: 80%;
}

.find-button {
    background-color: #0078e7;
    color: #fff;
    margin: .25em 0;
    font-family: inherit;
    font-size: 100%;
    padding: .5em 1em;
    border: transparent;
    text-decoration: none;
    border-radius: 2px;
}

.example {
    white-space: pre;
}
