/* all that good universal stuff */
* {
    box-sizing: border-box;
}

html {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 10px;
}

body {
    font-size: 1.6rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 5px;
    padding: 5px;
}

/* section tags */
.photo {
    background-color: grey;
    width: fit-content;
    padding: 10px;
    color: white;
    border: 1px solid;
    border-color: black;
    text-align: inherit;
} /* reminder: remove all trace of .photo in final product */

header, nav, aside, footer {
    position: sticky;
    background-color: lightgrey;
    border: 1px solid;
    border-color: black;
    margin: -13px;
}

header, nav {
    grid-column: span 12;
    margin-bottom: 5px;
    padding: 2px;
}

header {
    top: 0px;
    display: table; /* getting the text to display beside the logo placeholder was HELL */
}

.pagetitle {
    display: table-cell; /* like I'm happy I fixed it but why am I doing homework on my 18th birthday ;-; */
}

nav{
    top: 63px;
    text-align: right;
}

nav li {
    display: inline-block;
}

nav a {
    background-color: lightgrey;
    padding: 5px;
    color: black;
    text-decoration: none;
}

nav a:hover {
    background-color: grey;
    border: 0;
    color: white;
    text-decoration: none;
}

main {
    grid-column-start: 2;
    grid-column-end: 12;
    padding: 10px;
}

aside {
    top: 119px;
    right: 0px;
    bottom: 0px;
    grid-column: span 2;
    padding: 10px;
}

.asidecont {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 5px;
    padding: 5px;
}

aside .photo, aside p {
    grid-column: span 4;
}  

aside .photo {
    width: 50%;
    aspect-ratio: 1/1;
}

.photos {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 20px;
    padding: 0px;
}

.photos .photo {
    width: 100%;
    aspect-ratio: 1/1;
}

.content {
    grid-column: span 3;
}

a {
    color: grey;
    text-decoration: none;
}

a:hover {
    background-color: grey;
    border: 5px solid;
    border-color: grey;
    color: white;
    text-decoration: underline;
}

footer {
    grid-column: span 12;
    bottom: 0px;
    padding: 2px;
    text-align: center;
}

/* text decoration */
h1, h3 {
    text-transform: capitalize;
}

.acro { 
    text-transform: uppercase; /* yes I *could* do this by hand but fuck it I was having fun looking at text transformation stuff */
}

/* individual page features */

/* home */
.hmhead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    
    animation: hmhead linear;
    animation-timeline: scroll();
    animation-range-start: 43vh;
    animation-range-end: 86vh;
    animation-fill-mode: both;
}

@keyframes hmhead { /*why do I do this to myself*/
    to {border: 1px solid; clip: auto; height: auto; margin: -13px; margin-bottom: 5px; 
        overflow: auto; padding: 5px; position: sticky; width: auto;}
}

.hmnav {
    top: 0px;
    z-index: 1000;
    animation: hmnav linear;
    animation-timeline: scroll();
    animation-range-start: 43vh;
    animation-range-end: 86vh;
    animation-fill-mode: both;
}

@keyframes hmnav {
    to {top: 63px;}
}

.hmdis {
    grid-column: span 12;
    display: flex;
    justify-content: center; /* getting the text to NOT display beside the logo placeholder is HELL2 */
    align-items: center;
    -ms-flex-align: center;
    height: 43vh;
    line-height: 20vh;
    margin: -13px;
    padding: 5px;
    background-color: lightgrey;
}

.hmdis h3 {
    font-size: 3.5rem;
}

.hmmain {
    min-height: 76vh;
}

/* about */
.abtcont {
    grid-column-end: 11;
    min-height: 72.5vh;
} 

/* events */
.calendar {
    grid-column: span 12;
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
}

th, td {
    border: 1px solid;
    border-color: black;
    padding: 5px;
    vertical-align: top;
}

th {
    background-color: lightgrey;
}

/* mobile sizing */
@media only screen and (max-width: 1024px) {

    main {
        min-height: 83vh;
    }

    aside {
        grid-column: span 12;
        height: auto;
        bottom: 30px;
    }

    aside .photo, aside p {
        grid-column: span 1;
    }

    aside .photo {
        width: 100%;
    }

    .hmmain {
        min-height: 85vh;
    }

    .hmhead, .hmnav {
        animation-range-end: 75vh;
    }
    
    .hmdis {
        height: 48vh;
        line-height: 15vh;
    }

    .hmdis h3 {
        font-size: 2rem;
    }

    .abtcont {
        grid-column-end: 12;
        min-height: 57vh;
    }
}

@media only screen and (max-width: 600px) {
    body {
        font-size: 1rem;
    }

    main {
        min-height: 75vh;
    }
    
    .hmdis {
        text-align: center;
        height: 44vh;
        line-height: 15vh;
    }

    .hmmain {
        min-height: 78vh;
    }

    .content {
        grid-column: span 6;
    }

    .calendar {
        font-size: 0.8rem;
    }
}