/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

@font-face {
    font-family: 'AsapRegular';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url('../font/Asap-Regular-webfont.woff') format('woff');
}

@font-face {
    font-family: 'AsapBold';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url('../font/Asap-Bold-webfont.woff') format('woff');
}

html,
button,
input,
select,
textarea {
    color: rgb(34,34,34);
}

body {
    font-family: 'AsapRegular',sans-serif;
    font-size: 1em;
    line-height: 1.4;
    background: rgb(187,217,239);
}

#page {
    width: 912px;
    margin: 0 auto;
    border-right: 6px solid rgb(187,217,239);
    border-left: 6px solid rgb(187,217,239);
    background: rgb(255,255,255);
}

header {
    position: relative;
    height: 108px;
}

#logo {
    display: block;
    position: absolute;
    top: 29px;
    left: 61px;
    width: 224px;
    height: 53px;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    background: url('../img/fotografin-mit-herz.png');
}

nav {
    height: 30px;
    background: rgb(183,53,90);
}

.nav {
    margin: 0;
    font-family: 'AsapBold',sans-serif;
    list-style: none;
}

.nav li {
    float: left;
    margin-right: 30px;
    font-size: 12px;
}

.nav li a {
    display: block;
    text-decoration: none;
    color: rgb(255,255,255);
    background-position: center center;
    background-repeat: no-repeat;
}

.nav li.current a,
.nav li a:hover {
    text-decoration: none;
    color: rgb(187,217,239);
}

ul#main-nav {
    margin: 0 0 0 22px;
    line-height: 30px;
}

ul#main-footer {
    margin: 0 0 0 22px;
    line-height: 26px;
}

ul#main-footer li.current a,
ul#main-footer li a:hover {
    text-decoration: none;
    color: rgb(183,53,90);
}

#tel {
    position: absolute;
    top: 49px;
    left: 650px;
    font-size: 11px;
    line-height: 11px;
    color: rgb(183,53,90);
}

#num {
    position: absolute;
    top: 63px;
    left: 710px;
    font-size: 18px;
    line-height: 18px;
    color: rgb(78,173,221);
}

#main {
    background: rgb(255,255,255) url('../img/faux-col-tile.png');
}

#content {
    float: left;
    width: 580px;
    margin-bottom: 2em;
}

article {
    margin: 30px 50px 0 61px;
    font-size: 12px;
    line-height: 19px;
    color: rgb(0,54,98);
}

article h1 {
    margin-bottom: 1em;
    font-size: 21px;
    line-height: 21px;
    color: rgb(0,151,211);
}

article h2 {
    margin: 0 0 1.4em 0;
    font-family: 'AsapBold',sans-serif;
    font-size: 12px;
    font-weight: normal;
    line-height: 17px;
}

article a {
    text-decoration: none;
    color: rgb(0,151,211);
}

article a:hover {
    text-decoration: underline;
    color: rgb(0,151,211);
}

article p {
    margin: 0 0 1.4em 0;
}

article .red {
    color: rgb(183,53,90);
}

article table td {
    margin: 0;
    padding: 0;
    vertical-align: top;
}

article table td p {
    margin: 0;
}

strong,
b {
    font-family: 'AsapBold',sans-serif;
    font-weight: normal;
}

aside {
    float: right;
    width: 332px;
    height: inherit;
}

#slideshow {
    position: relative;
    height: 366px;
}

#slideshow .cycle-slideshow {
    position: absolute;
}

#slideshow .cycle-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
}

#slideshow #next,
#slideshow #prev {
    z-index: 999;
    position: absolute;
    top: 0;
    width: 80px;
    height: 366px;
    overflow: hidden;
    text-decoration: none;
    text-indent: 100%;
    font-family: 'AsapBold',sans-serif;
    font-size: 30px;
    white-space: nowrap;
    color: rgb(255,255,255);
}

#slideshow #next {
    right: 0;
    background: url('../img/arrow-right.png') 41px 328px no-repeat;
}

#slideshow #prev {
    left: 0;
    background: url('../img/arrow-left.png') 24px 328px no-repeat;
}

#news {
    margin: 18px 40px 18px 20px;
    font-size: 12px;
    line-height: 17px;
    color: rgb(183,53,90);
}

.block {
    margin-bottom: 1em;
    overflow: hidden;
}

.guestbook .date,
.guestbook .name {
    font-family: 'AsapBold',sans-serif;
    color: rgb(183,53,90);
}

.guestbook p {
    margin: 0;
}

.lightbox a {
    display: block;
    float: left;
    width: 50px;
    height: 50px;
    margin: 0 8px 8px 0;
    border: 1px solid rgb(191,220,241);
    color: rgb(30,79,117);
    background-color: rgb(255,255,255);
    background-position: center center;
    background-repeat: no-repeat;
}

.lightbox a:hover {
    border: 1px solid rgb(145,196,231);
    text-decoration: none;
}

footer {
    height: 26px;
    background: rgb(145,196,231);
}

.clear {
    clear: both;
}

.form-label {
    display: block;
    margin: 0 0 4px 0;
    padding: 0;
    font-family: 'AsapBold',sans-serif;
    color: rgb(0,54,98);
}

.form-textfield {
    padding: 2px 2px;
    border: 1px solid rgb(175,211,237);
    outline: none;
    background: rgb(255,255,255);
    -webkit-appearance: none;
    appearance: none;
}

.form-button {
    padding: 2px 12px;
    border: 1px solid rgb(218,160,165);
    outline: none;
    color: rgb(255,255,255);
    background: rgb(176,17,78);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.form-button:hover {
    text-decoration: none;
    color: rgb(255,255,255);
}
/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * Customize the background color to match your design.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    margin: 1em 0;
    padding: 0;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

















/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow:none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        break-after: avoid;
    }
}
