*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Custom Properties */

/*********** font styles **************/
@font-face {
  font-family: 'Jomhuria';
  src: url(/fonts/Jomhuria/Jomhuria-Regular.ttf); 
}

@font-face {
  font-family: 'Kameron';
  src: url(/fonts/Kameron/Kameron-Medium.ttf); 
}

:root {
    --ff-heading: 'Jomhuria', serif; 
    --ff-primary: 'Kameron', sans-serif;

    --fs-h2: 3rem;
    --fs-h3: 2rem;
    --fs-nav: 1.2rem;
    
    --fw-reg: 300;
    --fw-bold: 900;
    
    --clr-light: #fff;
    --clr-dark: #000;
    --clr-divider: #cd2355;
    --clr-background: #fbe4ec;
}

body {
    margin: 0;
}

.bold {
  font-weight: var(--fw-bold);
}

.parent {
  width: 80%;
  margin: 0 auto;
}

.image {
  width: 250px;
}

.astronaut {
  width: 150px;
}

.game-image {
  margin: .5em;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
  width: 150px;
}

.icon {
  width: 40px;
}

.emoji {
  padding: 0 .5em;
  width: 200px;
}

.bio-image {
  width: 5rem;
  border-radius: 1rem;
  margin: .5em .3em .5em 1em;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.microbit-champion {
  width: 8rem;
  grid-area: left;
  margin-top: 0;
  margin-left: 0;
}

.robot-message {
  margin: 0 auto 1em;
}

.intro {
  /* background-color: var( --clr-background); */
 background-color: white;
}

.canvas-container {
position: relative;
width: 100%; 
height: 228px;
background-color: #fff; 
margin-top: .5em;
background-image: url(/images/canvas-background.png);
}

.canvas-container #myCanvas {
  position: absolute;
  background-image: url(/images/laptop.png);
  background-position: center;
  background-repeat: no-repeat;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding-bottom: 3em;
  border: 4px solid var(--clr-divider);
  /* border-radius: 10px; */
  box-shadow: 2px 2px 20px rgba(205, 35, 85, 0.5);
}

.canvas-container .emoji-pointer {
  position: absolute;
  bottom: 0;
  right: 10px;
  z-index: 10;
  width: 180px;
  height: auto;
  pointer-events: none;
}

.intro h2 {
  background-color: var(--clr-divider);
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  color: var(--clr-light);
  letter-spacing: 2px;
  margin: 0;
  width: 100%;
  padding-top: .3em;
  text-align: center;
}

.astronaut {
  width: 125px;
}

.treasure h2, .alien h2, .python h2, .scratch h2, .turtle h2, .about-me h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  color: var(--clr-light);
  margin: 0;
  padding-top: .1em;
  text-align: center;
}

.treasure h2, .python h2, .scratch h2, .turtle h2, .about-me h2 {
  color: var(--clr-dark);
}

.turtle h2 {
    padding-top: .2em;
}

.about-me {
  background-image: url(/images/stripes.png);
  background-attachment: fixed;
}

.bio-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  justify-content: center;
}

.alien-section, .treasure-section, .trinket-mole, .python-section, .scratch-section, .turtle-section, .about-me-section {
  flex-direction: column;
  text-align: center;
  align-items: center;
  padding-bottom: 1em;
}

.turtle-section {
  background-image: url(/images/turtle-background.png);
  background-attachment: fixed;
}

.treasure-section {
  background-image: url(/images/pink-stars.png);
  background-attachment: fixed;
  padding-top: 1em;
}

.python-section {
  background-image: url(/images/grass.png);
  background-attachment: fixed;
  background-size: cover;
  background-position: top;
  max-width: 100%;
  height: 100%;
}

.scratch .sub-section, .turtle .sub-section {
  padding: 0 1em;
}

.treasure .sub-section p, .scratch .sub-section p, .turtle .sub-section p {
  margin: 0 0 1em 0;
}

.sub-section {
  background-color: var( --clr-background);
  display: flex;
  align-items: center;
  max-width: 90%;
  /* margin-top: .5em;
  margin-bottom: 1em; */
  border: 4px solid #cd2355;
  margin: .5em auto 1em auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5), -2px 0 5px rgba(0, 0, 0, 0.5);
}

.treasure-section .sub-section {
  border: 6px dotted orange;
  box-shadow: 2px 0 10px rgba(237, 237, 110, .9), -2px 0 10px rgba(237, 237, 110, .9);
}

.bio-section p, .treasure p, .alien p, .python p, .scratch p, .turtle p, .about-me p {
  font-family: var(--ff-primary); 
  font-size: 1.2em;
  padding: 0 1em 0 1em;
  /* padding: 0 .5em 0 .5em; */
  text-align: center;
  margin: .5em 0;
}

.my-info {
  margin: 0 auto;
}

.my-info .image {
  float: left;
  /* padding-bottom: 1em; */
  width: 40%;
}

.my-info p {
  text-align: left;
  padding: 0 .5em;
  font-size: 1rem;
}

.sub-section p {
  padding-top: 1em;
  width: 100%;
}
/* refactor */
.bio-section p, .treasure-section p, .alien-section p, .python-section p, .scratch-section p {
  text-align: center;
  margin-top: 0; 
}

.alien-section h3, .alien-section p {
  color: var(--clr-light);
}

.video {
    width: 80%;
}

.emoji-pointer {
  display: inline-block;
  width: auto;
  height: auto;
  vertical-align: middle;
}

/* Styles for mobile (default) - Show the 'tap' image using ::before and hide the <img> */
.emoji-pointer::before {
  content: url(/images/tap.png);
  display: inline-block;
  width: 100%;
  height: 100%;
}

/* Hide the actual <img> element's content for mobile */
.emoji-pointer.mobile-only { /* Apply hiding only with this class on mobile */
  text-indent: -9999px;
  overflow: hidden;
}

.led-divider {
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5), -2px 0 5px rgba(0, 0, 0, 0.5);
}

.led-divider.wide {
  max-width: 100%;
}

.intro, .treasure, .python, .turtle, .alien, .about-me, .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    max-width: 900px;
    margin: 0 auto; 
}

.python {
  height: auto; 
}

.alien {
  max-width: 100%;
  background-image: url(/images/stars.jpg);
  background-attachment: fixed;
  padding: 1em 0;
}

.scratch {
  background-image: url(/images/scratch-background.png);
  background-attachment: fixed;
  background-size: cover;
  max-width: 100%;
}

iframe {
  /* max-width: 500px; */
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.mole-iframe {
  width: 100%;
  max-width: 410px;
  height: 435px;
  border: none;
  margin: 0 auto;
  display: block;
}

.play-game {
  display: none;
  width: 100%;
  overflow-x: hidden;
}

.more-text, .play-game {
  display: none;
}

.read-more-btn, .play-game-btn {
  background-color: #cd2355;
  color: white;
  cursor: pointer;
  border: 4px solid pink;
  font-weight: bold;
  margin: 0 0 1em 0.3em; 
  font-family: var(--ff-primary);
  font-size: 1rem;
  padding: .5em 1em;
  border-radius: 10px;
  /* box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); */
}

.read-more-btn:hover, .play-game-btn:hover {
  background-color: pink;
  border: 4px solid #cd2355;
  color: #cd2355;
}

.footer {
    flex-direction: row;
    justify-content: center;
    background-color: var(--clr-divider);
    padding-bottom: .52em;
}

.footer {
    color: var(--clr-light);
    font-size: var(--fs-h3);
    text-align: center;
}

.footer a { 
    color: inherit;
    text-decoration: none;
}

.footer__link {
    font-weight: var(--fw-bold);
}

.footer__link:hover,
.social-list__link:hover {
    opacity: .7;
}

.footer__link:hover {
    text-decoration: underline;
}

.social-list {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: .5em 0 0;
    padding: 0;
    gap: 0.1em; /* Added the gap property */
}

.social-list__item {
    /* margin: 0 .2em; */
    transition: transform 200ms ease-in-out;
}

.social-list__item:hover {
    transform: scale(2);
}

.social-list__link {
    padding: .5em;
}

.arrows {
    width: 50px;
    float: right;
    position: fixed;
    bottom: 18px;
    right: 10px;
    background-color: black;
    z-index: 100;
    transition: transform 200ms ease-in-out;
    display: none;
}

.arrows:hover {
    border: 2px solid white;
    transform: scale(1.1);
}

.led-divider {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 10px 0;
  background-color: var(--clr-divider);
}

.led {
  width: 10px;
  height: 30px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* Default shape: rectangle */
.led.rectangle {
  border-radius: 4px
}

/* Round shape */
.led.round {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

/* Triangle shape (using CSS clip-path) */
.led.triangle {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 16px solid currentColor; /* Color will be set by JS */
  background: transparent !important; /* Override background-color */
}

/* Star shape (using CSS clip-path) */
.led.star {
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    background-color: currentColor; /* Use currentColor for color control */
    -webkit-clip-path: polygon(
      50% 0%,
      61% 35%,
      98% 35%,
      68% 57%,
      79% 91%,
      50% 70%,
      21% 91%,
      32% 57%,
      2% 35%,
      39% 35%
    );
    clip-path: polygon(
      50% 0%,
      61% 35%,
      98% 35%,
      68% 57%,
      79% 91%,
      50% 70%,
      21% 91%,
      32% 57%,
      2% 35%,
      39% 35%
    );
    background: currentColor; /* Ensure background color is set */
  }

  /* Diamond shape (using CSS clip-path) */
.led.diamond {
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    background-color: currentColor; /* Use currentColor for color control */
    -webkit-clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: currentColor; /* Ensure background color is set */
  }

/* Reshaped Alien Head with Angled Oval Eyes */
.led.alien-head {
    position: relative; /* Needed for positioning eyes */
    width: 22px;
    height: 32px;
    background-color: currentColor;
    border-radius: 70% 70% 40% 40%;
    -webkit-clip-path: polygon(50% 0%, 85% 10%, 98% 35%, 95% 65%, 80% 85%, 50% 98%, 20% 85%, 5% 65%, 2% 35%, 15% 10%);
    clip-path: polygon(50% 0%, 85% 10%, 98% 35%, 95% 65%, 80% 85%, 50% 98%, 20% 85%, 5% 65%, 2% 35%, 15% 10%);
    background: currentColor;
  }
  
  /* Angled Oval Eyes */
  .led.alien-head::before,
  .led.alien-head::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 8px;
    background-color: black;
    border-radius: 50%;
    top: 25%;
  }
  
  .led.alien-head::before {
    left: 15%;
    transform: rotate(-15deg); /* Angle the left eye */
  }
  
  .led.alien-head::after {
    right: 15%;
    transform: rotate(15deg);  /* Angle the right eye */
  }
  
  /* LED colors */
  .red { background-color: red; }
  .orange { background-color: orange; }
  .yellow { background-color: yellow; }
  .green { background-color: green; }
  .blue { background-color: blue; }
  .indigo { background-color: indigo; }
  .violet { background-color: violet; }
  .pink { background-color: pink; }
  .cyan { background-color: cyan; }
  .lime { background-color: lime; }

/* Small tablets (portrait) */
/* @media (min-width: 600px) {
  } */
  
/* breakpoint for mobile */
  @media (max-width: 768px) {
    /* Navigation */

  .search-emoji {
    width: 30%;
    margin: 0;
    padding: 0;
    display: block;
  }

  hr {
    border: 2px solid white;
    margin: 0;
  }

  .nav {
    position: fixed;
    background: var(--clr-divider);
    opacity: .9;
    color: var(--clr-light);
    font-family: var(--ff-heading);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    /* padding: 1em; */
    border: 1px solid var(--clr-accent);
    transform: translateX(100%);
    transition: transform 250ms cubic-bezier(.5, 0, .5, 1);
  }

  .nav__list {
    list-style: none;
    display: flex;
    /* height: 100%; */
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .nav__link {
    color: inherit;
    font-weight: var(--fw-bold);
    font-size: 2rem;
    text-decoration: none;
    line-height: 2;
  }

  .nav__link:hover {
    color: black;
    text-shadow:white .5px .5px;
  }

  .nav-toggle {
    padding: .5em;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: absolute;
    right: 1em;
    top: 1.8em;
    z-index: 1000;
  }

  .nav-open .nav {
    transform: translateX(0);
  }

  .nav-open .nav-toggle {
    position: fixed;
  }

  .nav-open .hamburger {
    transform: rotate(.625turn);
  }

  .nav-open .hamburger::before {
    transform: rotate(90deg) translateX(-6px);
  }

  .nav-open .hamburger::after {
    opacity: 0;
  }

  .hamburger {
    display: block;
    position: relative;
  }

  .hamburger,
  .hamburger::before,
  .hamburger::after {
    background-color: #fff;
    width: 2em;
    height: 3px;
    border-radius: 1em;
    transition: transform 250ms ease-in-out;
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
  }

  .hamburger::before { top: 6px; }
  .hamburger::after { bottom: 6px; }

  }

/* Media query for desktop (screens 768px or larger) */
@media (min-width: 768px) {
  body {
    position: relative;
  }
 
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/images/background.png);
    /* background-image: url(/images/background-pink.jpg); */
    /* background-image: url(/images/subtle-background.png); */
    /* background-color:#fff; */
    background-size: contain;
    background-attachment: fixed;
    opacity: 0.6;
    z-index: -1;
  }

  .emoji-pointer::before {
    content: none; /* Remove the ::before content on desktop */
  }

  .emoji-pointer {
    text-indent: 0; /* Show the actual <img> content on desktop */
    overflow: visible;
    content: url(/images/hover.png); /* Try setting content directly on the image (might not work as expected) */
  }

  .search-emoji, hr {
    display: none;
  }

  /* .led-divider.wide {
    max-width: 100%;
  } */

  .emoji {
    padding: 0 1em;
  }

  .intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    padding: 3em 1.3em 0 1em;
    align-items: start;
    grid-template-areas:
      "left right"
      "left right"
      "left right"
      "left right"
      "left right"
      "left right";
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  }

  .intro h2 {
    grid-area: left;
    width: 100%;
    color: #000000;
    background-color: #fff;
    border-bottom: none;
    /* text-shadow: pink 2px 1px; */
  }
  
  .bio-section {
    grid-area: left;
    flex-direction: row;
    align-items: center;
    margin-top: 3em;
  }

  .bio-section p {
    grid-area: left;
    text-align: center;
    padding-left: 0;
  }

  .canvas-container {
    background-color: white;
  }

  .astronaut {
    width: auto;
  }

  .python {
    background-image: url(/images/grass.png);
    background-attachment: fixed;
    background-size: cover;
    background-position: top;
    max-width: 100%;
    /* height: 890px;  */
    height: auto;
  }

  .game-image {
    /* margin: .5em 0;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5); */
    width: auto;
  }

  /* .about-me {
    max-width: 100%;
  } */

  .python-section {
    justify-content: center;
    max-width: 900px;
    margin-bottom: 1em;
  }

  .treasure-section, .turtle-section {
    width: 900px;
  }

  .align-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .scratch .sub-section, .about-me .sub-section {
    width: 900px;
    padding: 1em;
  }

  .turtle .sub-section {
    padding: 0 3em;
    width: 500px;
  }

  .sub-section {
    width: 100%;
  }

  .scratch {
    padding: 0;
  }

  .about-me, .treasure-section, .turtle-section {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin: .1em auto;
  }

  .about-me h2 {
    margin-top: .2em;
  }

  .my-info .image {
    width: 30%;
  }

  .my-info p {
    padding: 0;
    font-size: 1.2rem;
  }

  .bio-image {
    grid-area: left;
    margin-left: .1em;
    margin-right: 0.5em;
  }

  .circuits {
    grid-area: left;
    margin-top: 10.5em;
    margin-left: 4em;
  }

  .microbit-champion {
  width: 8rem;
  grid-area: left;
  margin-top: 10.5em;
  margin-left: 10em;
  }

  .robot-message {
    grid-area: left;
    margin-top: 14em;
  }

  .canvas-container {
    grid-area: right;
    margin-top: 4em;
  }

  nav { 
    width: 100%;
  }

  .nav-toggle {
      display: none;
  }

  header {
      position: fixed;
      top: 0;
      width: 100%;
      background-color: var(--clr-divider);
      font-family: var(--ff-primary);
      z-index: 11;
  }

  .nav__list {
      display: flex;
      list-style-type: none;
      justify-content: space-evenly;
      list-style: none;
  }

  .nav__link {
      text-decoration: none;
      color: #fff;
      font-weight: var(--fw-bold);
      font-size: var(--fs-nav);
  }

  .nav__link:hover {
    color: #ffd6e0;
  }


  .footer {
    max-width: 100%;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  /* iPad */

  
}
  
  /* Desktops */
  @media (min-width: 1024px) {
    /* Large screens */
  }
  
  /* Large desktops / widescreens */
  @media (min-width: 1280px) {
    /* Extra large screens */
  }