:root {
    --main_col : aliceblue;
    --back_col : rgb(5, 5, 10);
    --blue     : rgb(93, 140, 168);
    --bg2      : #000000;

    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}
body {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    text-align: center;
    color: var(--main_col);
    background-color: var(--back_col);
}
h1 {
    margin: 0;
    margin-top: 5vh;
    font-size: 55px;
    text-align: center;
}
h3 {
    font-size: 25px;
}

pre {
    padding: 20px;
    border: 4px solid var(--blue);
    border-radius: 20px;
}
code {
    display: block;
    justify-content: left;
    text-align: left;
    align-items: start;
    white-space: pre-wrap;
}

.console { 
    background-color: var(--back_col);
    box-shadow: var(--bg2) 2px 2px 40px 5px;
    max-height: 60vh;
    overflow-y: scroll;
    min-width: 712px;
}
#cursor {
    border-left: var(--main_col) 1px solid;
}

@media (prefers-color-scheme: dark) {
    body {
        --main_col: #FFFFFF;
        --back_col: #15151A;
        --bg2: #000000;
    }
    #main-footer {
        background-color: var(--back_col);
    }
    .project {
        background: linear-gradient(to bottom right, rgb(11, 36, 51), rgb(20, 20, 35));
    }
    .project-title {
        color: var(--main_col);
    }

    .sliding {
        background-color: var(--back_col);
    }
}
@media (prefers-color-scheme: light) {
    body {
        --main_col: #05050A;
        --back_col: #FFFFFF;
        --bg2: #00000055;
    }
    #profile {
        border: solid 5px rgb(15, 70, 80);
    }
    #main-footer {
        background-color: var(--back_col);
    }
    .project {
        background: linear-gradient(to bottom right, rgb(244, 219, 204), rgb(235, 235, 220));
    }
    .sliding {
      backdrop-filter: blur(5px);
      background-color: var(--bg2);
      color: white;
    }
    .project-title {
      color: white;
    }
}

#content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.5s ease;
}

.favicon {
    width: 32px;
    height: 32px;
}
.social-link {
    display: inline-block;
    text-decoration: none;

    vertical-align: center;

    border: solid var(--blue) 2px;
    border-radius: 10px;
    padding: 5px;
    padding-top: 10px;
    margin: 0;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;

    transition: transform ease 0.2s, box-shadow ease 0.2s;

    box-shadow: inset var(--bg2) -2px -2px 5px, var(--bg2) 2px 2px 20px;
}
.social-link:hover {
    transform: translateY(-7px);

    box-shadow: inset var(--bg2) -2px -2px 5px, var(--bg2) 2px 9px 40px;
}

.text-img-container {
    display: flex;
    align-items: center;
    margin-top: 20vh;
}
.text-img-container img {
    max-width: 200px;
    height: auto;
    margin: 0;

    box-shadow: var(--bg2) 2px 2px 40px;
}
#description
{
    border: 4px solid var(--blue);
    border-radius: 20px 20px 20px 0px;
    padding: 20px;
    max-width: 400px;
    margin-left: 10px;
    text-align: left;

    box-shadow: var(--bg2) 2px 2px 40px, inset var(--bg2) -4px -4px 5px;
}
#profile 
{
    border-radius: 20%;
}

#buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    columns: 2;
    margin-bottom: 30vh;
}

.project {
    margin: 20px;
    width: 352px;
    max-height: 296px;
    padding: 20px;
    border: 2px solid var(--blue);
    border-radius: 25px;


    text-decoration: none;
    color: var(--blue);

    overflow: hidden;
    box-shadow: inset var(--bg2) 2px 2px 5px 2px;
}

.sliding {
    margin: 0;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -50px;


    padding: 5px;

    transition: transform ease 0.2s;

    box-shadow: inset var(--bg2) 2px -5px 5px, var(--bg2) 2px 2px 20px;
}

.project-title {
    margin: 0;
    margin-top: 10px;
    margin-bottom: 20px;
    height: 20px;

    font-size: 20px;
}

.project-image {
    border-radius: 20px;
    object-fit: cover;
}

.tech {
  background: var(--blue);
  border-radius: 1em;
  padding: 3px;
  min-width: 1.5em;
  display: inline-flex;
  position: absolute;
  z-index: 100;
  color: var(--main_col);
  transform: translateX(-20px);
  box-shadow: var(--bg2) 2px 12px 20px;
}

#main-footer {
    box-shadow: var(--bg2) 0 0 30px;
}

#footer-bottom {
    padding: 15px 0 5px;
}

#footer-info {
    text-align: center;
    padding-bottom: 10px;
    float: none;
}
#footer-source {
    margin: 0;
    margin-left: 20px;
    color: rgb(38, 45, 54);
}

footer {
    box-shadow: var(--bg2) 0 0 30px;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  75% {
    opacity: 0;
  }
}

.navbar {
  margin: 0;
  padding: 5px;

  position: fixed;

  background-color: var(--back_col);
  box-shadow: var(--bg2) 0 0 30px;

  border: solid;
  border-color: rgb(93, 140, 168);
  border-radius: 0 0 15px 15px;
  border-width: 0 0 3px;

  width: calc(100% - 14px);
  z-index: 1000;
}

.navul {
  display: flex;
  margin: 0;
  padding: 1px;

  list-style-type: none;
}

.navhome {
  display: flex;
  padding: 5px;
  padding-right: 15px;
  padding-left: 8px;

  margin-left: 20px;
  margin-right: 20px;

  font-weight: bold;
  font-size: 1.2em;

  display: flex;
  align-items: center;
}

.navli {
  padding: 5px;
  align-items: center;
  display: flex;
}

.navlink {
  text-decoration: none;
}

.navmenu {
  display: none;
  width: 22px;
  height: 22px;
  cursor: pointer;
  cursor: pointer;

  margin-right: 3px;
}

@media (max-width: 1000px) {
  .navul {
    display: block;
  }
  .navli {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    height: 0;
    transition: height 0.2s ease;
    overflow: hidden;
  }
  .navli-show {
    height: 1.5em;
    padding: 5px;
  }
  .navmenu {
    display: block;
  }
}
