a {
  text-decoration: none;
  color: gray;
}

a :hover {
  color: black;
}

@font-face {
  font-family: jen;
  src: url(JennaSue.ttf);
  font-weight: normal;
  font-style: normal;
}

body {
  color: #000000;
  font-family: Helvetica;
  font-style: normal;
  font-weight: normal;
  text-align: center;
  -webkit-text-size-adjust: 100%;
}

.container {
  margin-top: 120px;
}

.title {
  font-family: jen;
  color: #111111;
}

.menu {
  max-width: 400px;
  margin: 0 auto;
  margin-bottom: 20px;
  font-weight: 100;
  font-size: 30px;
}
.menu a:hover {
  color: black;
}

.links {
  max-width: 300px;
  margin: 0 auto;
  font-size: 30px;
}

.backbutton {
  margin-top: 30px;
  font-weight: 100;
  font-size: 30px;
}
.backbutton a:hover {
  cursor: pointer;
  color: black;
}

/* Styles for latte art page */
.latte-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.latte-item {
  text-align: center;
  margin-bottom: 20px;
}

.latte-date {
  font-size: 18px;
  font-weight: 300;
  color: #555;
  margin-bottom: 15px;
  font-family: Helvetica;
}

.latte-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.latte-item img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
  .latte-gallery {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 30px 0;
  }
  
  .latte-item {
    margin-bottom: 15px;
  }
  
  .latte-date {
    font-size: 16px;
    margin-bottom: 12px;
  }
}

/* Styles for about page */

.paragraph {
  text-align: left;
  /*max-width: 800px;*/
  margin: 0 auto;
  margin-top: 20px;
  font-size: 22px;
  font-weight: 100;
}

.paralink {
  text-decoration: none;
  font-weight: 500;
  color: cornflowerblue;
}
.paralink a:hover {
  text-decoration: underline;
}
#umich :hover {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  from {
    color: #00274c;
  }
  to {
    color: #ffcb05;
  }
}

#microsoft :hover {
  animation: msft 4s infinite;
}

@keyframes msft {
  0% {
    color: #ffbb00;
  }
  25% {
    color: #7cbb00;
  }
  50% {
    color: #00a1f1;
  }
  100% {
    color: #f65314;
  }
}

#travel #travel:hover {
  color: green;
}

/* Epic Column Bank Animation */
#column.paralink:hover span {
  position: relative;
  display: inline-block;
}

#column.paralink:hover span::before,
#column.paralink:hover span::after {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  opacity: 0;
  pointer-events: none;
}

#column.paralink:hover > span::before {
  content: '💰';
  animation: erupt-1 1s ease-out 0s forwards;
}

#column.paralink:hover > span::after {
  content: '💵';
  animation: erupt-2 1s ease-out 0.15s forwards;
}

#column.paralink:hover > span > span::before {
  content: '🏛️';
  animation: erupt-3 1s ease-out 0.3s forwards;
}

#column.paralink:hover > span > span::after {
  content: '💵';
  animation: erupt-4 1s ease-out 0.45s forwards;
}

#column.paralink:hover > span > span > span::before {
  content: '💲';
  animation: erupt-5 1s ease-out 0.6s forwards;
}

#column.paralink:hover > span > span > span::after {
  content: '🤑';
  animation: erupt-6 1s ease-out 0.75s forwards;
}

@keyframes erupt-1 {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-120px, -80px) rotate(-15deg) scale(1.2); opacity: 0; }
}

@keyframes erupt-2 {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(130px, -70px) rotate(10deg) scale(1.2); opacity: 0; }
}

@keyframes erupt-3 {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(60px, -110px) rotate(25deg) scale(1.1); opacity: 0; }
}

@keyframes erupt-4 {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-70px, -120px) rotate(-30deg) scale(1.1); opacity: 0; }
}

@keyframes erupt-5 {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(150px, -50px) rotate(5deg) scale(1.3); opacity: 0; }
}

@keyframes erupt-6 {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-140px, -60px) rotate(-5deg) scale(1.3); opacity: 0; }
}


/* Styles for projects page */

.note {
  margin: 20px auto 40px auto;  
  max-width: 600px;
  padding: 12px 20px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 16px;
  color: #6c757d;
}

.note p {
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .note {
    margin: 15px auto 30px auto;
    padding: 10px 15px;
    font-size: 14px;
  }
}

.project {
  margin-top: 32px;
  font-size: 17px;
  overflow: hidden;
  position: relative;
}
.projectImg {
  width: 99%;
  border: 1px solid black;
}
.projectLinks {
  height: 20px;
}
.projectImg:hover {
  cursor: pointer;
}

.descriptionText {
  margin-top: 20px;
}

@media (min-width: 800px) and (max-width: 1000px) {
  .project {
    font-size: 13px;
  }
}

@media (min-width: 800px) {
  .description {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: 0.5s ease;
    background-color: white;
  }
  .description:hover {
    opacity: 1;
    cursor: pointer;
  }
  .title {
    font-size: min(10vw, 120px);
  }
}

@media (max-width: 800px) {
  .title {
    font-size: 75px;
  }
}

/* Styles for writings page */
.writings {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 40px;
}

.writings .post {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
}

.writings .post:last-child {
  border-bottom: none;
  margin-bottom: 20px;
}

.writings .post-date {
  font-size: 16px;
  font-weight: 300;
  color: #666;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.writings .post-title {
  font-size: 28px;
  font-weight: 400;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.3;
}

.writings .post-title a {
  color: #333;
  text-decoration: none;
}

.writings .post-title a:hover {
  color: #000;
}

.writings .post-content {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: #444;
}

.writings .post-content p {
  margin-bottom: 16px;
}

.writings .post-content p:last-child {
  margin-bottom: 0;
}

.writings .post-content h4 {
  font-size: 20px;
  font-weight: 500;
  color: #333;
  margin: 24px 0 12px 0;
  line-height: 1.4;
}

.writings .post-content ul,
.writings .post-content ol {
  margin: 12px 0;
  padding-left: 20px;
}

.writings .post-content ul li,
.writings .post-content ol li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.writings .post-content ul li {
  list-style-type: none;
  position: relative;
}

.writings .post-content ul li:before {
  content: "•";
  color: #666;
  font-size: 14px;
  position: absolute;
  left: -12px;
  top: 0;
}

.writings .post-content .note {
  font-size: 16px;
  color: #777;
  font-style: italic;
  margin-bottom: 12px;
}

.writings .post-content .small-note {
  font-size: 14px;
  color: #888;
  font-style: italic;
  margin-bottom: 14px;
}

/* Footnote styles */
.writings .post-content .footnote-ref {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.8em;
  vertical-align: super;
  line-height: 0;
  font-weight: 500;
}

.writings .post-content .footnote-ref:hover {
  text-decoration: underline;
  color: #0052a3;
}

.writings .post-content .footnotes {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid #ddd;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.writings .post-content .footnotes span {
  color: #555;
}

/* Coffee cup fill animation for latte art link */
.latte-art-link {
  position: relative;
  display: inline-block;
  color: cornflowerblue;
  text-decoration: none;
  font-weight: 500;
  background: linear-gradient(to top, #8B4513 0%, #8B4513 50%, cornflowerblue 50%, cornflowerblue 100%);
  background-size: 100% 200%;
  background-position: 0 0%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.6s ease-in-out;
}

.latte-art-link:hover {
  background-position: 0 100%;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (background-clip: text) or not (-webkit-background-clip: text) {
  .latte-art-link {
    background: none;
    -webkit-text-fill-color: initial;
    color: cornflowerblue;
  }
  
  .latte-art-link:hover {
    color: #8B4513;
  }
}

@media (max-width: 768px) {
  .writings {
    margin-top: 30px;
    padding: 0 20px;
  }
  
  .writings .post {
    margin-bottom: 40px;
    padding-bottom: 30px;
  }
  
  .writings .post-title {
    font-size: 24px;
  }
  
  .writings .post-content {
    font-size: 16px;
  }
  
  .writings .post-content .footnotes {
    font-size: 14px;
    margin-top: 30px;
    padding-top: 15px;
  }
}
