.banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  list-style: none;
  color: #ffffff;
  transition: all 0.3s ease;
  gap: 0px;
  background-color: black;
  font-size: 20px;
}

nav a {
   
    transition: color 0.3s ease; /* This makes the color change smooth */
}

nav a:hover {
    color: white !important; /* Forces the text to turn white on hover */
}

a {
  text-decoration: none;
  color: silver;
  padding-right: 40px;
  margin-right: 50px;
  cursor: pointer;
}

/* The Line (Invisible and off-screen to the left by default) */
a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #00f3ff; /* Cyan neon color */
  
  /* Neon Glow Effect */
  box-shadow: 0 0 10px #00f3ff, 0 0 20px #00f3ff;

  /* Start shifted 100% to the left and invisible */
  transform: translateX(-100%);
  opacity: 0;
  
  /* Smooth "slow" transition */
  transition: transform 0.5s ease-out, opacity 0.3s;
}

/* When the link is CLICKED (focused) */
a:focus::after {
  transform: translateX(0); /* Slide into place */
  opacity: 1;
}

/* Optional: Slide it OUT to the right when you click away */
a:not(:focus)::after {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.5s ease-in, opacity 0.3s;
}


canvas {
  background: white;
  border: 1px dashed;
  margin-top: 20px;
  touch-action: none;              /* Prevents panning/zooming in most browsers */
  -webkit-user-select: none;       /* Prevents text selection on long-press */
  -webkit-touch-callout: none;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;       /* Force full height */
    overflow: hidden;    /* This kills ALL scrolling (vertical and horizontal) */
    position: fixed;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}


.painting {
    width: 100%;
    /* Keep your existing styles here */
}


html {
  scroll-behavior: smooth;
}

.palette {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.swatch {
  width: 35px;
  height: 35px;
  border-radius: 50%; /* Makes them circles */
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  margin-top: 150px;
}

.swatch:hover {
  transform: scale(1.2);
}

.swatch.active {
  border-color: #333; /* Highlight selected color */
}

/* Mobile and Tablet Adjustments */
@media (max-width: 768px) {
  
  /* the Banner (Nav) */
  .banner {
    flex-direction: column; /* Stack links vertically */
    padding: 1em;
    position: relative;     /* Unstick it so it doesn't cover the canvas */
    width: 100%;
    font-size: 16px;        /* Slightly smaller text for mobile */
    gap: 15px;
  }

  h2{
    font-size: 30px;
  }

    body {
    flex-direction: column; /* Stacks the banner, canvas, and palette vertically */
    justify-content: flex-start; /* Aligns content to the top so it doesn't float in the middle */
    padding-top: 20px;
  }

  /* Links */
  a {
    margin-right: 0;        /* Remove huge desktop margins */
    padding-right: 0;
    width: 100%;            /* Make tap targets bigger */
    text-align: center;
  }

  /* Canvas */
  canvas {
    width: 90vw !important; /* Force canvas to fit the screen width */
    height: auto;           /* Keep aspect ratio */
    margin-top: 10px;
  }

  /* Palette/Swatches */
  .swatch {
    margin-top: 20px;       /* Bring them up closer to the canvas */
    width: 45px;            /* Make them bigger for fingers/thumbs */
    height: 45px;
  }

  .palette {
    flex-wrap: wrap;        /* Let colors wrap to a second row if needed */
    padding: 10px;
  }
}

/* --- COMPACT PHONES (e.g., iPhone 12/13/14) --- */
/* --- COMPACT IPHONES (Standard Portrait 480px) --- */
@media (max-width: 480px) {
.banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  list-style: none;
  color: #ffffff;
  transition: all 0.3s ease;
  gap: 0px;
  background-color: black;
  font-size: 3px;
}
 .banner span{
    font: 6px;
  }
  
  .nav a {
    font-size: 5px;
  }

  body{
    font-size: .5px;
    line-height: .3;
  }
    .section {
  font-size: .5px;
  line-height: .3;
}

.main-container h2 p{
  font-size:1px;
  line-height: .3;
}

.micro-text {
 
  transform: scale(0.3);  /* Shrinks it to 1/10th of the size (effectively 1px) */
  display: inline-block;  /* Required for transform to work on spans */
}
  
p{
  font-size: .5px;
  line-height: .3;
  margin-top: 5px;
}

h2{
  font-size:1px;
  line-height: .3;
  margin-top: 15px;
  margin-bottom: 0px;
}

a {
  text-decoration: none;
  color: silver;
  padding-right: 40px;
  margin-right: 50px;
  cursor: pointer;
  font-size: 5px;
}

/* The Line (Invisible and off-screen to the left by default) */
a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #00f3ff; /* Cyan neon color */
  
  /* Neon Glow Effect */
  box-shadow: 0 0 10px #00f3ff, 0 0 20px #00f3ff;

  /* Start shifted 100% to the left and invisible */
  transform: translateX(-100%);
  opacity: 0;
  
  /* Smooth "slow" transition */
  transition: transform 0.5s ease-out, opacity 0.3s;
}

/* When the link is CLICKED (focused) */
a:focus::after {
  transform: translateX(0); /* Slide into place */
  opacity: 1;
}

/* Optional: Slide it OUT to the right when you click away */
a:not(:focus)::after {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.5s ease-in, opacity 0.3s;
}


canvas {
  background: white;
  border: 1px dashed;
  margin-top: 20px;
  touch-action: none;              /* Prevents panning/zooming in most browsers */
  -webkit-user-select: none;       /* Prevents text selection on long-press */
  -webkit-touch-callout: none;
  width: 50vw;
  height: 90vh;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    
    height: auto;        /* Allow the height to be determined by content */
    min-height: 100%;/* Force full height */
    overflow-x: hidden;    /* This kills ALL scrolling (vertical and horizontal) */
    position: relative;
    font-size: .3px;
    overflow-y: auto;
    line-height: .5;
}

  .section {
  font-size: .3px;
  line-height: .5;
  padding: 5px;
  margin-top: 5px;
}
.main-container h2{
  font-size: .5px;
  line-height: .5;
  margin-top: 5px;
  margin-bottom: 0px !important;
}
.main-container p{
  font-size: .3px;
  line-height: .5;
  margin-top: 5px !important;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-size: .3px;
    min-width: 100vw;
    line-height: .5;
    justify-content: flex-start;
    padding-top: 60px;
    
}


.painting {
    width: 100%;
    /* Keep your existing styles here */
}


html {
  scroll-behavior: smooth;
}

.palette {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 5px;
}

.swatch {
  width: 35px;
  height: 35px;
  border-radius: 50%; /* Makes them circles */
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  margin-top: 75px;
}

.swatch:hover {
  transform: scale(1.2);
}

.swatch.active {
  border-color: #333; /* Highlight selected color */
}
}


/* --- EXTRA SMALL IPHONES (iPhone SE 350px) --- */
@media (max-width: 350px) {
  /* Added the explicit HTML/BODY lock for 350px */
 .banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  list-style: none;
  color: #ffffff;
  transition: all 0.3s ease;
  gap: 0px;
  background-color: black;
  font-size: 4px;
}

  .banner span{
    font: 5px;
  }

  .micro-text {
  transform: scale(0.3);  /* Shrinks it to 1/10th of the size (effectively 1px) */
  display: inline-block;  /* Required for transform to work on spans */
}
  
.main-container p{
  font-size: .5px;
  line-height: .3;
}

.main-container h2{
  font-size: 1px;
  line-height: .3;
  margin-top: 5px;
}
.section{
  padding: 5px;
  margin-top: 5px;
}

  canvas{
  background: white;
  border: 1px dashed;
  margin-top: 20px;
  touch-action: none;
  width: 30px;
  height: 30px;
  }
  
  .nav a{
    font-size: 7px;
  }
  
a {
  text-decoration: none;
  color: silver;
  padding-right: 40px;
  margin-right: 50px;
  cursor: pointer;
  font-size: 6px;
}

/* The Line (Invisible and off-screen to the left by default) */
a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #00f3ff; /* Cyan neon color */
  
  /* Neon Glow Effect */
  box-shadow: 0 0 10px #00f3ff, 0 0 20px #00f3ff;

  /* Start shifted 100% to the left and invisible */
  transform: translateX(-100%);
  opacity: 0;
  
  /* Smooth "slow" transition */
  transition: transform 0.5s ease-out, opacity 0.3s;
}

/* When the link is CLICKED (focused) */
a:focus::after {
  transform: translateX(0); /* Slide into place */
  opacity: 1;
}

/* Optional: Slide it OUT to the right when you click away */
a:not(:focus)::after {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.5s ease-in, opacity 0.3s;
}


canvas {
  background: white;
  border: 1px dashed;
  margin-top: 20px;
  touch-action: none;              /* Prevents panning/zooming in most browsers */
  -webkit-user-select: none;       /* Prevents text selection on long-press */
  -webkit-touch-callout: none;
  width: 50vw;
  height: 90vh;
  
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    
    height: auto;        /* Allow the height to be determined by content */
    min-height: 100%;/* Force full height */
    overflow-x: hidden;    /* This kills ALL scrolling (vertical and horizontal) */
    position: relative;
    font-size: .5px;
    overflow-y: auto;
    line-height: .5;
    
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-size: .5px;
    min-width: 100vw;
    line-height: .5;
    justify-content: flex-start;
    padding-top: 60px;
    
}


.painting {
    width: 100%;
    /* Keep your existing styles here */
}


html {
  scroll-behavior: smooth;
}

.palette {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 5px;
}

.swatch {
  width: 15px;
  height: 15px;
  border-radius: 50%; /* Makes them circles */
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  margin-top: 75px;
}

.swatch:hover {
  transform: scale(1.2);
}

.swatch.active {
  border-color: #333; /* Highlight selected color */
}
}

#shareBtn {
    
    background-color: blueviolet;
    color: white;
    border: none;
    border-radius: 20px; /* Rounded pill shape to match swatches */
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    margin-left: 270px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    
}

#shareBtn:hover {
    background-color: #7a2bc2; /* Slightly darker on hover */
    
}

#shareBtn:active {
    transform: translateY(2px); /* Physical "click" effect */
}

.ghost-button {
    background: transparent;
    border: 2px solid blueviolet;
    color: blueviolet;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 120px;
    padding-top: 40px;
}

.ghost-button:hover {
    background: blueviolet;
    color: white;
}

