﻿/* The Overlay (background) */
.overlay-menu 
{
    /*display:none;*/
    /* Height & width depends on how you want to reveal the overlay (see JS below) */    
    height: 0;
    width: 100%;
    position: fixed; /* Stay in place */
    z-index: 100000; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(0,0,0); /* Black fallback color */
    /*background-color: rgba(0,0,0, 0.9);*/ /* Black w/opacity */
    background-color: rgba(0,108,182,0.8); /*Blue with opacity*/
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-menu-content {
    position: relative;
    top: 40px; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

.overlay-menu-content h1{
    font-family: acto-black;
    font-size: 50px;
    color: #FFCC33;
    margin-bottom:60px;
    display:none;
}

.overlay-menu-content ul.menu_top li a{font-family:'GothamRoundedBook';font-size:35px;}
.overlay-menu-content ul.menu_top .submenu li a { font-size: 18px;margin-bottom:5px;}

/* The navigation links inside the overlay */
.overlay-menu a {
    text-decoration: none;
    font-size: 36px;
    line-height: 36px;
    margin-bottom: 50px;
    color: #ffffff;
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
    /*text-shadow: 1px 1px 5px #222;*/
}


/* When you mouse over the navigation links, change their color */
.overlay-menu a:hover, .overlay-menu a:focus {
    /*color: #FFCC33;*/
    font-weight:bold;;
}

div#overlay_menu_anchor_close:hover, div#overlay_menu_anchor_close:focus {
    font-weight:bold;
}



/* Position the close button (top right corner) */
.overlay-menu .closebtn {
    position: absolute;
    top: 43px;
    right: 29px;
    font-size: 120px;
    font-family:acto-light;
    padding:0;
    cursor:pointer;
    color: #ffffff;
    /*test*/
    /*text-decoration: none;
    display: block;*/
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
    .overlay-menu a {font-size: 20px}
    .overlay-menu .closebtn {
        font-size: 80px;
        top: 30px;
        right: 35px;
    }
}
@media screen and (min-width: 481px) and (max-width: 767px) {
    .overlay-menu .closebtn {/*font-size: 80px;*/ /*top:16px;*/ right:9px;}
    /*.overlay-menu-content ul.menu_top li a{font-size:25px;margin-bottom:20px;}
    .overlay-menu-content h1{font-size:40px;}*/
}
@media screen and (max-width: 480px) {
    .overlay-menu .closebtn {font-size: 80px; top:16px; right:18px;}
    .overlay-menu-content ul.menu_top li a{font-size:25px;margin-bottom:20px;}
    .overlay-menu-content h1{font-size:40px;}
}