/*
 * This file is subject to the terms and conditions defined in
 * file 'LICENSE.txt', which is part of this source code package.
 *//* 
    Created on : 17.12.2018, 00:12:56
    Author     : Oliver
*/

.toolbar {
    position: relative;
    width: 100%;
    background-color: #24a6e0;
    padding: 0.2em 2em;
    box-sizing: border-box;
    vertical-align: middle;
}

.toolbar img {
    height: 3em;
    display: inline-block;
}

.toolbar .tools{
    display: block;
    position: absolute;
    right: 2em;
    top: 0;
    height: 100%;
}

.toolbar .tools > .tool {
    position: relative;
    display: inline-block;
    color: white;
    text-decoration: none;
    top: 50%;
    transform: translate(0, -50%);
    vertical-align: top;
}

.tools > .tool:not(:last-child){
    margin-right: 1.5em;
}

.toolbar span {
    color: white;
}

.toolbar div a {
    color: white;
    margin-left: 0.5em;
    font-size: 1em;
    position: relative;
    text-decoration: none;
}

.toolbar span > a {
    font-size: 1em;
}

.toolbar a:hover {
    text-decoration: underline;
}

.toolbar form {
    display: inline-block;
    margin-left: 2em;
}

.toolbar input {
    width: 20em;
    font-size: 0.9em;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 0.2em;
    padding: 0.5em;
}

.toolbar input:focus {
    background-color: rgba(255, 255, 255, 0.2);
}

.toolbar input::placeholder {
    font-style: italic;
    color: white;
    opacity: 0.9;
}

.toolbar div[name="user"] span {
    display: inline-block;
    vertical-align: top;
    margin-right: 2em;
}

.toolbar div[name="user"] > a {
    background-image: url('/img/close.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    vertical-align: top;
    width: 1.5em;
    height: 1.5em;
}

.toolbar .menu-top {
    position: relative;
    display: inline-block;
    margin-left: 2.5em;
    top: 50%;
    transform: translate(0, -50%);
}

.toolbar .menu-top a {
    display: inline-block;
    font-weight: bold;
    font-size: 1.25em;
}

.toolbar .menu-top a:not(:first-child) {
    margin-left: 1.5em;
}

@media screen and (max-width: 800px), screen and (max-device-width: 800px) {
    .toolbar {
        position: relative;
    }

    .toolbar img, .toolbar div[name="user"], .toolbar form {
        display: block;
        margin-left: auto;
        margin-right: auto;
        float: none;
    }

    .toolbar div[name="user"], .toolbar input {
        width: 100%;
        text-align: center;
    }

    .toolbar input {
        margin-top: 1.5em;
    }
}

@media print {
    .toolbar {
        display: none;
    }
}