html
{
    min-height: 100%;
    position: relative;
}
body
{
    min-height:100%;
    font-family: 'Titillium Web', sans-serif;
    font-size:.9em;
    background:#dadada url(/static/image/site_bgr.png) repeat-x;
    background-position:80px 0;
    margin:0;
    padding:0;
    overflow-y: scroll;
}

#content
{
    width:80%;
    text-align:left;
    margin:0 auto;
    padding-bottom: 100px;
}

.contentblock
{
    background-color:#ccc;
    border-radius:4px;
    border:1px solid #aaa;
    box-shadow:0 0 30px rgba(0,0,0,0.3);
    margin:20px;
    p,dl
    {
        margin:0;
        padding:5px;
    }
    h2
    {
        background-color:#000;
        background-image:url(/static/image/hexabar.png);
        background-position:right center;
        background-repeat:no-repeat;
        border-radius:4px;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
        color:#eee;
        font-size:1.5em;
        margin-top:0;
        padding:10px;
        position: relative;
    }
    &.wide {
        margin-right: 30px;
    }
    &.note {
        background-color: #ffc;
    }
    ol {
        margin-left: 2em;
        li.done {
            color: #aaa;
        }
    }
    img {
        max-width: 100%;
    }
}
.big {
    font-size: 2em;
}

ul.messagelist
{
    text-align:left;
    margin:0;
    padding:0 0 5px;
}

ul.messagelist li
{
    font-size:12px;
    display:block;
    border-bottom:1px solid #ddd;
    color:#666;
    background:#ffc url(/static/admin/img/icon_success.gif) 5px .3em no-repeat;
    margin:0 0 3px;
    padding:4px 5px 4px 25px;
}

ul.messagelist li.warning
{
    background-image:url(/static/admin/img/icon_alert.gif);
}

ul.messagelist li.error
{
    background-image:url(/static/admin/img/icon_error.gif);
}
input.validated {
    padding-right: 15px;
    background-image: url(/static/admin/img/icon_success.gif);
    background-repeat: no-repeat;
    background-position: right center;
    &.error
    {
        background:#fcc url(/static/admin/img/icon_error.gif) right center no-repeat;
        padding-right: 15px;
    }
}

.errornote
{
    font-size:12px!important;
    display:block;
    border:1px solid red;
    color:red;
    background:#ffc url(/static/admin/img/icon_error.gif) 5px .3em no-repeat;
    margin:0 0 3px;
    padding:4px 5px 4px 25px;
}

.errorlist li
{
    font-size:12px!important;
    display:block;
    border:1px solid red;
    color:#FFF;
    background:red url(/static/admin/img/icon_alert.gif) 5px .3em no-repeat;
    margin:0 0 3px;
    padding:4px 5px 4px 25px;
}

.errorlist li a
{
    color:#FFF;
    text-decoration:underline;
}

td ul.errorlist li
{
    margin:0!important;
}

.errors
{
    background:#ffc;
}

.errors input,.errors select,.errors textarea
{
    border:1px solid red;
}

div.system-message
{
    background:#ffc;
    font-size:.8em;
    margin:10px;
    padding:6px 8px;
}

div.system-message p.system-message-title
{
    color:red;
    background:#ffc url(/static/admin/img/icon_error.gif) 5px .3em no-repeat;
    margin:0;
    padding:4px 5px 4px 25px;
}

small {
  font-size: 0.8em;
}

input {
    border-radius: 2px;
    border: 1px solid #777;
    padding: 2px;
    margin: 1px 5px;
    background: rgba(0,0,0,0.1);
    font-family: 'Titillium Web', sans-serif;
    outline: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 5px rgba(0,0,0,0.2);
    -webkit-transition: box-shadow 0.5s;
    -moz-transition: box-shadow 0.5s;
    -o-transition: box-shadow 0.5s;
    transition: box-shadow 0.5s;
    &:hover{
        border: 1px solid #666;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 5px rgba(255,255,0,0.5);
    };
    &:focus{
        border: 1px solid #555;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 10px rgba(255,255,0,0.8);
    }
}

input[type=submit], input[type=button], input[type=reset]{
    border: 1px solid #777;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    -webkit-transition: background 0.5s;
    -moz-transition: background 0.5s;
    -o-transition: background 0.5s;
    transition: background 0.5s;
    &:hover{
        background: rgba(0,0,0,0.2);
    };
}
input:disabled {
    background-color: rgba(255,0,0,0.2);
    color: #222;
    &:hover {
        background-color: rgba(255,0,0,0.5);
    }
}

textarea {
    border-radius: 2px;
    border: 1px solid #777;
    padding: 5px;
    margin: 10px 5px;
    width: 300px;
    height: 100px;
    background: rgba(0,0,0,0.1);
    font-family: 'Titillium Web', sans-serif;
    outline: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 5px rgba(0,0,0,0.2);
    -webkit-transition: box-shadow 0.5s;
    -moz-transition: box-shadow 0.5s;
    -o-transition: box-shadow 0.5s;
    transition: box-shadow 0.5s;
    &:hover{
        border: 1px solid #666;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 5px rgba(255,255,0,0.5);
    };
    &:focus{
        border: 1px solid #555;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 10px rgba(255,255,0,0.8);
    }
}
.hilight {
    background-color: #ff6;
}

.hidden-password {
    padding-right: 25px;
    background-image: url(/static/icons/eye.png);
    background-repeat: no-repeat;
    background-position: right center;
    cursor: pointer;
    &.shown {
        background-image: url(/static/icons/eye-half.png);
    }
}

@placeholderColor: #444;
input::-webkit-input-placeholder{
    color: @placeholderColor;
}
input:-moz-placeholder{
    color: @placeholderColor;
}
input::-moz-placeholder{
    color: @placeholderColor;
}
input:-ms-input-placeholder{
    color: @placeholderColor;
}
textarea::-webkit-input-placeholder{
    color: @placeholderColor;
}
textarea:-moz-placeholder{
    color: @placeholderColor;
}
textarea::-moz-placeholder{
    color: @placeholderColor;
}
textarea:-ms-input-placeholder{
    color: @placeholderColor;
}

body > footer {
    z-index: 999;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid #888;
    box-shadow:0 0 30px rgba(0,0,0,0.4);
    margin:0;
    background-color: white;
    height: 30px;
}

#http-error {
    margin: 20px auto;
    width: 500px;
    border-radius: 4px;
    border: 1px solid #888;
    background: #FFFF66;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    padding: 20px;
}

.irasmu {
    line-height: 1.8em;
    section {
        border-radius: 4px;
        border: 1px solid #888;
        background: #ccc;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        padding: 20px;
        margin: 10px;
        &.teacher {
            border-left: 3px solid #0b4599;
        }
    }
    p {
        margin-bottom: 10px;
        &:last-child {
            margin-bottom: 0px;
        }
        &.desc {
            margin-left: 2em;
        }

    }
    p.teacher {
        background: #ddd;
        padding: 20px;
        border-left-width: 3px;
        border-left-style: solid;
        border-left-color: #0b4599;
    }
    p.teacher + p.teacher {
        margin-top: 0;
        padding-top: 0;
    }
    h4 {
        margin: 0;
        padding: 0;
        font-size: 1em;
        float: left;
    }
    h4:after {
        content: " ♦ ";
    }
    h4 + p {
        margin-top: 0;
    }
    h2 {
        background-color:#000;
        background-image:url(/static/image/hexabar.png);
        background-position: right center;
        background-repeat:no-repeat;
        color:#eee;
        font-size:1.5em;
        border-radius: 4px;
        border: 1px solid #888;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        padding: 10px;
        margin: 10px;
        margin-bottom: 0;
        border-bottom-style: none;
    }
    h2 + section {
        border-radius: 0 0 4px 4px;
        border-top-style: none;
        margin-top: 0;
    }
    p.figure {
        text-align: center;
        &.figure-small img {
            height: 200px;
            transition: 1s 300ms;
            -webkit-transition: 1s 300ms;
            -moz-transition: 1s 300ms;
            -o-transition: 1s 300ms;
            -ms-transition: 1s 300ms;
            transform-origin: center center;
            -webkit-transform-origin: center center;
            -moz-transform-origin: center center;
            -ms-transform-origin: center center;
            -o-transform-origin: center center;
            &:hover {
                height: 390px;
            }
        }
    }
    ol, ul {
        margin-left: 1em;
    }
    nav {
        background: #ddd;
        padding: 10px;
        border-left-width: 3px;
        border-left-style: solid;
        border-left-color: #ff6;
        line-height: 1.2em;
        li {
            list-style-type: none;
            ul li {
                list-style-type: square;
                margin-left: 1em;
            }
        }
    }
    em {
        white-space: nowrap;
    }
    strong {
        background-image: url(/static/image/hilite.png);
        background-repeat: repeat;
        font-style: normal;
        font-weight: normal;
        padding: 0 .4em;
        margin-bottom: 2px;
    }
}

.host-toggle {
    .v6 {
        display: none;
    }
}
.ipv4host {
    display: none;
}

@media (max-width: 900px) {
    #content {
        width: 100%;
    }
    .boxes {
        width: 100% !important;
    }
    #modal-container{
        width: 90%;
        left: 0 !important;
        margin-left: 2% !important;
    }
    .contentblock {
        margin:5px;
    }
    body {
        font-size: 1.1em;
    }
}

.vendor (@prop, @val) {
    -foo: ~"bar; -webkit-@{prop}: @{val}; -moz-@{prop}: @{val}; -ms-@{prop}: @{val}; -o-@{prop}: @{val}; @{prop}: @{val};";
}
.vendorVal (@prop, @val, @arg) {
    -foo: ~"bar; @{prop}: -webkit-@{val}(@{arg}); @{prop}: -moz-@{val}(@{arg}); @{prop}: -ms-@{val}(@{arg}); @{prop}: -o-@{val}(@{arg}); @{prop}: @{val}(@{arg});";
}
