@media (min-aspect-ratio:16/9){ /* laptop display */ 
  body{
    min-width: 1024px;
    min-height: 800px;
  }

:root {
    --base-color: white;
    --base-variant: black;
    --accent-color: #FFD457;
  }
  
  .darkmode {
    --base-color: #1e1e1e;
    --base-variant: white;
    --accent-color: #5A6374;
  }
  
  p { 
    font-family: 'inter', Georgia, 'Times New Roman', Times, serif;
  }

  .container {
    color: var(--base-variant);
    font-family: 'inter', Georgia, 'Times New Roman', Times, serif;
  }
  
  .header { 
    display: flex;
    flex-direction: row;
  }
  
  #theme-swap {
    background-color: var(--base-color);
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top:0.3vh;
  }
  
  
  
  #theme-swap-link {
    background-color: var(--base-color);
    border: none;
    outline: none;
    margin-left:auto;
    justify-content: flex-end;
  }
  
  #theme-swap-link h2{
    align-items: center;
    font-family: 'roboto slab', Georgia, 'Times New Roman', Times, serif;
  }
  
  #theme-swap img{
    padding-left:0.5vw;
    margin-left:0;
    padding-top:1%;
    width:7vmin;
    height:7vmin;
  }
  
  #theme-swap img:last-child{
    display: none;
  }
  
  .darkmode #theme-swap img:first-child{
    display: none;
  }
  
  .darkmode #theme-swap img:last-child{
    display: block;
  }
  
  .image-swap img:last-child{
    display: none;
  }
  
  .darkmode .image-swap img:first-child{
    display:none;
  }
  
  .darkmode .image-swap img:last-child{
    display: block;
    width:1.5em;
    height:1.7em;
    padding-top:1.5em;
    margin-left:auto;
    justify-content: flex-end;
  }
  .image-swap {
    margin-left:auto;
    justify-content: flex-end;
  }
  
  .header .image-swap img{ 
    width:3vmin;
    height:3vmin;
    padding-left:10px;
    padding-right: 10px;
    padding-top:3vh;
    margin-left:auto;
    justify-content: flex-end;
  }
  
  .header a{
    padding-top:0;
    justify-content: flex-end;
    margin-left:auto;
    font-size: 2vmin;
  }
  
  .Line {
    position:absolute;
    margin-top: 0.2em;
    margin-left: -1%;
    border-left: 0;
    padding-left: 0;
    width: 101%;
    border-top:2px solid; 
    border-color: var(--base-variant);
    height: 1%;
  }
  
  .potraits {
    position: relative;
  }
  
  .profile-shadow {
    width:25%;
    height:50%;
    position: relative;
    margin-top:10%;
    margin-left:15%;
  }
  
  .shadow-swap img:last-child{
     display: none;
  }
  
  .darkmode .shadow-swap img:last-child{
    display: block;
  }
  
  .darkmode .shadow-swap img:first-child{
    display: none;
  }
  
  .shadow-swap img{
    max-width: 25%;
    height: auto;
    width: auto\9;
    position: relative;
    margin-top:20vh;
    margin-left:15vw;
  }
  
  .profile-pic {
    max-width: 25%;
    height: auto;
    width: auto\9;
    position: absolute;
    margin-top:22vh;
    margin-left:15vw;
    top: 3vh;
    left: 2vw;
  }
  
  .Biography {
    position:absolute;
    margin-left:50vw;
    margin-top:-57vh;
    padding-right:10vw;
  }
  
  .Biography h1{
    font-size:6vmin;
  }
  
  .title {
    text-align: center;
    font-family: 'roboto slab', Georgia, 'Times New Roman', Times, serif;
    font-size: 2.5vmin;
  }

  .title::after{
    content: "";
    display: block;
    width: 25vw;
    height: 3px;
    margin-top:1%;
    background-color: var(--accent-color);
    margin-left: 37vw;
    border-radius: 2px;
  }
  
  .Biography h2{
    font-size:3.5vmin;
    margin-top: -1vh;
    line-height: 1.5em;
    word-spacing: 0.2em;
  }
  
  .name {
    margin-left: 15%;
    margin-top: -1%;
    font-size: 2vmin;
  }
  
  .name p{
    margin-top: -1.4%;
    font-size: 2vmin;
  }
  
  .footer {
    display: flex;
    bottom:0vh;
  }
  
  .footer h2{
    margin-top:2vh;
    margin-right:-50%;
    font-size: 2.5vmin;
  }
  
  .footer img{
    width:3em;
    height:3em;
  }
  
  .footer a{
    justify-content: flex-end;
    margin-left:auto;
    margin-right:0;
    margin-left:-0.3%;
    margin-top:1%;
  }
  
  
  .footer-line {
    content: "";
    margin-left: -1%;
    width: 102%;
    height: 2px;
    margin-top: 5vh;
    bottom: 1vh;
    background-color: var(--base-variant);
    justify-content: flex-start;
    border-radius: 1px;
  }
  
  a:link {
    text-decoration: none;
    color:var(--base-variant);
  }
  a:visited {
    text-decoration: none;
    color:var(--base-variant);
  }
  a:hover {
    text-decoration: none;
    color:var(--base-variant);
    opacity: 50%;
  }
  
  .right-aligned-top {
      position: absolute;
      display: flex;
      top:8px;
      right: 16px;
  }
  
  .right-aligned-bottom {
      position: absolute;
      right: 0.5vw;
      margin-top: 1vh;
      margin-bottom: 0;
  }


  .projects-laptop {
    margin-left: 10vw;
    margin-right: 10vw;
    animation: fadeIn;
    animation-duration: 3s;
  }

  .projects-laptop h1{
    font-size: 6vmin;
    font-family: 'roboto slab', Georgia, 'Times New Roman', Times, serif;
  }

  .projects-laptop h1::after{
    content: "";
    display: block;
    width: 25vw;
    height: 3px;
    margin-top:1%;
    background-color: var(--accent-color);
    margin-left: 0vw;
    border-radius: 2px;
  }

  .projects-laptop h2{
    font-size:5vmin;
    padding-bottom: 5vh;
    font-family: 'roboto slab', Georgia, 'Times New Roman', Times, serif;
  }

  .projects-laptop p{
    font-size: 2.5vmin;
    font-family: 'inter', Georgia, 'Times New Roman', Times, serif;
  }

  .projects-laptop table {
    margin-left: 3vw;
  }

.projects-laptop td {
    padding: 0; 
    margin: 0;
    padding-top: 2vh; 
}

.projects-mobile{
  display: none; 
}


  .projects-laptop img{
    display: block;
    margin-right: 3vw;
    max-width: 100%;
    height: auto;
    width: 100vw;
    float: right;
  }

  .banner img{
    display: block;
    margin-right: 3vw;
    max-width: 50%;
    margin-top:-1vh;
    height: auto;
    width: auto\9;
    margin-left:auto;
    margin-right: auto;
    animation:fadeIn;
    animation-duration: 1s;
  }

  .date{
    text-align: center;
    margin-left:auto;
    margin-right: auto;
  }

  .date p{
    font-size: 3vmin;
  }

  .post {
    margin-left: 27%;
    margin-right: 27%;
    font-family: 'inter', Georgia, 'Times New Roman', Times, serif;
  }

  .post img{
    display: block;
    margin-left:auto;
    margin-right: auto;
    height: auto;
    width: 45vw;
    margin-top:2vh;
    padding-bottom:2vh;
    animation:fadeIn;
    animation-duration: 1s;
  }

  .post p{
    font-size: 2.5vmin;
    line-height: 4vh;
  }

  .post a{
    text-decoration: underline;
  }
  .back-arrow img{
    margin-left: 0.5vw;
    max-width: 3%;
    margin-top: 2vh;
    height: auto;
    width: auto\9;
  }

  .back-arrow a:last-child{
    display: none;
  }

  .darkmode .back-arrow a:first-child{
    display: none;
  }
  
  .darkmode .back-arrow a:last-child{
    display: block;
  }

  .post ul{
    font-size: 2.5vmin;
    margin-left: 3vw;
    margin-right: 3vw;
  }

  @font-face {
    font-family: "inter";
    src: url('./assets/fonts/Inter/static/Inter_18pt-Regular.ttf');
  }
}

@media (max-aspect-ratio:16/9){ /* mobile display */ 
    body{
      min-width: 320px;
      min-height: 640px;
    }
  :root {
      --base-color: white;
      --base-variant: black;
      --accent-color: #FFD457;
    }
    
    .darkmode {
      --base-color: #1e1e1e;
      --base-variant: white;
      --accent-color: #5A6374;
    }
    
    p { 
      font-family: 'inter', Georgia, 'Times New Roman', Times, serif;
    }
  
    .container {
      color: var(--base-variant);
      font-family: 'inter', Georgia, 'Times New Roman', Times, serif;
    }
    
    .header { 
      display: flex;
      flex-direction: row;
    }
    
    #theme-swap {
      background-color: var(--base-color);
      border: none;
      outline: none;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-top:0.3vh;
    }
    
    
    
    #theme-swap-link {
      background-color: var(--base-color);
      border: none;
      outline: none;
      margin-left:auto;
      justify-content: flex-end;
    }
    
    #theme-swap-link h2{
      align-items: center;
      font-family: 'roboto slab', Georgia, 'Times New Roman', Times, serif;
    }
    
    #theme-swap img{
      padding-left:0.5vw;
      margin-left:0;
      padding-top:1%;
      width:7vmin;
      height:7vmin;
    }
    
    #theme-swap img:last-child{
      display: none;
    }
    
    .darkmode #theme-swap img:first-child{
      display: none;
    }
    
    .darkmode #theme-swap img:last-child{
      display: block;
    }
    
    .image-swap img:last-child{
      display: none;
    }
    
    .darkmode .image-swap img:first-child{
      display:none;
    }
    
    .darkmode .image-swap img:last-child{
      display: block;
      width:1.5em;
      height:1.7em;
      padding-top:1.5em;
      margin-left:auto;
      justify-content: flex-end;
    }
    .image-swap {
      margin-left:auto;
      justify-content: flex-end;
    }
    
    .header .image-swap img{ 
      width:3vmin;
      height:3vmin;
      padding-left:10px;
      padding-right: 10px;
      padding-top:1.5vh;
      margin-left:auto;
      justify-content: flex-end;
    }
    
    .header a{
      padding-top:0;
      justify-content: flex-end;
      margin-left:auto;
      font-size: 2vmin;
    }
    
    .Line {
      position:absolute;
      margin-top: 0.2em;
      margin-left: -1%;
      border-left: 0;
      padding-left: 0;
      width: 101%;
      border-top:2px solid; 
      border-color: var(--base-variant);
      height: 1%;
    }
    
    .potraits {
      position: relative;
    }
    
    .profile-shadow {
      width:25%;
      height:50%;
      position: relative;
      margin-top:10%;
      margin-left:15%;
    }
    
    .shadow-swap img:last-child{
       display: none;
    }
    
    .darkmode .shadow-swap img:last-child{
      display: block;
    }
    
    .darkmode .shadow-swap img:first-child{
      display: none;
    }
    
    .shadow-swap img{
      max-width: 25%;
      height: auto;
      width: auto\9;
      position: relative;
      margin-top:20vh;
      margin-left:15vw;
    }
    
    .profile-pic {
      max-width: 25%;
      height: auto;
      width: auto\9;
      position: absolute;
      margin-top:22vh;
      margin-left:15vw;
      top: 3vh;
      left: 2vw;
    }
    
    .Biography {
      position:absolute;
      margin-left:50vw;
      margin-top:-57vh;
      padding-right:10vw;
    }
    
    .Biography h1{
      font-size:6vmin;
    }
    
    .title {
      text-align: center;
      font-size: 2vmin;
      font-family: 'roboto slab', Georgia, 'Times New Roman', Times, serif;
    }
  
    .title::after{
      content: "";
      display: block;
      width: 25vw;
      height: 3px;
      margin-top:1%;
      background-color: var(--accent-color);
      margin-left: 37vw;
      border-radius: 2px;
    }
    
    .Biography h2{
      font-size:3.5vmin;
      margin-top: -1vh;
      line-height: 1.5em;
      word-spacing: 0.2em;
    }
    
    .name {
      margin-left: 15%;
      margin-top: -1%;
      font-size: 2vmin;
    }
    
    .name p{
      margin-top: -1.4%;
      font-size: 2vmin;
    }
    
    .footer {
      display: flex;
      bottom:0vh;
    }
    
    .footer h2{
      margin-top:2vh;
      margin-right:-50%;
      font-size: 2.5vmin;
    }
    
    .footer img{
      width:3em;
      height:3em;
    }
    
    .footer a{
      justify-content: flex-end;
      margin-left:auto;
      margin-right:0;
      margin-left:-0.3%;
      margin-top:1%;
    }
    
    
    .footer-line {
      content: "";
      margin-left: -1%;
      width: 102%;
      height: 2px;
      margin-top: 5vh;
      bottom: 1vh;
      background-color: var(--base-variant);
      justify-content: flex-start;
      border-radius: 1px;
    }
    
    a:link {
      text-decoration: none;
      color:var(--base-variant);
    }
    a:visited {
      text-decoration: none;
      color:var(--base-variant);
    }
    a:hover {
      text-decoration: none;
      color:var(--base-variant);
      opacity: 50%;
    }
    
    .right-aligned-top {
        position: absolute;
        display: flex;
        top:8px;
        right: 16px;
    }
    
    .right-aligned-bottom {
        position: absolute;
        right: 0.5vw;
        margin-top: 1vh;
        margin-bottom: 0;
    }
  
  
    .projects-mobile {
      display: block;
      margin-top: -5vh;
      margin-left: 5vw;
      margin-right: 7vw;
      animation: fadeIn;
      animation-duration: 3s;
    }
  
    .projects-mobile h1{
      font-size: 6vmin;
      margin-left: 4vw;
      font-family: 'roboto slab', Georgia, 'Times New Roman', Times, serif;
    }
  
    .projects-mobile h1::after{
      content: "";
      display: block;
      width: 40vw;
      height: 3px;
      margin-top:1%;
      background-color: var(--accent-color);
      margin-left: 0vw;
      border-radius: 2px;
      margin-bottom: -2vh;
    }
  
    .projects-mobile h2{
      font-size:5vmin;
      padding-bottom: 5vh;
      font-family: 'roboto slab', Georgia, 'Times New Roman', Times, serif;
    }
  
    .projects-mobile p{
      font-size: 3.5vmin;
      font-family: 'inter', Georgia, 'Times New Roman', Times, serif;
    }
  
    .projects-mobile table {
      margin-left: 3vw;
    }
  
  .projects-mobile td {
      padding: 0; 
      margin: 0;
      padding-top: 2vh; 
  }

  .projects-mobile td a img{
    margin-left: 0.5vw;
      max-width: 100%;
      margin-top: 2vh;
      height: auto;
      width: auto\9;
  }
  
  .projects-laptop{
    display: none; 
  }
  
    .date{
      text-align: center;
      margin-left:auto;
      margin-right: auto;
    }

    .date p{
      font-size: 3vmin;
    }
  
    .post {
      margin-left: 5vw;
      margin-right: 5vw;
      font-family:'inter', Georgia, 'Times New Roman', Times, serif;
    }
  
    .post img{
      display: block;
      margin-right: 3vw;
      max-width: 90%;
      margin-top:0vh;
      height: auto;
      width: auto\9;
      margin-left:auto;
      margin-right: auto;
      animation: fadeIn;
      animation-duration: 3s;
    }
  
    .post p{
      font-size: 4vmin;
    }

    .post h1{
      font-size: 4.5vmin;
    }

    .post a{
      text-decoration: underline;
    }
  
    .back-arrow img{
      margin-left: 0.5vw;
      max-width: 10%;
      margin-top: 1vh;
      height: auto;
      width: auto\9;
    }
  
    .back-arrow a:last-child{
      display: none;
    }
  
    .darkmode .back-arrow a:first-child{
      display: none;
    }
    
    .darkmode .back-arrow a:last-child{
      display: block;
    }

    .banner img{
      display: block;
      margin-right: 3vw;
      max-width: 90%;
      margin-top:0vh;
      height: auto;
      width: auto\9;
      margin-left:5vw;
      margin-right: 5vw;
      animation: fadeIn;
      animation-duration: 3s;
    }

    .post ul{
    font-size: 4vmin;
    margin-left: 3vw;
    margin-right: 3vw;
  }
  
    @font-face {
      font-family: "inter";
      src: url('./assets/fonts/Inter/static/Inter_18pt-Regular.ttf');
    }
  }

  @keyframes fadeIn {
    0%{
      opacity: 0;
    }
    100%{
      opacity: 1;
    }
  }