﻿html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.box {
    display: flex;
    align-items: center;
    flex: 1;
}

.loading-box {
    display: none;
    padding: 24px 0;
    text-align: center;
}

.login-box {
    margin: 24px;
}

.reset-pass-btn {
    align-items: center !important;
}

    .reset-pass-btn a {
        font-size: 14px;
        text-decoration: underline;
        color: gray;
    }

.rule-box {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: #202124;
}

.box-title {
    cursor: pointer;
    padding: 24px 0;
    background: #0080ff;
    word-wrap: break-word;
    text-align: center;
    letter-spacing: 2px;
    font-size: 1.5rem;
    font-weight: bolder;
}

.profile-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px solid gray;
    margin: 0 24px;
    padding: 24px 0;
}

.username-box {
    word-wrap: break-word;
}

.profile-box .logout-btn {
    color: gray;
    text-decoration: underline;
}

.rule-item {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    margin-top: 24px;
    padding: 0 24px;
}

    .rule-item b {
        color: gray;
    }

    .rule-item input {
        border: 0 !important;
        padding: 8px;
        background: #585858;
        color: white;
    }

    .rule-item button {
        border: 0 !important;
        padding: 8px 0;
        background: lightgray;
        font-weight: bolder;
        text-transform: uppercase;
    }

        .rule-item button:hover {
            background: white;
        }

    .rule-item input, button {
        width: 100%;
        min-width: 0 !important;
    }

.ip-box {
    padding-top: 8px;
    width: 100%;
    word-wrap: break-word;
    text-align: left;
    font-size: 14px;
    color: gray;
}

.form-box {
    display: none;
    padding-bottom: 24px;
}

#RuleName, #StartIp, #EndIp {
    cursor: default;
    background: #292a2d;
    color: gray;
}

    #RuleName:focus, #StartIp:focus, #EndIp:focus {
        outline: 0;
    }

.remove-btn {
    margin-top: 24px;
    border: 0 !important;
    text-decoration: underline;
    background: transparent !important;
    color: lightgray;
}

    .remove-btn:hover {
        color: white;
    }

    .remove-btn:focus {
        outline: 0;
    }

.toast {
    display: flex;
    align-items: center;
    min-height: 72px;
    opacity: 1 !important;
    box-shadow: none !important;
}
