* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f7f8ff;
  color: #222;
  line-height: 1.6;
}
.sketch-container {
  position: relative;
}

.sketch-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 45px; 
  background: #f7f8ff;
  z-index: 10;
}

/*header and p5 sketch */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.sketch-container {
  width: 100%;
}
.p5-sketch {
  width: 100%;
  height: 50vh;
  border: none;
  display: block;
}

/* title stuff*/
.header-text {
  max-width: 960px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem 1.5rem;
  text-align: center;
}

.preheader {
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}

.project-title {
  margin: 0.25rem 0 0;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* colored letters - this was annoying */
.letter {
  display: inline-block;
}

.letter-r {
  color: #e53935;
}
.letter-o {
  color: #ffb300;
}
.letter-l {
  color: #43a047;
}
.letter-l2 {
  color: #1e88e5;
}
.letter-e {
  color: #8e24aa;
}
.letter-r2 {
  color: #f4511e;
}
.letter-c {
  color: #00897b;
}
.letter-o2 {
  color: #ff7043;
}
.letter-a {
  color: #5e35b1;
}
.letter-s {
  color: #7cb342;
}
.letter-t {
  color: #3949ab;
}
.letter-e2 {
  color: #d81b60;
}
.letter-r3 {
  color: #fdd835;
}

/*instructions boxes size */

.content {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.section {
  margin-top: 2rem;
}

/* info cards row */

.info-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.info-card {
  flex: 1;
  min-width: 240px;
  background: #2f7b4f;
  color: #fdfdfd;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.info-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/*description*/

.description-card {
  background: #c469c8;
  color: #111;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.description-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
}

/*instructions text */

.instructions-header {
  display: inline-block;
  background: #ffe86a;
  padding: 1rem 3rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: x-large;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.instructions-wrapper {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.instruction-column {
  flex: 1;
  min-width: 260px;
  background: #4b8cc9;
  color: #fdfdfd;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.instruction-list {
  margin: 0;
  padding-left: 1.4rem;
}

.instruction-list li {
  margin-bottom: 0.9rem;
}

.instruction-list code {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

#btn{
  background-color: darkgray;
}

#btn a{
  display: block;
  color: black;
}

#btn:hover{
  color: red;
}  

/* tablet (768px) */

@media (max-width: 768px) {
  .project-title {
    font-size: 2.1rem;
  }
  .info-row {
    flex-direction: column;
  }
  .instructions-wrapper {
    flex-direction: column;
  }
  .p5-sketch {
    height: 40vh; /* a little shorter on tablet size*/
  }
}

/* mobile (425px) */
.mobile-break {
  display: none;
}

@media (max-width: 425px) {
  .sketch-container {
    display: none; /* hide sketch on mobile */
  }

  .mobile-break {
    display: block; /* show line break only on mobile,had to make it its own rule */
  }

  .header-text {
    margin-top: 1.5rem;
  }

  .project-title {
    font-size: 1.6rem;
  }

  .content {
    padding: 0 1rem;
  }
}