/* "auto" makes the left and right margins center the wrapper */
#wrap { 
	width: 1132px; height:1200px;
	margin: 0 auto; 
overflow-x: hidden;
overflow-y: hidden;
}

body {
    background-color: black;
}




video#bgvid { 
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 110%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background: url(polina.jpg) no-repeat;
    background-size: cover; 
}


a.pagelink:link	{ color: black; font-family: 'Boogaloo', cursive; font-size: 26px; font-weight: bold; text-decoration: none; }

a.pagelink:visited	{ color: black; font-family: 'Boogaloo', cursive; font-size: 26px; font-weight: bold; text-decoration: none; }

a.pagelink:active	{ color: black; font-family: 'Boogaloo', cursive; font-size: 26px; font-weight: bold; text-decoration: none; }

a.pagelink:hover	{ color: black; font-family: 'Boogaloo', cursive; font-size: 26px; font-weight: bold; text-decoration: none; }


a.pagelink2:link { color: white; font-family: 'Boogaloo', cursive; font-size: 26px;   text-shadow: 0px 0px 0px #aaa; font-weight: bold; text-decoration: none; }

a.pagelink2:visited	{ color: white; font-family: 'Boogaloo', cursive; font-size: 26px; font-weight: bold; text-decoration: none; }

a.pagelink2:active	{ color: white; font-family: 'Boogaloo', cursive; font-size: 26px; font-weight: bold; text-decoration: none; }

a.pagelink2:hover	{ color: white; font-family: 'Boogaloo', cursive; font-size: 26px; font-weight: bold; text-decoration: none; }


a.pagelink3:link { color: white; font-family: 'arial', sans serif; font-size: 20px;   text-shadow: 0px 0px 0px #aaa; font-weight: bold; text-decoration: none; }

a.pagelink3:visited	{ color: white; font-family:  'arial', sans serif;  font-size: 16px; font-weight: bold; text-decoration: none; }

a.pagelink3:active	{ color: white; font-family:  'arial', sans serif;  font-size: 16px; font-weight: bold; text-decoration: none; }

a.pagelink3:hover	{ color: white; font-family:  'arial', sans serif;  font-size: 16px; font-weight: bold; text-decoration: none; }


/* Main menu settings */
#centeredmenu {
   clear:both;
   float:left;
   margin:0;
   padding:0;
   border-bottom:0px solid red; /* black line below menu */
   width:1810px;
height:75px;
   font-family:Verdana, Geneva, sans-serif; /* Menu font */
   font-size:90%; /* Menu text size */
   z-index:1000;
   position:relative;
top:0px;
}

/* Top menu items */
#centeredmenu ul {
   margin:0;
   padding:0;
   list-style:none;
   float:right;
   position:relative;
   right:78%;
}
#centeredmenu ul li {
   margin:0 0 0 1px;
   padding:0;
   float:left;
   position:relative;
   left:50%;
   top:1px;
}
#centeredmenu ul li a {
   display:block;
   margin:0;
   padding:.6em .5em .4em;
   color: white; font-family: 'Boogaloo', cursive; font-size: 22px;   text-shadow: 0px 0px 0px #aaa; font-weight: bold; text-decoration: none;
   background:burgandy;
     border-bottom:0px solid red;
}
#centeredmenu ul li.active a {
   color: white; font-family: 'Boogaloo', cursive; font-size: 22px;   text-shadow: 0px 0px 0px #aaa; font-weight: bold; text-decoration: none;
   background:burgandy;
}
#centeredmenu ul li a:hover {
   background:#36f; /* Top menu items background colour */
   color: white; font-family: 'Boogaloo', cursive; font-size: 22px;   text-shadow: 0px 0px 0px #aaa; font-weight: bold; text-decoration: none;
   border-bottom:1px solid #03f;
}
#centeredmenu ul li:hover a,
#centeredmenu ul li.hover a { /* This line is required for IE 6 and below */
   background:#36f; /* Top menu items background colour */
   color:white;
   border-bottom:1px solid #03f;
}

/* Submenu items */
#centeredmenu ul ul {
   display:none; /* Sub menus are hiden by default */
   position:absolute;
   top:2em;
   left:0;
   right:auto; /*resets the right:50% on the parent ul */
   width:10em; /* width of the drop-down menus */
}
#centeredmenu ul ul li {
   left:auto;  /*resets the left:50% on the parent li */
   margin:0; /* Reset the 1px margin from the top menu */
   clear:left;
   width:100%;
}
#centeredmenu ul ul li a,
#centeredmenu ul li.active li a,
#centeredmenu ul li:hover ul li a,
#centeredmenu ul li.hover ul li a { /* This line is required for IE 6 and below */
   color: white; font-family: 'Boogaloo', cursive; font-size: 20px;   text-shadow: 0px 0px 0px #aaa; font-weight: normal; text-decoration: none;   background:black;
   
   line-height:1.4em; /* overwrite line-height value from top menu */
   border-bottom:1px solid #ddd; /* sub menu item horizontal lines */
}
#centeredmenu ul ul li a:hover,
#centeredmenu ul li.active ul li a:hover,
#centeredmenu ul li:hover ul li a:hover,
#centeredmenu ul li.hover ul li a:hover { /* This line is required for IE 6 and below */
   background:#36f; /* Sub menu items background colour */
   color:#fff;
}

/* Flip the last submenu so it stays within the page */
#centeredmenu ul ul.last {
   left:auto; /* reset left:0; value */
   right:0; /* Set right value instead */
}

/* Make the sub menus appear on hover */
#centeredmenu ul li:hover ul,
#centeredmenu ul li.hover ul { /* This line is required for IE 6 and below */
   display:block; /* Show the sub menus */
}


#p-select {
    height: 200px;
	width: 150px;
	background-color: black;
    float: left;
    overflow: scroll;
    
}




#splash {
  position: absolute;
  display: none;
  width: 80%;
  height: 80%;
  left: 10%;
  top: 10%;
}



div#mysagscroller{
width: 750px;  /*width of scroller*/
height:60px;
}

div#mysagscroller ul li{
background:red;
color:white;
padding:5px;
margin-bottom:5px; /*bottom spacing between each LI*/
}




.glidecontentwrapper{
position: relative; /* Do not change this value */
width: 825px;
height: 617px; /* Set height to be able to contain height of largest content shown*/
border: 0px solid #687C98;
margin-left: -5px;
margin-right: auto;
overflow: hidden;
}
/*
	Total wrapper width: 350px+5px+5px=360px
	Or width of wrapper div itself plus any left and right CSS border and padding
	Adjust related containers below according to comments
*/


.glidecontent{ /*style for each glide content DIV within wrapper.*/
position: absolute; /* Do not change this value */
padding: 10px;
visibility: hidden;
width: 332px;
}
/*
 Total glidecontent width: 332px+10px+10px=350px
	Or width of wrapper div itself (not counting wrapper border/padding)
*/

.glidecontenttoggler{ /*style for DIV used to contain toggler links. */
width: 500px; height: 125px;
margin-top: 6px;
text-align: left; /*How to align pagination links: "left", "center", or "right"
background: black; /*always declare an explicit background color for fade effect to properly render in IE*/
}
/*
 Total contenttoggler width: 490px+5px+5px=500px
	Or total width of wrapper div (counting wrapper border/padding)
*/

.glidecontenttoggler a{ /*style for every navigational link within toggler */
display: -moz-inline-box;
display: inline-block;
border: 0px solid red;
color: white;
padding: 5px 3px;
margin-right: 3px;
font-family:arial,helvetica;
font-weight: bold;
text-decoration: none;

}

.glidecontenttoggler a.selected{ /*style for selected page's toggler link. ".selected" class auto generated! */
background: black;
color: red;
}

.glidecontenttoggler a:hover{
background: black;
color: white;
}

.glidecontenttoggler a.toc{ /*style for individual toggler links (page 1, page 2, etc). ".toc" class auto generated! */
}

.glidecontenttoggler a.prev, .glidecontenttoggler a.next{ /*style for "prev" and "next" toggler links. ".prev" and ".next" classes auto generated! */
}

.glidecontenttoggler a.prev:hover, .glidecontenttoggler a.next:hover{
background: #1A48A4;
color: white;
}

.glidecontenttoggler  player.addEventListener("onStateChange", function(state){
    if(state === 0){
        // the video is end, do something here.

 video.load();
        video.play();    }
});


