* {
    -webkit-appearance: none;
    -moz-appearance: none;
}

html, body {
    height: 100%;
    padding: 0;
    margin: 0;   
    background: #f5f5f5; 
    font-family: "proxima-nova", "Open Sans","Gill Sans MT","Gill Sans",Corbel,Arial,sans-serif;
}

#main {
    width: 80%;
    margin: 0 auto;
}

h1 {
    font-size: 40px;
}

h2 {
    font-size: 25px;
}

.top {
    background: #fff;    
    position: relative;
    z-index: 3;
    height: 200px;
    max-width: 100%;
}

.top img {
    margin: 0 auto;
    display: block;
    max-width: 100%;
}

#mainNav {
    width: 100%;
    margin: 0;
    position: absolute;
    bottom: 0;
}

.navUl {
	position: relative;
	width: 850px;
	margin: 0 auto;
	list-style-type: none;
}

.navUl .navLi {
	width: 16.6%;
	float: left;
	text-align: center;
	cursor: pointer;
    height: 45px;    
}

.navUl .navLi:hover {
	color: #fff;
}

.navUl .navLi.active:nth-child(1) ~ kbd,
.navUl .navLi.inactive:nth-child(1):hover ~ kbd {
	left: 0%;
}

.navUl .navLi.active:nth-child(2) ~ kbd,
.navUl .navLi.inactive:nth-child(2):hover ~ kbd {
	left: 16.6%;
}

.navUl .navLi.active:nth-child(3) ~ kbd,
.navUl .navLi.inactive:nth-child(3):hover ~ kbd {
	left: 33.3%;
}

.navUl .navLi.active:nth-child(4) ~ kbd,
.navUl .navLi.inactive:nth-child(4):hover ~ kbd {
	left: 49.9%;
}

.navUl .navLi.active:nth-child(5) ~ kbd,
.navUl .navLi.inactive:nth-child(5):hover ~ kbd {
	left: 66.6%;
}

.navUl .navLi.active:nth-child(6) ~ kbd,
.navUl .navLi.inactive:nth-child(6):hover ~ kbd {
	left: 83.3%;
}

kbd {
	position: absolute;
	display: block;
	width: 16.6%;
    background: #486f8b;
	height: 50px;
    z-index: 0;
    border-radius: 10px 10px 0 0;
}

.navUl .navLi, kbd {
	-webkit-transition: all 0.6s ease;
	-moz-transition: all 0.6s ease;
	-o-transition: all 0.6s ease;
	transition: all 0.6s ease;
	position: relative;
}

.navLi a {
    padding-top: 10px;
    width: 100%;
    height: 40px;
    display: block;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    position: relative;
    z-index: 1;
}

#welcome {
    position: absolute;
    top: 180px;
}

.loginButton{
    position: absolute;
    right: 40px;
    top: 10px;
}

.logoutButton{
    position: absolute;
    right: 40px;
    top: 10px;
}

.regButton{
    position: absolute;
    right: 40px;
    top: 10px;
}



label {
    display: block;
}

.images {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropButton {
    margin-top: -10px;
    width: 100px;
    height: 20px !important;
    border: none;
    cursor: pointer;
}

.dropContent {
    display: none;
    position: absolute;
    margin-top: 20px;
    margin-left: -37px;   
}

.dropContent a {
    background: #486f8b;
    padding: 12px 5.5px !important;
    text-decoration: none;
    display: block;
    height: 30px !important;
    margin: 0 !important;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	-webkit-transition: all 0.2s ease;
	-moz-transition: all 0.2s ease;
	-o-transition: all 0.2s ease;
	transition: all 0.2s ease;
}

.dropContent a:hover {
    background-color: #2E5674;
	-webkit-transition: all 0.2s ease;
	-moz-transition: all 0.2s ease;
	-o-transition: all 0.2s ease;
	transition: all 0.2s ease;
    
}

.dropdown:hover .dropContent {
    display: block;
}

#arrow {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 20px;
    top: 10px;
}

#arrow2 {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 25px;
    top: 10px;
}

.posts {
    margin: 0 auto;
}

.postArticle {
    width: 400px;
    margin: 1%;
    display: inline-block;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;
}

.postHeader {
    color: #486f8b;
    margin-bottom: 0;    
    padding: 0 7.5%;
    text-transform: uppercase;
}

article a {
    color: #486f8b;
    text-decoration: none;
}

.allNewsHeadline {
    float: left;
}

.postImage {
    width: 100%;
    margin-top: 20px;
}

.singlePost {
    width: 95%;
    background: #fff;
    padding: 0 2.5% 2.5% 2.5%;
    color: #404040;
}

.singlePostHeader {
    margin: 0;
    padding-top: 30px;
    text-transform: uppercase;
}

.no {
    visibility: hidden;
	-webkit-transition: all 0.2s ease;
	-moz-transition: all 0.2s ease;
	-o-transition: all 0.2s ease;
	transition: all 0.0s ease;
}

.navLi:hover ~ .no {
    visibility: visible;
   	-webkit-transition: all 0.2s ease;
	-moz-transition: all 0.2s ease;
	-o-transition: all 0.2s ease;
	transition: all 0.4s ease;

}

.pig {
    width: 200px;
}

.pigSlider {
    position: absolute;
    top: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.pigDiv {
    width: 100%;
    height: calc(100% - 200px);
    right: 0;
    background: #000;
    opacity: 0.2;
    position: absolute;
    z-index: 1;
    min-height: 500px;
}

.slider {
    min-height: 500px;
    width: 100%;
    height: calc(100% - 200px);
    background: url('images/pig.jpg');
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover; 
}

#sliderText {
    position: absolute;
    z-index: 2;
    color: #fff;
    width: 60%;
    max-width: 700px;
    right: 0;
    left: 0;
    top: 35%;    
    margin: 0 auto;
    text-align: center;    
}

.sliderButton {
    padding: 15px 25px;
    background: #486f8b;
    color: #fff;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100px;
    text-align: center;
}

.sliderHeader {
    font-size: 80px;
    margin-top: 100px;
    margin-bottom: 20px;
}

.read-more-content {
    width: 85%;
    background: #fff;
    padding:  0 7.5% 7.5% 7.5%;
    color: #404040;
}

.numbers {
    text-align: center;
    font-weight: bold;
    color: #000;
    font-size: 120%;
    margin-bottom: 10px;
}

.numbers a,.numbers a:visited {
    text-decoration: none;
    font-weight: 100;
    margin: 0 3px;
    font-size: 80%;
    color: #000;
    opacity: 0.5;
}

.pageHeader {
    margin: 0;
    background: #486f8b;
    width: calc(100% - 4%);
    padding: calc(2% / 1);  
    height: 50px;  
    color: #fff;
}

.pageHeadline {
    margin: 0 auto;
    position: absolute;
}

.profile {
    width: 46% !important;
}

.delete {
    padding: 5px 10px;
    background :#486f8b;
    text-decoration: none;
    color: #fff;
    position: relative;
}

.edit {
    padding: 5px 10px;
    background :#486f8b;
    text-decoration: none;
    color: #fff;
}

.allNewsButtons {
    padding: 5px 0;
}

.logButton {
    border: none;
    background: #486f8b;
    padding: 7px 10px;
    color: #fff;
    cursor: pointer;
}

#kontakt {
    width: 100% !important;
}

textarea {
    width: 60%;
    height: 500px;
    resize: none;
}

#menuButton {
    float: right;
    display: none;
    margin-top: 1px;
}

#menuButton ul > li {
    display: block;
    color: #fff;
    font-size: 50px;   
    border-top: 2px solid #333;
}

#menuButton a {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    width: 450px;
    padding: 20px 40px;
}

#menuButton a img {
    max-width: none;
    position: absolute;
    right: 25px;
}

#phoneUl {
    display: none;
    margin-top: 125px;
    padding: 0;
    background: #000;
    border-radius: 0 0 0 25px;
}

@media only screen and (max-width: 1250px) {
    .navUl {
        width: 750px !important;
    }
    
    #arrow {
        right: 7px;
    }
    
    .list a {
        padding: 12px 2px !important;
    }
}

@media only screen and (max-width: 1030px) {
    .navUl {
        width: 650px !important;
    }
    
    #arrow {
        right: 7px;
    }
    
    .list a {
        padding: 12px 0px !important;
    }
}

@media only screen and (max-width: 950px) {
    .navUl {
        width: 550px !important;
    }
    
    #arrow {
        right: 7px;
    }
}

@media only screen and (max-width: 850px) {
    .navUl {
        display: none !important;
    }
    
    .top {
        height: 300px;
    }
    
    #menuButton {
        display: block !important;
    }
    
    #arrow {
        right: 7px;
    }
    
    .loginButton {
        position: relative;
        margin-left: 60px;
        margin-top: -60px;
    }

    .logoutButton {
        position: relative;
        margin-left: 60px;
        margin-top: -60px;
    }
    
    .regButton {
        position: relative;
        margin-left: 60px;
        margin-top: -60px;
    }
    
    .postArticle {
        width: 600px !important;
    }
}

@media only screen and (max-height: 550px) {
    #sliderText {
        top: 230px;
    }
}