/* STYLE STAGE CHANGES: 1-26 */
@charset "UTF-8";

/* 1. Updated color scheme with blue, red, yellow, and black background */
:root {
  --color-blue: #007bff;
  --color-red: #ff3b30;
  --color-yellow: #ffd700;
  --color-background: #000000;
  --color-text: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --spacing-unit: 1rem;
  --border-radius: 4px;
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: normal;
  src: local("Baloo 2 Regular"), local("Baloo-2-Regular"), url("../../fonts/baloo-2-v1-latin-regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 500;
  src: local("Baloo 2 Medium"), local("Baloo-2-Medium"), url("../../fonts/baloo-2-v1-latin-500.woff2") format("woff2");
  font-display: swap;
}

/*
 * [Modified] Modern CSS Reset
 * @link https://github.com/hankchizljaw/modern-css-reset
*/
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

html {
  overflow-x: hidden;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  font-size: 100%;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
  overflow-x: hidden;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-family);
}

/* Make images easier to work with */
img {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
h1,
h2,
h3,
h4 {
  font-weight: var(--font-weight-strong);
  line-height: 1;
  margin-bottom: 0.65em;
}

h1 {
  font-size: var(--font-size-h1);
  font-size: clamp(2rem, 7vw, var(--font-size-h1));
}

h2 {
  font-size: var(--font-size-h2);
  font-size: clamp(2rem, 4vw, var(--font-size-h2));
  text-align: center;
}

#main h2 {
  background-color: var(--color-secondary);
  align-self: center;
  color: var(--color-background);
  padding: 0.25em 0.5em;
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

p,
li {
  font-size: var(--font-size-text);
}

p {
  margin: 0 0 1rem;
}

article .container > ul:not(.features) > li + li,
article .container > ol > li + li {
  margin-top: 1rem;
}
article .container * + h2 {
  margin-top: 4rem;
}
article .container * + h3 {
  margin-top: 2rem;
}

strong {
  font-weight: var(--font-weight-strong);
}

a {
  color: var(--color-anchor);
}

blockquote {
  position: relative;
  display: grid;
  grid-template-areas: "blockquote";
  place-items: center;
  padding: 0;
  margin: 3rem 0;
  color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.1);
}
blockquote > * {
  grid-area: blockquote;
}
blockquote p {
  position: relative;
  font-size: var(--font-size-h4);
  margin-bottom: 0;
  padding: 0.5em;
}
blockquote p strong {
  font-size: 1.15em;
}
blockquote::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid var(--color-primary);
  box-shadow: 0.25em 0.25em var(--color-secondary);
  transform: scale(1.1);
  content: "";
}
blockquote::after {
  grid-area: blockquote;
  color: #6f6ffd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 199.1 111.3'%3E%3Cpath fill='%236f6ffd' d='M118 77a77 77 0 00-2-18c-2-4-3-9-3-13a29 29 0 011-12 19 19 0 017-9c4-3 8-4 13-3a14 14 0 018 7 31 31 0 012 5 75 75 0 005 10 47 47 0 002 5 17 17 0 003 3c4 4 8 4 13 0a15 15 0 005-8 37 37 0 001-7l1-11a18 18 0 014-11 2 2 0 000-3l-3-3-2-3a2 2 0 011-2 11 11 0 012-1l19-3c4 0 5 1 3 5l-7 16c-1 3-2 3-5 1l-4-5a1 1 0 00-1 0 9 9 0 00-3 5 23 23 0 00-1 6l-1 11a26 26 0 01-1 7 18 18 0 01-8 10c-5 3-9 3-13 0a20 20 0 01-6-6 68 68 0 01-6-13l-2-4a18 18 0 00-2-4 10 10 0 00-14-2 15 15 0 00-4 4 19 19 0 00-3 9 32 32 0 000 11l2 6a78 78 0 012 27 32 32 0 01-4 15 24 24 0 01-11 9 33 33 0 01-19 3 16 16 0 01-13-9 29 29 0 01-3-11 70 70 0 012-18l2-14a33 33 0 000-14c-1-4-4-7-8-7-7-1-14 1-19 6a34 34 0 00-6 9 59 59 0 00-4 10l-3 12-2 6a26 26 0 01-5 8 17 17 0 01-16 6 26 26 0 01-10-4 7 7 0 01-2-1 2 2 0 010-2 2 2 0 012 0l3 1a22 22 0 0010 3 13 13 0 009-4 22 22 0 005-6 41 41 0 003-8l3-12a59 59 0 015-13 31 31 0 017-9c6-5 14-7 22-5a12 12 0 019 7 21 21 0 011 7 57 57 0 01-2 17 132 132 0 00-2 16 37 37 0 000 13 27 27 0 002 5 13 13 0 0011 8 30 30 0 0016-3 22 22 0 0010-10c3-4 3-9 4-13v-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  place-self: end;
  content: "Ooh, scale()!";
  background-size: 90%;
  width: 10ch;
  padding-top: 3.25em;
  transform: translate(25%, 50%) rotate(-5deg);
  transform-origin: bottom right;
}
@media (max-width: 60rem) {
  blockquote::after {
    transform: translate(25%, 55%) rotate(-5deg);
  }
}

#guidelines p:nth-of-type(1),
#contribute p:nth-of-type(1) {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-strong);
}

main {
  padding-top: 5vh;
  padding-bottom: 5vh;
}
main:focus {
  outline: none;
}
main h3 {
  color: var(--color-primary);
}

article section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 5vh;
  padding-bottom: 5vh;
}

article .container,
.page-footer .container,
#styles .container {
  width: 100%;
  max-width: 80ch;
  margin-right: auto;
  margin-left: auto;
}

article,
#styles {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
}

.page-footer ul,
.features {
  display: grid;
  margin: 0 0 2rem;
  padding: 0;
  grid-gap: 1em;
  list-style: none;
}

/* 2. Body styles with black background */
body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  margin: 0;
  padding: 0;
}

/* 3. Header with blue accent */
header {
  position: relative;
  text-align: center;
  padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
  background-color: rgba(255, 215, 0, 0.1);
  color: var(--color-text);
  margin-bottom: calc(var(--spacing-unit) * 2);
  border-bottom: 3px solid var(--color-yellow);
}

header h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: var(--spacing-unit);
  color: var(--color-yellow);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 0.4),
    0 0 40px rgba(255, 215, 0, 0.2);
  background: linear-gradient(
    135deg,
    var(--color-yellow),
    #ffffff
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-blue),
    var(--color-yellow),
    var(--color-red)
  );
  border-radius: var(--border-radius);
}

header h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text);
  text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* 4. Navigation with yellow accents */
nav {
  padding: var(--spacing-unit);
  background-color: rgba(255, 215, 0, 0.1);
  border-bottom: 1px solid var(--color-yellow);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-unit);
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul a {
  color: var(--color-yellow);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

nav ul a:hover {
  color: var(--color-text);
  background-color: var(--color-yellow);
  border-radius: var(--border-radius);
}

/* 5. Main content with mixed accents */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 2);
}

article {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 6. Headings with color accents */
h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-red);
  margin-bottom: calc(var(--spacing-unit) * 2);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(255, 59, 48, 0.3);
}

h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-blue);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

/* 7. Links with yellow accent */
a {
  color: var(--color-yellow);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

/* 8. Buttons with color variations */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-blue);
  color: var(--color-text);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: all 0.2s ease;
}

.button:hover {
  background-color: var(--color-yellow);
  color: var(--color-background);
}

.button.red {
  background-color: var(--color-red);
}

/* 9. Footer with red accent */
.page-footer {
  background-color: rgba(255, 59, 48, 0.1);
  color: var(--color-text);
  padding: calc(var(--spacing-unit) * 3) var(--spacing-unit);
  margin-top: calc(var(--spacing-unit) * 4);
  text-align: center;
  border-top: 3px solid var(--color-red);
}

.page-footer a {
  color: var(--color-red);
}

/* 10. Blockquote with mixed colors */
blockquote {
  border-left: 4px solid var(--color-yellow);
  margin: var(--spacing-unit) 0;
  padding: var(--spacing-unit);
  background-color: rgba(255, 215, 0, 0.1);
  font-style: italic;
}

/* 11. List items with colored bullets */
ul li::marker {
  color: var(--color-blue);
}

ol li::marker {
  color: var(--color-red);
}

/* 12. Form elements with accent colors */
input, 
button, 
textarea {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--color-blue);
  color: var(--color-text);
}

input:focus, 
textarea:focus {
  border-color: var(--color-yellow);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.profile {
  width: 95vw;
  max-width: 80ch;
  margin: 1rem auto 10vh;
  padding: 1.25rem;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.05);
}
.profile h4 {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}
.profile .container {
  display: grid;
  justify-items: center;
  grid-gap: 1rem;
}
.profile .container > a {
  min-height: 2em;
  border: 2px solid currentColor;
  color: var(--color-secondary);
}
.profile ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile ul li {
  display: flex;
  padding: 0.45em;
}
.profile ul li span:nth-child(1) {
  width: auto;
  margin-right: 0.25em;
  font-weight: var(--font-weight-strong);
}
.profile ul li span:nth-child(2) {
  flex-grow: 1;
  word-break: break-word;
}
.profile ul li span:nth-child(2) a {
  color: inherit;
}
@media (min-width: 180ch) {
  .profile {
    position: fixed;
    right: 2vmin;
    bottom: 2vmin;
    max-width: 30ch;
    margin-bottom: 0;
    border-radius: var(--border-radius);
    background-color: var(--color-light);
    box-shadow: 0 2px 5px rgba(58, 0, 255, 0.15);
  }
  .profile ul {
    justify-content: unset;
  }
  .profile ul li {
    padding: 0;
  }
  .profile ul li span:nth-child(1) {
    width: 8ch;
    margin-right: 0;
  }
}

.page-footer {
  --logomark-height: 2em;
  --logomark-padding: 0;
  position: relative;
  padding: 3rem 1rem;
  background-color: #111111;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='72' viewBox='0 0 36 72'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23d2fbf7' fill-opacity='1'%3E%3Cpath d='M2 6h12L8 18 2 6zm18 36h12l-6 12-6-12z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center -34px;
  color: var(--color-light);
}
.page-footer::before {
  display: inline-grid;
  min-height: var(--logomark-height);
  padding: var(--logomark-padding);
  border: 0.16em solid var(--color-primary);
  box-shadow: 0.12em 0.12em var(--color-secondary);
  place-content: center;
  position: absolute;
  left: 50%;
  width: 2em;
  transform: translate(-50%, -100%);
  background-color: var(--color-background);
  color: var(--color-primary);
  font-size: 3rem;
  content: "S";
}
.page-footer p:first-child {
  margin-top: 3rem;
  font-weight: var(--font-weight-strong);
  letter-spacing: 0.03em;
  text-align: center;
}
.page-footer p a {
  color: inherit;
}
.page-footer ul {
  grid-template-columns: repeat(auto-fit, minmax(12ch, auto));
}
.page-footer .container > :last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  top: auto;
  left: -10000px;
  width: 1px;
  height: 1px;
  background-color: var(--color-secondary);
  color: #fff;
  font-size: 1.125rem;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 0.5em;
}

[class^=link]:not(.link-codepen) {
  min-height: 3em;
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0.18em 0.18em var(--color-secondary);
}

[class^=link]:not(.link-codepen),
.profile .container > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75em;
  transform: translate(0, 0);
  transition: 180ms all ease-in-out;
  font-size: 1.125rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}
[class^=link]:not(.link-codepen):hover, [class^=link]:not(.link-codepen):focus,
.profile .container > a:hover,
.profile .container > a:focus {
  transform: translate(-0.15em, -0.15em);
  box-shadow: 0.3em 0.3em var(--color-secondary);
}
[class^=link]:not(.link-codepen):focus,
.profile .container > a:focus {
  outline-color: transparent;
  outline-style: solid;
}

.page-footer [class^=link] {
  width: 100%;
  min-height: 2.5em;
  background-color: var(--color-background);
  color: var(--color-primary);
}

.link-codepen {
  display: block;
  margin-top: 3rem;
  font-size: var(--font-size-h4);
}
.link-codepen::before {
  position: absolute;
  padding-right: 1.25em;
  transform: translate(15%, -90%) rotate(-3deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 79.6 187.1'%3E%3Cpath fill='%236f6ffd' d='M12 131l-2 13-3 26a10 10 0 000 2 1 1 0 001 0 24 24 0 002-3 37 37 0 016-8 73 73 0 007-9l24-33 4-5a70 70 0 006-7l15-20a8 8 0 001-1 1 1 0 000-1 16 16 0 00-2-1l-8-3a69 69 0 01-13-6 7 7 0 00-1-1l-16-6-13-7a57 57 0 00-10-4 17 17 0 01-2-1 2 2 0 01-1-4 18 18 0 012-2 93 93 0 0011-13 95 95 0 018-8l10-11a32 32 0 003-4c3-5 7-9 12-13a12 12 0 011-1 1 1 0 012 0 2 2 0 010 2 27 27 0 01-3 3 104 104 0 00-10 12 115 115 0 01-11 13 102 102 0 00-11 13 78 78 0 01-5 7l-2 2a1 1 0 000 1l19 8 9 4 3 2a77 77 0 0113 5 22 22 0 003 2l17 8a8 8 0 011 1 2 2 0 010 2 22 22 0 01-1 3l-11 14a33 33 0 00-2 3 98 98 0 01-10 13l-5 7-23 31a87 87 0 01-7 9 60 60 0 00-6 8l-2 3a1 1 0 000 1l9-4 12-6 10-6 13-7a10 10 0 012 0 2 2 0 012 1 2 2 0 010 3 24 24 0 01-3 1l-8 4-20 11-24 12a19 19 0 01-2 1 2 2 0 01-3-2 10 10 0 010-2l1-7 3-24 3-21a39 39 0 011-5 2 2 0 013-1 2 2 0 011 2v4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 130%;
  background-size: 14%;
  color: #6f6ffd;
  font-size: 0.85em;
  content: "Jump right in";
}

.link-allstyles {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 3.5rem;
  margin: 0 auto;
  background: linear-gradient(
    45deg,
    var(--color-blue),
    var(--color-yellow)
  );
  color: var(--color-text);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.link-allstyles:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
  border-color: var(--color-blue);
  text-decoration: none;
}

@media (max-width: 768px) {
  .link-allstyles {
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    margin: 0 auto;
  }
}

@media (max-width: 400px) {
  .link-allstyles {
    margin: 0 auto;
  }
}

.link-github svg {
  width: 1em;
  height: 1em;
  margin-right: 0.25em;
  fill: currentColor;
}

/* 3. Made the Currently Staged styles appear two per row */
.styles-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) auto;
  max-width: var(--breakpoint-xl);
  padding: 0 var(--spacing-lg);
}

/* 4. Added dark theme styles for content sections */
article {
  background-color: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
}

/* 5. Made headers centered and full width */
.styles-list h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--primary-color);
}

/* 6. Added hover effects for better interactivity */
.styles-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}

/* 7. Made View Stylesheet section centered */
.view-stylesheet {
  text-align: center;
  grid-column: 1 / -1;
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
}

/* 8. Added responsive styles for mobile devices */
@media (max-width: 768px) {
  .styles-list {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
  }
  
  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
  }
  
  header h1 {
    letter-spacing: 2px;
  }
  
  main h2 {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  #files h3 {
    letter-spacing: 2px;
  }
}

/* 9. Added dark theme for footer */
.page-footer {
  background-color: #111111;
  color: var(--color-light);
}

/* 10. Added hover effects for links */
a:hover,
a:focus {
  color: var(--secondary-color);
  text-shadow: 0 0 8px rgba(0, 157, 255, 0.5);
}

/* Make all headings bolder */
h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* Make section headings bolder */
main h2 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

/* 13. Enhanced button grid layout */
.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
  margin: calc(var(--spacing-unit) * 3) 0;
  width: 100%;
}

.button-grid [class^="link"],
.button-grid .button {
  width: 100%;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0, 123, 255, 0.1);
  border: 2px solid var(--color-blue);
  color: var(--color-text);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: var(--font-weight-bold);
}

.button-grid [class^="link"]:hover,
.button-grid .button:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  background-color: var(--color-blue);
}

/* 14. Enhanced bottom section design */
.page-footer {
  position: relative;
  background: linear-gradient(
    to bottom,
    var(--color-background),
    rgba(0, 123, 255, 0.1)
  );
  padding: calc(var(--spacing-unit) * 6) var(--spacing-unit) calc(var(--spacing-unit) * 3);
  margin-top: calc(var(--spacing-unit) * 6);
  border-top: 4px solid;
  border-image: linear-gradient(
    to right,
    var(--color-blue),
    var(--color-red),
    var(--color-yellow)
  ) 1;
}

.page-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-blue),
    var(--color-red),
    var(--color-yellow),
    transparent
  );
}

.page-footer .container {
  display: grid;
  gap: calc(var(--spacing-unit) * 2);
  max-width: 1200px;
  margin: 0 auto;
}

.page-footer ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-unit);
  margin: calc(var(--spacing-unit) * 2) 0;
}

.page-footer ul a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background-color: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--color-yellow);
  color: var(--color-yellow);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.page-footer ul a:hover {
  background-color: var(--color-yellow);
  color: var(--color-background);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* 15. Style improvements for profile section */
.profile {
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.1),
    rgba(255, 59, 48, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: calc(var(--spacing-unit) * 2);
  margin: calc(var(--spacing-unit) * 4) auto;
}

.profile .container {
  display: grid;
  gap: calc(var(--spacing-unit) * 2);
}

.profile ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-unit);
}

.profile ul li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 16. Enhanced styles for CodePen link */
.link-codepen {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(
    45deg,
    var(--color-blue),
    var(--color-red)
  );
  color: var(--color-text);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  margin: calc(var(--spacing-unit) * 3) auto;
  transition: all 0.3s ease;
}

.link-codepen:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
  color: var(--color-text);
  text-decoration: none;
}

/* Wrap buttons in container */
.button-container {
  display: grid;
  gap: calc(var(--spacing-unit) * 2);
  margin: calc(var(--spacing-unit) * 3) 0;
}

/* Make GitHub link more prominent */
.link-github {
  background: linear-gradient(
    45deg,
    var(--color-blue),
    var(--color-red)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: var(--font-weight-bold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.link-github:hover {
  text-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

/* Add container for all styles link */
.styles-container {
  text-align: center;
  margin: calc(var(--spacing-unit) * 4) 0;
}

/* 17. Enhanced header centering and source files section */
#files {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
  margin: calc(var(--spacing-unit) * 4) auto;
  text-align: center;
}

#files h3 {
  display: block !important;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--color-yellow);
  margin-bottom: calc(var(--spacing-unit) * 3);
  text-align: center;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 0.4),
    0 0 40px rgba(255, 215, 0, 0.2);
  position: relative;
}

#files h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-blue),
    var(--color-yellow),
    var(--color-red)
  );
  border-radius: var(--border-radius);
}

#files .container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: calc(var(--spacing-unit) * 3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 600px;
  margin-top: calc(var(--spacing-unit) * 2);
}

/* Update source buttons container spacing */
.source-buttons {
  margin-top: calc(var(--spacing-unit) * 2);
}

@media (max-width: 768px) {
  #files h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: calc(var(--spacing-unit) * 2);
  }
  
  #files h3::after {
    width: 60px;
  }
}

/* 18. Styled download buttons to match CodePen fork */
.source-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
  width: 100%;
  margin: calc(var(--spacing-unit) * 2) 0;
}

.source-buttons a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(
    45deg,
    var(--color-blue),
    var(--color-red)
  );
  color: var(--color-text);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
}

.source-buttons a:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
  color: var(--color-text);
  text-decoration: none;
}

/* 19. Add file type indicators */
.source-buttons a::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.source-buttons a[href$=".html"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 18.178l-4.62-1.256-.328-3.544h2.27l.158 1.844 2.52.667 2.52-.667.26-2.866H6.96l-.635-6.678h11.35l-.227 2.21H8.822l.204 2.256h8.217l-.624 6.778L12 18.178zM3 2h18l-1.623 18L12 22l-7.377-2L3 2zm2.188 2L6.49 18.434 12 19.928l5.51-1.494L18.812 4H5.188z'/%3E%3C/svg%3E");
}

.source-buttons a[href$=".css"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12.01 2.019c-5.495 0-9.991 4.496-9.991 9.991c0 5.494 4.496 9.99 9.991 9.99c5.494 0 9.99-4.496 9.99-9.99c0-5.495-4.446-9.991-9.99-9.991zm0 1.5c4.669 0 8.49 3.821 8.49 8.491c0 4.669-3.821 8.49-8.49 8.49c-4.67 0-8.491-3.821-8.491-8.49c0-4.67 3.821-8.491 8.491-8.491zm-5.995 7.841c.108-.108.228-.167.347-.167c.119 0 .239.059.347.167c.108.108.167.228.167.347c0 .119-.059.239-.167.347c-.108.107-.228.167-.347.167c-.119 0-.239-.06-.347-.167c-.108-.108-.167-.228-.167-.347c0-.119.059-.239.167-.347zm3.326-2.896c.108-.108.228-.167.347-.167c.119 0 .239.059.347.167c.108.108.167.228.167.347c0 .119-.059.239-.167.347c-.108.107-.228.167-.347.167c-.119 0-.239-.06-.347-.167c-.108-.108-.167-.228-.167-.347c0-.119.059-.239.167-.347zm5.995 2.896c.108-.108.228-.167.347-.167c.119 0 .239.059.347.167c.108.108.167.228.167.347c0 .119-.059.239-.167.347c-.108.107-.228.167-.347.167c-.119 0-.239-.06-.347-.167c-.108-.108-.167-.228-.167-.347c0-.119.059-.239.167-.347z'/%3E%3C/svg%3E");
}

/* 20. Add container styles */
#files .container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: calc(var(--spacing-unit) * 3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Update existing styles to work with new structure */
#files h3 {
  display: none;
}

#files .container > *:not(:last-child) {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

@media (max-width: 768px) {
  .source-buttons {
    grid-template-columns: 1fr;
  }
  
  #files {
    padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
  }
}

/* 23. Enhanced download buttons with color transitions */
.source-buttons a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(
    45deg,
    var(--color-blue),
    var(--color-red)
  );
  color: var(--color-text);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
}

/* HTML download button hover effect */
.source-buttons a[href$=".html"]:hover {
  background: linear-gradient(
    45deg,
    var(--color-yellow),
    var(--color-red)
  );
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
  border-color: var(--color-yellow);
}

/* CSS download button hover effect */
.source-buttons a[href$=".css"]:hover {
  background: linear-gradient(
    45deg,
    var(--color-blue),
    var(--color-yellow)
  );
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
  border-color: var(--color-blue);
}

/* Add transition effect for the icons */
.source-buttons a::before {
  transition: transform 0.3s ease;
}

.source-buttons a:hover::before {
  transform: scale(1.2);
}

/* Add focus states that match hover states */
.source-buttons a[href$=".html"]:focus {
  background: linear-gradient(
    45deg,
    var(--color-yellow),
    var(--color-red)
  );
  outline: none;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
  border-color: var(--color-yellow);
}

.source-buttons a[href$=".css"]:focus {
  background: linear-gradient(
    45deg,
    var(--color-blue),
    var(--color-yellow)
  );
  outline: none;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
  border-color: var(--color-blue);
}

/* 24. Enhanced Featured Styles section layout */
.styles-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing-unit) * 2);
  width: 100%;
  max-width: 100%;
  padding: calc(var(--spacing-unit) * 2);
  margin: calc(var(--spacing-unit) * 4) auto;
}

.styles-list li {
  background: rgba(255, 255, 255, 0.05);
  padding: calc(var(--spacing-unit) * 2);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.styles-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
}

.styles-list h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 4);
  width: 100%;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

/* Center and style the View All Styles link */
.styles-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: calc(var(--spacing-unit) * 2);
  margin: calc(var(--spacing-unit) * 4) auto;
  text-align: center;
}

.link-allstyles {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 3.5rem;
  margin: 0 auto;
  background: linear-gradient(
    45deg,
    var(--color-blue),
    var(--color-yellow)
  );
  color: var(--color-text);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  transform: translateX(0); /* Reset any existing transforms */
}

.link-allstyles:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
  border-color: var(--color-blue);
  text-decoration: none;
}

@media (max-width: 768px) {
  .styles-container {
    padding: var(--spacing-unit);
  }
  
  .link-allstyles {
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    margin: 0 auto;
    transform: none;
  }
}

/* Remove any conflicting margin styles */
@media (max-width: 400px) {
  .link-allstyles {
    margin: 0 auto;
    transform: none;
  }
}

/* 25. Enhanced vertical styles list layout */
.styles-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
  width: 100%;
  max-width: 800px;
  padding: calc(var(--spacing-unit) * 2);
  margin: calc(var(--spacing-unit) * 4) auto;
}

.styles-list li {
  background: rgba(255, 255, 255, 0.05);
  padding: calc(var(--spacing-unit) * 2);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.styles-list li a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: 1rem;
  width: 100%;
  transition: all 0.3s ease;
  background: linear-gradient(
    45deg,
    rgba(0, 123, 255, 0.1),
    rgba(255, 215, 0, 0.1)
  );
  border-radius: var(--border-radius);
  border: 1px solid transparent;
}

.styles-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
}

.styles-list li a:hover {
  background: linear-gradient(
    45deg,
    rgba(0, 123, 255, 0.2),
    rgba(255, 215, 0, 0.2)
  );
  border-color: var(--color-blue);
  padding-left: 2rem;
}

.styles-list h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 4);
  width: 100%;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

/* Add author attribution styling */
.styles-list li a span {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .styles-list {
    padding: var(--spacing-unit);
  }
  
  .styles-list li a {
    font-size: 1.1rem;
    padding: 0.75rem;
  }
}

/* 26. Updated Style Stage header to match Source Files yellow theme */
header {
  position: relative;
  text-align: center;
  padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
  background-color: rgba(255, 215, 0, 0.1);
  color: var(--color-text);
  margin-bottom: calc(var(--spacing-unit) * 2);
  border-bottom: 3px solid var(--color-yellow);
}

header h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: var(--spacing-unit);
  color: var(--color-yellow);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 0.4),
    0 0 40px rgba(255, 215, 0, 0.2);
  background: linear-gradient(
    135deg,
    var(--color-yellow),
    #ffffff
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-blue),
    var(--color-yellow),
    var(--color-red)
  );
  border-radius: var(--border-radius);
}

header h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text);
  text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}
