﻿.myMenuRoot {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 80px;
    display: block;
    padding: 5px;
}

.myMenuStub {
    background: #141414a3;
    display: inline-flex;
    flex-flow: column nowrap;
    padding: 5px;
    border-radius: 5px;
    outline: whitesmoke;
    outline-style: solid;
    outline-width: 1px;
}

.myMenuBox {
    flex: none;
    width: 50px;
    height: 50px;
    max-width: 50px;
    max-height: 50px;
    border-bottom: 1px solid #ffffff90;
    margin-bottom: -1px;
    margin-top: -1px;
}
.myMenuBox:last-child {
    border-bottom: none;
}

.myMenuBox:hover {
    background: #a0a0a0a3;
}

.myMenuBox>div {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: auto;
    color: white;
    background-color: #141414a3;
    width: 100px;
    margin-left: 60px;
    margin-top: -45px;
    height: 40px;
    border-radius: 5px;
    outline: whitesmoke;
    outline-style: solid;
    outline-width: 1px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.myMenuBox:hover>div {
    visibility: visible;
    opacity: 1;
    transition: all 0.3s ease;
}

.myMenuBox>a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    user-select: none;
    text-decoration: none;
    color: white;
}

.myMenuBox>a:visited {
    text-decoration: none;
    color: white;
}

.myMenuBox>a:hover {
    text-decoration: none;
    color: #d2afff
}

.myMenuBox>a:active {
    text-decoration: none;
    color: #d2afff;
}

.myMenuBox>a:focus {
    text-decoration: none;
    color: #d2afff;
}



.myMenuBox>a>img {
    max-width: 60%;
    max-height: 60%;
    margin: auto;
    display: block;
}

.myMenuBox>a>i {
    max-width: 60%;
    max-height: 60%;
    font-size: 1.5rem;
    margin: auto;
    display: block;
    user-select: none;
}

@media (max-width: 600px) {
    .myMenuBox {
        width: 40px;
        height: 40px;
        max-width: 40px;
        max-height: 40px;
    }
    .myMenuBox>div {
        width: 100px;
        margin-left: 50px;
        margin-top: -40px;
        height: 40px;
    }
}

@media (hover:none),
(hover:on-demand) {
    .myMenuBox {
        width: 40px;
        height: 40px;
        max-width: 40px;
        max-height: 40px;
    }
    .myMenuBox>div {
        width: 100px;
        margin-left: 50px;
        margin-top: -40px;
        height: 40px;
    }
}

@media screen and (orientation:portrait) {
    .myMenuBox {
        width: 40px;
        height: 40px;
        max-width: 40px;
        max-height: 40px;
    }
    .myMenuBox>div {
        width: 100px;
        margin-left: 50px;
        margin-top: -40px;
        height: 40px;
    }
}



/* 
Old menu code
 */

.menu-wrap {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

.menu-wrap .menuicon {
    position: absolute;
    top: 0px;
    left: 0;
    z-index: 1;
    width: 60px;
    height: 60px;
    padding: 1rem;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-wrap .menuicon>div {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.menu-wrap .menuhome {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: pointer;
    width: 50px;
    height: 50px;
    opacity: 0;
}

.menu-wrap .toggler {
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 2;
    cursor: pointer;
    width: 50px;
    height: 50px;
    opacity: 0;
}

.menu-wrap .hamburger {
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 1;
    width: 60px;
    height: 60px;
    padding: 1rem;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-wrap .hamburger>div {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.menu-wrap .hamburger>div:before,
.menu-wrap .hamburger>div:after {
    content: '';
    position: absolute;
    z-index: 1;
    top: -10px;
    width: 100%;
    height: 2px;
    background: inherit;
}

.menu-wrap .hamburger>div:after {
    top: 10px;
}

.menu-wrap .toggler:checked+.hamburger>div {
    transform: rotate(135deg);
}

.menu-wrap .toggler:checked+.hamburger>div:before,
.menu-wrap .toggler:checked+.hamburger>div:after {
    top: 0;
    transform: rotate(90deg);
}

.menu-wrap .toggler:checked:hover+.hamburger>div {
    transform: rotate(225deg);
}

.menu-wrap .toggler:checked~.menu {
    visibility: visible;
}

.menu-wrap .toggler:checked~.menu>div {
    transform: scale(1);
    transition-duration: var(--menu-speed);
}

.menu-wrap .toggler:checked~.menu>div>div {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.menu-wrap .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 90vw;
    height: 100%;
    visibility: hidden;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-wrap .menu>div {
    background: var(--primary-color);
    border-radius: 50%;
    width: 200vh;
    height: 200vh;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: all 0.4s ease;
}

.menu-wrap .menu>div>div {
    text-align: center;
    max-width: 90vw;
    max-height: 100vh;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-wrap .menu>div>div>ul>li {
    list-style: none;
    color: whitesmoke;
    font-size: 1.5rem;
    padding: 1rem;
}

.menu-wrap .menu>div>div>ul>li>a {
    color: inherit;
    text-decoration: none;
    transition: color 0.4s ease;
}



.myGradshowGoldPulse {
    color: gold;
    animation: pulse 1s infinite;
    animation-duration: 1.2s;
    animation-timing-function: ease-out;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    animation-play-state: running;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        background-color: rgba(255, 217, 0, 0.6);
        border-radius: 100%;
    }

    50% {
        background-color: rgba(218, 165, 32, 0.4);
    }

    100% {
        transform: scale(1.5);
        background-color: rgba(255, 217, 0, 0.2);
        border-radius: 20%;
    }
}

@-moz-keyframes pulse {
    0% {
        transform: scale(1);
        background-color: rgba(255, 217, 0, 0.6);
        border-radius: 100%;
    }

    50% {
        background-color: rgba(218, 165, 32, 0.4);
    }

    100% {
        transform: scale(1.5);
        background-color: rgba(255, 217, 0, 0.2);
        border-radius: 20%;
    }
}

@-webkit-keyframes pulse {
    0% {
        transform: scale(1);
        background-color: rgba(255, 217, 0, 0.6);
        border-radius: 100%;
    }

    50% {
        background-color: rgba(218, 165, 32, 0.4);
    }

    100% {
        transform: scale(1.5);
        background-color: rgba(255, 217, 0, 0.2);
        border-radius: 20%;
    }
}