/* Fonts */
@font-face {
    font-family: 'Trebuchet MS';
    font-style: normal;
    font-weight: normal;
    src: local('Trebuchet MS'), url('../assets/fonts/trebuc.woff') format('woff');
}


@font-face {
    font-family: 'Trebuchet MS Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Trebuchet MS Italic'), url('../assets/fonts/Trebuchet-MS-Italic.woff') format('woff');
}

/* General */
*,
html,
body {
    padding: 0;
    margin: 0;
}

body {
    background-image: url("../assets/img/background.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: top center;
    background-size: cover;
    line-height: 150%;
}

/* Size of nav and styling */
#nav {
    width: 70%;
    max-width: 1250px;
    margin: auto;
    font-size: 13px;
    font-weight: bold;
    font-family: Arial, 'Arial Unicode MS', Helvetica, sans-serif;
    padding-bottom: 20px;
}

/* Styling (color) of nav */
#nav ul {
    background: -moz-linear-gradient(top, #FFFFFF 0, #009900 150%) no-repeat;
    box-shadow: 0 0 7px 4px rgba(0, 0, 0, 0.55);
    list-style-type: none;
}

/* Padding for each item in nav */
#nav li {
    padding: 6px;
    text-align: center;
    text-decoration: none;
    color: grey;
}

#nav li:hover {
    background-color: rgb(186, 186, 186);
    background-color: rgba(186, 186, 186, 0.3);
    color: #4c4c4c;
}

/* Mobile view of navigation (vertical instead of horizontal) */
@media screen and (min-width: 600px) {
    #nav ul {
        margin: 0;
        overflow: hidden;
        padding-left: 30px;
    }

    #nav li {
        float: left;
        display: block;
        padding: 6px;
        text-align: center;
    }
}

/* Style of links in nav */
#nav a {
    text-decoration: none;
    color: grey;
}

/* Position logo */
#logo {
    text-align: right;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 10px;
}

/* Hide logo on small screens */
@media screen and (max-width: 600px) {
    #logo {
        display: none;
    }
}

/* Highlight selected page in nav */
.active {
    color: black !important;
}

#main {
    min-height: calc(100vh - 36px);
}

.card {
    color: rgb(64, 64, 64);
    background-color: white;
    width: 70%;
    max-width: 1250px;
    box-shadow: rgba(0, 0, 0, 0.54) 0px 0px 7px 4px;
    margin: auto;
}

.card * {
    background-color: white;
}

.card-content {
    padding: 40px;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 16px;
    hyphens: auto;
    text-align: justify;
}

.card-content p {
    padding-bottom: 15px;
}

.card h1 {
    font-size: 20px;
    font-family: Arial, "Arial Unicode MS", Helvetica, sans-serif;
    margin-bottom: 20px;
}

.card h1 a {
    color: #737373;
    text-decoration: none;
}

.card h2 {
    font-size: 22px;
    font-family: Arial, "Arial Unicode MS", Helvetica, sans-serif;
    margin-bottom: 20px;
}

.card h2 a {
    color: black;
    text-decoration: none;
}

/* Padding around gallery */
.gallery-wrapper {
    margin-left: calc(100% * 0.2);
    margin-right: calc(100% * 0.2);
}

@media screen and (max-width: 600px) {
    .gallery-wrapper {
        margin-left: 0px;
        margin-right: 0px;
    }
}

.gallery {
    display: block;
    padding-top: 15px;
    padding-bottom: 35px;
}

.gallery div {
    display: inline-block;
}

.gallery img {
    cursor: pointer;
    margin-top: 8px;
    vertical-align: middle;
    max-width: 150px;
    max-height: 150px;
    padding: 0 4px;
}

/* Background when image is shown */
#modal {
    display: none;
    /* Hidden by default */
    /* Position */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    /* Sizing */
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(119, 119, 119);
    /* Fallback color */
    background-color: rgba(119, 119, 119, 0.7);
    /* Black w/ opacity */
}

/* Image wrapper */
#modal-content {
    position: relative;
    /* Sizing */
    width: 35%;
    height: auto;
    /* Horizontally center wrapper */
    margin: auto;
    /* Vertically center wrapper */
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

/* Larger image on smaller screens */
@media only screen and (max-width: 1000px) {
    #modal-content {
        width: 70%;
    }
}

@media only screen and (max-width: 600px) {
    #modal-content {
        width: 80%;
    }
}

/* Image */
#modal-image {
    z-index: 2;
    /* Sizing */
    width: calc(100% - 20px);
    height: auto;
    /* Style */
    border: 10px solid #ffffff;
    box-shadow: rgba(0, 0, 0, 0.54) 0px 0px 7px 4px;
    /* Zoom (image gets bigger) on open */
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Gallery Buttons */
.gallery-button {
    z-index: 3;
    /* Style */
    color: #ffffff;
    transition: 0.3s;
    background-color: #000000;
    border: 2px solid #ffffff;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 25px 3px;
    /* Makes the Button round */
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    /* Position */
    position: absolute;
}

/* Previous Button */
#previous {
    font-size: 12px;
    /* Horizontally */
    left: 20px;
    /* Vertically */
    top: 50%;
    transform: translateY(-50%);
}

/* Next Button */
#next {
    font-size: 12px;
    /* Horizontally */
    right: 20px;
    /* Vertically */
    top: 50%;
    transform: translateY(-50%);
}

/* Close Button */
#close {
    position: absolute;
    font-size: 15px;
    /* Horizontally */
    right: -10px;
    /* Vertically */
    top: -10px;
}

/* Change cursor when pointing on button */
.gallery-button:hover,
.gallery-button:focus {
    text-decoration: none;
    cursor: pointer;
}

#kontakt-link {
    text-decoration: none;
    color: #616161;
}

/* Footer */
#footer {
    width: 70%;
    max-width: 1250px;
    margin: auto;
    font-size: 11px;
    font-family: Arial, 'Arial Unicode MS', Helvetica, sans-serif;
}

#footer ul {
    background: -moz-linear-gradient(top, #FFFFFF 0, #009900 150%) no-repeat;
    box-shadow: 0 0 7px 2px rgba(0, 0, 0, 0.55);
    list-style-type: none;
    margin: 0;
    overflow: hidden;
    padding-left: 30px;
}

#footer li {
    float: left;
    display: block;
    padding: 6px;
    text-align: center;
}

#footer li a {
    text-decoration: none;
    color: grey;
}

/* Everything wider on smaller screens */
@media screen and (max-width: 600px) {
    #nav {
        width: 95%;
    }

    .card {
        width: 95%;
    }

    #footer {
        width: 95%;
    }
}