/*
 * 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
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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 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;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

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


/** Layout **/
/* 2 column layout */
#container { margin:0 auto; width:960px; background-color:#fff; padding: 4px 0; border:1px solid #d0d9d0; border-top-width: 0px;}
header  { margin:0; margin-bottom: 4px; min-height:90px; padding: 10px 18px 4px 18px; }
#sidebar { width: 220px; float:left; margin:0 0px 0 10px;}
#content { margin-left: 220px; padding:0 20px 0 30px; margin-right:10px; line-height:150%; }
footer  { clear: left; font-size:80%; padding: 4px 18px; margin-top: 30px; margin-bottom: 20px; color: #999; line-height:150%; }


/* sidebar menu */
#sidebar dl {width: 205px; margin: 0 auto; padding: 0 0 10px 0; background: #d0ddd0;}
#sidebar dt {margin:0; padding: 10px; font-size: 0.8em; font-weight:bold; color: #000; border-bottom:1px solid #fff; background: #d0ddd0;}
#sidebar dd {margin:0; padding:0; color: #fff; font-size: 0.8em; border-bottom:1px solid #fff; background: #a1aba1;}
#sidebar dd a, #sidebar dd a:visited {color:#fff; text-decoration:none; display:block; padding:5px 5px 5px 20px; background: #a1aba1 url(arrow.gif) no-repeat 10px 10px; width:180px;}
#sidebar dd a:hover {background: #838b83 url(arrowr.gif) no-repeat 11px 10px; color:#f0fff0;}

#go_top { width: 205px; margin: 4px auto 0; text-align:right;}
#go_top a { color: #a1aba1; }




/** Styling **/
/* general */
html {overflow-y: scroll;}
body { background-color:#e0e9e0; border-top:2px solid black;}
#container { color: #333; font-size: 0.9em; font-family: verdana, sans-serif;}
.imgtext { margin:1px 2px; }

/* Give Clickable Elements a Pointer Cursor */
a[href], label, input[type='submit'], input[type='image'], input[type="button"], input[type="checkbox"], input[type="radio"], input[type="file"], select, button, .pointer {cursor: pointer;}
::-webkit-file-upload-button { cursor:pointer; }

/* block-level elements */
p {margin-bottom: 1em;}


/* table elements */
th {font-weight:bold; text-align:left;}
th, td {padding: 2px 14px 6px 0px; border:0px solid #353;}
table.vertical th { text-align:right; }
table.vertical th, td { vertical-align: text-top; display: table-cell; }

/* inline elements */
strong {font-weight:bold;}
em {font-style:italic;}
sup {font-size:xx-small; vertical-align: super; line-height:50%;} 
sub {font-size:xx-small; vertical-align: sub;line-height:50%;} 
.important {color: red; font-style:italic;}
.note {color: #666; font-size:80%;}
.clear {clear:both;}


/* anchors */
a, a:visited { color: #638f63; text-decoration: none;}
a:hover{ color:#838b83;text-decoration: underline; }
h1 a, h1 a:visited, h1 a:hover {color:#221815; text-decoration:none;}

a img {padding-bottom: 1px; }
a:hover img { background:#838b83;}


/* h1-h6 */
h1,h2,h3,h4,h5,h6 {font-family: Cambria, serif;}
h1,h2,h3,h4 {font-weight: bold; }
h1 { font-size: 1.75em; margin-bottom: 1.2em; letter-spacing:-1px;}
h2 { font-size: 1.50em; margin-bottom: 1em; letter-spacing:-1px;}
h3 { font-size: 1.40em; margin-bottom: .8em; letter-spacing:-1px; width:67%; padding-bottom:4px; border-bottom: 2px solid #221815;}
h4 { font-size: 1.30em; margin-bottom: .6em; margin-top: 20px;}
h5 { font-size: 1.20em; margin-bottom: .4em; text-decoration: underline;}
h6 { font-size: 1.15em; margin-bottom: .2em; }

/* lists */
#content ul, #content ol {list-style-position: outside; line-height: 150%; margin-left:0; margin-right:20px;  margin-bottom: 6px;}
#content ul {list-style-type: square;}
#content ol {list-style-type: decimal;}
#content li {margin-bottom:4px;}
li h6 {margin-top: 0.2em;}

/* form elements */
label {float:left; width: 200px; text-align: right; margin-right: 10px;}
small label {float:none; width:auto; text-align: auto; margin:0;}
legend {border: 1px solid #999; padding: 3px 12px; min-width:120px; background-color:white;}
fieldset {padding: 10px 20px; margin: 10px 5px 20px; border:1px solid #ccc;}
form small {margin-left: 10px; color:#666; display:inline-block;}
form small#email_error {color:red; display:none;}

input[type="checkbox"] {display:inline-block; vertical-align:top; margin-top:3px;}
input[type="text"],input[type="tel"],input[type="email"],textarea {width:250px;}
input[type="submit"] {width:100px; height: 30px; margin-left:210px;}
.radio {float:none; margin-right: 100px; margin-left: 30px; display:inline-block; width:auto;}
.readonly {border: 1px solid transparent;}


.validationError { border: solid 2px red; }
.validationValid { border: solid 2px green; }



/** Layout Blocks Styling **/
/* page section dividers */
header #toprow, header #title, footer p { border: 0px solid #ddd;}
header #toprow, header #title {border-bottom-width: 2px;}
footer p {border-top-width:2px; }


/* header */
#toprow {font-size:80%; font-weight:bold; color: #999; padding-bottom: 5px; }
#toprow a {padding: 0; text-decoration:none; color: #999;}
#toprow a:hover {color:#777;}
header #title {color:#221815; height: 168px; background: transparent url('/20220905140635oe_/https://www.math.cuhk.edu.hk/conference/nlaa2013/img/banner.jpg') no-repeat top left; background-size:960px 179px; margin: 4px 0; padding-top:15px;}
header h1 { line-height: 1em; background: url('https://webarchive.lib.cuhk.edu.hk/20220905140635oe_/http://lea.verou.me/rgba.php/rgba.php?rgba(255, 255, 255, 0.6)') repeat; background: rgba(255,255,255,0.6); padding:20px 10px; margin-top:26px; }
header h1 span#h1split { display:block; text-align:right; font-size:80%; color:#933;}
header h1 span#h1date {color:#933; font-weight:normal; margin:0 10px 0 20px;}


/* footer */
footer p {padding:6px 2px;}
footer p span {float:right;}
footer a, footer a:link, footer a:hover, footer a:visited { color: #999; text-decoration: none; background: transparent;}
footer a:hover { text-decoration: underline; }
#cuhk_logo { float:left; margin-right:10px;}




/** Page Specific Styles **/

/* directions */
.gmap {border:1px solid #999;}
.gmap_link { font-size:80%; }


.schedule {width: 95%; margin-bottom: 40px;}
.schedule td, .schedule th {font-size:90%;}
.schedule caption {line-height: 200%; font-weight: bold;}
.scheudule, .schedule th, .schedule td { border-width:1px; padding: 2px 6px;}
.schedule th, .schedule_td_a { text-align:center; }
.schedule_td_0 { text-align:left; }
.schedule_td_0, .schedule_td_1 { white-space:nowrap;}
.schedule th {padding: 4px inherit; border-bottom: 3px solid #787;}
.schedule_td_a { background:#f0ffff; font-weight:bold;}
.schedule_td_2 { width:25%;}
.schedule_td_3 span { font-style:italic;}
.schedule:last-child {margin-bottom: 10px;}
#abstract #content div:after {content:""; display:block; background: #353;  height: 1px; width: 50%; margin: 0 auto;}
#abstract #content div:last-child:after{ height:0px; }

#abstract #content h4 {margin-bottom: 6px; padding-top:4px;}
#abstract #content h6 {margin-bottom: 8px;}
#abstract #content .abs {font-style: italic; font-size:90%;}


@media print {
	body {border-top:0px;}
	#sidebar {display:none;}
	#content {margin-left: 0px; width: 95%;}
	#container {border:0px solid}
}

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses 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,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   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
     */

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

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

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

    tr,
    img {
        page-break-inside: avoid;
    }

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

/*    @page {
        margin: 0.5cm;
    } */

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

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