﻿/* 
    Created on : 25.01.2016, 11:05
    Last Modified on: 20.01.2017
    Author     : Fabian Rüdele
*/

/* Global */
html, body {
    width: 100vw;
    font-family: Ubuntu, Veradna, Arial, sans-serif;
    font-size: 16px;
}

body {
    overflow-y: scroll;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

.row {
    margin: 0;
}

.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2,
.col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4,
.col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6,
.col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8,
.col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10,
.col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
}

.glyphicon {
    font-size: 150%;
}

ul, ol, li {
    margin: 0;
    outline: none;
    text-decoration: none;
}

label {
    margin: 0;
    display: flex;
    align-items: center;
}

main {
    position: absolute;
    top: 50px;
    width: 100%;
    transition: 300ms linear;
    z-index: 1;
}

a:hover, a:focus, a:active {
    text-decoration: none;
    outline: none;
}

input[type="number"].mod::-webkit-outer-spin-button, 
input[type="number"].mod::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0; 
}

input[type=number] {
    -moz-appearance: textfield;
}

input[type="radio"]:focus, 
input[type="checkbox"]:focus {
    outline: none;
}

.ui-widget, .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
    font-family: Ubuntu, Veradna, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    /*background: repeating-linear-gradient(#F1DB83, #F9EFC9 10%, #F1DB83 100%);*/
    background-color: #F7EABC;
    height: 50px;
    box-shadow: 0px 2px 5px #888888;
    display: flex;
    align-items: center;
    border: none;
    z-index: 10;
}

header #heading {
    position: fixed;
    left: 40px;
    top: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 300px;
}

#cotra_logo_main {
    height: 35px;
}

header #icons {
    position: fixed;
    right: 0px;
    top: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#icons a {
    color: #000000;
    width: 100%;
}

#icons a:hover,
#icons a:focus,
#searchtextReset:hover,
#searchtextReset:focus {
    color: #E51227;
}

#comment, #cog {
    display: none;
}

#buttonLogoff {
    background-image: none;
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.toggle-nav {
    display: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 50px;
    left: -200px;
    width: 200px;
    height: 100%;
    background: linear-gradient(to right, #F1DB83 , #F9EFC9);
    border-top: 1px solid #888888;
    display: flex;
    flex-direction: column; 
    transition: 300ms linear;
    z-index: 10;
}

nav.active {
    transform: translateX(200px);
}

nav .navButton {
    display: none;
    justify-content: center;
    align-items: center;
    height: 50px;
    margin: 10px 0;
    background: linear-gradient(#CCCCCC, #999999);
    border: none;
    border-top: 2px solid #777777;
    border-bottom: 2px solid #777777;
    outline: none;
    border-radius: 0;
}

nav .navButton:hover,
nav .navButton:focus {
    background: #999999;
}

.glyph_padding {
    margin-right: 10px;
}

aside {
    position: fixed;
    top: 50px;
    left: 0px;
    height: 100%;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #777777, #AAAAAA, #777777);
    box-shadow: 2px 0px 5px #888888;
    transition: 300ms linear;
    z-index: 10;
}

aside.active {
    transform: translateX(200px)
}

aside .glyphicon {
    font-size: 120%;
}

/* Footer */
footer {

}

@-webkit-keyframes rotating /* Safari and Chrome */ {
  from {
    -ms-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }
  to {
    -ms-transform: rotateY(360deg);
    -moz-transform: rotateY(360deg);
    -webkit-transform: rotateY(360deg);
    -o-transform: rotateY(360deg);
    transform: rotateY(360deg);
  }
}
@keyframes rotating {
  from {
    -ms-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }
  to {
    -ms-transform: rotateY(360deg);
    -moz-transform: rotateY(360deg);
    -webkit-transform: rotateY(360deg);
    -o-transform: rotateY(360deg);
    transform: rotateY(360deg);
  }
}

#loadingImage {
    position: absolute;
    width: 193px;
    top: 45%;
    left: 46%;
  -webkit-animation: rotating 2s linear infinite;
  -moz-animation: rotating 2s linear infinite;
  -ms-animation: rotating 2s linear infinite;
  -o-animation: rotating 2s linear infinite;
  animation: rotating 2s linear infinite;
}

/* Media Querys for Responsive header navigation*/
@media screen and (min-width: 1px) and (max-width: 780px) {
    #heading_h2 {
        display: none;
    }

    .menu ul.active{
        display: none;
    }

    .menu ul {
        display: flex;
        flex-direction: column;
        position:absolute;
        top: 120%;
        right: 0;
        padding: 10px;
        margin-right: 10px;
        border-radius:3px;
        background: #AAAAAA;
        box-shadow: 3px 3px 10px #000000;
    }

    #icons ul {
        width: 50px;
        margin-right: 50px;
    }

    .menu ul:after {
        width :0px;
        height: 0px;
        position: absolute;
        top: 0%;
        right: 18px;
        content:'';
        transform: translate(0%, -100%);
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-bottom: 7px solid #AAAAAA;
    }

    .menu li {
        margin: 10px 0;
        display: flex;
        justify-content: center
    }

    .menu a {
        display: flex;
        justify-content: center;
    }

    .toggle-nav {
        display: flex;
        height: 50px;
        width: 50px !important;
        justify-content: center;
        align-items: center;
        background: linear-gradient(#777777, #AAAAAA, #777777);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        color: #f1db83;
        /*font-size: 16px;*/
        outline: none;
        margin-right: 50px;
        border-radius: 2px;

    }
 
    .toggle-nav:hover, .toggle-nav.active {
        text-decoration: none;
        color: #E51227;
        outline: none;
    }

    #loadingImage {
        left: 26%;
    }

}

@media screen and (min-width: 781px) {
    .menu ul {
        display: flex;
        align-items: center;
    }

    .menu li {
        margin:0px 30px 0px 0px;
        list-style: none;
    }
}
