:root {
    --background-colour: white;
    --text-colour: #444;
    --primary-colour: #4CAF50;
}

@font-face {
    font-family: Roboto;
    src: url(Roboto-Light.ttf);
}

body {
    margin: 0;
    background-image: url(Background.jpg);
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    position: relative;
    color: var(--text-colour);
    overflow-y: scroll;
}

.background {
    position: absolute;
    background-color: var(--background-colour);
    z-index: -1;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.navigation {
    position: fixed;
    right: 8%;
    top: 75px;
    width: 250px;
    text-align: center;
    font-size: 1.7rem;
}

.navigation ul {
    list-style-type: none;
    margin: 0;
    padding: 45px 0 0 0;
}

.navigation li {
    padding-top: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #CCC;
}

.navigation li:last-child {
    border-bottom: none;
}

@media screen and (max-width: 1260px), (max-height: 700px) {
    /* Mobile styling */
    .navigation {
        left: 0;
        top: 0;
        width: 100%;
        transition: all .2s ease-in-out;
        z-index: 1;
    }

    .navigation ul {
        padding: 0;
    }

    .navigation li {
        display: inline-block;
        border-bottom: none;
        padding: 25px 15px;
        transition: all .2s ease-in-out, color 1ms;
    }

    .navigation img {
        display: none;
    }

    .header {
        padding-top: max(20%, 200px) !important;
        margin-left: 10% !important;
    }

    .content {
        margin-left: 5% !important;
        margin-right: 5% !important;
    }
}

.content {
    margin-left: 25%;
    margin-right: 30%;
}

.header {
    display: flex;
    position: relative;
    padding-top: 30%;
    padding-bottom: 15%;
    font-size: 3rem;
    align-items: center;
}

.logo {
    position: relative;
    width: 150px;
}

#home-logo {
    position: absolute;
    width: 100px;
}

.shadow {
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.4);
}

.title {
    position: absolute;
}

.main {
    font-size: 1.5rem;
    padding-bottom: 20%;
}

.main li {
    padding-bottom: 10px;
}

.main li:last-child {
    padding-bottom: 0;
}

h2 {
    font-weight: normal;
}

small {
    color: #AAA;
}

a {
    transition-property: background-color, text-decoration-color;
    transition-duration: 0.3s;
}

a,
a:visited,
a:active {
    color: inherit;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 5px;
    text-decoration: underline;
    text-decoration-color: #CCC;
}

a:not(.non-text-link):hover {
    background-color: #d5fdd5;
    text-decoration-color: #C5ECC5;
}

a:not(.non-text-link):active {
    background-color: #71C174;
    text-decoration-color: #697769;
    color: #555;
}

.non-text-link {
    padding: 0 !important;
}

.highlight pre {
    font-family: Consolas, monospace;
    font-size: 0.9rem !important;
    padding: 8px 15px;
    background: #333;
    border-radius: 3px;
    border: 1px solid #c7c7c7;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    overflow: auto;
    overflow-y: hidden;
}

.inline {
    position: relative;
    font-family: Consolas, monospace;
    font-size: 0.9rem !important;
    margin-top: 4px;
    padding: 8px 15px;
    background: #333;
    border-radius: 3px;
    border: 1px solid #c7c7c7;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 250%;
    white-space: nowrap;
    top: -0.2rem;
}

.math {
    overflow: auto;
}

.accordion {
    user-select: none;
}

.collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    padding: 0 18px 10px 18px;
}

.row {
    display: flex;
}

.col {
    flex: 1;
}

@media screen and (max-width: 1260px) {
    .row {
        flex-wrap: wrap;
    }

    .col{
        flex-basis: 100%;
    }
}

.timeline {
    border-left: 2px solid #CCC;
    padding: 15px 23px 15px 0px;
    font-size: 1rem !important;
}

.timeline h3 {
    margin: 0.2em 0;
}

.timeline p {
    margin: 0.5em 0;
}

.timeline-item {
    position: relative;
    padding: 15px 20px 10px;
    margin-left: 20px;
    margin-bottom: 20px;
    background-color: var(--background-colour);
    border-left: 2px solid var(--primary-colour);
    box-shadow: 0 0 3px 0 rgb(0 0 0 / 20%);
}

.timeline-item:hover {
    box-shadow: 0 0 8px 0 rgb(0 0 0 / 20%);
}

.timeline-item:after,
.timeline-item:before {
    content: "";
    display: inline-block;
    position: absolute;
    left: -29px;
}

.timeline-item:before {
    background-color: var(--background-colour);
    border-radius: 10px;
    width: 12px;
    height: 12px;
    top: 18px;
    left: -31px;
    border: 2px solid var(--primary-colour);
    z-index: 2;
}

.timeline-item:after {
    background-color: var(--primary-colour);
    border-radius: 10px;
    width: 29px;
    height: 2px;
    top: 25px;
    z-index: 1;
}

.timeline-item ul {
    padding-left: 20px;
}

.timeline-item li {
    padding-bottom: 3px;
}

.image-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2%;

    img {
        width: 49%;
        transition: width 0.5s ease-in-out;
    }

    .small {
        width: 35.5%;
    }

    .large {
        width: 63%;
    }
}