/*! HTML5 Boilerplate v5.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

.clear {
    clear: both;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    margin: 0;
    padding: 0;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    background-image: url("../img/bck.png");
}

.wrapper {
    width: 100%;
    margin: auto;
}

img.wide {
    width: 100%;
}

header {
    width: 100%;
    height: 50px;
    background-color: #990099;
    color: #ffffff;
}

header .menu-icon, .menu-logo {
    width: 25%;
    height: 50px;
    float: right;
    position: relative;
}

img.menu-photo {
    display: block;
    height: 35px;
    margin: 7px auto;
}

header .menu-logo {
    width: 50%;
}

#search {
    width: 100%;
    display: none;
    height: 50px;
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 10;
    background-color: #990099;
    border-top: 1px solid #ffffff;
}

#search input[type=name] {
    width: 80%;
    height: 20px;
    margin: 2% 0 2% 1%;
    float: left;
    padding: 2%;
    border: 0px solid #ffffff;
    border-radius: 3px 0px 0px 3px;
    font-size: 1.1em;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
}

#search input[type=submit] {
    width: 14%;
    height: 35px;
    margin: 2% 0%;
    float: left;
    border: 0px solid #ffffff;
    border-radius: 0px 3px 3px 0px;
    background-color: #F7F7F7;
    background-image: url("../img/searchButton.png");
    background-repeat: no-repeat;
    background-position: 50% 5px;
}

#point {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: absolute;
    z-index: 100;
    top: 150px;
    right: 50px;
    background-color: #990099;
}

.place-info-box {
    width: 70%;
    background-color: rgb(255,255,255);
    border-left: 8px solid #990099;
    position: absolute;
    top: 60px;
    left: 10px;
    z-index: 99;
    display: none;
    border-radius: 0 0 10px 0;
}

.place-info-box .close {
    padding: 2px 8px;
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #CD88AF;
    z-index: 101;
    text-align: center;
    border-radius: 2px;
    color: #ffffff;
    font-size: 1.2em;
}

.place-info-box h1 {
    width: 84%;
    margin: 10px 2% 2px;
    padding-bottom: 5px;
    font-size: 1.2em;
    border-bottom: 1px solid #660066;
    color: #660066;
}

.place-info-box dd {
    width: 96%;
    margin: 2px 2%;
    font-size: 0.8em;
    color: #660066;
}

.place-info-box nav {
    width: 92%;
    margin: 2px 2% 5px;
    padding: 2px 2% 2px;
    background-color: #990099;
    color: #ffffff;
}

.place-info-box img {
    width: 96%;
    margin: 2px 2% 5px;
}

.event-box {
    width: 96%;
    margin: 2px 2% 4px;
}

.event-box .date {
    width: 28%;
    padding: 1%;
    float: left;
    background-color: #990099;
    text-align: center;
    font-size: 1em;
    color: #ffffff;
}

.event-box .topic {
    width: 66%;
    padding: 1%;
    float: right;
    color: #990099;
}

/* ============================================================ */

.event article {
    width: 98%;
    margin: 1%;
    color: #990099;
}

.event h1 {
    margin: 0 auto 5px;
    padding: 2px 0 3px;
    border-bottom: 2px solid #990099;
    font-size: 1.2em;
}

.event h3 {
    margin: 5px auto 5px;
    padding: 3px 1% 3px;
    border-bottom: 1px solid #990099;
    font-size: 1em;
    font-weight: 400;
    background-color: #ffffff;
}

.event dd {
    margin: 0;
    font-size: 0.9em;
}


/* ============================================================ */

.logo-start {
    width: 25%;
    margin: 30% auto 5%;
}

.set-location {
    width: 60%;
    margin: 10% auto 0;
    padding: 15px 3%;
    color: #ffffff;
    border-radius: 30px;
    text-align: center;
    font-family: 'Kaushan Script', cursive;
    font-size: 2em; 
    font-style: italic;
    background: #cb60b3; /* Old browsers */
    background: -moz-linear-gradient(top,  #cb60b3 0%, #ff00ff 0%, #630552 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cb60b3), color-stop(0%,#ff00ff), color-stop(100%,#630552)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #cb60b3 0%,#ff00ff 0%,#630552 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #cb60b3 0%,#ff00ff 0%,#630552 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #cb60b3 0%,#ff00ff 0%,#630552 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #cb60b3 0%,#ff00ff 0%,#630552 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cb60b3', endColorstr='#630552',GradientType=0 ); /* IE6-9 */
}

.set-location-topic {
    width: 70%;
    margin: 5px auto;
    font-size: 0.7em;
    text-align: center;
    display: none;
}

/* ============================================================ */

footer {
    width: 100%;
    background-color: #990099;
    color: #ffffff;
}

footer .info {
    width: 80%;
    margin: auto;
    padding: 10px 0;
    text-align: center;
    color: #ffffff;
    font-size: 12px;
}













/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
