/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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,
button,
input,
select,
textarea {
    color: #333;
    background-color: #fff;
}

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * 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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
    width: 100%;
    height: 100%;
   
}


#navImg {
    position: absolute;
    top: 0;
    left: 0;
    
}

#contactImage {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#mailLink {
    position: absolute;
    top: 350px;
    left: 450px;
    
}

#mailLink a {
    font-family: "Andale Mono", AndaleMono, monospace;
    
}

#mailLink p {
    margin-bottom: -10px;
    width: 200px;
}



nav {
    
    position: absolute;
    left: 10px;
    top: 110px;
    width: 134px;
    padding: 0;
    margin: 0;
    z-index: 1000;
    
    
    opacity: 0;
    -o-transition: opacity .4s ease 0s;
    -ms-transition: opacity .4s ease 0s;
    -moz-transition: opacity .4s ease 0s;
    -webkit-transition: opacity .4s ease 0s;
    
    visibility: hidden;
    -o-transition: opacity .4s ease 0s;
    -ms-transition: opacity .4s ease 0s;
    -moz-transition: opacity .4s ease 0s;
    -webkit-transition: opacity .4s ease 0s;
}

#navImg:hover + nav {
    visibility: visible;
    opacity: 1;
}

nav:hover {
    visibility: visible;
    opacity: 1;

}




#photos:hover > ul {
    visibility: visible;
    opacity: 1;
    
    
}


#photos:after > ul, nav:after {
    visibility: hidden;
    opacity: 0;
}


#subMenu {
    padding-left: 0;
    margin-left: 0;
    

    

}

nav ul {
    margin: 0;
    padding: 0;
    

}

nav ul li {
    vertical-align: bottom;
    zoom: 1;
}


nav ul li ul {
    position: absolute;
    top: 114px;
    left: 100%;
    
    
    opacity: 0;
    -o-transition: opacity .4s ease 0s;
    -ms-transition: opacity .4s ease 0s;
    -moz-transition: opacity .4s ease 0s;
    -webkit-transition: opacity .4s ease 0s;
    
    visibility: hidden;
    -o-transition: opacity .4s ease 0s;
    -ms-transition: opacity .4s ease 0s;
    -moz-transition: opacity .4s ease 0s;
    -webkit-transition: opacity .4s ease 0s;

    
}

nav ul li ul li {
   
    display: block;
    float: left;
    zoom: 1;
}



nav ul ul li a {
    border-left: none;
}

 
    


nav ul li a {
    
    float: left;
    height: 40px;
    width: 100px;    
    text-align: left;
    text-decoration: none;
    font-size: 120%;
    background: #fff;
    color: #333;
    padding: 20px 20px 5px 10px;
    border-bottom: 2px solid lightgrey;
    border-left: 2px solid lightgrey;
    border-right: 2px solid lightgrey;

}

nav ul li ul li a:hover, nav ul li a:hover {
    color: #333;
    background: whitesmoke;
}

nav ul li ul li a:after, nav ul li a:after {
    color: #333;
    background: #fff;
}

#firstMenuItem {
    border-top: 2px solid lightgrey;
    -moz-border-radius: 10px 10px 0 0;
    -webkit-border-radius: 10px 10px 0 0;
    border-radius: 10px 10px 0 0;
}

#retrospectiveItem {
    height: 75px;
    padding: 10px 20px 5px 10px;
}

#firstHiddenMenuItem {
    border-top: 2px solid lightgrey;
    -moz-border-radius: 10px 10px 0 0;
    -webkit-border-radius: 10px 10px 0 0;
    border-radius: 10px 10px 0 0;   
}

#lastMenuItem {
    padding-top: 15px;
    padding-bottom: 25px;
    -moz-border-radius: 0 0 10px 10px;
    -webkit-border-radius: 0 0 10px 10px;
    border-radius: 0 0 10px 10px;
}

#lastHiddenMenuItem {
    -moz-border-radius: 0 0 10px 0;
    -webkit-border-radius: 0 0 10px 0;
    border-radius: 0 0 10px 10px;
}

.frontPagePic {
    height: 900px;
    width: 1200px;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    z-index: -1;


}
// ======================
// New Monaco event page
// ======================


iframe {

    clear: both;
}



#monacoHyperlinks li {
    display: inline;
    padding: 0 25px 25px 0;
}

#monacoHyperlinks li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px 10px 15px;
    border: 1px solid white;
    border-radius: 5px;
    
}

#monacoHyperlinks li a:hover {
    color: #333;
    background: whitesmoke;
    border: 1px solid grey;
}

.centerElements {
    margin: auto;
}

.alignCenter {
    text-align: center;
}

.orBorder {
    border: 1px solid black;
}

//POST-IT
#postit {}

#postit a img {
    width: 175px;
    height: 175px;
    position: absolute;
    top: 248px;
    left: 220px;
}

#eventsRedCircle {
    visibility: hidden;
}

#postit a:hover > #eventsRedCircle {
    visibility: visible;
}

//ROME

#whiteTextTopLeft {}

#whiteTextTopLeft a img {
    width: 212px;
    height: 287px;
    position: absolute;
    top: 120px;
    left: 440px;
}

#rolloverTopLeft {
    visibility: hidden;
}

#whiteTextTopLeft a:hover > #rolloverTopLeft {
    visibility: visible;
}

//ASIA

#whiteTextTopRight {}

#whiteTextTopRight a img {
    width: 212px;
    height: 287px;
    position: absolute;
    top: 95px;
    left: 620px;
}

#whiteTextTopRight #rolloverTopRight {}

#rolloverTopRight {
    visibility: hidden;
}

#whiteTextTopRight a:hover > #rolloverTopRight {
    visibility: visible;
}


//AMERICA

#whiteTextBottomLeft {}

#whiteTextBottomLeft a img {
    width: 212px;
    height: 287px;
    position: absolute;
    top: 395px;
    left: 480px;
}

#rolloverBottomLeft {
    visibility: hidden;
}

#whiteTextBottomLeft a:hover > #rolloverBottomLeft {
    visibility: visible;
}

//VARIA

#whiteTextBottomRight {}

#whiteTextBottomRight a img {
    width: 212px;
    height: 287px;
    position: absolute;
    top: 375px;
    left: 660px;
}

#rolloverBottomRight {
    visibility: hidden;
}

#whiteTextBottomRight a:hover > #rolloverBottomRight {
    visibility: visible;
}

//BAE Logo

#baeLogo {}

#baeLogo a img {
    position: absolute;
    top: 310px;
    left: 1000px;
}

#baeLogoOverlay {
    visibility: hidden;
}

#baeLogo a:hover > #baeLogoOverlay {
    visibility: visible;
}

#banner {
    position: absolute;
    top: 0px;
    left: 450px;
}

/*================
*
*   Bae page
*
==================
*/

#missionStat {
    width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    font-size: 1.1em;
}



#wrapperBae {
    position: absolute;
    top: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 500px;
}



.contentAuthorBae {
    float: left;
    width: 400px;
    height: 1040px;
    margin-left: 200px;
    margin-bottom: 300px;
}


.contentAuthorBae img {
    height: 300px;
    width: auto;
    background-color: lightgrey;
}

.contentAuthorBae p {
    width: 400px;
    text-align: left;
    color: #333;
    line-height: 1.4em;
    font-size: 140%;
}

.contentAuthorBae a {
    color: #565051;
}
 

 
 
 
/*================
*
*   flags, languages
*
==================
*/

#languageLinks {
    position: absolute;
    top: 10px;
    left: 1000px;
    height: 30px;
    width: 155px;
    z-index: 100;
}

#languageLinks a {
    display: inline;
    float: left;
    margin-right: 20px;

}

.flag {
    width: 30px;
    height: 20px;
    opacity: .65;
        	
}

.flag:hover {
    opacity: 1;
}



/*=====================================
    Events page
  =====================================
*/

#mainWrapper {
    position: absolute;
    top: 250px;
    left: 200px;
    width: 1000px; // was 70%
    height: auto;
    background-color: #fff;
    padding-bottom: 200px;
    
}

#eventBannerSoon {
    
    width: 1000px;
    height: 40px;
    background-color: #f0f0f0;
    margin-bottom: 50px;
    
    -moz-border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
    border-radius: 10px 10px 10px 10px;
    
}

#eventBannerSoon h1, #eventBannerPast h1 {
    text-align: left;
    margin-top: 0;
    padding-left: 20px;
    
}

.eventBannerSoon {
    width: 1000px;
    height: 40px;
    background-color: #f0f0f0;
    margin-bottom: 50px;
    
    -moz-border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
    border-radius: 10px 10px 10px 10px;
}

.eventBannerSoon h1 {
    text-align: left;
    margin-top: 0;
    padding-left: 20px;
    
}

#eventBannerPast {
   
    width: 1000px;
    height: 40px;
    margin: 150px 0 50px 0;
  
    background-color: #f0f0f0;
    
    -moz-border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
    border-radius: 10px 10px 10px 10px;
    
}

.wrapperContent {
    width: 1000px; // was 90%
    min-width: 1000px;
    min-height: 540px;
    height: 500px;
    background-color: white;
    
    padding: 20px 0px;
    margin-bottom: 40px;
}

.lotsOfContent {
    height: 900px;
    min-width: 1000px;
}

.imageLeft {
    float: left;
    width: 270px;
    height: 400px;
    
    margin-left: 20px;
    margin-top: 45px;
    margin-bottom: 40px;
    overflow: hidden;
}

.contentRight {
    float: left;
    min-width: 550px;
    width: 40%;
    height: 400px;
    
    background-color: #fff;
    
    padding-top: -10px;
        
    margin-left: 60px;
    margin-top: 20px;;
    margin-bottom: 40px;
}

.contentRight a {
    color: #565051;
}

.contentRight p {
    color: #333;
    line-height: 1.4em;
    font-size: 140%;
    font-family: Georgia, serif;
    
}

.contentRight p:last-child {
    color: #666;
    font-size: 120%;
    text-align: right;
    font-family: Tahoma, Geneva, sans-serif;
}

.monacoLocation {
    position: absolute;
    top: 630px;
    color: #666;
    font-size: 120%;
    font-family: Tahoma, Geneva, sans-serif;   
}

.seperator {
    color: lightgrey;
    clear: both;
    text-align: center;
    width: auto;
    height: 20px;
    padding: 20px 0;
    overflow: hidden;
}

#underConstruction {
    position: absolute;
    top: 200px;
    left: 350px;
}

/*==========================================================================
*
*   Publications page
*
*
**==========================================================================
*/

#wrapperPublications {
    position: absolute;
    top: 300px;
    left: 150px;
    
}

.contentPublications {
    float: left;
    min-width: 400px;
    width: 30%;
    height: 700px;
    margin: 0 50px 200px 0;
}



.contentPublications img {
    height: 300px;
    width: auto;
    margin-right: 100px;
}

.contentPublications p {
    width: 250px;
    position: relative;
    top: 40px;
    left: 30px;
    
}

#contactUsPub {
    width: 100%;
    height: auto;
    margin-bottom: 50px;
}

#contactUsPub a {
    
    color: #333;    
}

/* ==========================================================================
   Bio classes
   ========================================================================== */


#wrapperBio {
    max-width:600px;
    min-width: 580px;
    height: auto;
    padding-left: 300px;
    padding-bottom: 300px;
    margin-top: 350px;

}

#wrapperBio img {
    display: block;
    width: 450px;
    height: auto;
    margin-right: auto;
    margin-left: auto;
    
    
}

#wrapperBio p {
    min-width: 580px;
    width: 580px;
    color: #333;
    line-height: 1.4em;
    font-size: 140%;
    text-align: justify;
}

#wrapperBio figure  {
    width: 450px;
    margin-right: auto;
    margin-left: auto;
}

#wrapperBio figure figcaption {
    padding: 10px 5px;
}



/* ==========================================================================
   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.
   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,
       (-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;
    }
}


#thailand {background-color: #e0aca6;
    border-radius: 10px;
    font-size: 25px;
    font-variant: small-caps;
    left: 497px;
    padding: 5px 10px;
    position: absolute;
    top: 91px;
    transform: rotate(-5deg);z-index:999; border: solid 2px #E44129;
webkit-box-shadow: 10px 10px 10px 0 rgba(0, 0, 0, 1);
-moz-box-shadow: 10px 10px 10px 0 rgba(0, 0, 0, 1);
box-shadow: 10px 10px 10px 0 rgba(0, 0, 0, 1);}
#thailand a {color: black; text-decoration: none;}
#thailand a:hover {color: #E44129}