
/* county sub menu (used on all club pages (squad, fixtures etc ) */

/* 1: menu bar
/* 2: style dropdown arrows to reveal averages links 
/* 3: style dropdown options 
/* 4: style dropdown interactions
/* 5: responsive styling


/* ****************** */
/*  1: main menu bar  */
/* ****************** */
#county_submenu {
    width: 100%;
    background: rgba(var(--sitedark), 0.4);
    font-size: clamp(0.6rem, 0.6rem + 0.4dvw, 2rem);
}
#county_sm_toplineoptions {
    display: flex;
    height: 100%;
    text-align: center;
    align-items: center;
}
#county_sm_toplineoptions li {
    display: block;
    align-items: center;
    line-height: 2rem; 
    width: 100%;
    text-shadow: 1px 1px 2px rgba(var(--siteblack), 1);
}
#county_sm_toplineoptions p,
#county_sm_toplineoptions a{
    color: rgba(var(--sitecream), 1);
    user-select: none;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
}
#county_sm_toplineoptions .county_sm_invalidoption,
#county_sm_toplineoptions .county_sm_invalidoption p,
#county_sm_toplineoptions .county_sm_invalidoption a {
    color: rgba(var(--sitecream), 0.5);
    pointer-events: none;
}
#county_sm_toplineoptions .county_sm_active {
    color: rgba(var(--sitewhite), 1);
    text-decoration: underline;
    text-decoration-color: rgba(var(--sitegold), 1);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.4rem;
}
#county_sm_averages,
#county_sm_year {
    cursor: pointer;
}
#county_sm_toplineoptions hr { height: 1rem; }

/* ************************************************** */
/* 2: style dropdown arrows to reveal averages links  */
/* ************************************************** */
#county_sm_avtext:before,
#county_sm_yeartext:before {
    font-size: 0.6rem;
    display: inline-block;
    padding-right: 0.5rem;
}
.county_sm_uparrow:before   { content: "▲"; }
.county_sm_downarrow:before { content: "▼"; }

/* ************************** */
/* 3: style dropdown options  */
/* ************************** */
#county_sm_avdropdown,
#county_sm_yeardropdown{ 
    position: absolute;
    margin-top: 0.5%;
    margin-left: 5%;
    width: 90%; 
}
#county_sm_yeardropdown {
    max-height: 30ch;
    overflow-y:auto; 
}

.county_sm_dropdownlink{
    background-color: rgba(var(--sitedark));
    border-top: 1px solid rgba(var(--sitegold));
    z-index: 50; 
}
#county_sm_avdropdown li:last-child,
#county_sm_yeardropdown li:last-child { 
    border-bottom: 1px solid rgba(var(--sitegold)); 
}
.county_sm_dropdownlink p,
.county_sm_dropdownlink a { width: 100%; }

.county_sm_dropdownlink p:focus,
.county_sm_dropdownlink a:focus {
    background: rgba(var(--siteselect), 0.8);
    outline: none;
}
.county_sm_dropdownlink p:hover,
.county_sm_dropdownlink a:hover { background: rgba(var(--siteselect), 0.8); }

/* ******************************* */
/* 4: style dropdown interactions  */
/* ******************************* */
.county_sm_dd_active   { display: block; }
.county_sm_dd_inactive { display: none; }

/* ********************** */
/* 5: responsive styling  */
/* ********************** */
@media (max-width: 400px) {
    #county_sm_toplineoptions {
        font-size: 0.65;
    }
}
