/* The Overlay (background) */
.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS) */
    height: 0%;
    width: 100%;
    position: fixed; /* Stay in place */
    z-index: 4; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(17, 17, 17); /* ALMOST BLACK fallback color */
    background-color: rgba(17, 17, 17, 1.0); /* ALMOST BLACK w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
	/* overflow-y: hidden; */  /* Disable vertical scroll */
    transition: 0.4s; /* 0.4 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
    position: relative;
    top: 18%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 4px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 44px;
	line-height: 32px;
	letter-spacing: .13rem;
    color: #606E72;
    display: block; /* Display block instead of inline */
    transition: 0.2s; /* Transition effects on hover (color) */
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
    color: #660000;
}

/* Position the close button (top right corner) */
.closebtn {
    position: absolute;
    top: 44px;
    right: 44px;
    font-size: 69px !important; /* Override the font-size specified earlier (44px) for all navigation links */
}

/* 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: 1025px) {
    .overlay a {
		padding: 8px;
		text-decoration: none;
		font-size: 30px;
		line-height: 20px;
		letter-spacing: .13rem;
		color: #606E72;
		transition: 0.2s; /* Transition effects on hover (color) */
	}
	#mobile-nav-active {
		padding: 8px;
		text-decoration: none;
		font-size: 30px;
		line-height: 20px;
		letter-spacing: .13rem;
		color: #660000;
		display: block; /* Display block instead of inline */
		transition: 0.2s; /* Transition effects on hover (color) */
	}
    .closebtn {
        font-size: 44px !important;
        top: 22px;
        right: 22px;
    }
}
