
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Times New Roman', Times, serif; */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1em;
}

html {
    scroll-behavior: smooth;
    --button-color: #ff2a30;
    --button-color-dark: #ff0a0a;
}

ol, ul { list-style: none; }

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    max-height: 100%;
}

/* ****************fixed items below********************** */

.popup-item {
    cursor: pointer;
}

.popup-screen {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 900;
    background-color: #000000ef;
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 1rem;
    padding-bottom: 8rem;
    overflow-y: auto;
}

.popup-screen:empty { display: none; }
.popup-screen:not(:empty) + .popup-menu {
    display: flex;
}

.popup-menu {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    padding: 1rem 2rem;
    gap: 2rem;
    font-size: 1.6rem;
    transform: translateX(-50%);
    background-color: #3a3a3a;
    z-index: 1000;
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 #fff9;
}

.popup-menu .icon > * {
    width: 3rem;
    height: 3rem;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-menu button, .popup-menu .button { border: 2px solid black; }

.home-btn {
    position: fixed;
    bottom: 1rem;
    /* right: 1rem; */
    right: -5rem;
    z-index: 900;
    width: 4rem;
    aspect-ratio: 1;
    background-image: url(images/graphics/up-medal.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transition: right 0.3s;
}

/* ****************fixed items above********************** */

header, main > section {
    padding: 1rem;
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

header {
    flex-direction: column;
    color: #eee;
}

header::after {
    content: "";
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(#000c, #000c), url(images/backgrounds/heading-background.jpg);
    background-position: center;
    z-index: -1;
}

header nav {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.6rem;
    font-size: 1.1em;
    z-index: 800;
    
    /* steph */
    background-color: #7119;
    background-color: #0003;
    /* position: fixed; */
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    text-transform: capitalize;
}

.links-list a { transition: color 0.2s; }
.links-list a:hover { color: #bbb; }

header nav .button {
    border-radius: 0.3rem;
    align-self: center;
    margin-left: 1rem;
}

h1 {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5em;
}

h1 img { max-height: 22rem; }

button, .button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--button-color);
    border: 2px solid red;
    cursor: pointer;
    border-radius: 100vh;
    text-align: center;
    text-decoration: none;
    color: #111;
    padding: 0.5rem;
    /* steph */
    font-weight: 500;
    transition: background-color 0.2s;
}

button:hover, .button:hover {
    background-color: var(--button-color-dark);
}

main > section {
    padding-top: 3.4rem;
    background-color: #fff;
}

section h2 {
    position: absolute;
    top: 0;
    font-size: 2rem;
    padding: 0.5rem;
    width: 100%;
    background: linear-gradient(#ddd, #eee);
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 34rem;
}

article > .button {
    font-size: 1.5rem;
    padding: 0.75rem;
    margin-top: 1rem;
    width: 80%;
}

p {
    line-height: 1.2;
    font-size: 1.3em;
    margin: 0.5em;
    max-width: 70ch;
}

.social-card {
    display: flex;
    flex-direction: column;
    background-color: #eee;
    border-radius: 1em;
    padding: 0.5em;
    max-width: 40em;
    min-height: 20rem;
    flex: 1 1 30em;
    justify-content: center;
}

.social-card h3 {
    font-size: 2em;
    text-align: center;
}

.athletic-box {
    display: flex;
    flex-wrap: wrap;
}

.athletic-box li {
    flex: 1 0 17rem;
}

.social-card .button {
    display: block;
    align-self: stretch;
    margin: 1em;
    padding: 1em;
}

#taxinfo-section { flex-wrap: wrap-reverse; }

/********************IMG SLIDER AREA********************/

#pictures {
    background-image: linear-gradient(#000a, #0006), url(images/backgrounds/camera-back.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background-attachment: fixed; */
}

.img-slider-frame {
    position: relative;
    padding: 1em;
    background-color: #888;
    border-radius: 1em;
    margin-top: 1rem;
    max-width: 40rem;
    flex-grow: 1;
    flex-basis: 25rem;
}

.img-slider-frame::after {
    position: absolute;
    content: "";
    bottom: 100%;
    right: 2em;
    background-color: #999;
    border-top-right-radius: 0.2em;
    border-top-left-radius: 0.2em;
    height: 0.6em;
    width: 4em;
}


.img-slider-screen {
    display: flex;
    align-items: center;
    aspect-ratio: 4 / 3;
    max-width: 40em;
    background-color: black;
    overflow-x: hidden;
}

.img-slider-screen li {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 100%;
    transition: all 0.75s;
}

.img-slider-screen img {
    min-height: 0;
    min-width: 0;
}

.img-slider-screen .img-left {
    margin-left: -100%;
}

/***************buttons for picture slider below*************/

.img-slider-btn-bar {
    display: flex;
    justify-content: space-around;
    background-color: #222;
    padding: 0.4em;
}

.img-slider-btn-bar button {
    position: relative;
    font-size: 2em;
    width: 40%;
    height: 2rem;
    --triangle-size: 0.38em;
    --arror-bar-size: 70%;
    --offset: 15%;
    color: #000e;
}

.img-slider-btn-bar button::before,
.img-slider-btn-bar button::after {
    position: absolute;
    content: "";
    top: 50%;
    transform: translateY(-50%);
}

.img-slider-btn-bar button::before {
    width: var(--arror-bar-size);
    height: 0.25em;
    background-color: #000e;
}

.img-slider-btn-bar button:first-of-type::before { right: var(--offset) }
.img-slider-btn-bar button:last-of-type::before { left: var(--offset) }

.img-slider-btn-bar button::after {
    width: 0; 
    height: 0; 
    border-top: calc(var(--triangle-size) * .8) solid transparent;
    border-bottom: calc(var(--triangle-size) * .8) solid transparent;
}

.img-slider-btn-bar button:first-of-type::after {
    right: calc(var(--arror-bar-size) + var(--offset) - 1px);
    border-right: var(--triangle-size) solid;
}

.img-slider-btn-bar button:last-of-type::after {
    left: calc(var(--arror-bar-size) + var(--offset) - 1px);
    border-left: var(--triangle-size) solid;
}

/***************buttons for picture slider above*************/


/**********************************************************/
/******************ACCONPLISHMENTS SECTION BELOW************/
/**********************************************************/

#accomplishments {
    background-image: linear-gradient(#0001, #0001), url(images/backgrounds/brick.png);
    background-size: 100px;
}

#accomplishments table {
    display: block;
    margin-top: 1rem;
    width: 100%;
}

#accomplishments tbody { display: block; }

#accomplishments table tr {
    display: flex;
    width: 100%;
    gap: 1rem;
    margin-bottom: calc(1rem - 8px);
    align-items: center;
    overflow: auto;
    padding: 4px 0;
}

.plaque-heading {
    display: block;
    align-self: stretch;
    position: sticky;
    left: 0;
    writing-mode: vertical-rl;
    text-orientation: upright;
    z-index: 400;
}

.plaque-heading,
.champ-heading,
.champ-subheading {
    text-transform: uppercase;
    color: #d5bc84;
    background-color: black;
    border: 4px solid;
    padding: 0.4rem;
    text-align: center;
}

.champ-heading {
    font-size: 2.4rem;
    flex-grow: 1;
    border-bottom: 0;
}

tr:has(.champ-subheading) {
    margin-top: -1rem;
}

.champ-subheading::before {
    position: absolute;
    content: "";
    width: 8rem;
    left: 50%;
    transform: translateX(-50%);
    top: -3px;
    height: 1px;
    background-color: #d5bc84;
}

.champ-subheading {
    position: relative;
    flex-grow: 1;
    border-top: 0;
}

.win-plaque {
    flex-shrink: 0;
	display: block;
	position: relative;
	background: url(images/graphics/plaque.webp);
	width: 9rem;
	font-size: 1.3rem;
	text-align: center;
	background-size: contain;
	background-repeat: no-repeat;
	aspect-ratio: 927/664;
    text-transform: capitalize;
    transition: box-shadow 0.2s;
}

.win-plaque:hover {
    box-shadow: 0 0 5px 3px #cfac63;
}

.win-plaque a {
    position: relative;
    display: block;
    height: 100%;
    width: 100%;
    padding-top: 3.65rem;
    z-index: 300;
}

.win-plaque::before {
    position: absolute;
    left: 0;
    width: 100%;
    font-size: 0.9em;
}

.win-plaque.hs::before {
    top: 1.2rem;
    content: "high school";
}

.win-plaque.ms::before {
    content: "middle school";
    font-size: 0.8em;
    top: 1.3rem;
}

/* .win-plaque a::after {
    content: url(images/graphics/external-link.svg);
    margin-left: 0.5rem;
} */

/**********************************************************/
/******************ACCONPLISHMENTS SECTION ABOVE************/
/**********************************************************/

/**********************************************************/
/******************ALUMNI SECTION BELOW************/
/**********************************************************/


#alumni ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

#alumni ul > li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 8px solid black;
    max-width: 30rem;
    margin: 1rem 1.5rem;
}

#alumni li h4 {
    font-style: oblique;
    position: relative;
    background-color: var(--back);
    color: var(--text);
    padding: 0.4rem;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

#alumni h4::after,
#alumni h4::before {
    position: absolute;
    content: "";
    top: 0;
    left: 100%;
    width: 0;
    height: 0;
    border-left: 30px solid var(--back);
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
}

#alumni h4::after { top: unset; bottom: 0; }

#alumni ol {
    display: flex;
    flex-wrap: wrap;
    border: 3px solid #444;
    border-left: 0;
    background-image: url(images/backgrounds/turf.png);
    padding: 0.2rem;
}

#alumni li > ol a {
    display: grid;
    place-items: center;
    padding: 0.2rem;
    color: #f8f8f8;
    text-align: center;
    position: relative;
    height: 4rem;
    width: 6.4rem;
    margin: 0.3rem;
    z-index: 100;
    transition: padding 0.2s;
}

#alumni li > ol a:hover {
    padding-top: 0.5rem;
}

#alumni li > a::after {
    position: absolute;
    content: "🏃‍♀️";
    font-size: 4rem;
    inset: 0;
    top: -8px;
    background-image: linear-gradient(red, black);
    background-clip: text;
    color: transparent;
    z-index: -1;
}

#alumni li > a.male::after { content: "🏃‍♂️"; }

#alumni li > a::before {
    position: absolute;
    content: url(images/graphics/external-link.svg);
    inset: 0;
    display: grid;
    padding: 0.2rem;
    place-items: start end;
    background-color: #33333355;
    z-index: -2;
    border-radius: 0.2rem;
}


/**********************************************************/
/******************ALUMNI SECTION ABOVE************/
/**********************************************************/

.coaches-section {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}

.coach-card {
    /* background-color: green; */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem;
    max-width: 17rem;
    text-align: center;
}

.coach-card picture {
    display: block;
    position: relative;
    height: 10rem;
    width: 10rem;
    border-radius: 100vh;
    border: 1px solid red;
    overflow: clip;
    color: #0000;
    --back-color: #afafd1;
    background-color: var(--back-color);
}

.coach-card img {
    position: relative;
    z-index: 200;
    background-color: var(--back-color);
    color: #0000;
}

.coach-card picture::before,
.coach-card picture::after {
    content: "";
    position: absolute;
    background-color: #6969aa;
    left: 50%;
    transform: translateX(-50%);
    /* z-index: -1; */
}
.coach-card picture::before {
	height: 5rem;
    width: 5.5rem;
	border-top-right-radius: 1rem;
	border-top-left-radius: 1rem;
	bottom: -3px;
}
.coach-card picture::after {
    height: 2.6rem;
    aspect-ratio: 1;
    border-radius: 100vh;
    bottom: 5rem;
}

.coach-card h3 {
    font-size: 2em;
}

/**********taxinfo section************/

.body-link {
    font-size: 0.9em;
    /* color: #0283d6; */
    color: #0b67ba;
    text-decoration: underline;
}


.tax-letter {
    padding: 0.25rem;
    padding-bottom: 0;
    max-width: 30rem;
    background-color: #333;
    border-radius: 0.2rem;
    margin: 1rem 0;
}

footer {
    background-color: #222;
    display: flex;
    justify-content: space-between;
    color: #eee;
}

/* ***************************************** */
/* ***********TEAM RECORDS SECTION********** */
/* ***************************************** */


/* ***********records form -Below-********** */

.records-wrapper {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    margin-top: 4rem;
    width: 100%;
    /* max-height: 75vh; */
    overflow: auto;
    background-color: #eee;
    padding: 0.4rem;
    --runner-male: "🏃‍♂️";
    --runner-female: "🏃‍♀️";
    --runner-large: 3rem;
    --runner-small: 2.5rem;
    --runner-gender: var(--runner-male);
    --runner-size: var(--runner-large);
}

.records-wrapper:has(#female:checked) { --runner-gender: var(--runner-female); }
.records-wrapper:has(#middle_school:checked) { --runner-size: var(--runner-small); }

.records-wrapper form {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.records-wrapper fieldset {
    position: relative;
    padding-top: 4rem;
    border: none;
    flex: 1;
    display: flex;
    justify-content: space-around;
}

.records-wrapper legend {
    position: absolute;
    width: 0;
    opacity: 0;
}

.records-wrapper input[type="radio"] {
    visibility: hidden;
    position: absolute;
}

.records-wrapper label {
    position: relative;
    display: inline-block;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem;
    width: 12rem;
    text-align: center;
    border: 2px double rgb(204, 20, 20);
    transition: background-color 0.1s;
    z-index: 200;
}

.records-wrapper label:hover {
    background-color: rgba(255, 40, 40, 0.3);
}

/* .records-wrapper input:checked + label {
    background-color: var(--button-color);
} */

.records-wrapper input + label::before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: var(--button-color);
    border-radius: inherit;  
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: left, right, 0.2s;
}

.records-wrapper input:first-of-type + label::before {
    left: 100%;
}
.records-wrapper input:last-of-type + label::before {
    right: 100%;
}
.records-wrapper input:first-of-type:checked + label::before {
    left: 0;
}
.records-wrapper input:last-of-type:checked + label::before {
    right: 0;
}

.records-wrapper label::after {
    position: absolute;
    top: -4rem;
    left: 50%;
    transform: translateX(-50%);
    content: var(--runner-gender);
    font-size: var(--runner-size);
    top: calc(-1rem - var(--runner-size));
}

.records-wrapper label:first-of-type::after {
    transform: translateX(-50%) scale(-1, 1);
}


.records-wrapper fieldset::after {
    content: "";
    position: absolute;
    width: 3rem;
    height: 3rem;
    top: 1.2rem;
    background-image: url(images/graphics/grtc-baton.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transition: left 0.2s;
    --baton-offset: calc(25% + 0.5rem);
    left: var(--baton-offset);
}

.records-wrapper fieldset:has(input:last-of-type:checked)::after {
    left: calc(100% - var(--baton-offset) - 3rem);
}


/* ***********records form -Above-********** */
/* ***********records table -Below-********** */

.table-scroll-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-height: 30rem;
    overflow: auto;
    background-color: #ddd;
}

.records-table {
    position: relative;
    width: 100%;
    background-color: inherit;
}

.table-scroll-wrapper table {
    border-collapse: collapse;
}

.table-scroll-wrapper th, .table-scroll-wrapper td {
    border: 1px solid black;
    padding: 1rem;
}

thead th {
    position: sticky;
    top: 0;
    background-color: #ddd;
    z-index: 400;
}

thead th::before {
    position: absolute;
    content: "";
    inset: -1px;
    border: 1px solid;
}

td:empty { position: relative; }
td:empty::after {
    position: absolute;
    content: "";
    inset: 0.3rem;
    background-image: url(images/graphics/grtc-baton.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

th span { font-size: 0.8em; }
th span::before { content: " -"; }

.records-table tr th:first-child {
    background-color: #ddd;
}

.table-scroll-wrapper:has(tbody:empty) {
    height: 16rem;
    border-bottom: 1px solid black;
    border-right: 1px solid black;
}

.table-scroll-wrapper:has(tbody:empty)::after {
    flex-grow: 1;
    display: block;
    content: "";
    border-left: 1px solid black;
    background-image: url(images/graphics/person-running.gif);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box;
}

.records-table:has(tbody:empty), .records-table:has(tbody:empty) th { border-right: 0; }

.group1 { background-color: aliceblue; }
.group2 { background-color: antiquewhite; }
.group3 { background-color: darkkhaki; }


/* ***********CONTACT FORM SECTION********** */

.contact-section {
    background-image: linear-gradient(#0006, #0007), url(images/backgrounds/track-lanes.jpg);
    background-size: cover;
    align-content: center;
}

.contact-section article {
    border-radius: 8px;
    box-shadow: 0 0 4px 1px;
    color: #eee;
    font-size: 1.1rem;
    background-color: #0003;
    max-width: 45rem;
    padding: 0.4rem;
}

.contact-section form {
    position: relative;
    margin-top: 1rem;
    padding: 2rem;
    padding-bottom: 0.5rem;
    max-width: 100%;
    border-radius: 1rem;
    background-color:#eee;
    box-shadow: 0 0 2px 1px #000;
}

.contact-section form section {
    position: absolute;
    inset: 0;
    place-content: center;
    background-color: #eeee;
    border-radius: inherit;
    display: none;
}

#emailSent:target form section {
    display: grid;
}

.contact-section form li {
    display: flex;
    justify-content: flex-start;
    align-items: start;
    gap: 1rem;
    margin: 1rem 0;
}

.contact-section form label {
    min-width: 5em;
    cursor: pointer;
}

.contact-section form input {
    min-width: 0;
}


.contact-section form input, .contact-section form textarea {
    padding: 0.35rem;
    /* max-width: 15rem; */
}

.contact-section form textarea {
    resize: vertical;
    min-width: 0;
}

.contact form button {
    font-size: 1.1em;
    margin: auto;
    flex-grow: 1;
}

.honey-pot { display: none !important;}


/* ************************************************* */
/* *********************SPONSORS below****************/
/* ************************************************* */


#sponsors {
    background-image: url(images/backgrounds/chain-fence.svg), url(images/backgrounds/track-side-view.jpg);
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
}

#sponsors ul {
    align-self: stretch;
	margin-top: 1rem;
	width: 100%;
	display: flex;
	gap: 1rem;
	justify-content: space-evenly;
    align-items: end;
    flex-wrap: wrap;
}

#sponsors li:first-child {
    width: 60rem;
    /* height: 14rem; */
    height: 12.5rem;
}

/* #sponsors li img {
    height: 100%;
} */

/* #sponsors li:last-child { margin: auto 0; } */

#sponsors li {
    /* margin: auto 0; */
    display: block;
    border: 1px double black;
    background-color: #fbfbfb;
}

#sponsors li > * {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    transition: background-color, padding 0.2s;
    width: 100%;
    height: 100%;
}

#sponsors li > p { margin: 0; }
#sponsors li > a:hover {
    background-color: #fff;
    padding: 1.8rem;
}

#sponsors li,
#sponsors li > * { position: relative; }
#sponsors li::before,
#sponsors li::after,
#sponsors li > *::before,
#sponsors li > *::after {
    position: absolute;
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: black;
    z-index: 200;
}

#sponsors li::before { top: 0.5rem; left: 0.5rem; }
#sponsors li::after { top: 0.5rem; right: 0.5rem; }
#sponsors li > *::before { bottom: 0.5rem; left: 0.5rem; }
#sponsors li > *::after { bottom: 0.5rem; right: 0.5rem; }


/* #sponsors p {
    border: 1px double black;
    background-color: #fbfbfb;
    padding: 1.5rem;
} */


/* ************************************************* */
/* *********************SPONSORS above****************/
/* ************************************************* */

/* ************************************************* */
/* *********************QUERIES********************* */
/* ************************************************* */
@media only screen and (max-width: 40rem) {
    h1 { font-size: 4.5em; }

    .img-slider-frame {
        padding: 0.5em;
        background-color: #bbb;
    }

    .img-slider-frame::after { content: unset; }
    
    /* tbody:empty { width: calc(600% + 1px); } */
}

/* PHONE SIZE */
@media only screen and (max-width: 32rem) {
    
    li:has(.zoom-btn) { display: none; }

    .records-wrapper label {
        padding: 0.6rem;
        width: 8.8rem;
        font-size: 1.15rem;
        margin: 1rem 0;
    }

    main > section { min-height: unset; }

    .contact-section article { margin-top: 1rem; }

    .contact-section form li {
        flex-direction: column;
        align-items: stretch;
    }

    #pictures {
        padding: 0;
        padding-top: 2.39rem;
        background-image: none;
    }

    .img-slider-frame { border-radius: 0; }

    #alumni ul > li {
        margin-left: 0;
        margin-right: 1.3rem;
    }
}
