@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;
}

.email-field{
  position: relative;
  display: -webkit-box;
  display: flex;
  width: 50%;
}

input[type=text], input[type=email]{
  display: block;
  width: 80%;
  padding: 8px 16px;
  line-height: 25px;
  font-size: 18px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 6px;
  -webkit-appearance: none;
  color: #36563C;
  border: 1px solid #CDD9ED;
  background: #EEF4FF;
  transition: border .3s ease;
}

.email-field input {
  position: relative;
  z-index: 1;
  -webkit-box-flex: 1;
  flex: 1 1 auto;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 6px 0 0 6px;  
}

.email{
  text-align: center;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 25px;
  color: #99A3BA;
  background: #EEF4FF;
  border: 1px solid #CDD9ED;
  border-radius: 0 6px 6px 0;
  -webkit-transition: background .3s ease, border .3s ease, color .3s ease;
  transition: background .3s ease, border .3s ease, color .3s ease;
}

.email-field:focus-within > i {
  color: #fff;
  background: #1B813E;
  border-color: #1B813E;
}

input[type=submit]{
  display: block;
  margin: 1em auto;
  font-family: Hack, monospace;
  background: #0F0F6D;
  color: #ffffff;
  cursor: pointer;
  font-size: 1em;
  padding: 1.5em;
  border: 0;
  transition: all 0.5s;
  border-radius: 10px;
}

input[type=submit]:hover{
  background: #2b2bff;
  transition: all 0.5s;
  border-radius: 10px;
  box-shadow: 0px 6px 15px #0000ff61;
}