/* menu overlay */
.overlaymenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    transition: background 0.3s ease-in-out;
    pointer-events: none;
    opacity: 0;
    z-index: 1000; /* ensure overlay is on top */
}

.overlaymenu.active {
    background-image: linear-gradient(var(--grayverylight),var(--graydark));
    pointer-events: all;
    opacity: 0.96;
    z-index: 1000; /* ensure it's above other elements */
    border-top: 3px solid transparent; /* set the border to be transparent */
	border-bottom: 3px solid transparent; /* set the border to be transparent */
	border-right: 3px solid var(--black);
	border-left: 3px solid var(--orange);
	border-image: var(--gradient) 1;
}

/* menu */
.menu {
	position: fixed;
	top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2px;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
}
        
.menu a:link,
a:visited,
a:active,
a:hover,
a.smaller:link,
a:visited,
a:active,
a:hover {
	color: var(--orange);
	text-decoration: none;
	font-size: 50px; /* font */
	border: none;
	outline: none;
}

.menu a.smaller:link, 
a:visited,
a:active,
a:hover {
	font-size: 25px; /* half the font*/
}

.menu div.spaced {
    margin-top: 10px; /* half the font minus 15px*/
}

.menu.active {
	transform: translateY(0);
}
              
/* menu hamburger */
.hamburger {
    position: fixed;
    top: 17px;
    left: 12px;
    width: 40px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    z-index: 1002;
    border: 0pt transparent;
}

.hamburger div {
    width: 35px;
    height: 5px;
    background: var(--orange);
    border-radius: 5px;
    transition: all 0.3s ease;
}
        
.hamburger.active div {
    background: var(--orange);
}
        
.hamburger.active:hover div {
	background: var(--orange);
}
        
.hamburger.active div:nth-child(1) {
    transform: rotate(405deg) translate(7px, 7px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}
        
.hamburger.active div:nth-child(3) {
    transform: rotate(-405deg) translate(7px, -7px);
}

/* iphone portrait */
@media only screen and (max-width: 450px) {
	.menu a:link, a:visited, a:active {
    	font-size: 30px;
	}
	.menu a.smaller:link, a:visited, a:active, a:hover {
		font-size: 15px;
	}
}
	
/* iphone landscape */
@media only screen and (min-width: 450px) and (max-width: 900px) { 
	.menu a:link, a:visited, a:active {
    	font-size: 20px;
	}
	.menu a.smaller:link, a:visited, a:active, a:hover {
		font-size: 10px;
	}
}
	
/* ipad portrait */
@media only screen and (min-width: 900px) and (max-width: 1100px) { 
	.menu a:link, a:visited, a:active {
    	font-size: 50px;
	}
	.menu a.smaller:link, a:visited, a:active, a:hover {
		font-size: 25px;
	}
}
	
/* ipad landscape */
@media only screen and (min-width: 1100px) and (max-width: 1400px) { 
	.menu a:link, a:visited, a:active {
    	font-size: 50px;
	}
	.menu a.smaller:link, a:visited, a:active, a:hover {
		font-size: 25px;
	}
}
