/* ✿✧･ﾟ accuwate winux gwaphs wite CSS ✿✧･ﾟ */

:root {
  --uwu-pink: #ffd6e6;
  --uwu-blue: #d6e6ff;
  --uwu-purple: #e6d6ff;
  --uwu-yellow: #fff5d6;
  --uwu-green: #d6ffea;
  --text-color: #6a5a7d;
  --bg-color: #fffafd;
}

body {
  font-family: 'Comic Sans MS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  background: linear-gradient(to right, var(--uwu-pink), var(--uwu-purple));
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(106, 90, 125, 0.2);
}

h1 {
  font-size: 2.5rem;
  margin: 0;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(106, 90, 125, 0.5);
}

header p {
  font-size: 1.2rem;
  margin: 10px 0;
}

header a {
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

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

.main-content {
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(106, 90, 125, 0.1);
}

hr {
  border: none;
  height: 4px;
  background: linear-gradient(to right, var(--uwu-pink), var(--uwu-blue), var(--uwu-purple), var(--uwu-green));
  border-radius: 2px;
  margin: 25px 0;
}

.content-item {
  text-align: center;
  margin: 30px 0;
}

.graph-img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(106, 90, 125, 0.2);
  transition: transform 0.3s ease;
}

.graph-img:hover {
  transform: scale(1.02);
}

.graph-description {
  font-size: 1.3rem;
  margin: 15px 0;
  font-weight: bold;
  color: var(--text-color);
}

.content-item a {
  background-color: var(--uwu-pink);
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(106, 90, 125, 0.3);
}

.content-item a:hover {
  background-color: var(--uwu-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(106, 90, 125, 0.4);
}

.cool-fact {
  background: linear-gradient(135deg, var(--uwu-yellow), var(--uwu-green));
  padding: 20px;
  border-radius: 20px;
  margin: 40px 0;
  box-shadow: 0 4px 8px rgba(106, 90, 125, 0.2);
}

.cool-fact h3 {
  color: var(--text-color);
  font-size: 1.8rem;
  margin-top: 0;
}

.cool-fact p {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.cool-fact img {
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(106, 90, 125, 0.3);
}

footer {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  font-size: 1rem;
  background-color: var(--uwu-blue);
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(106, 90, 125, 0.1);
}

footer a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/* Mobile responsiveness uwu~ */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .graph-description {
    font-size: 1.1rem;
  }
  
  .cool-fact h3 {
    font-size: 1.5rem;
  }
  
  .cool-fact p {
    font-size: 1.2rem;
  }
}

/* Add these to your existing CSS */

/* Random rotation for graph images */
.graph-img {
    transition: transform 0.5s ease;
    transform: rotate(calc(var(--random-tilt) * 1deg));
}

.graph-img:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
}

/* Each graph gets a random tilt */
.content-item:nth-child(3n) .graph-img { --random-tilt: 2; }
.content-item:nth-child(3n+1) .graph-img { --random-tilt: -2; }
.content-item:nth-child(5n) .graph-img { --random-tilt: 1; }
.content-item:nth-child(7n) .graph-img { --random-tilt: -1; }

/* Rainbow text for headers */
h1, h3 {
    background: linear-gradient(to right, 
        #ff9aa2, #ffb7b2, #ffdac1, #e2f0cb, 
        #b5ead7, #c7ceea, #e2f0cb, #ffdac1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    animation: rainbow-shift 5s linear infinite;
    background-size: 200% auto;
}

@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Floating Tux */
.floating-tux {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Speech bubbles */
.speech-bubble {
    position: fixed;
    background: white;
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    pointer-events: none;
    z-index: 1001;
    transition: opacity 1s ease;
    font-family: 'Comic Sans MS', cursive;
}

.speech-bubble:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent;
}

/* Wiggle animation for download buttons */
@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

.wiggle {
    animation: wiggle 0.5s ease;
}

/* Sparkle effect */
.sparkle {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd6e6"><path d="M12,1L15.5,8.5L23,12L15.5,15.5L12,23L8.5,15.5L1,12L8.5,8.5L12,1Z"/></svg>');
    background-size: contain;
    z-index: 999;
    transform-origin: center;
    animation: sparkle-pop 1s ease-out forwards;
}

@keyframes sparkle-pop {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(1.5) rotate(360deg); opacity: 0; }
}

/* Add some more chaos with waving text */
.graph-description {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    animation-delay: calc(var(--char-index) * 0.05s);
}

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Add some glitch effects to random elements */
.content-item:nth-child(11n) {
    position: relative;
}

.content-item:nth-child(11n)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 214, 230, 0.3);
    animation: glitch 1s infinite;
    pointer-events: none;
}

@keyframes glitch {
    0% { clip-path: inset(80% 0 0 0); }
    20% { clip-path: inset(20% 0 40% 0); }
    40% { clip-path: inset(60% 0 20% 0); }
    60% { clip-path: inset(10% 0 70% 0); }
    80% { clip-path: inset(40% 0 30% 0); }
    100% { clip-path: inset(80% 0 0 0); }
}

/* Bouncy download buttons */
.content-item a {
    transform-origin: center bottom;
    animation: bounce 2s infinite;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Add a cute custom cursor */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="%23ffd6e6" d="M9,11.75A1.25,1.25 0 0,0 7.75,13A1.25,1.25 0 0,0 9,14.25A1.25,1.25 0 0,0 10.25,13A1.25,1.25 0 0,0 9,11.75M15,11.75A1.25,1.25 0 0,0 13.75,13A1.25,1.25 0 0,0 15,14.25A1.25,1.25 0 0,0 16.25,13A1.25,1.25 0 0,0 15,11.75M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20Z"/></svg>'), auto;
}

a:hover {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="%23e6d6ff" d="M12,17.5C14.33,17.5 16.3,16.04 17.11,14H6.89C7.7,16.04 9.67,17.5 12,17.5M8.5,11A1.5,1.5 0 0,0 10,9.5A1.5,1.5 0 0,0 8.5,8A1.5,1.5 0 0,0 7,9.5A1.5,1.5 0 0,0 8.5,11M15.5,11A1.5,1.5 0 0,0 17,9.5A1.5,1.5 0 0,0 15.5,8A1.5,1.5 0 0,0 14,9.5A1.5,1.5 0 0,0 15.5,11M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"/></svg>'), auto;
}

/* Spinning Tux in the corner - fixed */
.chaos-corner {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    overflow: hidden;
}

.spinning-linux {
    animation: spin 3s linear infinite;
    display: block;
    width: 100%;
    height: 100%;
}

.spinning-linux img {
    width: 100%;
    height: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Individual letter animation for descriptive text */
.graph-description span {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    animation-delay: calc(var(--char-index) * 0.05s);
}

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Updated speech bubble styles */
.speech-bubble {
    position: fixed;
    background: var(--uwu-pink);
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    pointer-events: none;
    z-index: 1001;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: 'Comic Sans MS', cursive;
    color: var(--text-color);
    border: 2px solid white;
    max-width: 150px;
    transform-origin: bottom left;
    animation: bubble-pop 0.3s ease-out;
}

@keyframes bubble-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.speech-bubble:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--uwu-pink) transparent;
}

.speech-bubble:before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 18px;
    border-width: 12px 12px 0;
    border-style: solid;
    border-color: white transparent;
    z-index: -1;
}