@import url("https://unpkg.com/@catppuccin/palette/css/catppuccin.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

html, body {
    overflow-x: hidden;
}

header {
    background-color: black !important;
    min-height: 7%;
    width: 100%;
    text-align: center;
}

main {
  padding-bottom: 2rem; /* pushes the footer down */
  max-width: 100%;
}

body {
    font-family: "Inter";
    background-color: var(--ctp-mocha-base);
    color: var(--ctp-mocha-text);
    max-width: 100%;
    min-height: 100%;
    overflow-y: scroll;
}

a {
    text-decoration: none;
    color: var(--ctp-mocha-yellow);
}

i {
    width: 5%;;
}

.about {
    padding: 2rem;
}

footer {
    bottom: 0px;
    background-color: black;
    width: 100%;
    padding: 1rem;
}

.nav {
    border-bottom: solid 1px black;
    padding: 1rem;
    width: 100%;
}

.nav-link {
    text-decoration: none;
    color: inherit;
    margin-top: 2.5rem;
}

.nav-container {
    width: 100%;
}

.nav-container, h2, h3, p {
    text-align: center;
}

.nav-container nav .nav-ul {
  display: flex;            /* use flexbox */
  justify-content: center;  /* center horizontally */
  align-items: center;      /* center vertically */
  flex-direction: row;
  height: auto;             /* set a fixed height if needed */
  text-align: center;
  list-style: none;
}

li {
    display: inline-block;
    padding: 0.5rem;
}

.logo {
    width: 10%;
    height: auto;
}

.links {
    text-align: center;
    padding: .5rem;
}

section, h2, h3 {
    padding: .25rem;
}

.terminal {
    background-color: var(--ctp-machiatto-mantle);
    padding: 1.5rem;
    white-space: pre;
}

.terminal span, .terminal .prompt-line { 
    font-size: 1.5rem;
}

pre {
    text-align: left;
}

/* Blinking cursor */

@keyframes blink {
    50% { opacity: 0; }
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1em;
    background: #fff;         /* white block cursor */
    margin-left: 4px;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
  }
  .container {
    flex-direction: column;
  }
}

/* Blog Post Stylings */
.post-container {
    display: grid;
    align-content: center;
    grid-template-columns: 4fr 4fr;
    column-gap: 0.5rem;
    row-gap: 1rem;
    border-style: solid;
    border-radius: 10px;
    background-color: var(--ctp-mocha-surface0);
    border-color: #fff;
    width: 50%;
    height: 50%;
    margin-left: 5rem;
    margin-right: 5rem;
    padding-bottom: 1rem;
    overflow-y: auto;
}

.post {
    border-style: solid;
    border-radius: 10px;
    background: var(--ctp-mocha-mantle);
    width: 50%;
    height: 100%;
    margin: 0.5rem 0 1rem 0.5rem;
    opacity: 0.6;
}

.github:hover {
    color: var(--ctp-mocha-green);
}

.linkedin:hover {
    color: var(--ctp-mocha-teal);
}

.kofi:hover {
    color: var(--ctp-mocha-red);
}

.catpp:hover {
    color: var(--ctp-mocha-maroon);
}

#blog:hover {
    color: var(--ctp-mocha-peach);
}

#home:hover {
    color: var(--ctp-mocha-rosewater);
}

#projects:hover {
    color: var(--ctp-mocha-yellow);
}

.post:hover {
  opacity: 1;
  animation: hop 0.3s ease-in; /* Add duration + timing */
}

@keyframes hop {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-0.5rem); } /* move up */
}

