* {
    color: #FFFFFF;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background-color: #4A4A4A;
}

html {
    scroll-behavior: smooth;
}

 * {
  box-sizing: border-box;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

#timeline-scroll {
  border:black 4px solid; 
  width:90%; 
  max-width: 1200px; 
  height:50vh;
  overflow:auto; 
  margin:0 auto
}

#intro {
  font-size:1.5rem;
}

.container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid #000000;
  top: 15px;
  border-radius: 50%;
  z-index: -5;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: -5;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}

.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: -5;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

.right::after {
  left: -16px;
}


.content {
  padding: 20px 30px;
  background-color: #4a4a4a;
  position: relative;
  border-radius: 6px;
  border: 0.1em;
  border-style: solid;
  border-color: #FFFFFF;
  z-index:-58;
}

@media screen and (max-width: 600px) {
  .timeline::after {
    left: 31px;
  }

  .container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .container::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  .left::after, .right::after {
    left: 15px;
  }

  .right {
    left: 0%;
  }
}

.centred-text {
    text-align: center;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2em;
}

.github-btn,
.project-card button,
.codeberg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.75rem 1.25rem;

    min-height: 44px;

    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    background-color: #4A4A4A;
}

.github-btn svg,
.codeberg-btn svg {
    width: 2.7rem;
    height: 2.7rem;
    fill: currentColor;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.project-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
}

.project-card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.codeberg-btn,
.github-btn {
    text-decoration: none;
    border: 0.2em;
    border-style: solid;
    margin-bottom:0.5em;
    font-size:1.5em;
}

.navbar {
    position: fixed;
    height: 50px;
    top:0;
    text-align:center; 
    left:0;
    width:100%;
    box-sizing:border-box;
    display:flex;
    justify-content: space-between;
    align-items: center;
    padding-left:2rem;
    padding-right:2rem;
    background-color: #4A4A4A;
    border-bottom: 1px solid white;
}

.navbar-link {
    text-decoration: none;
    border: 0.2em;
    border-radius: 10%;
    border-style: double;
    padding: 0.17em;
}


.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
}

.content-block {
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: min(1500px, 95%);
}

.content-block p,
.content-block li {
    font-size: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .hamburger {
        display: block;
    }

    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #4A4A4A;
        box-sizing: border-box;
        padding: 1.5rem 0;
    }

    .navbar .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

#whoami,
#skills,
#projects,
#timeline {
    scroll-margin-top: 60px;
}

#title {
    font-size: 3rem;
}

#header {
    padding-top:40px;
}