@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand&family=Source+Code+Pro&display=swap');

/*
    Global CSS
*/
* {
    transition-duration: 0.2s;
}

body, html{
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: #E2943B;
    padding: 0.2em;
    border-bottom: 2px solid #D19826;
}

a:hover{
    background-color: #D19826;
    color: white;
}

li{
    list-style-type: none;
}

ul, li{
    margin: 0;
    padding: 0;
}

/*
    Mian Layout
*/
h1 {
    font-family: 'Open Sans', sans-serif;
}

header{
    width: 100%;
}

main{
    min-height: 67.5vh;
    width: 90%;
    margin: auto;
}

/*
    Header
*/
h1 {
    text-align: center;
}

/*
    Nav CSS
*/
.nav-container{
    position: sticky;
    top: 0;
    flex-direction: row;
    display: flex;
    width: 100%;
    background-color: #6E552F;
    justify-content: stretch;
}

.nav-item a {
    display: block;
    padding: 1em;
    font-size: 14pt;
    border-color: transparent;
}

.active{
    background-color: black;
}

.active a {
    color: white;
}

.active a:hover{
    background-color: inherit;
}

/*
    Main
*/
main section {
    margin: auto;
    border: 2px solid;
}

.bar-title{
    font-size: 30pt;
}

.bar-des {
    margin: auto;
    text-indent: 1em;
    font-size: 20pt;
}

/* table */
code, .code-area{
    display: block;
    background-color: #080808;
    color: white;
    padding: 0.5em;
    font-family: 'Source Code Pro', monospace;
    border-left: 10px solid #2D6D4B;
}

.data-section caption{
    font-size: 36pt;
}

table{
    width: 100%;
    border-collapse: collapse;
    font-family: 'Quicksand', sans-serif;
}

td, th{
    padding: 0.5em;
    text-align: center;
    margin: 0;
}

tr:nth-child(even){
    background-color: #BDC0BA;
}

td {
    border-right: 1px solid;
}

tr td:last-child{
    border: 0;
}

td:hover{
    background-color: #ddd;
}

tr:hover{
    background-color: #656765;
}

th{
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
    background-color: #373C38;
    color: white;
}

/*
    Footer
*/
footer{
    position: absolute;
    margin-top: 20px;
    background-color: #BDC0BA;
    width: 100%;
    display: grid;
    height: 10em;
    grid-template-areas: 
        "n c s"
}

.footer-announce{
    grid-area: n;
    margin: auto;
}

.social-link{
    grid-area: s;
}


.link-item{
    margin: 1em;
    border-bottom: 2px solid;
}

.link-item:hover{
    border-color: white;
}

.link-item a{
    color: black;
    display: block;
    margin: auto;
    text-align: center;
    border: none;
}

.course-link{
    grid-area: c;
}

.link-item{
    display: block;
}