:root {
    /* setting for light mode */
    --font-color: #555;
    --bg-color: #fff;
    --link-color: #000;
    /* setting for dark mode */
    --dark-font-color: #fff;
    --dark-bg-color: #222222;
    --dark-link-color: #138d75;
}

body {
    background-color: var(--bg-color);
    color: var(--font-color);
    margin: 60px;
    font-family: "Lato", sans-serif;
    line-height: 1.5;
    font-weight: 300;
    font-size: 14px;
    font-family: 'Noto Sans TC', sans-serif;
}

body.dark-mode {
    background-color: var(--dark-bg-color);
    color: var(--dark-font-color);
}

body.dark-mode a {
    color: var(--dark-link-color);
}

body.dark-mode i {
    color: var(--dark-font-color);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 24px;
}

ul, ol, table, pre, dl {
    margin: 0 0 20px;
    list-style-type: circle;
}

ul {
    padding-left: 30px;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 20px;
}

h3, h4, h5, h6 {
    font-weight: 500;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--font-color);
    transition: all 0.3s ease;
}

a small {
    font-size: 2.5px;
    color: var(--font-color);
    margin-top: -0.3em;
    display: block;
}

a:hover small {
    color: #777;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0px 20px;
}

th, td {
    text-align: left;
    padding: 5px 16px;
    border-bottom: 1px solid #e5e5e5;
    /*vertical-align: top;*/
    vertical-align: middle;
}

dt {
    color: #444;
    font-weight: 500;
}

th {
    color: #444;
}

table, tr, td {
    border: none;
}

img {
    width: 100%;
}

strong {
    font-weight: 1000;
}

section {
    width: 700px;
    margin: auto;
}

small {
    font-size: 14px;
}

button {
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    overflow: hidden;
    outline: none;
}

i {
    font-size: 16px;
    color: var(--font-color);
    padding: 4px;
}

tiny {
    font-size: 12px;
}

hr {
    border: 0;
    background: #e5e5e5;
    height: 1px;
    margin: 0 0 20px;
}

@media print, screen and (max-width: 770px) {
    section {
        width: auto;
    }
}

@media print {
    body {
        padding: 0.4in;
        font-size: 12pt;
        color: #444;
    }
}

/* additions */

.flex-container {
    display: flex;
    flex-wrap: wrap;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.flex-left {
    flex: 60%;
}

.flex-right {
    line-height: 1;
    flex: 20%;
}

.paper-links a {
    text-decoration: underline;
    padding-right: 10px;
}

.paper-title {
    font-weight: bold;
}

.paper-summary {
    font-size: 12px;
    font-style: italic;
}

.paper {
    padding-left:0px;
    /*padding-bottom: 20px;*/
}

.circular-square {
    border-radius: 50%;
}

#title {
    float: left;
    display: flex;
    align-items: flex-end;
}

#socials {
    padding-top: 9px;
    float: right;
}

.info-links {
text-align: center;
padding: 1em 0;
}

.info-links {
text-align: center;
padding: 1em 0;
}

@media (max-width: 780px) {
    body {
        margin: 20px 20px 20px 20px;
        font-size: 12px;
    }
    td {
        padding: 10px 8px;
      }
    img {
        width: 100%;
    }
}

/* Add this at the end of your styles.css file



  @media (max-width: 767px) {
    body {
        margin: 16px 12px 16px 12px;
    }
    h1, h2, h3, h4, h5, h6 {
        margin-left: 14px;
    }
    table {
      display: flex;
      flex-direction: column;
    }
    td {
      display: block;
    }
    img {
        width: 100%;
    }
  }
   */