code {
  border-radius: 4px;
  color: white;
  background-color: black;
  padding: 2px;
  font-size: 105%;
}

code#channel {
  color: white;
  background-color: #5865f2;
  padding: 2px;
  font-size: 105%;
}

html, body {
  overscroll-behavior-y: none;
  margin: 0px;
}

body {
  font-family: 'Roboto', sans-serif;
  margin-bottom: 50px;
  min-height: 90vh;
  color: #262626;
}

p {
  margin: 0;
  display: inline;
  white-space: pre-wrap;

}

.rotate {
  transform: rotate(0deg);
  transition: transform 0.3s ease-in-out;
}

li{
  text-align: left;
}

#messagebox{
  -webkit-user-select: none;
  -ms-user-select: none; 
  user-select: none;
  position: relative;
  width: 100%;
  padding: 10px 0;
  background-color: Black;
  color: White;
  z-index: 10;
  text-align: center;
  text-transform: uppercase;
  min-height: calc(1ch + 10px);
  font-family: 'Share Tech Mono', monospace;
}

.logo{
  border-radius: 15px;
  z-index: 3;
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 25px;
  margin-bottom: 45px;
  border: 5px solid black;
  width: 7%;
  height: auto;
}

.divContainer{
  display: flex;
  justify-content: center;
}

.divider{
  width: 60%;
  height: 1.5px;
  background-color: #ccc;
  margin: 20px 0;
  border-radius: 1px;
}

.mediaContainer{
  -webkit-user-select: none;
  -ms-user-select: none; 
  user-select: none; 
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  line-height: 0;
}

.media{
  width: 80%;
  height: auto;
  border-radius: 20px;
}

.caption{
  font-style: italic;
  text-align: center;
  color: #6e6e6e;
  margin-top: -20px;
  margin-bottom: 10px;
  font-size: 15px;
}

.mediaContainer { 
  margin-bottom: 30px;
}

.content{
  padding: 20px 100px 60px 100px;
  text-align: justify;
}

.blogBack {
  margin-bottom: 30px;
  background-color: #f5f5f5;
  width: max(50vw, 700px);
  border-radius: 30px;
  padding-top: 50px;
  font-size: 20px;
  line-height: 1.7;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}


.headerContainer{
  display: flex;
  width: 100%;
  flex-direction: column;
}

.header{
  font-size: 60px;
  margin-left: auto;
  margin-right: auto;
  align-content: center;
  word-break: break-word;
}

.header a{
  color: #b93f53;
  text-decoration: none;
  border-bottom: 2px solid #b9818a;
}

.dateContainer{
  margin-left: auto;
  background-color: #141414;
  color: #f3f0ff;
  border-radius: 10px 0px 0px 10px;
  padding: 7px 10px 7px 10px;
  width: fit-content;
}

.date{
  font-size: 20px;
  font-weight: 600;
  font-family: 'Share Tech Mono', monospace;
}

.miniHeader{
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 40px;
  position: relative;
  width: fit-content;
  text-align: left;
  line-height: 1.3em;
  word-break: break-word;
  padding-left: 0;
  margin-left: -20px;
  border-left: 6px solid #333;
  padding-left: 20px;
}

.nanoHeader{
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 25px;
  position: relative;
  width: fit-content;
  text-align: left;
  line-height: 1.3em;
  word-break: break-word;
  padding-left: 0;
  margin-left: -15px;
  border-left: 4px solid #333;
  padding-left: 15px;
}

.flair{
  margin-bottom: 20px;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  row-gap: 6px;
  column-gap: 4px;
  font-size: 20px;
}

.flair > .techUsed{
  margin: 0;
}

.ask-teddy-button {
  display: inline-block;
  background: #da6b5a;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 15px;
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 5px 15px -5px rgba(234, 98, 83, 0.7);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.teddy-demo-cta{
  margin: 30px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.teddy-demo-button{
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  background: #da6b5a;
  color: #fff;
  font-size: 18px;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(234, 98, 83, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teddy-demo-button:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(234, 98, 83, 0.45);
}

.teddy-demo-caption{
  font-size: 16px;
  color: #555;
  text-align: center;
}


.verdict{
  text-transform: uppercase;
  color: #f3f0ff;
  border-radius: 15px; 
  padding: 3px 15px;
  width: fit-content;
  display: inline-block;
  font-size: 40px;
  margin: 20px 20px;
  font-family: 'Share Tech Mono', monospace;
}

#veryYes{
  background-color: #006332;
}

#yes{
  background-color: #10b060;
}

#no{
  background-color: #e31414;
}

#hellNo {
  background-color: #9c1010;
  color: white;
}


.techUsed{
  color: #f3f0ff;
  border-radius: 10px; 
  padding: 0 7px;
  width: fit-content;
  display: inline-block;
  word-break: break-word;
  font-family: 'Share Tech Mono', monospace;
}

.flask{
  background-color: #3300ff;
}

.python{
  background-color: #346C99;
}

.java{
  background-color: #E14A3A;
}

.tensorflow{
  background-color: #E55B2C;
}

.sql{
  background-color: #0000ff;
}

.postgres{
  background-color: #336791;
}

.docker{
  background-color: #0db7ed;
}

.rag{
  background-color: #9700de;
}

.openai{
  background-color: #000000;
}

.anthropic{
  background-color: #da7757;
}

.twitter{
  background-color: #1DA0F1;
}

.html{
  background-color: #E44F26;
}

.css{
  background-color: #1572B6;
}

.js{
  background-color: #E7A42B;
}

.websockets{
  background-color: #008a53;
}

.redis{
  background-color: #A61D12;
}

.fly{
  background-color: #23165B;
}

.code{
  background-color: #3b3b3b;
  color: #e0e0e0;
}


.verdict-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  background: #f8f9fa;
  padding: 18px;
  border-radius: 20px;
  border: 2px solid #dee2e6;
}

.verdict-container .verdict {
  animation: pulse 2s infinite;
  border: 3px solid #fff;
  box-shadow: 0 6px 15px rgba(0, 99, 50, 0.4);
}

.verdict-label {
  font-size: 28px;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-right: 20px;
}

.project-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.project-tile {
  border-radius: 15px;
  border: 2.5px solid black;
  padding: 24px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  color: black;
  position: relative;
}

.project-tile.expanded-hitbox::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  pointer-events: auto;
  z-index: -1;
}

.project-tile:hover {
  --hover-x: 5px;
  --hover-y: -5px;
  transform: translate(var(--hover-x), var(--hover-y));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.tile-header {
  margin-bottom: 16px;
}

.tile-title {
  font-size: 22px;
  font-weight: bold;
  color: black;
  font-family: 'Roboto', sans-serif;
}

.tile-description {
  flex-grow: 1;
  margin-bottom: 16px;
}

.tile-description p {
  color: black;
  line-height: 1.5;
  margin: 0;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  display: block;
  text-align: left;
}

.tile-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tile-footer {
  margin-top: auto;
  text-align: right;
}

.tile-link {
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

.project-tile:hover .tile-link {
  color: #000000;
}


.main-projects .project-tile:nth-child(1) {
  background-color: #ffd6d9;
}

.main-projects .project-tile:nth-child(2) {
  background-color: #ffef9b;
}

.main-projects .project-tile:nth-child(3) {
  background-color: #ffe1a7;
}

.main-projects .project-tile:nth-child(4) {
  background-color: #ff928a;
}

.main-projects .project-tile:nth-child(5) {
  background-color: #adedbf;
}

.main-projects .project-tile:nth-child(6) {
  background-color: #b0c8ff;
}

.marathon-projects .project-tile {
  background-color: #ffffff;
}

.marathon-projects .project-tile:nth-child(1) {
  background-color: #d3f4cd;
}

.marathon-projects .project-tile:nth-child(2) {
  background-color: #ffef9b;
}

.zeus-tile {
  background-color: #ffef9b;
  position: relative;
  overflow: visible;
}

.zeus-tile > :not(.zeus-effects-layer) {
  position: relative;
  z-index: 2;
}

.zeus-effects-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.zeus-effects-layer::before {
  content: '';
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 243, 171, 0.7) 32%, rgba(255, 215, 91, 0.4) 45%, rgba(255, 215, 91, 0) 70%);
  filter: blur(12px);
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 0.18s ease, transform 0.28s ease;
}

.zeus-effects-layer::after {
  content: '';
  position: absolute;
  width: 140%;
  height: 160%;
  top: -18%;
  left: -18%;
  background: #ffffff;
  clip-path: polygon(52% 0%, 64% 30%, 54% 30%, 68% 64%, 46% 64%, 60% 100%, 38% 68%, 50% 68%, 36% 38%, 48% 38%);
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.32)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.96)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.96));
  opacity: 0;
  transform: translate(-6%, -10%) scale(0.75) rotate(-10deg);
  transition: opacity 0.12s ease, transform 0.2s ease, filter 0.12s ease;
  mix-blend-mode: normal;
}

.zeus-tile:hover {
  --hover-x: 5px;
  --hover-y: -5px;
  box-shadow: 0 18px 40px rgba(255, 215, 64, 0.55), 0 12px 28px rgba(0, 0, 0, 0.25);
  animation: zeus-full-flash 0.22s ease-out;
}

.zeus-tile:hover .zeus-effects-layer::before {
  opacity: 0.9;
  transform: scale(1);
  animation: zeus-flash 0.38s ease-out forwards;
}

.zeus-tile:hover .zeus-effects-layer::after {
  opacity: 1;
  transform: translate(-2%, -6%) scale(1) rotate(-6deg);
  animation: zeus-strike-once 0.4s ease-out forwards;
}

@keyframes zeus-flash {
  0% {
    opacity: 0;
    transform: scale(0.4);
    filter: blur(14px);
  }
  40% {
    opacity: 0.85;
    filter: blur(8px);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
    filter: blur(16px);
  }
}

@keyframes zeus-full-flash {
  0% {
    background-color: #000000;
    filter: brightness(0.35) saturate(0.8);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  }
  12% {
    background-color: #000000;
    filter: brightness(0.4) saturate(0.9);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  }
  35% {
    background-color: #ffffff;
    filter: brightness(2) saturate(1.5);
    box-shadow: 0 24px 48px rgba(255, 238, 120, 0.8), 0 16px 36px rgba(0, 0, 0, 0.28);
  }
  100% {
    background-color: #ffef9b;
    filter: brightness(1) saturate(1);
    box-shadow: 0 18px 40px rgba(255, 215, 64, 0.55), 0 12px 28px rgba(0, 0, 0, 0.25);
  }
}

@keyframes zeus-strike-once {
  0% {
    opacity: 0;
    transform: translate(-12%, -26%) scale(0.55) rotate(-16deg);
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.9));
  }
  60% {
    opacity: 1;
    transform: translate(-4%, -10%) scale(1.08) rotate(-8deg);
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 26px rgba(255, 255, 255, 1)) drop-shadow(0 0 52px rgba(255, 255, 255, 1));
  }
  100% {
    opacity: 0;
    transform: translate(6%, 18%) scale(0.8) rotate(-2deg);
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.24)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.6));
  }
}


.tampermonkey-scripts .project-tile:nth-child(1) {
  background-color: #f4e5ff;
}

.tampermonkey-scripts .project-tile:nth-child(2) {
  background-color: #ffe6b3;
}

.tampermonkey-scripts .project-tile:nth-child(3) {
  background-color: #d0e2ff;
}

.tampermonkey-scripts .project-tile:nth-child(4) {
  background-color: #ffd1dc;
}


.project-tile:hover .tile-title {
  animation: rainbow-b 0.3s ease-in-out forwards;
}

@keyframes rainbow-b {
  0% {
    color: #f00;
  }
  17% {
    color: #ff0;
  }
  33% {
    color: #0f0;
  }
  49% {
    color: #0ff;
  }
  65% {
    color: #00f;
  }
  82% {
    color: #f0f;
  }
  100% {
    color: #000;
  }
}

@keyframes rainbow-w {
  0%, 100% {
    color: #ffffff;
  }
  8.5%, 58.5% {
    color: #ff0;
  }
  16.5%, 66.5% {
    color: #0f0;
  }
  24.5%, 74.5% {
    color: #0ff;
  }
  32.5%, 82.5% {
    color: #00f;
  }
  41%, 91% {
    color: #f0f;
  }
}


.github-button {
  border-radius: 8px;
  border: 2px solid black;
  background-color: #242424;
  color: white;
  padding: 8px 16px;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
  position: relative;
  text-align: center;
}

.github-button:hover {
  transform: translate(5px, -5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.github-button:hover span {
  animation: rainbow-w 0.3s ease-in-out forwards;
}

/* Archived projects specific layout */
.archived-projects {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
}

.archived-projects .project-tile:first-child {
  width: 100%;
  box-sizing: border-box;
}

/* Create a flex container for the last two projects */
.archived-projects .project-tile:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.archived-projects .project-tile:nth-child(3) {
  display: flex;
  flex-direction: column;
}

/* Wrapper for equal-sized tiles */
.archived-projects-wrapper {
  display: flex;
  gap: 20px;
  width: 100%;
}

.archived-projects-wrapper .project-tile {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

/* Ensure all archived project tiles respect content boundaries */
.archived-projects .project-tile {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .logo{
    margin-top: 15px;
    margin-bottom: 15px;
    width: 20%;
  }
  
  .span{
    width: 80%;
    letter-spacing: -1.5px;
    font-size: 18px;
  }

  .blogBack{
    padding-top: 30px;
    min-width: 0;
    width: 100%;
    font-size: 16px;
  }

  .content{
    padding: 0 40px 60px 40px;
    text-align: left;
  }

  .media{
    width: 95%;
  }

  .header{
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 40px;
  }

  .teddy-demo-button{
    width: 100%;
    max-width: 320px;
    font-size: 16px;
  }

  .teddy-demo-caption{
    font-size: 14px;
    padding: 0 20px;
  }
  
  .miniHeader{
    font-size: 30px;
    margin-left: -15px;
    padding-left: 15px;
    border-left-width: 4px;
    margin-top: 25px;
    margin-bottom: 12px;
  }

  .nanoHeader{
    font-size: 20px;
    margin-left: -12px;
    padding-left: 12px;
    border-left-width: 2px;
    margin-top: 20px;
    margin-bottom: 8px;
  }

  .verdict{
    display: block;
    font-size: 30px;
    margin-left: 0;
    margin-right: 0;
  }

  .date{
    font-size: 15px;
  }

  .flair{
    font-size: 15px;
  }

  .divider{
    width: 70%;
  }

  .project-tiles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0;
  }
  
  .project-tile {
    padding: 20px;
    min-height: 220px;
  }
  
  .tile-title {
    font-size: 20px;
  }
  
  .tile-description p {
    font-size: 13px;
  }

  .archived-projects-wrapper {
    flex-direction: column;
  }
}


@media (max-width: 480px) {
  .verdict-container > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  .verdict-label {
    font-size: 20px;
    margin-right: 0;
  }

  .verdict {
    font-size: 22px;
    margin: 4px 0 0 0;
  }
}


/* Jiggle animation styles */
.jiggly {
  z-index: 100;
  animation: jiggle 0.4s ease-in-out 1;
  animation-fill-mode: forwards;
}

.increase-children-z-index > * {
  z-index: 100;
}

@keyframes jiggle {
  0%, 100% {
    transform: translate(var(--hover-x, 0), var(--hover-y, 0)) scale(1);
  }
  25% {
    transform: translate(var(--hover-x, 0), var(--hover-y, 0)) scale(1.1);
  }
  50% {
    transform: translate(var(--hover-x, 0), var(--hover-y, 0)) scale(1);
  }
  75% {
    transform: translate(var(--hover-x, 0), var(--hover-y, 0)) scale(1.05);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
