@charset "UTF-8";

html {
    font-size: 16px;
    background-color: #d7ee7a;
    color: #005397;
    padding: 20px;
}
main {
    max-width: 700px;
    margin: 0 auto 100px;
    padding: 0 4%;
    text-align: left;
}
main p {
    font-size: 18px;
    line-height: 1.8em;
}
a {
    text-decoration: none;
    color: #005397;
}
a:hover {
    opacity: 0.7;
}
img {
    max-width: 100%;
    pointer-events: none;
    -webkit-touch-callout: none;
    -moz-touch-callout: none;
}
video {
    max-width: 100%;
    pointer-events: none;
    -webkit-touch-callout: none;
    -moz-touch-callout: none;
    -moz-user-select: none;
    user-select: none;
}
.video-controls {
    pointer-events: all;
}
li {
    list-style: none;
}
h1 {
    font-size: 1.2em;

}
p {
    margin: 2.5em 0;
}



#header {
    display: flex;
    justify-content: space-between;
    align-items: top;
    margin: 10px auto;
}
#header #nav ul {
    text-align: right;
    font-size: 18px;
    line-height: 2;
    border-top: 1px solid #d7ee7a;
    border-bottom: 1px solid #d7ee7a;
    margin: -12px 0;
    padding: 18px 0;
}
#header #site-top ul {
    padding: 0;
}
#logo {
    height: 75px;
}
#title {
    width: 50px;
    margin: 0em;
}



#tags {
    display: flex;
}
#tags h1 {
    font-size: 16px;
    text-decoration: none;
    padding-right: 40px;
}
.tag-link {
    font-weight: 100;
}
.top {
    display: flex;
    justify-content: space-between;
}
.date {
    color: #a5a5a5;
    font-size: 16px;
    margin-top: 10px;
}
h1 {
    font-size: 18px;
}
h2 {
    font-size: 16px;
    margin-top: 0px;
}
.project {
    margin-bottom: 50px;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 4%;
    row-gap: 20px;
    margin: 10px;
}
.grid img {
    aspect-ratio: 1;
    object-fit: cover;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /*16:9*/
    height: 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}





#footer {
    font-size: 0.8rem;
    padding: 10px 0;
    text-align: center;
    margin-top: 0px;
}
#footer a {
    text-decoration: underline;
}
#back-to-home {
    border-left: 1px solid #005397;
    padding-left: 20px;
    margin-left: 20px;
}



@media screen and (max-width: 600px) {
    
    html {
        padding: 5px;
    }
    main {
        padding: 0 2%;
        margin-top: 40px;
    }
    .grid {
        grid-template-columns: 1fr 1fr;
    }
    h1,main p {
        font-size: 16px;
    }
    #header #nav ul {
        font-size: 16px;
        line-height: 30px;
    }
    #logo {
    height: 60px;
    }
}