body {
    background-color: #EEEBD3 ;
    font-family: "Andale Mono", "Courier", monospace;
    width: 80%;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    margin-top: 25px;
    font-size: 18px;
}

html,
body {
    cursor: url('images/cheese-cursor.png'), auto;
}
a,
button,
.project-card,
.character-float,
nav {
  cursor: url("images/cheese-cursor.png"), pointer;
}

p {
    color: #333333;
    line-height: 1.6;
    margin-bottom: 20px;
}
h1 {
    color: #DD6031;
    margin-bottom: 5px;
}
h2 {
    color: #7D8491;
    font-size: 25px;
}
nav {
    color: #776D18;
}
.intro {
    color: #333333;
    font-size: 13px;
    margin-top: 0px;
    margin-bottom: 50px;
}
/* Links */
a {
    text-decoration: none;
    color: #776D18;
}

a:link, a:visited {
    color:#776D18;
}

a:hover {
    color: #BAAB26;
}

/*Annimation*/

.dots::after {
  content: "";
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75% {
    content: "...";
  }

  100% {
    content: "";
  }
}

/*Footer*/

footer {
    font-size: 12px;
    text-align: center;
}
#page-container {
  position: relative;
  min-height: 100vh;
}

#content-wrap {
  padding-bottom: 2.7rem;    /* Footer height */
}

#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2.7rem;            /* Footer height */
}
/*Date*/
.date-label {
  font-size: 12px;
  color: #555;
  margin-bottom: 0px;
  float: right;
}

/*Project button*/
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.page,
.project-card {
  display: block;
  padding: 24px;
  background-color: #f1d18b;
  color: #333333;
  text-decoration: none;

  border: 4px solid #222;
  box-shadow: 8px 8px 0 #222;
}
.project-card {
  min-height: 150px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translate(-4px, -4px) scale(1.03);
  box-shadow: 12px 12px 0 #222;
}

.project-card:active {
  transform: translate(4px, 4px) scale(0.98);
  box-shadow: 4px 4px 0 #222;
}
.project-label,
.label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 12px;
}
#project-grid {
  margin-top: 20px;
  max-width: 90%;
  margin: 0 auto;
}

/*Blog*/
.blog-preview,
.project-preview {
  width: 800px;
  max-width: 90%;
  margin: 80px auto;
}

.section-label {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
}

.blog-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;

  padding: 24px;
  color: #222;
  text-decoration: none;

  background-color: #f7d488;
  border: 4px solid #222;
  box-shadow: 8px 8px 0 #222;

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

.blog-card h2 {
  margin: 0 0 10px;
}

.blog-card p {
  margin: 0;
}

.blog-arrow {
  font-size: 2rem;
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 #222;
}

.blog-card:hover .blog-arrow {
  transform: translate(-2px, -2px);
}

/*Corner character*/

.character-float:hover {
  scale: 1.08;
}
.character-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  animation: float 3s ease-in-out infinite;
}

.corner-character {
  width: 120px;
  max-width: 25vw;
  height: auto;
  display: block;
}

.speech-bubble {
  position: absolute;

  /* places bubble above the character */
  left: 50%;
  bottom: 100%;
  transform: translateX(-230px);

  width: 260px;
  min-height: 55px;
  padding: 10px 12px;

  background-color: #fffdf2;
  border: 3px solid #222;
  box-shadow: 5px 5px 0 #222;

  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;

  opacity: 0;
  pointer-events: none;
}

.speech-bubble::after {
  content: "";
  position: absolute;

  /* little triangle pointing down toward the character */
  left: 80%;
  top: 90%;
  transform: translateX(-50%) rotate(45deg);

  width: 16px;
  height: 16px;

  background-color: #fffdf2;
  border-right: 3px solid #222;
  border-bottom: 3px solid #222;
}

.character-float:hover .speech-bubble {
  opacity: 1;
}

.bubble-page {
  position: absolute;
  inset: 0;

  margin: 0;
  padding: 10px 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  opacity: 0;
}

.character-float:hover .bubble-page {
  animation: dialoguePages 50s linear infinite;
}


.character-float:hover .page-1 {
  animation-delay: 0s;
}

.character-float:hover .page-2 {
  animation-delay: 5s;
}

.character-float:hover .page-3 {
  animation-delay: 10s;
}

.character-float:hover .page-4 {
  animation-delay: 15s;
}

.character-float:hover .page-5 {
  animation-delay: 20s;
}

.character-float:hover .page-6 {
  animation-delay: 25s;
}

.character-float:hover .page-7 {
  animation-delay: 30s;
}

.character-float:hover .page-8 {
  animation-delay: 35s;
}

.character-float:hover .page-9 {
  animation-delay: 40s;
}

.character-float:hover .page-10 {
  animation-delay: 45s;
}

@keyframes dialoguePages {
  0% {
    opacity: 1;
  }

  9% {
    opacity: 1;
  }

  10% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}