.logo {
    width: 85px;
    height: 85px;
    position: fixed;
    top: 20px;
    left: 20px;
    background-image: url(../images/logos/WTlogo.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
    background-position-y: center;
    border: 2pt black solid;
    border-radius: 10px;
    z-index: 10;
}

.play {
    color: black;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    width: 120px;
    height: 120px;
    position: fixed;
    top: 20px;
    left: 20px;
    background-image: url(../images/play.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
    background-position-y: center;
}

#flashing {
    position: fixed;
    top: 70px;
    left: 150px;
    width: 120px;
    height: 110px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: max(1.1rem, 14px);
}

.blinker {
    animation: blinker 2s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

#menuList {
    display: none;
}

#asterisk,
#pause {
    z-index: 999999999;
}

.asterisk {
    color: black;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    width: 80px;
    height: 55px;
    position: fixed;
    top: 20px;
    right: 20px;
    background-image: url(../images/menu_a.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
    background-position-y: center;
    cursor: pointer;
}

.asterisk:hover {
    background-image: url(../images/menu_h.svg);
}

.asterisk:active {
    background-image: url(../images/menu.svg);
}

.menu {
    width: max(13vw, 120px);
    position: fixed;
    top: 10vh;
    right: 25px;
}

.underline {
    width: max(15vw, 150px);
    height: 1.2vh;
    border-top: 0.2vw black solid;
}

.menuItem,
.menuItem a {
    font-size: max(0.7rem, 14px);
    color: black;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    padding-left: 0.5vw;
    padding-bottom: 0.8vh;
}

.menuItem a:hover {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

#menuOverlay {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    opacity: 0.9;
    display: none;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — slightly smaller top-corner controls */
@media only screen and (max-width: 900px) {
    #flashing {
        top: 145px;
        left: 63px;
    }
}

/* Tablet and below — shrink corner UI so it doesn't crowd the title text */
@media only screen and (max-width: 1024px) {
    .logo {
        width: 56px;
        height: 56px;
        top: 12px;
        left: 12px;
        border-width: 1.5pt;
    }

    .asterisk {
        width: 56px;
        height: 40px;
        top: 12px;
        right: 12px;
    }

    .play {
        width: 80px;
        height: 80px;
        top: 12px;
        left: 12px;
    }
}

/* Mobile — open menu fills the screen */
@media only screen and (max-width: 480px) {
    /* Open menu becomes a centered overlay */
    .menu {
        width: 80vw;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .underline {
        width: 80vw;
        padding: 0;
        margin: 0;
        height: 5vh;
        border-top: 0.6vw solid black;
    }

    .menuItem a {
        font-size: 10vw;
        text-align: center;
    }
}

/* Short landscape phones — keep the open menu usable */
@media only screen and (max-width: 1200px) and (max-height: 480px) {
    .menu {
        width: 75vw;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .underline {
        width: 80vw;
        padding: 0;
        margin: 0;
        height: 5vh;
        border-top: 0.2vw solid black;
    }

    .menuItem a {
        font-size: 3.5vw;
        text-align: center;
    }
}
