@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');

:root {
    var-MainColor:rgb(255, 72, 0);
    --main-color: rgb(255, 72, 0);
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-thumb {
    background: #818181;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #818181;
}

hr {
    width: 70%;
    height: 2px;
    border-width: 0;
    background-color: var(MainColor);
    background-color: var(--main-color);
    margin-top: 5%;
    margin-bottom: 5%;
}

hr.short {
    width: 20%;
}



.header-right a {
    color: black;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 100%;
    line-height: 25px;
    border-radius: 4px;
    margin-top: 5px;
    font-family: "Open Sans";
}

.header-centre a {
    color: #ff0000;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 100%;
    line-height: 25px;
    border-radius: 4px;
    margin-top: 5px;
    padding-top: 20px;
}

/* Style the header links */
.header-right a {
    float: left;
    color: black;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 100%;
    line-height: 25px;
    border-radius: 4px;
    margin-top: 5px;
}

/* Change the background color on mouse-over */
.header-right a:hover {
    background-color: #ddd;
    color: black;
}

/* Style the active/current link*/
.header a.active {
    background-color: var(MainColor);
    background-color: var(--main-color);
    color: white;
}

/* Float the link section to the right */
.header-right {
    float: right;
    padding: 10px;
}

.header-centre {
    font: 160% "Poppins";
    font-weight: 600;
    color: #ff0000;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px #aaaaaa;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
  }

/* Add some basic styles for the navbar */
ul.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid #e7e7e7;
    background-color: #ffffff;
}
  
ul.navbar li {
    float: left;
    width: 33.33%;
}
  
ul.navbar li a {
    display: block;
    text-align: center;
}

  
span.logo {
    float: left;
    padding: 4px;
}


/* Add media queries for responsiveness - when the screen is 600px wide or less, stack the links on top of each other */
@media screen and (max-width: 600px) {
    .header a {
        float: none;
        display: block;
        text-align: left;
    }
    .header-right {
        float: none;
    }
    span.logo {
        display: block;
        float: none;
        text-align: center;
    }
      
      ul.navbar li {
        display: block;
        float: none;
        width: 100%;
      }
      
      ul.navbar li a {
        display: block;
        float: none;
        text-align: center;
      }

      .sticky {
        position: static;
      }
      
}
@media (min-aspect-ratio: 3/2) {
    .article {
        width: 60%;
        margin: auto;
        font-family: "Open Sans";
        font-size: 100%;
    }
}

/* Maximum aspect ratio */
@media (max-aspect-ratio: 3/2) {
    .article {
        width: 90%;
        margin: auto;
        font-family: "Open Sans";
        font-size: 100%;
        overflow: hidden;
    }
}

@media (min-aspect-ratio: 3/2) {
    .abstract {
        width: 60%;
        margin: auto;
        font-family: "Open Sans";
        font-size: 100%;
    }
}

@media (max-aspect-ratio: 3/2) {
    .abstract {
        width: 90%;
        margin: auto;
        font-family: "Open Sans";
        font-size: 100%;
    }
}

.article-title {
    font-family: "Open Sans";
    font-size: 35px;
    text-align: center;
    font-weight: 700;
}

.diagram {
    width: 64%;
    min-width: 350px;
    object-fit: contain;
    margin: auto;
    display: block;
}

.small-diagram {
    width: 40%;
    min-width: 200px;
    object-fit: contain;
    margin: auto;
    display: block;
}

.very-small-diagram {
    width: 25%;
    min-width: 200px;
    object-fit: contain;
    margin: auto;
    display: block;
}

h3.subheading {
    font-size: 25px;
    font-weight: 600;
}

h4.subheading {
    font-size: 20px;
    font-weight: 600;
}

h5.subheading {
    font-size: 15px;
    font-weight: 600;
}

.impact {
    padding: 3px;
    text-align: center;
    width: 45%;
    margin: auto;
    font-style: italic;
}

.wide-double-splitscreen {
    display: grid;
    grid-gap: 5%;
    gap: 5%;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.double-splitscreen {
    display: grid;
    grid-gap: 5%;
    gap: 5%;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.triple-splitscreen {
    display: grid;
    grid-gap: 5%;
    gap: 5%;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

.code-sample {
    width: 60%;
    margin: auto;
}

.article-date {
    font-weight: 200;
    font-family: "Open Sans";
    text-align: center;
    font-size: 80%;
    line-height: 2px;
    padding-bottom: 1.5%;
}

.article-button {
    float: left;
    color: black;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 18px;
    line-height: 25px;
    border-radius: 4px;
    border-color: black;
    border-style: solid;
    border-width: 2px;
    font-family: "Open Sans";
}

.article-button:hover {
    background-color: #ddd;
    color: black;
}

.footer {
    display: grid;
    grid-gap: 5%;
    gap: 5%;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    width: 60%;
    margin: auto;
    margin-top: 10px;
}

@media (min-aspect-ratio: 3/2) {
    #derivative-graph {
        width: 64%;
        min-width: 350px;
        aspect-ratio: 1.7;
        object-fit: contain;
        margin: auto;
        display: block;
    }

    .derivative-cnn-graph {
        width: 100%;
        aspect-ratio: 3;
        object-fit: contain;
        display: block;
    }
}

@media (max-aspect-ratio: 3/2) {
    #derivative-graph {
        width: 90%;
        min-width: 350px;
        aspect-ratio: 1.7;
        object-fit: contain;
        margin: auto;
        display: block;
    }

    .derivative-cnn-graph {
        width: 170%;
        transform: translate(-20.5882353%, 0);
        aspect-ratio: 3;
        object-fit: contain;
        display: block;
    }
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding-top: 5%;
}
  
.preview {
    margin: 1rem;
    
    padding-bottom: 5%;
}

.section-title {
    font-weight: 200;
    font-size: 200%;
    font-family: "Open Sans";
    text-align: center;
}

.preview-title {
    font-weight: 600;
    font-family: "Open Sans";
    text-align: center;
}

.preview-date {
    font-weight: 200;
    font-family: "Open Sans";
    text-align: center;
    font-size: 80%;
    padding: 0%;
    line-height: 2px;
}

.preview-image {
    width: 100%;
    height: 46.25%;
    object-fit: contain;
}

.home-abstract {
    font-family: "Open Sans";
    text-align: center;
    color: black;
    font-weight: 300;
    margin: 5%;
}
  
p.read {
    background-color: var(MainColor);
    background-color: var(--main-color);
    color: white;
    font-family: "Open Sans";
    letter-spacing: 2px; 
    float: left;
    text-align: center;
    padding: 3%;
    text-decoration: none;
    font-size: 100%;
    border-radius: 4px;
    width: 40%;
    margin-left: 27%;
}

a.article-link {
    color: inherit;
    text-decoration: inherit;
}

.footer-basic {
    padding:40px 0;
    background-color:#ffffff;
}

.footer-basic ul {
    padding:0;
    list-style:none;
    text-align:center;
    font-size:18px;
    line-height:1.6;
    margin-bottom:0;
}

.footer-basic li {
    padding:0 10px;
}

.footer-basic ul a {
    text-decoration:none;
    opacity:0.8;
}

.footer-basic ul a:hover {
    opacity:1;
}

.footer-basic .social {
    text-align:center;
    padding-bottom:25px;
}

.footer-basic .social > a {
    font-size:24px;
    width:40px;
    height:40px;
    line-height:40px;
    display:inline-block;
    text-align:center;
    border-radius:50%;
    border:1px solid #ccc;
    margin:0 8px;
    opacity:0.75;
}

.footer-basic .social > a:hover {
    opacity:0.9;
}


.icon-circle-twitter {
    background: #55acee;
    color: #fff;
}
.icon-circle-github {
    background: #333;
    color: #fff;
}
.icon-circle-mail {
    background: #dd4b39;
    color: #fff;
}
.icon-circle-linkedin {
    background: #00388b;
    color: #fff;
}

table {
    width: 70%;
    margin: 0 auto;
    border-collapse: collapse;
    text-align: center;
  }

  th, td {
    padding: 10px;
    border: 1px solid #ccc;
  }

  th {
    background-color: #f2f2f2;
    font-weight: bold;
  }

  tr:nth-child(even) {
    background-color: #f9f9f9;
  }

  tr:hover {
    background-color: #eaeaea;
  }

.toc-item {
    text-decoration: none;
    padding-left: 1em;
}